On Thu, May 28, 2020 at 5:01 AM Derek Atkins <derek(a)ihtfp.com> wrote:
Hi,
On Wed, May 27, 2020 5:38 pm, Gianluca Cecchi wrote:
[snip]
> But you hated Python, didn't you? ;-)
I do. Can't stand it. Doesn't mean I can't read it and/or write it, but
I have to hold my nose doing it. Syntactic white space? Eww. But Python
is already installed and used and, apparently, supported.. And when I
looked at the examples I found that 90% of what I needed to do was already
implemented, so it turned out to be much easier than expected.
Actually there are SDKs for other languages:
https://gerrit.ovirt.org/#/admin/projects/?filter=sdk
https://github.com/oVirt?q=sdk&type=&language=
JS is empty, but the others are more-or-less alive. Python is indeed
the most "invested", at least in terms of number of example scripts,
but IIUC all of them are generated, so should be complete. Didn't try
to use any of them myself, though, other than python.
> I downloaded your files, even if I'm far from knowing python....
It's pretty much a direct translation of my bash script around
ovirt-shell. It does have one feature that the old code didn't, which is
the ability to wait for ovirt to declare that a vm is actually "up".
> try the ansible playbook that gives you more flexibility in my opinion
I've never even installed ansible, let alone tried to use it. I don't
need flexibility, I need the job to get done. But I'll take a look when I
get the chance. Thanks!
> Gianluca
-derek
PS: you (meaning whomever is "in charge" is welcome to add my script(s) to
the examples repo if you feel other people would benefit from seeing it
there.
You are most welcome to push it yourself:
https://www.ovirt.org/develop/dev-process/working-with-gerrit.html
Thanks!
Best regards,
--
Didi