
This is a multi-part message in MIME format. --------------92C444A34583BD0A939A6910 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 30/12/2016 =C3=A0 20:53, Dan Yasny a =C3=A9crit :
I personally found that she'll isn't as useful as the python sdk. I=20 usually open up ipython, load the sdk and interact with ovirt=20 directly. This is faster and much more powerful than the shell could=20 ever be. okay, I suppose you to be a regular python user. Can you imagine how=20 much time I spent just to understand how it works? That is to say:
* installing pip and not pip3 because provided python-ovirt-engine-sdk4 is default installed to /usr/lib64/python2.7= , * installing ipython, * importing the good modules, * finding pertinent examples, * understand differences between sdk3 and 4 * correcting some wrong examples * adapting example to my need? I can't see how it can be fast for the newbie. What's the first goal of a CLI? to abstract all this stuff for the=20 python newbie. If you want a easy-to-use webadmin for attracting a large=20 public, you should provide easy-to-use CLI as well. Ovirt-shell was a=20 part of my choice to use ovirt. Yes we can learn to use SDK (I dit it), but I don't think a lot people=20 who chose ovirt for simplicity wll use it except advanced users. A new time, thank you for the great stuff for the great oVirt project,=20 but I find there is too much distance between devs and users. What do really think the community about this?
On Dec 30, 2016 11:22 AM, "Nathana=C3=ABl Blanchet" <blanchet@abes.fr=20 <mailto:blanchet@abes.fr>> wrote:
Interesting work and thank you for this stuff. I played with some modules (ovirt_vms_facts) to get some vms name for example.
* [root@acore ovirt]# ansible-playbook All_Vms_list.yml * with - name: List vms ovirt_vms_facts: auth: "{{ ovirt_auth }}" pattern: name=3Dtest_cloud fetch_nested: true nested_attributes: name register: ovirt_vms
- shell: echo "{{ ovirt_vms.name <http://ovirt_vms.name> }} > vms_name" // doesn't work
* - shell: echo "{{ ovirt_vms }} > vms_name // returns an unicode json file, that's surely why we can't parse it. Can you help me to solve this into the ovirt_vms_facts.py file?
* I have no such problem with ovirt_snaphots_module and I can easily get the snaphot.id <http://snaphot.id> variable.... but: o I had to manually copy the ovirt_snaphsots_module because it is not present on the git tree. This is very curious: we can find it here http://ovirt-ansible-modules.readthedocs.io/en/latest/_modu=
les/ovirt_snapshots_module.htm
<http://ovirt-ansible-modules.readthedocs.io/en/latest/_mod=
ules/ovirt_snapshots_module.htm>,
but it is not available on the main ansible git tre. o On the doc, return values are not described
For the moment, my opinion is that ansible can't be as much convinient as the current CLI, e.g. ovirt-shell -E "list vms", out of the box. Is there a really reason to deprecate it?
Le 02/12/2016 =C3=A0 14:12, Ondra Machacek a =C3=A9crit :
Hello all,
I would like to kindly ask everyone who is Ansible or oVirt user f=
or
testing of the new Ansible oVirt modules. For everyone who is familiar with the Ansible and oVirt, this[1] describes the steps you need to do, to setup oVirt modules library and start using those modules (Most of those modules will be available in Ansible 2.3, some of them are already in 2.2).
If you have any issue setting this up, please contact me, I will do the best to help you.
If you have an issue, which you think is a bug, please open an iss=
ue
here[2]. Please note that Ansible is merging it's repositories, so since next week it will actually be stored here[3]. If you are missing anything please open an issue as well, or just contact me, and I will do fix it. You are also very welcome to sent PR with fixes.
For those who don't have testing environment which can test agains=
t,
I've created an Vagrant project which will deploy you the oVirt instance using Ansible playbooks. You can find how to use it here[4].
The repository also contains few examples[5], so you don't have to copy-paste them from the source.
Thanks all for reading this and any feedback, Ondra
[1] https://github.com/machacekondra/ovirt-tests/releases/tag/0.1 <https://github.com/machacekondra/ovirt-tests/releases/tag/0.1> [2] https://github.com/ansible/ansible-modules-extras/issues <https://github.com/ansible/ansible-modules-extras/issues> [3] https://github.com/ansible/ansible <https://github.com/ansible/ansible> [4] https://github.com/machacekondra/ovirt-tests <https://github.com/machacekondra/ovirt-tests> [5] https://github.com/machacekondra/ovirt-tests/tree/master/examples <https://github.com/machacekondra/ovirt-tests/tree/master/examples=
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------92C444A34583BD0A939A6910 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty= pe"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p><br> </p> <br> <div class=3D"moz-cite-prefix">Le 30/12/2016 =C3=A0 20:53, Dan Yasny = a =C3=A9crit=C2=A0:<br> </div> <blockquote cite=3D"mid:CALLXwb69edHu7dJhf3cmXYkOHn9wAg-1OO99FZr6N820fHDR=3Dg@mail.gm= ail.com" type=3D"cite"> <div dir=3D"auto">I personally found that she'll isn't as useful as the python sdk. I usually open up ipython, load the sdk and interact with ovirt directly. This is faster and much more powerful than the shell could ever be. <br> </div> </blockquote> okay, I suppose you to be a regular python user. Can you imagine how much time I spent just to understand how it works? <br> That is to say:<br> <ul> <li>installing pip and not pip3 because provided python-ovirt-engine-sdk4 is default installed to /usr/lib64/python2.7, <br> </li> <li>installing ipython, <br> </li> <li>importing the good modules, <br> </li> <li>finding pertinent examples, </li> <li>understand differences between sdk3 and 4 </li> <li>correcting some wrong examples</li> <li>adapting example to my need?</li> </ul> I can't see how it can be fast for the newbie.<br> What's the first goal of a CLI? to abstract all this stuff for the python newbie. If you want a easy-to-use webadmin for attracting a large public, you should provide easy-to-use CLI as well. Ovirt-shell was a part of my choice to use ovirt.<br> Yes we can learn to use SDK (I dit it), but I don't think a lot people who chose ovirt for simplicity wll use it except advanced users.<br> A new time, thank you for the great stuff for the great oVirt project, but I find there is too much distance between devs and users.<br> What do really think the community about this?<br> <blockquote cite=3D"mid:CALLXwb69edHu7dJhf3cmXYkOHn9wAg-1OO99FZr6N820fHDR=3Dg@mail.gm= ail.com" type=3D"cite"> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Dec 30, 2016 11:22 AM, "Nathana=C3=AB= l Blanchet" <<a moz-do-not-send=3D"true" href=3D"mailto:blanchet@abes.fr">blanchet@abes.fr</a>> wrote:<br type=3D"attribution"> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Interesting work and thank you for this stuff. I played with some modules (ovirt_vms_facts) to get some vms name for example.<br> </p> <ul> <li>[root@acore ovirt]# ansible-playbook All_Vms_list.yml =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 <br> </li> <li>with <br> =C2=A0 - name: List vms<br> =C2=A0=C2=A0=C2=A0 ovirt_vms_facts:<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 auth: "{{ ovirt_auth }}"= <br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pattern: name=3Dtest_clo= ud<br> =C2=A0 =C2=A0 =C2=A0 fetch_nested: true<br> =C2=A0=C2=A0 =C2=A0=C2=A0 nested_attributes: name<br> =C2=A0=C2=A0=C2=A0 register: ovirt_vms<br> =C2=A0=C2=A0=C2=A0=C2=A0 <br> =C2=A0 - shell: echo "{{ <a moz-do-not-send=3D"true" href=3D"http://ovirt_vms.name" target=3D"_blank">ovir= t_vms.name</a> }} > vms_name" // doesn't work</li> </ul> <ul> <li>=C2=A0 - shell: echo "{{ ovirt_vms }} > vms_name /= / returns an unicode json file, that's surely why we can't parse it. Can you help me to solve this into the ovirt_vms_facts.py file?</li> </ul> <ul> <li>I have no such problem with ovirt_snaphots_module and I can easily get the <a moz-do-not-send=3D"true" href=3D"http://snaphot.id" target=3D"_blank">snaphot.= id</a> variable.... but:</li> <ul> <li>I had to manually copy the ovirt_snaphsots_module because it is not present on the git tree. This is very curious: we can find it here <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext= " href=3D"http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ov= irt_snapshots_module.htm" target=3D"_blank">http://ovirt-ansible-modules.<wbr=
readthedocs.io/en/latest/_<wbr>modules/ovirt_snapshots_<wbr>module.htm</= a>, but it is not available on the main ansible git tre.<= /li> <li>On the doc, return values are not described</li> </ul> </ul> <p>For the moment, my opinion is that ansible can't be as much convinient as the current CLI, e.g. ovirt-shell -E "list vms", out of the box. Is there a really reason to deprecate it?<br> </p> <br> <div class=3D"m_5747256721902447049moz-cite-prefix">Le 02/12/2016 =C3=A0 14:12, Ondra Machacek a =C3=A9crit=C2=A0= :<br> </div> <blockquote type=3D"cite">Hello all, <br> <br> I would like to kindly ask everyone who is Ansible or oVirt user for <br> testing of the new Ansible oVirt modules. For everyone who is familiar <br> with the Ansible and oVirt, this[1] describes the steps you need to do, <br> to setup oVirt modules library and start using those modules (Most of those modules will be available in Ansible 2.3, some of them are already in 2.2). <br> <br> If you have any issue setting this up, please contact me, I will do the <br> best to help you. <br> <br> If you have an issue, which you think is a bug, please open an issue <br> here[2]. Please note that Ansible is merging it's repositories, so since <br> next week it will actually be stored here[3]. If you are missing <br> anything please open an issue as well, or just contact me, and I will <br> do fix it. You are also very welcome to sent PR with fixes. <br> <br> For those who don't have testing environment which can test against, <br> I've created an Vagrant project which will deploy you the oVirt instance <br> using Ansible playbooks. You can find how to use it here[4]. <br> <br> The repository also contains few examples[5], so you don't have to <br> copy-paste them from the source. <br> <br> Thanks all for reading this and any feedback, <br> Ondra <br> <br> [1] <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"https://github.com/machacekondra/ovirt-tests/re= leases/tag/0.1" target=3D"_blank">https://github.com/<wbr>machacekondra= /ovirt-tests/<wbr>releases/tag/0.1</a> <br> [2] <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"https://github.com/ansible/ansible-modules-extr= as/issues" target=3D"_blank">https://github.com/ansible/<wbr>ansib= le-modules-extras/issues</a> <br> [3] <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"https://github.com/ansible/ansible" target=3D"_blank">https://github.com/ansible/<wbr>ansib= le</a> <br> [4] <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"https://github.com/machacekondra/ovirt-tests" target=3D"_blank">https://github.com/<wbr>machacekondra= /ovirt-tests</a> <br> [5] <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"https://github.com/machacekondra/ovirt-tests/tr= ee/master/examples" target=3D"_blank">https://github.com/<wbr>machacekondra= /ovirt-tests/<wbr>tree/master/examples</a> <br> ______________________________<wbr>_________________ <br> Users mailing list <br> <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org" target=3D"_blank">Users= @ovirt.org</a> <br> <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman/listinfo/users" target=3D"_blank">http://lists.ovirt.org/<wbr>mailman/l= istinfo/users</a> <br> </blockquote> <br> <pre class=3D"m_5747256721902447049moz-signature" cols=3D"7= 2">--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a moz-do-not-send=3D"true" class=3D"m_5747256721902447049moz-txt-link-ab= breviated" href=3D"mailto:blanchet@abes.fr" target=3D"_blank">blanchet@ab= es.fr</a> </pre> </div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a moz-do-not-send=3D"true" href=3D"mailto:Users@ovirt.org">U= sers@ovirt.org</a><br> <a moz-do-not-send=3D"true" href=3D"http://lists.ovirt.org/mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank">http://lists.ovirt.org= /<wbr>mailman/listinfo/users</a><br> <br> </blockquote> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------92C444A34583BD0A939A6910--