<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Le 30/12/2016 à 20:53, Dan Yasny a
écrit :<br>
</div>
<blockquote
cite="mid:CALLXwb69edHu7dJhf3cmXYkOHn9wAg-1OO99FZr6N820fHDR=g@mail.gmail.com"
type="cite">
<div dir="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="mid:CALLXwb69edHu7dJhf3cmXYkOHn9wAg-1OO99FZr6N820fHDR=g@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Dec 30, 2016 11:22 AM, "Nathanaël
Blanchet" <<a moz-do-not-send="true"
href="mailto:blanchet@abes.fr">blanchet@abes.fr</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#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 <br>
</li>
<li>with <br>
- name: List vms<br>
ovirt_vms_facts:<br>
auth: "{{ ovirt_auth }}"<br>
pattern: name=test_cloud<br>
fetch_nested: true<br>
nested_attributes: name<br>
register: ovirt_vms<br>
<br>
- shell: echo "{{ <a moz-do-not-send="true"
href="http://ovirt_vms.name" target="_blank">ovirt_vms.name</a>
}} > vms_name" // doesn't work</li>
</ul>
<ul>
<li> - 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="true"
href="http://snaphot.id" target="_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="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ovirt_snapshots_module.htm"
target="_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="m_5747256721902447049moz-cite-prefix">Le
02/12/2016 à 14:12, Ondra Machacek a écrit :<br>
</div>
<blockquote type="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="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="https://github.com/machacekondra/ovirt-tests/releases/tag/0.1"
target="_blank">https://github.com/<wbr>machacekondra/ovirt-tests/<wbr>releases/tag/0.1</a>
<br>
[2] <a moz-do-not-send="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="https://github.com/ansible/ansible-modules-extras/issues"
target="_blank">https://github.com/ansible/<wbr>ansible-modules-extras/issues</a>
<br>
[3] <a moz-do-not-send="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="https://github.com/ansible/ansible"
target="_blank">https://github.com/ansible/<wbr>ansible</a>
<br>
[4] <a moz-do-not-send="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="https://github.com/machacekondra/ovirt-tests"
target="_blank">https://github.com/<wbr>machacekondra/ovirt-tests</a>
<br>
[5] <a moz-do-not-send="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="https://github.com/machacekondra/ovirt-tests/tree/master/examples"
target="_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="true"
class="m_5747256721902447049moz-txt-link-abbreviated"
href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<br>
<a moz-do-not-send="true"
class="m_5747256721902447049moz-txt-link-freetext"
href="http://lists.ovirt.org/mailman/listinfo/users"
target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<pre class="m_5747256721902447049moz-signature" cols="72">--
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
<a moz-do-not-send="true" class="m_5747256721902447049moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr" target="_blank">blanchet@abes.fr</a> </pre>
</div>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a moz-do-not-send="true"
href="http://lists.ovirt.org/mailman/listinfo/users"
rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
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
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet@abes.fr</a> </pre>
</body>
</html>