
This is a multi-part message in MIME format. --------------200A0996437076D3DE8EA6A3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 04/01/2017 =C3=A0 10:09, Andrea Ghelardi a =C3=A9crit :
Personally I don=E2=80=99t think ansible and ovirt-shell are mutually e=
xclusive.
Those who are in ansible and devops realms are not really scared by=20 making python/ansible work with ovirt.
From what I gather, playbooks are quite a de-facto pre-requisite to=20 build up a real SaaC =E2=80=9CSoftware as a Code=E2=80=9D environment.
On the other hand, ovirt-shell can and is a fast/easy way to perform=20 =E2=80=9Cnormal daily tasks=E2=80=9D.
totally agree but ovirt-shell is deprecated in 4.1 et will be removed in=20 4.2. Ansible or sdk4 are proposed as an alternative.
As long as we have good documentation about how to do things, can we=20 have and support both?
Cheers
Andrea
*From:*users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] *On=20 Behalf Of *Nathana=C3=ABl Blanchet *Sent:* Tuesday, January 3, 2017 7:41 PM *To:* Dan Yasny <dyasny@gmail.com> *Cc:* users <users@ovirt.org> *Subject:* Re: [ovirt-users] Request for oVirt Ansible modules testing=20 feedback
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 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.
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=20 large public, you should provide easy-to-use CLI as well. Ovirt-shell=20 was a 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
<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/_=
modules/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 for 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 issue 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 against, 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
[2] https://github.com/ansible/ansible-modules-extras/issue=
s
[3] https://github.com/ansible/ansible [4] https://github.com/machacekondra/ovirt-tests [5] https://github.com/machacekondra/ovirt-tests/tree/master/ex=
amples
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> 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
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
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 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
--=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 --------------200A0996437076D3DE8EA6A3 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 04/01/2017 =C3=A0 10:09, Andrea Ghe= lardi a =C3=A9crit=C2=A0:<br> </div> <blockquote cite=3D"mid:CY4PR14MB16872F07318B2136C5CC851EE9610@CY4PR14MB1687.namprd14= .prod.outlook.com" type=3D"cite"> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du= tf-8"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman",serif; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p {mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman",serif; color:black;} pre {mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} p.msonormal0, li.msonormal0, div.msonormal0 {mso-style-name:msonormal; mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman",serif; color:black;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-priority:99; mso-style-link:"HTML Preformatted"; font-family:Consolas; color:black;} span.EmailStyle21 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} /* List Definitions */ @list l0 {mso-list-id:1157302130; mso-list-template-ids:-1650412868;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:=EF=82=B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} @list l0:level2 {mso-level-number-format:bullet; mso-level-text:o; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:"Courier New"; mso-bidi-font-family:"Times New Roman";} @list l0:level3 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level4 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level5 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level6 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level7 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level8 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l0:level9 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1 {mso-list-id:1324121608; mso-list-template-ids:-1782158634;} @list l1:level1 {mso-level-number-format:bullet; mso-level-text:=EF=82=B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} @list l1:level2 {mso-level-number-format:bullet; mso-level-text:o; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:"Courier New"; mso-bidi-font-family:"Times New Roman";} @list l1:level3 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level4 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level5 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level6 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level7 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level8 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l1:level9 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2 {mso-list-id:1823504021; mso-list-template-ids:-260960880;} @list l2:level1 {mso-level-number-format:bullet; mso-level-text:=EF=82=B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} @list l2:level2 {mso-level-number-format:bullet; mso-level-text:o; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:"Courier New"; mso-bidi-font-family:"Times New Roman";} @list l2:level3 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level4 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level5 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level6 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level7 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level8 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l2:level9 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3 {mso-list-id:2067601109; mso-list-template-ids:855244896;} @list l3:level1 {mso-level-number-format:bullet; mso-level-text:=EF=82=B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} @list l3:level2 {mso-level-number-format:bullet; mso-level-text:o; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:"Courier New"; mso-bidi-font-family:"Times New Roman";} @list l3:level3 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level4 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level5 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level6 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level7 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level8 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} @list l3:level9 {mso-level-number-format:bullet; mso-level-text:=EF=82=A7; mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Wingdings;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">Personally I don=E2=80=99t think ansible and ovirt-shell are mutually exclusive.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">Those who are in ansible and devops realms are not really scared by making python/ansible work with ovirt.<o:p></o:p></span></= p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">From what I gather, playbooks are quite a de-facto pre-requisite to build up a real SaaC =E2=80=9CSoftware as a Code=E2=80=9D = environment.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext"><o:p>=C2=A0</o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">On the other hand, ovirt-shell can and is a fast/easy way to perform =E2=80=9Cnormal daily tasks=E2=80=9D.</span></p> </div> </blockquote> totally agree but ovirt-shell is deprecated in 4.1 et will be removed in 4.2. Ansible or sdk4 are proposed as an alternative.<br> <blockquote cite=3D"mid:CY4PR14MB16872F07318B2136C5CC851EE9610@CY4PR14MB1687.namprd14= .prod.outlook.com" type=3D"cite"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext"><o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext"><o:p>=C2=A0</o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">As long as we have good documentation about how to do things, can we have and support both?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">Cheers<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">Andrea<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext"><o:p>=C2=A0</o:p></span></p> <div> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"> <p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext">From:</span></b><span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif;colo= r:windowtext"> <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:user= s-bounces@ovirt.org">users-bounces@ovirt.org</a> [<a class=3D"moz-txt-lin= k-freetext" href=3D"mailto:users-bounces@ovirt.org">mailto:users-bounces@= ovirt.org</a>] <b>On Behalf Of </b>Nathana=C3=ABl Blanchet<br> <b>Sent:</b> Tuesday, January 3, 2017 7:41 PM<br> <b>To:</b> Dan Yasny <a class=3D"moz-txt-link-rfc2396E" h= ref=3D"mailto:dyasny@gmail.com"><dyasny@gmail.com></a><br> <b>Cc:</b> users <a class=3D"moz-txt-link-rfc2396E" href=3D= "mailto:users@ovirt.org"><users@ovirt.org></a><br> <b>Subject:</b> Re: [ovirt-users] Request for oVirt Ansible modules testing feedback<o:p></o:p></span></p> </div> </div> <p class=3D"MsoNormal"><o:p>=C2=A0</o:p></p> <div> <p class=3D"MsoNormal">Le 30/12/2016 =C3=A0 20:53, Dan Yasny a =C3=A9crit=C2=A0:<o:p></o:p></p> </div> <blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"> <div> <p class=3D"MsoNormal">I personally found that she'll isn't a= s 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. <o:p></o:p></p> </div> </blockquote> <p class=3D"MsoNormal">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:<o:p></o:p></p> <ul type=3D"disc"> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> installing pip and not pip3 because provided python-ovirt-engine-sdk4 is default installed to /usr/lib64/python2.7, <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> installing ipython, <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> importing the good modules, <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> finding pertinent examples, <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> understand differences between sdk3 and 4 <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> correcting some wrong examples<o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;m= so-list:l1 level1 lfo1"> adapting example to my need?<o:p></o:p></li> </ul> <p class=3D"MsoNormal">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> <br> <o:p></o:p></p> <blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"> <div> <p class=3D"MsoNormal"><o:p>=C2=A0</o:p></p> <div> <p class=3D"MsoNormal">On Dec 30, 2016 11:22 AM, "Nathana=C3= =ABl Blanchet" <<a moz-do-not-send=3D"true" href=3D"mailto:blanchet@abes.fr">blanchet@abes.fr</a>&g= t; wrote:<o:p></o:p></p> <blockquote style=3D"border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"> <div> <p>Interesting work and thank you for this stuff. I played with some modules (ovirt_vms_facts) to get some vms name for example.<o:p></o:p></p> <ul type=3D"disc"> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-= alt:auto;mso-list:l3 level1 lfo2"> [root@acore ovirt]# ansible-playbook All_Vms_list.yml =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 <o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-= alt:auto;mso-list:l3 level1 lfo2"> 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= _cloud<br> =C2=A0 =C2=A0 =C2=A0 fetch_nested: true<br> =C2=A0=C2=A0 =C2=A0=C2=A0 nested_attributes: name<b= r> =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">= ovirt_vms.name</a> }} > vms_name" // doesn't work<o:p></o:p></li> </ul> <ul type=3D"disc"> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-= alt:auto;mso-list:l2 level1 lfo3"> =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?<o:p></o:p></li> </ul> <ul type=3D"disc"> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-= alt:auto;mso-list:l0 level1 lfo4"> 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.i= d" target=3D"_blank"> snaphot.id</a> variable.... but:<o:p></o:p></li> </ul> <ul type=3D"disc"> <ul type=3D"circle"> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-botto= m-alt:auto;mso-list:l0 level2 lfo4"> 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" href=3D"http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ov= irt_snapshots_module.htm" target=3D"_blank"> http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ovirt_snap= shots_module.htm</a>, but it is not available on the main ansible git tre.<o:p></o:p></li> <li class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-botto= m-alt:auto;mso-list:l0 level2 lfo4"> On the doc, return values are not described<o:p><= /o:p></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?<o:p></o:p></p> <p class=3D"MsoNormal"><o:p>=C2=A0</o:p></p> <div> <p class=3D"MsoNormal">Le 02/12/2016 =C3=A0 14:12, On= dra Machacek a =C3=A9crit=C2=A0:<o:p></o:p></p> </div> <blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"> <p class=3D"MsoNormal">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" href=3D"https://github.com/machacekondra/ovirt-te= sts/releases/tag/0.1" target=3D"_blank"> https://github.com/machacekondra/ovirt-tests/releases/tag/0.1</a> <br> [2] <a moz-do-not-send=3D"true" href=3D"https://github.com/ansible/ansible-module= s-extras/issues" target=3D"_blank"> https://github.com/ansible/ansible-modules-extras/issues</a> <br> [3] <a moz-do-not-send=3D"true" href=3D"https://github.com/ansible/ansible" target=3D"_blank">https://github.com/ansible/ansi= ble</a> <br> [4] <a moz-do-not-send=3D"true" href=3D"https://github.com/machacekondra/ovirt-te= sts" target=3D"_blank">https://github.com/machacekondr= a/ovirt-tests</a> <br> [5] <a moz-do-not-send=3D"true" href=3D"https://github.com/machacekondra/ovirt-te= sts/tree/master/examples" target=3D"_blank"> https://github.com/machacekondra/ovirt-tests/tree/master/examples</a> <br=
_______________________________________________ <br=
Users@ovirt.org</a> <br> <a moz-do-not-send=3D"true" href=3D"http://lists.ovirt.org/mailman/listinfo/u= sers" target=3D"_blank">http://lists.ovirt.org/mailman/=
Users mailing list <br> <a moz-do-not-send=3D"true" href=3D"mailto:Users@ovirt.org" target=3D"_blank"= listinfo/users</a> <o:p></o:p></p> </blockquote> <p class=3D"MsoNormal"><br> <br> <o:p></o:p></p> <pre>-- <o:p></o:p></pre> <pre>Nathana=C3=ABl Blanchet<o:p></o:p></pre> <pre><o:p>=C2=A0</o:p></pre> <pre>Supervision r=C3=A9seau<o:p></o:p></pre> <pre>P=C3=B4le Infrastrutures Informatiques<o:p></o:p><= /pre> <pre>227 avenue Professeur-Jean-Louis-Viala<o:p></o:p><= /pre> <pre>34193 MONTPELLIER CEDEX 5 =C2=A0=C2=A0=C2=A0 <o:p>= </o:p></pre> <pre>T=C3=A9l. 33 (0)4 67 54 84 55<o:p></o:p></pre> <pre>Fax=C2=A0 33 (0)4 67 54 84 14<o:p></o:p></pre> <pre><a moz-do-not-send=3D"true" href=3D"mailto:blanche= t@abes.fr" target=3D"_blank">blanchet@abes.fr</a> <o:p></o:p></pre> </div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br=
_______________________________________________<br> Users mailing list<br> <a moz-do-not-send=3D"true" href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><b= r> <a moz-do-not-send=3D"true" href=3D"http://lists.ovirt.org/mailman/listinfo/users= " target=3D"_blank">http://lists.ovirt.org/mailman/list= info/users</a><o:p></o:p></p> </blockquote> </div> </div> </blockquote> <p class=3D"MsoNormal"><br> <br> <o:p></o:p></p> <pre>-- <o:p></o:p></pre> <pre>Nathana=C3=ABl Blanchet<o:p></o:p></pre> <pre><o:p>=C2=A0</o:p></pre> <pre>Supervision r=C3=A9seau<o:p></o:p></pre> <pre>P=C3=B4le Infrastrutures Informatiques<o:p></o:p></pre> <pre>227 avenue Professeur-Jean-Louis-Viala<o:p></o:p></pre> <pre>34193 MONTPELLIER CEDEX 5 =C2=A0=C2=A0=C2=A0=C2=A0 <o:p></o:= p></pre> <pre>T=C3=A9l. 33 (0)4 67 54 84 55<o:p></o:p></pre> <pre>Fax=C2=A0 33 (0)4 67 54 84 14<o:p></o:p></pre> <pre><a moz-do-not-send=3D"true" href=3D"mailto:blanchet@abes.fr"=
blanchet@abes.fr</a> <o:p></o:p></pre> </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> --------------200A0996437076D3DE8EA6A3--