On Mon, Mar 12, 2018 at 1:45 AM, Andrei Verovski <andreil1(a)starlett.lv> wrote:
Hi !
I have stubborn VM which time to time freezes, and watchdog for whatever
reason don't restart it.
Basically I would like to combine these 3 command into one script.
ovirt-shell -l
https://node00.mydomain.com.lv/ovirt-engine/api
--ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal"
--password
"secret"
action vm MyVM stop
action vm MyVM start
Now I have problems.
1) Option --password "secret" is not recognized anymore in oVirt Shell 4.2.
2) What is the proper syntax to connect & run certain command in oVirt
Shell 4.2? Something like:
ovirt-shell -l
https://node00.mydomain.com.lv/ovirt-engine/api
--ca-file="/etc/pki/ovirt-engine/ca.pem" -u "admin@internal"
--password
"secret" && action vm MyVM stop
ovirt-shell is considered deprecated. Did you consider using ansible?
Best regards,
--
Didi