Re: [ovirt-users] I wrote an oVirt thing

2016-12-28 Thread Juan Hernández
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 > 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" > 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
>>>  
>>>
>>>  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@ovirt.org 
>>>  

Re: [ovirt-users] I wrote an oVirt thing

2016-12-28 Thread Nathanaël Blanchet

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.


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 > 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" > 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
 

 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@ovirt.org 
 http://lists.ovirt.org/mailman/listinfo/users
 



 ___
 Users mailing list
 Users@ovirt.org 
 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
 blanc...@abes.fr 


 ___
 Users mailing list
 Users@ovirt.org 
 http://lists.ovirt.org/mailman/listinfo/users
 


 ___

Re: [ovirt-users] I wrote an oVirt thing

2016-11-30 Thread Yaniv Kaul
On Wed, Nov 30, 2016 at 3:20 PM, Nathanaël Blanchet 
wrote:

>
>
> Le 29/11/2016 à 21:09, Ekin Meroğlu a écrit :
>
> Hi,
>
> On Tue, Nov 29, 2016 at 1:01 AM, Oved Ourfali  wrote:
>
>> BTW, the ovirt-shell is something we deprecated. It is working on top of
>> the v3 api, which we plan to remove in 4.2.
>> So better not use it.
>>
> ​Is there a plan to replace the shell with something similar? I see it
> frequently used by our users for both scripting and one-off tasks.
>
> +1, yes deleting an old v3 API ok, but why not adapting ovirt-shell to the
> new v4 API? I use ovirt-shell every day, often to replace the slow webadmin
> and to run some useful scripts. I'm not enough familiar with python or java
> to write my own scripts, and I find ovirt-shell very useful, easy and fast.
> We've been used to have ready-to-go CLI in almost every opensource software
> as a simple way to manage, why not going on with ovirt 4 if people do need
> it? Is cloud approach something to do with that idea?
> Rational reason would be much appreciated.
>

There is no technical limitation, AFAIK.
I've looked last night at ConfigShell[1] (and see example @ [2])], and it
looks nice and simple (then again, all examples are simple at first).
I'd be happy to see someone developing a CLI on top of the Python SDK using
it.
Perhaps we can write it down as a Google Summer Of Code project.
Y.

[1] https://github.com/open-iscsi/configshell-fb
[2]
https://github.com/open-iscsi/configshell-fb/blob/master/examples/myshell


>
> Regards,
> --
> *Ekin Meroğlu** Red Hat Certified Architect*
>
> linuxera
> ​Open Source Solutions and Services
>
> *T* +90 (850) 22 LINUX | *GSM* +90 (532) 137 77 04
> www.linuxera.com | bi...@linuxera.com
>
>
> --
> 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 14blanc...@abes.fr
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-30 Thread Nathanaël Blanchet



Le 29/11/2016 à 21:09, Ekin Meroğlu a écrit :

Hi,

On Tue, Nov 29, 2016 at 1:01 AM, Oved Ourfali >wrote:


BTW, the ovirt-shell is something we deprecated. It is working on
top of the v3 api, which we plan to remove in 4.2.
So better not use it.

​Is there a plan to replace the shell with something similar? I see it 
frequently used by our users for both scripting and one-off tasks.
+1, yes deleting an old v3 API ok, but why not adapting ovirt-shell to 
the new v4 API? I use ovirt-shell every day, often to replace the slow 
webadmin and to run some useful scripts. I'm not enough familiar with 
python or java to write my own scripts, and I find ovirt-shell very 
useful, easy and fast. We've been used to have ready-to-go CLI in almost 
every opensource software as a simple way to manage, why not going on 
with ovirt 4 if people do need it? Is cloud approach something to do 
with that idea?

Rational reason would be much appreciated.


Regards,
--
*Ekin Meroğlu*/ Red Hat Certified Architect/

linuxera
​Open Source Solutions and Services

