[ovirt-users] I wrote an oVirt thing

Juan Hernández jhernand at redhat.com
Wed Dec 28 18:46:13 UTC 2016


On 12/28/2016 06:47 PM, Nathanaël Blanchet wrote:
> Hi,
> 
> I understand that ovirt-shell is deprecated, but I need it for the moment.
> 
> I've just done a pip install upgrade ovirt-engine-sdk-python on my
> ubuntu laptop and now ovirt-shell is totally broken, saying :
> ImportError: No module named ovirtsdk.xml.
> 
> Can I go back to the previous SDK? How can I fix it?
> 
> Thanks.
> 

The CLI depends completely on version 3 of the SDK, and it won't work
with version 4. You need to explicitly install version 3 of the SDK:

  pip install ovirt-engine-sdk-python==3.6.9.2

> 
> Le 29/11/2016 à 17:19, Juan Hernández a écrit :
>> On 11/29/2016 04:51 PM, Juan Hernández wrote:
>>> On 11/29/2016 03:19 PM, Sandro Bonazzola wrote:
>>>>
>>>> On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali <oourfali at redhat.com
>>>> <mailto:oourfali at redhat.com>> wrote:
>>>>
>>>>      BTW, the ovirt-shell is something we deprecated.
>>>>
>>>> Can you please point me to the deprecation bug for it?
>>>> I can't see it
>>>> here: https://bugzilla.redhat.com/buglist.cgi?quicksearch=ovirt-shell
>>>>
>>>>  
>>>>      It is working on top of the v3 api, which we plan to remove in
>>>> 4.2.
>>>>
>>>> Haven't seen a deprecation bug for this as well
>>>> in
>>>> https://bugzilla.redhat.com/buglist.cgi?quicksearch=classification%3Aovirt%20v3%20api
>>>>
>>>>
>>>> If we want people to know about it we need to publish it somehow and
>>>> for
>>>> the way we build release notes we need deprecation bugs for it to be
>>>> published.
>>>>   
>>> There were no such bugs. I have just created them:
>>>
>>>    Deprecate version 3 of the API
>>>    https://bugzilla.redhat.com/1399724
>>>
>> This ^ bug had an important typo in the description that Martin Sivak
>> pointed out. I have closed it and replaced with this one, which is
>> hopefully more correct:
>>
>>    Deprecate version 3 of the API
>>    https://bugzilla.redhat.com/1399750
>>
>>>    Deprecate version 3 of the Python SDK
>>>    https://bugzilla.redhat.com/1399714
>>>
>>>    Deprecate version 3 of the Java SDK
>>>    https://bugzilla.redhat.com/1399717
>>>
>>>    Deprecate the ovirt-shell tool
>>>    https://bugzilla.redhat.com/1399709
>>>
>>>>      So better not use it.
>>>>
>>>>      Alternatives are to use the SDKs according to your preference (we
>>>>      have Java, python and Ruby SDKs) or the ansible modules mentioned
>>>>      above by Moran (instead of writing scripts you can write playbooks
>>>>      to do various operations ).
>>>>
>>>>      Regards,
>>>>      Oved
>>>>
>>>>
>>>>      On Nov 28, 2016 13:02, "Nathanaël Blanchet" <blanchet at abes.fr
>>>>      <mailto:blanchet at abes.fr>> wrote:
>>>>
>>>>
>>>>
>>>>          Le 26/11/2016 à 22:40, Chris Cowley a écrit :
>>>>>          A few reasons really. I fancied playing around with Click,
>>>>> so I made
>>>>>          this as I was also digging around the oVirt API. My
>>>>> workstation at work
>>>>>          is running Ubuntu, and I do not believe that ovirt-shell
>>>>> is packaged for it.
>>>>          sudo apt-get install -y python-pip
>>>>          sudo pip install kitchen
>>>>          sudo pip install ply
>>>>          sudo pip install ovirt-shell
>>>>>          Also, choice is good.
>>>>>
>>>>>          Finally: because I didn't think of it.
>>>>>
>>>>>          On 26/11/16 22:24, Derek Atkins wrote:
>>>>>>          Hi Chris,
>>>>>>
>>>>>>          Just a quick question, but, why not just use ovirt-shell?
>>>>>>          Or make this a wrapper around ovirt-shell?
>>>>>>
>>>>>>          -derek
>>>>>>
>>>>>>          On Sat, November 26, 2016 4:10 pm, Chris Cowley wrote:
>>>>>>>          Hi all
>>>>>>>
>>>>>>>          I started hacking together something last night to use
>>>>>>> as a CLI to
>>>>>>>          manage my oVirt clusters.
>>>>>>>
>>>>>>>          https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage
>>>>>>>          <https://gogs.chriscowley.me.uk/chriscowley/ovirtmanage>
>>>>>>>
>>>>>>>          Currently it can create/delete a VM, list the VMS, and I
>>>>>>> started a
>>>>>>>          function to show the details, but all that does for now
>>>>>>> is return the ID.
>>>>>>>
>>>>>>>          The plan is for it to evolve with my own needs, but I am
>>>>>>> open to
>>>>>>>          ideas/PRs from the community.
>>>>>>>
>>>>>>>          Disclaimer #1: I am a SysAdmin, not a developer. If you
>>>>>>> a proper
>>>>>>>          developer, what you see may cause you physical pain.
>>>>>>>
>>>>>>>          Disclaimer #2: My Gogs repo is behind my ADSL in rural
>>>>>>> France, be
>>>>>>>          patient and I withold the right to not respect any sort
>>>>>>> of SLA :-)
>>>>>>>
>>>>>>>
>>>>>>>          --
>>>>>>>          Regards
>>>>>>>
>>>>>>>          Chris Cowley
>>>>>>>          http://about.me/chriscowley
>>>>>>>
>>>>>>>          _______________________________________________
>>>>>>>          Users mailing list
>>>>>>>          Users at ovirt.org <mailto:Users at ovirt.org>
>>>>>>>          http://lists.ovirt.org/mailman/listinfo/users
>>>>>>>          <http://lists.ovirt.org/mailman/listinfo/users>
>>>>>>>
>>>>>
>>>>>          _______________________________________________
>>>>>          Users mailing list
>>>>>          Users at ovirt.org <mailto:Users at ovirt.org>
>>>>>          http://lists.ovirt.org/mailman/listinfo/users
>>>>>          <http://lists.ovirt.org/mailman/listinfo/users>
>>>>          --
>>>>          Nathanaël Blanchet
>>>>
>>>>          Supervision réseau
>>>>          Pôle Infrastrutures Informatiques
>>>>          227 avenue Professeur-Jean-Louis-Viala
>>>>          34193 MONTPELLIER CEDEX 5    
>>>>          Tél. 33 (0)4 67 54 84 55
>>>>          Fax  33 (0)4 67 54 84 14
>>>>          blanchet at abes.fr <mailto:blanchet at abes.fr>
>>>>
>>>>
>>>>          _______________________________________________
>>>>          Users mailing list
>>>>          Users at ovirt.org <mailto:Users at ovirt.org>
>>>>          http://lists.ovirt.org/mailman/listinfo/users
>>>>          <http://lists.ovirt.org/mailman/listinfo/users>
>>>>
>>>>
>>>>      _______________________________________________
>>>>      Users mailing list
>>>>      Users at ovirt.org <mailto:Users at ovirt.org>
>>>>      http://lists.ovirt.org/mailman/listinfo/users
>>>>      <http://lists.ovirt.org/mailman/listinfo/users>
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Sandro Bonazzola
>>>> Better technology. Faster innovation. Powered by community
>>>> collaboration.
>>>> See how it works at redhat.com <http://redhat.com>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>
>>
> 



More information about the Users mailing list