[ovirt-users] Error when trying to retrieve cluster, hosts via ovirt API
Jean-Pierre Ribeauville
jpribeauville at axway.com
Wed Nov 18 11:22:17 UTC 2015
Hi,
You were right .
By setting correct URL and correct certificate file location , it’s working.
If I well understand , as this certificate file has to be on the client side , isn’t a point if failure ?
For example , for a cluster , it’s possible to retrieve hosts belonging to the cluster via this call:
hostoncluster = api.clusters.get(id=api.hosts.get(obj.name<http://obj.name>).get_cluster().get_id()).get_name()
How may I know list of available “fields” for host, cluster, datacenters and so on .. …
Thanks for help.
J.P.
De : Karli Sjöberg [mailto:karli.sjoberg at slu.se]
Envoyé : mardi 17 novembre 2015 17:52
À : Jean-Pierre Ribeauville
Cc : users at ovirt.org
Objet : Re: [ovirt-users] Error when trying to retrieve cluster, hosts via ovirt API
Den 17 nov. 2015 5:30 em skrev Jean-Pierre Ribeauville <jpribeauville at axway.com<mailto:jpribeauville at axway.com>>:
>
> Hi,
>
>
>
> By running python example got here ( : http://website-humblec.rhcloud.com/ovirt-find-hosts-clusters-vm-running-status-ids-storage-domain-details-ovirt-dc-pythonovirt-sdk-part-3)
> and modified with my connection parameters, I got following error :
>
>
>
>
>
> Unexpected error: [ERROR]::oVirt API connection failure, (77, '')
>
>
>
> How may I get error codes meanings ?
I don't know the meaning but I saw that APIURL was wrong, it should be:
APIURL = "https://${ENGINE_ADDRESS}/ovirt-engine/api<https://$%7bENGINE_ADDRESS%7d/ovirt-engine/api>"
Could you correct that and try again?
/K
>
>
>
> Thanks for help.
>
>
>
>
>
>
>
> J.P. Ribeauville
>
>
>
> P: +33.(0).1.47.17.20.49
>
> .
>
> Puteaux 3 Etage 5 Bureau 4
>
>
>
> jpribeauville at axway.com<mailto:jpribeauville at axway.com>
> http://www.axway.com
>
>
>
>
>
> P Pensez à l’environnement avant d’imprimer.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151118/cb6e2639/attachment-0001.html>
More information about the Users
mailing list