*T* +90 (850) 22 LINUX | *GSM* +90 (532) 137 77 04
www.linuxera.com  | bi...@linuxera.com 





--
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
blanc...@abes.fr

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Yaniv Kaul
On Sun, Nov 27, 2016 at 4:00 PM, Nir Soffer  wrote:

> On Sun, Nov 27, 2016 at 12:54 PM, Fabrice Bacchella
>  wrote:
> > Looks like close to my own try :
> >
> > https://github.com/fbacchella/ovirtcmd
>
> Looks cool.
>
> But I think what we need is something like targetcli for ovirt.
> http://linux-iscsi.org/wiki/Targetcli#Display_the_object_tree
>
> With such tool we can see the ovirt setup as a file system tree:
>
> /ovirt/vms/vm-id
> /ovirt/storage/domain-id
> ...
>
> And be able to query and operate on the entities.
>

I believe it is built on top of https://github.com/Datera/configshell (or
its fork - https://github.com/open-iscsi/configshell-fb)
Y.


>
> Another crazy direction I discussed with Roy, is a fuse files system
> mapping
> ovirt setup to a file system - imagine:
>
> $ mount -t ovirtfs /ovirt
>
> $ ls /ovirt/vms
> vm-id-1
> vm-id-2
> ...
>
> $ cat /ovirt/vms/vm-ids/running
> 1
>
> $ echo 0 > /ovirt/vms/vm-id/running
>
> >
> >
> >> Le 26 nov. 2016 à 22:10, Chris Cowley  a
> écrit :
> >>
> >> 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
> >>
> >> 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@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Ekin Meroğlu
Hi,

On Tue, Nov 29, 2016 at 1:01 AM, Oved Ourfali  wrote:

> BTW, the ovirt-shell is something we deprecated. It is working on top of
> the v3 api, which we plan to remove in 4.2.
> So better not use it.
>
​Is there a plan to replace the shell with something similar? I see it
frequently used by our users for both scripting and one-off tasks.

Regards,
-- 
*Ekin Meroğlu** Red Hat Certified Architect*

linuxera
​Open Source Solutions and Services

*T* +90 (850) 22 LINUX | *GSM* +90 (532) 137 77 04
www.linuxera.com | bi...@linuxera.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Derek Atkins
Martin Sivak  writes:

> Juan, you can't say something was deprecated since 4.0 in a bug that
> is created close to feature freeze of 4.1. Neither SDK nor RESTv3 are
> considered deprecated in 4.0, period. Internal plans do not count if
> nobody knows about them.

I guess we've always been at war with Eurasia?   ;)

> Martin

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
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 > > 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" > > 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
> 
>
> 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@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
>
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org 
>>> 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
>> blanc...@abes.fr  
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org 
>> http://lists.ovirt.org/mailman/listinfo/users
>> 
>>
>>
>> 

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
On 11/29/2016 05:02 PM, Martin Sivak wrote:
> Juan, you can't say something was deprecated since 4.0 in a bug that
> is created close to feature freeze of 4.1. Neither SDK nor RESTv3 are
> considered deprecated in 4.0, period. Internal plans do not count if
> nobody knows about them.
> 

Yes, I can say it, because I have been telling everybody to avoid using
version 3 of the API, version 3 of the SDKs and the CLI. That is the
meaning of "deprecate", according to the dictionary.

> 
> On Tue, Nov 29, 2016 at 4: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 >> > 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
>>
>>   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" >> > 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
>> 
>>
>> 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@ovirt.org 
>> http://lists.ovirt.org/mailman/listinfo/users
>> 
>>


 ___
 Users mailing list
 Users@ovirt.org 
 http://lists.ovirt.org/mailman/listinfo/users
 
>>>
>>> --
>>> Nathanaël Blanchet
>>>
>>> Supervision réseau
>>> Pôle Infrastrutures Informatiques
>>> 227 avenue Professeur-Jean-Louis-Viala
>>> 34193 

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Martin Sivak
Juan, you can't say something was deprecated since 4.0 in a bug that
is created close to feature freeze of 4.1. Neither SDK nor RESTv3 are
considered deprecated in 4.0, period. Internal plans do not count if
nobody knows about them.

