[ovirt-users] oVirt Python SDK on Ubuntu

Nicolas Ecarnot nicolas at ecarnot.net
Mon Jan 23 13:53:00 UTC 2017


Le 23/01/2017 à 13:38, Ondra Machacek a écrit :
> On Mon, Jan 23, 2017 at 1:23 PM, Nicolas Ecarnot <nicolas at ecarnot.net> wrote:
>> Hello,
>>
>> I'm trying to follow
>> http://www.ovirt.org/develop/release-management/features/infra/python-sdk/
>> and I'm successfully discovering Python + oVirt SDK on CentOS.
>>
>> I'd like to do the same on Ubuntu, but the instructions seem incomplete :
>>
>> "
>> easy_install ovirt-engine-sdk-python
>> "
>>
>> is working, but "import ovirtsdk" doen't give anything.
>
> Note that the wiki page is about SDK version 3, which will be deprecated in 4.2.
> When you run 'easy_install ovirt-engine-sdk-python' it will install
> Python SDK version
> 4, which is different from SDK version 3.

You're right, and I haven't noticed : import ovirtsdk4 is working.

>
> You may find few examples of Python SDK version 4 here:
>
>  https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples

Yes, this list of examples is a treasure, and I'm grateful to the 
maintainers.

Alas, though we already have one DC in V4, most of our production DCs 
are still in V3 for one year, and I have to maintain them.
So far, I have no clue how to add ovirtsdk v3 to my Ubuntu.

Another point : is the compatibility between ovirtsdk and oVirt 
completely obvious (ie 3 -> 3 and 4 -> 4), or is there any kind of 
backward compatibility?

-- 
Nicolas ECARNOT


More information about the Users mailing list