[Users] engine-iso-uploader -- REST API not usable?

--------------060904020206020404060005 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit I ran into this problem when I tried to use engine-iso-uploader, but reading on the lists makes it sound like it may be a more general problem. There was a bug that caused this, but that was back in the ver. 3.0/3.1 days, and doesn't seem common since then. Back on Dec 24 I was able to upload an ISO file OK, so I am not sure what has changed since then. I am running a test setup, fully up to date: office2a host w/ glusterfs Centos 6 office4a host w/ glusterfs Centos 6 ov-eng01 engine on Centos 6 VM (not hosted on oVirt) office9 KVM host (not oVirt) for ov-eng01 whether I log in to ov-eng01 by ssh or execute the command from the console, I get: # engine-iso-uploader list -v Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): ERROR: Problem connecting to the REST API. Is the service available and does the CA certificate exist? checking on some things suggested on a thread about engine-iso-uploader back in March, I get: # ls -la /etc/pki/ovirt-engine/ca.pem -rw-r--r--. 1 root root 4569 Nov 10 15:13 /etc/pki/ovirt-engine/ca.pem # cat /var/log/ovirt-engine/ovirt-iso-uploader/ovirt-iso-uploader/20140117112938.log 2014-01-17 11:29:44::ERROR::engine-iso-uploader::512::root:: Problem connecting to the REST API. Is the service available and does the CA certificate exist? The thread back in March gave a work-around to upload ISO images directly, so I am not "blocked" from uploading images, but I would like to get things working "right", as I am afraid the problem will "turn around and bite me" down the road. Ted Miller --------------060904020206020404060005 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body text="#000000" bgcolor="#FFFFFF"> I ran into this problem when I tried to use engine-iso-uploader, but reading on the lists makes it sound like it may be a more general problem. There was a bug that caused this, but that was back in the ver. 3.0/3.1 days, and doesn't seem common since then.<br> <div class="moz-forward-container"> <div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0"> <br> Back on Dec 24 I was able to upload an ISO file OK, so I am not sure what has changed since then.<br> <br> I am running a test setup, fully up to date:<br> office2a host w/ glusterfs Centos 6 <br> office4a host w/ glusterfs Centos 6<br> ov-eng01 engine on Centos 6 VM (not hosted on oVirt)<br> office9 KVM host (not oVirt) for ov-eng01<br> <br> whether I log in to ov-eng01 by ssh or execute the command from the console, I get:<br> <br> # engine-iso-uploader list -v <br> Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): <br> ERROR: Problem connecting to the REST API. Is the service available and does the CA certificate exist?<br> <br> checking on some things suggested on a thread about engine-iso-uploader back in March, I get:<br> <br> # ls -la /etc/pki/ovirt-engine/ca.pem<br> -rw-r--r--. 1 root root 4569 Nov 10 15:13 /etc/pki/ovirt-engine/ca.pem<br> <br> # cat /var/log/ovirt-engine/ovirt-iso-uploader/ovirt-iso-uploader/20140117112938.log<br> 2014-01-17 11:29:44::ERROR::engine-iso-uploader::512::root:: Problem connecting to the REST API. Is the service available and does the CA certificate exist?<br> <br> The thread back in March gave a work-around to upload ISO images directly, so I am not "blocked" from uploading images, but I would like to get things working "right", as I am afraid the problem will "turn around and bite me" down the road.<br> <br> Ted Miller<br> <br> </div> <br> </div> <br> </body> </html> --------------060904020206020404060005--

On 01/18/2014 07:49 PM, Ted Miller wrote:
I ran into this problem when I tried to use engine-iso-uploader, but reading on the lists makes it sound like it may be a more general problem. There was a bug that caused this, but that was back in the ver. 3.0/3.1 days, and doesn't seem common since then.
Back on Dec 24 I was able to upload an ISO file OK, so I am not sure what has changed since then.
I am running a test setup, fully up to date: office2a host w/ glusterfs Centos 6 office4a host w/ glusterfs Centos 6 ov-eng01 engine on Centos 6 VM (not hosted on oVirt) office9 KVM host (not oVirt) for ov-eng01
whether I log in to ov-eng01 by ssh or execute the command from the console, I get:
# engine-iso-uploader list -v Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): ERROR: Problem connecting to the REST API. Is the service available and does the CA certificate exist?
checking on some things suggested on a thread about engine-iso-uploader back in March, I get:
# ls -la /etc/pki/ovirt-engine/ca.pem -rw-r--r--. 1 root root 4569 Nov 10 15:13 /etc/pki/ovirt-engine/ca.pem
# cat /var/log/ovirt-engine/ovirt-iso-uploader/ovirt-iso-uploader/20140117112938.log 2014-01-17 11:29:44::ERROR::engine-iso-uploader::512::root:: Problem connecting to the REST API. Is the service available and does the CA certificate exist?
The thread back in March gave a work-around to upload ISO images directly, so I am not "blocked" from uploading images, but I would like to get things working "right", as I am afraid the problem will "turn around and bite me" down the road.
Ted Miller
To discard an actual problem with the REST API I would suggest you to run the following command, from the same machine: # curl \ --cacert /etc/pki/ovirt-engine/ca.pem \ --user admin@internal:your_password \ https://your_host/api This should give you a XML document containing the entry point of the API, something like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <api> ... </api> I would also suggest to check the /etc/ovirt-engine/isouploader.conf file, as you may have changed something there in the past. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

Il 18/01/2014 21:12, Juan Hernandez ha scritto:
On 01/18/2014 07:49 PM, Ted Miller wrote:
I ran into this problem when I tried to use engine-iso-uploader, but reading on the lists makes it sound like it may be a more general problem. There was a bug that caused this, but that was back in the ver. 3.0/3.1 days, and doesn't seem common since then.
Back on Dec 24 I was able to upload an ISO file OK, so I am not sure what has changed since then.
I am running a test setup, fully up to date: office2a host w/ glusterfs Centos 6 office4a host w/ glusterfs Centos 6 ov-eng01 engine on Centos 6 VM (not hosted on oVirt) office9 KVM host (not oVirt) for ov-eng01
whether I log in to ov-eng01 by ssh or execute the command from the console, I get:
# engine-iso-uploader list -v Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): ERROR: Problem connecting to the REST API. Is the service available and does the CA certificate exist?
checking on some things suggested on a thread about engine-iso-uploader back in March, I get:
# ls -la /etc/pki/ovirt-engine/ca.pem -rw-r--r--. 1 root root 4569 Nov 10 15:13 /etc/pki/ovirt-engine/ca.pem
# cat /var/log/ovirt-engine/ovirt-iso-uploader/ovirt-iso-uploader/20140117112938.log 2014-01-17 11:29:44::ERROR::engine-iso-uploader::512::root:: Problem connecting to the REST API. Is the service available and does the CA certificate exist?
The thread back in March gave a work-around to upload ISO images directly, so I am not "blocked" from uploading images, but I would like to get things working "right", as I am afraid the problem will "turn around and bite me" down the road.
Ted Miller
To discard an actual problem with the REST API I would suggest you to run the following command, from the same machine:
# curl \ --cacert /etc/pki/ovirt-engine/ca.pem \ --user admin@internal:your_password \ https://your_host/api
This should give you a XML document containing the entry point of the API, something like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <api> ... </api>
I would also suggest to check the /etc/ovirt-engine/isouploader.conf file, as you may have changed something there in the past.
Can you also tell us which version are you running? rpm -qa |grep ovirt and ls -lZ /root/.ssh Thanks, -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
participants (3)
-
Juan Hernandez
-
Sandro Bonazzola
-
Ted Miller