Martin

On Tue, Nov 29, 2016 at 4: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 > > 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
>
>   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" > > 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
> 
>
> 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@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
>
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org 
>>> 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
>> blanc...@abes.fr 
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org 
>> http://lists.ovirt.org/mailman/listinfo/users
>> 

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Juan Hernández
On 11/29/2016 03:19 PM, Sandro Bonazzola wrote:
> 
> 
> On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali  > 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

  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"  > 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
 

 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@ovirt.org 
 http://lists.ovirt.org/mailman/listinfo/users
 

>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org 
>> 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
> blanc...@abes.fr  
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> 
> 
> 
> -- 
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com 
> 
> 
> 

Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Derek Atkins
Yaniv Kaul  writes:

> On Tue, Nov 29, 2016 at 3:40 AM, Konstantin Shalygin  wrote:
>
> ovirt-shell will be deprecated and not supported or some functions on
> ovirt-shell (or all package ovirt-engine-cli)?
>
> We use ovirt-shell on client desktops who connected to SPICE consoles and
> work (users provided by LDAP on ovirt-engine), like via RDP. For this I
> wrote very fast-hack patch for ovirt-shell and GUI for enter password (
> https://github.com/k0ste/ovirt-pygtk). Very simple, but via Internet
> people use SPICE without negative about packet loss and disconnects,
> instead RDP.
>
> Can you further explain the use case? I assume the user portal is not good
> enough for some reason?
>  

Use case:

Auto-start VMs when my single-host ovirt system boots up.  I have a
script that I run out of rc.local on the ovirt-engine that uses
ovirt-shell to:

1) Wait for the engine to be active
2) Wait for the host to mount the storage domains
3) Starts up all my VMs, in order

This is the first I've heard that ovirt-shell is being deprectated.
It would be a major shame is there is no command-line replacement.

> BTW, the ovirt-shell is something we deprecated. It is working on top
> of
> the v3 api, which we plan to remove in 4.2.
> So better not use it.
>
> You can start maintain. For example I maintain packes for Arch Linux:
> ovirt-engine-cli (https://aur.archlinux.org/packages/ovirt-engine-cli) and
> ovirt-engine-sdk-python (https://aur.archlinux.org/packages/
> ovirt-engine-sdk-python).

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Sandro Bonazzola
On Mon, Nov 28, 2016 at 11:01 PM, Oved Ourfali  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.


> 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"  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
>>
>> 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 Cowleyhttp://about.me/chriscowley
>>
>> ___
>> Users mailing 
>> listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>> ___
>> Users mailing 
>> listUsers@ovirt.orghttp://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 14blanc...@abes.fr
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Logan Kuhn
Is this something that was officially announced and I've missed? This is the 
first time I'm hearing about the removal of the cli 

Regards, 
Logan 

- On Nov 28, 2016, at 4:01 PM, Oved Ourfali  wrote: 

| BTW, the ovirt-shell is something we deprecated. It is working on top of the 
v3
| api, which we plan to remove in 4.2.
| 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" < blanc...@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
| 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@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users

||| ___
||| Users mailing list Users@ovirt.org 
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 blanc...@abes.fr

|| ___
|| Users mailing list
|| Users@ovirt.org
|| http://lists.ovirt.org/mailman/listinfo/users

| ___
| Users mailing list
| Users@ovirt.org
| http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Konstantin Shalygin
Use case - Explain what is Virtual Machine to accountant or stockman - 
beyond my powers. But they understand what is Remote Desktop, and how to 
"Start menu->Programs->Remote Work->password->Enter".



In this talk I like the fact that I learned about deprecation this 
packet and need to start wrote on another library instead call sub-process.


About security reasons: is acceptable for our company. For who don't 
need this patch can easy disable it. This is not package[1], only 
playbook for build this.



[1] https://wiki.archlinux.org/index.php/Arch_User_Repository

On 11/29/2016 07:06 PM, Yaniv Kaul wrote:



On Tue, Nov 29, 2016 at 3:40 AM, Konstantin Shalygin > wrote:


ovirt-shell will be deprecated and not supported or some functions
on ovirt-shell (or all package ovirt-engine-cli)?

We use ovirt-shell on client desktops who connected to SPICE
consoles and work (users provided by LDAP on ovirt-engine), like
via RDP. For this I wrote very fast-hack patch for ovirt-shell and
GUI for enter password (https://github.com/k0ste/ovirt-pygtk
). Very simple, but via
Internet people use SPICE without negative about packet loss and
disconnects, instead RDP.


Can you further explain the use case? I assume the user portal is not 
good enough for some reason?




BTW, the ovirt-shell is something we deprecated. It is working
on top of
the v3 api, which we plan to remove in 4.2.
So better not use it.



You can start maintain. For example I maintain packes for Arch
Linux: ovirt-engine-cli
(https://aur.archlinux.org/packages/ovirt-engine-cli
) and
ovirt-engine-sdk-python
(https://aur.archlinux.org/packages/ovirt-engine-sdk-python
).


Hi,

It somehow looks like a fork of the CLI (due to the added patch[1]).
I'm not sure how happy I am about it, considering the patch is adding 
a feature with security issues (there is a reason we do not support 
password passed via the command line - it's somewhat less secure).
Since you are already checking for the CLI rc file[2], just add the 
password to it and launch with it (in a temp file in the temp 
directory with the right permissions, etc...)


BTW, note that the attempt to delete the password from memory[3] may 
or may not work. After all, it's a copy of what you got 
from entry.get_text() few lines before.
And Python GC is not really to be relied upon to delete things ASAP 
anyway. There are some lovely discussions on the Internet about it. 
For example[4].

Y.

[1] 
https://github.com/k0ste/ovirt-pygtk/blob/master/add_password_option.patch

[2] https://github.com/k0ste/ovirt-pygtk/blob/master/ovirt-pygtk.py#L81
[3] https://github.com/k0ste/ovirt-pygtk/blob/master/ovirt-pygtk.py#L71
[4] 
http://stackoverflow.com/questions/728164/securely-erasing-password-in-memory-python




  My workstation at work is running Ubuntu, and I do not
believe that ovirt-shell is packaged for it.


-- 
Best regards,

Konstantin Shalygin



___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users





--
Best regards,
Konstantin Shalygin

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Yaniv Kaul
On Tue, Nov 29, 2016 at 3:40 AM, Konstantin Shalygin  wrote:

> ovirt-shell will be deprecated and not supported or some functions on
> ovirt-shell (or all package ovirt-engine-cli)?
>
> We use ovirt-shell on client desktops who connected to SPICE consoles and
> work (users provided by LDAP on ovirt-engine), like via RDP. For this I
> wrote very fast-hack patch for ovirt-shell and GUI for enter password (
> https://github.com/k0ste/ovirt-pygtk). Very simple, but via Internet
> people use SPICE without negative about packet loss and disconnects,
> instead RDP.


Can you further explain the use case? I assume the user portal is not good
enough for some reason?


>
>
> BTW, the ovirt-shell is something we deprecated. It is working on top of
>> the v3 api, which we plan to remove in 4.2.
>> So better not use it.
>>
>
>
> You can start maintain. For example I maintain packes for Arch Linux:
> ovirt-engine-cli (https://aur.archlinux.org/packages/ovirt-engine-cli)
> and ovirt-engine-sdk-python (https://aur.archlinux.org/pac
> kages/ovirt-engine-sdk-python).


Hi,

It somehow looks like a fork of the CLI (due to the added patch[1]).
I'm not sure how happy I am about it, considering the patch is adding a
feature with security issues (there is a reason we do not support password
passed via the command line - it's somewhat less secure).
Since you are already checking for the CLI rc file[2], just add the
password to it and launch with it (in a temp file in the temp directory
with the right permissions, etc...)

BTW, note that the attempt to delete the password from memory[3] may or may
not work. After all, it's a copy of what you got from entry.get_text() few
lines before.
And Python GC is not really to be relied upon to delete things ASAP anyway.
There are some lovely discussions on the Internet about it. For example[4].
Y.

[1]
https://github.com/k0ste/ovirt-pygtk/blob/master/add_password_option.patch
[2] https://github.com/k0ste/ovirt-pygtk/blob/master/ovirt-pygtk.py#L81
[3] https://github.com/k0ste/ovirt-pygtk/blob/master/ovirt-pygtk.py#L71
[4]
http://stackoverflow.com/questions/728164/securely-erasing-password-in-memory-python

>
>
>   My workstation at work is running Ubuntu, and I do not believe that
>> ovirt-shell is packaged for it.
>>
>
> --
> Best regards,
> Konstantin Shalygin
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-29 Thread Oved Ourfali
On Tue, Nov 29, 2016 at 3:40 AM, Konstantin Shalygin  wrote:

> ovirt-shell will be deprecated and not supported or some functions on
> ovirt-shell (or all package ovirt-engine-cli)?
>
>
All of it will be removed once we remove V3 API (in 4.2)


> We use ovirt-shell on client desktops who connected to SPICE consoles and
> work (users provided by LDAP on ovirt-engine), like via RDP. For this I
> wrote very fast-hack patch for ovirt-shell and GUI for enter password (
> https://github.com/k0ste/ovirt-pygtk). Very simple, but via Internet
> people use SPICE without negative about packet loss and disconnects,
> instead RDP.
>
> BTW, the ovirt-shell is something we deprecated. It is working on top of
>> the v3 api, which we plan to remove in 4.2.
>> So better not use it.
>>
>
>
> You can start maintain. For example I maintain packes for Arch Linux:
> ovirt-engine-cli (https://aur.archlinux.org/packages/ovirt-engine-cli)
> and ovirt-engine-sdk-python (https://aur.archlinux.org/pac
> kages/ovirt-engine-sdk-python).
>
>   My workstation at work is running Ubuntu, and I do not believe that
>> ovirt-shell is packaged for it.
>>
>
> --
> Best regards,
> Konstantin Shalygin
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Konstantin Shalygin
ovirt-shell will be deprecated and not supported or some functions on 
ovirt-shell (or all package ovirt-engine-cli)?


We use ovirt-shell on client desktops who connected to SPICE consoles 
and work (users provided by LDAP on ovirt-engine), like via RDP. For 
this I wrote very fast-hack patch for ovirt-shell and GUI for enter 
password (https://github.com/k0ste/ovirt-pygtk). Very simple, but via 
Internet people use SPICE without negative about packet loss and 
disconnects, instead RDP.



BTW, the ovirt-shell is something we deprecated. It is working on top of
the v3 api, which we plan to remove in 4.2.
So better not use it.



You can start maintain. For example I maintain packes for Arch Linux: 
ovirt-engine-cli (https://aur.archlinux.org/packages/ovirt-engine-cli) 
and ovirt-engine-sdk-python 
(https://aur.archlinux.org/packages/ovirt-engine-sdk-python).



  My workstation at work is running Ubuntu, and I do not believe that 
ovirt-shell is packaged for it.


--
Best regards,
Konstantin Shalygin


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Oved Ourfali
BTW, the ovirt-shell is something we deprecated. It is working on top of
the v3 api, which we plan to remove in 4.2.
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"  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
>
> 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 Cowleyhttp://about.me/chriscowley
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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 14blanc...@abes.fr
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Nathanaël Blanchet



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

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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users







___
Users mailing list
Users@ovirt.org
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
blanc...@abes.fr

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-28 Thread Chris Cowley
While I really like both ideas it is not a route I would PERSONALLY 
take.


To me it seems logical that there should be parallels between oVirt and 
Openstack. After all, oVirt already integrates with Glance, Cinder and 
Neutron. Thus it is not unreasonable to suggest that any sort of CLI 
should take its inspiration from the Openstack CLI tools.


Also, I am not sure that would scratch my personal itch - which even in 
its unbelievably primitive state, my tool does.


Of course, this is FLOSS, so knock yourself out - the more the merrier.

On 2016-11-27 15:00, Nir Soffer wrote:

On Sun, Nov 27, 2016 at 12:54 PM, Fabrice Bacchella
 wrote:

Looks like close to my own try :

https://github.com/fbacchella/ovirtcmd


Looks cool.

But I think what we need is something like targetcli for ovirt.
http://linux-iscsi.org/wiki/Targetcli#Display_the_object_tree

With such tool we can see the ovirt setup as a file system tree:

/ovirt/vms/vm-id
/ovirt/storage/domain-id
...

And be able to query and operate on the entities.

Another crazy direction I discussed with Roy, is a fuse files system 
mapping

ovirt setup to a file system - imagine:

$ mount -t ovirtfs /ovirt

$ ls /ovirt/vms
vm-id-1
vm-id-2
...

$ cat /ovirt/vms/vm-ids/running
1

$ echo 0 > /ovirt/vms/vm-id/running




Le 26 nov. 2016 à 22:10, Chris Cowley  a 
écrit :


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

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@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
Regards

Chris Cowley
http://about.me/chriscowley
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-27 Thread Fabrice Bacchella
Looks like close to my own try :

https://github.com/fbacchella/ovirtcmd


> Le 26 nov. 2016 à 22:10, Chris Cowley  a écrit :
> 
> 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
> 
> 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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-27 Thread Chris Cowley
Don't see what Ansible has to do with this. In any case, I do not
actually like Ansible. It is not a tool that follows my logic, nor do I
like that it always seems to nudging me towards Ansible Tower.

I wanted a simple CLI that I can use to scratch my own personal itch and
thought I would share it with you guys.

On 27/11/16 10:07, Moran Goldboim wrote:
> Guys, can you please check out Ansible integration work for those use cases:
> a base Auth/Vms/Disks modules were introduced with Ansible 2.2 -
> https://docs.ansible.com/ansible/ovirt_vms_module.html
> https://docs.ansible.com/ansible/ovirt_disks_module.html
> https://docs.ansible.com/ansible/ovirt_auth_module.html
> https://github.com/ansible/ansible-modules-extras/tree/stable-2.2/cloud/ovirt
> 
> with many improvements coming soon with Ansible 2.3:
> https://github.com/ansible/ansible-modules-extras/tree/devel/cloud/ovirt
> https://github.com/ansible/ansible-modules-extras/pulls?utf8=%E2%9C%93=is%3Apr%20is%3Aopen%20ovirt
> 
> it sounds like that for this use case, Ansible modules should be a great
> answer.
> 
> Moran.
> 
> On Sat, Nov 26, 2016 at 11:40 PM, Chris Cowley  > wrote:
> 
> 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.
> 
> 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
> 
> >>
> >> 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@ovirt.org 
> >> http://lists.ovirt.org/mailman/listinfo/users
> 
> >>
> >
> >
> 
> 
> --
> Regards
> 
> Chris Cowley
> http://about.me/chriscowley
> 
> 
> ___
> Users mailing list
> Users@ovirt.org 
> http://lists.ovirt.org/mailman/listinfo/users
> 
> 
> 


-- 
Regards

Chris Cowley
http://about.me/chriscowley



signature.asc
Description: OpenPGP digital signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] I wrote an oVirt thing

2016-11-26 Thread Derek Atkins
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
>
> 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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>


-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users