
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart" Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot. I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot. Options? -- p <jeremey.wise@gmail.com>enguinpages

I would create an ansible playbook that will be running from the engine: 1. Check the engine's health page via uri module and wait_for (maybe with a regex) Healthpage is : https://engine_FQDN/ovirt-engine/services/health 2. Use ansible ovirt_vm module to start your vms in the order you want 3. Test the playbook 4. Create a oneshot systemd servce that starts after 'ovirt-engine.service' and runs your playbook Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 18:27:13 Гринуич+3, Jeremey Wise <jeremey.wise@gmail.com> написа: When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart" Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot. I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot. Options? -- penguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...

Also consider setting a reasonable 'TimeoutStartSec=' in your systemd service file when you create the service... Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 20:18:01 Гринуич+3, Strahil Nikolov via Users <users@ovirt.org> написа: I would create an ansible playbook that will be running from the engine: 1. Check the engine's health page via uri module and wait_for (maybe with a regex) Healthpage is : https://engine_FQDN/ovirt-engine/services/health 2. Use ansible ovirt_vm module to start your vms in the order you want 3. Test the playbook 4. Create a oneshot systemd servce that starts after 'ovirt-engine.service' and runs your playbook Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 18:27:13 Гринуич+3, Jeremey Wise <jeremey.wise@gmail.com> написа: When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart" Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot. I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot. Options? -- penguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/X2TC2S56HVRDE3...

Hi, I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them. You can find my scripts at https://www.ihtfp.org/ovirt/ Or you can go the ansible route :) Enjoy! -derek On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant

i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous. I will modify and post how it went. One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs? Thanks On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com

I run it out of rc.local: /usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 & The script is smart enough to wait for the engine to be fully active. -derek On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote:
i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant

As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions 1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check: 2:29:38 ago on Wed 30 Sep 2020 01:18:32 PM EDT. No match for argument: python There are following alternatives for "python": python2, python36, python38 Error: Unable to find a match: python 2) When you have three nodes.. one is set to host the ovirt-engine active, and another as backup. If this is added to rc.local. Of the two nodes hosting HA for oVirt-engine.. node which boots first will host (or so it seems). I think if I add this to both those hosts .. it will not create issues. Any thoughts? On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek@ihtfp.com> wrote:
I run it out of rc.local:
/usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 &
The script is smart enough to wait for the engine to be fully active.
-derek
On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote:
i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com

HI, On Wed, September 30, 2020 3:50 pm, Jeremey Wise wrote:
As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions
Note that you run this on the Engine VM, not on a host.
1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check: 2:29:38 ago on Wed 30 Sep 2020 01:18:32 PM EDT. No match for argument: python There are following alternatives for "python": python2, python36, python38 Error: Unable to find a match: python
I am still running 4.3, so "python" is 2.7. I have not tested with python3..
2) When you have three nodes.. one is set to host the ovirt-engine active, and another as backup. If this is added to rc.local. Of the two nodes hosting HA for oVirt-engine.. node which boots first will host (or so it seems). I think if I add this to both those hosts .. it will not create issues. Any thoughts?
Don't run it on a host, run it from within the Engine VM. The host(s) will figure out by themselves that they need to start the engine if one isn't running. Then when the engine starts the script will run and start the VMs. -derek
On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek@ihtfp.com> wrote:
I run it out of rc.local:
/usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 &
The script is smart enough to wait for the engine to be fully active.
-derek
i would like to eventually go ansible route.. and was starting down
path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious
so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure
On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote: that script the
storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant

<smacks forehead> Ya.. that is a lot easier. Someone should put this in as a feature request. I don't want HA (and have errors on getting that to work) I just want VMs to boot on initial cluster start. this was standard in libvirt :) I am trying to convert to oVirt ways... On Wed, Sep 30, 2020 at 4:10 PM Derek Atkins <derek@ihtfp.com> wrote:
HI,
On Wed, September 30, 2020 3:50 pm, Jeremey Wise wrote:
As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions
Note that you run this on the Engine VM, not on a host.
1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check: 2:29:38 ago on Wed 30 Sep 2020 01:18:32 PM EDT. No match for argument: python There are following alternatives for "python": python2, python36, python38 Error: Unable to find a match: python
I am still running 4.3, so "python" is 2.7. I have not tested with python3..
2) When you have three nodes.. one is set to host the ovirt-engine active, and another as backup. If this is added to rc.local. Of the two nodes hosting HA for oVirt-engine.. node which boots first will host (or so it seems). I think if I add this to both those hosts .. it will not create issues. Any thoughts?
Don't run it on a host, run it from within the Engine VM.
The host(s) will figure out by themselves that they need to start the engine if one isn't running. Then when the engine starts the script will run and start the VMs.
-derek
On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek@ihtfp.com> wrote:
I run it out of rc.local:
/usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 &
The script is smart enough to wait for the engine to be fully active.
-derek
i would like to eventually go ansible route.. and was starting down
path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious
so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure
On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote: that script the
storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com

I did. years ago. When 4.0 was current. Some of the work to implement that went into 4.4, where it will recover state on a crash (i.e., if you have VMs marked as auto-start and you have a power outage, it will restart them). However, I believe there is no order to it, and it will only start VMs that were running when the system went down. That doesn't help me; I have a single-host ovirt system and whenever I do routine maintenance I cleanly shut down the VMs, and I want them to come back up when ovirt does. There is, I believe, more going into later versions. I think there are still at least one or two open RFEs on auto-starting VMs. But I still use the script because I need complete fault recovery on my system, and I need ordering of restarts (need my DNS server to come up before other things, for example). If you do need to make fixes for python3, please feel free to send them my way! -derek On Wed, September 30, 2020 4:14 pm, Jeremey Wise wrote:
<smacks forehead>
Ya.. that is a lot easier.
Someone should put this in as a feature request. I don't want HA (and have errors on getting that to work) I just want VMs to boot on initial cluster start.
this was standard in libvirt :) I am trying to convert to oVirt ways...
On Wed, Sep 30, 2020 at 4:10 PM Derek Atkins <derek@ihtfp.com> wrote:
HI,
On Wed, September 30, 2020 3:50 pm, Jeremey Wise wrote:
As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions
Note that you run this on the Engine VM, not on a host.
1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check: 2:29:38 ago on Wed 30 Sep 2020 01:18:32 PM EDT. No match for argument: python There are following alternatives for "python": python2, python36, python38 Error: Unable to find a match: python
I am still running 4.3, so "python" is 2.7. I have not tested with python3..
2) When you have three nodes.. one is set to host the ovirt-engine active, and another as backup. If this is added to rc.local. Of the two nodes hosting HA for oVirt-engine.. node which boots first will host (or so it seems). I think if I add this to both those hosts .. it will not create issues. Any thoughts?
Don't run it on a host, run it from within the Engine VM.
The host(s) will figure out by themselves that they need to start the engine if one isn't running. Then when the engine starts the script will run and start the VMs.
-derek
On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek@ihtfp.com> wrote:
I run it out of rc.local:
/usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 &
The script is smart enough to wait for the engine to be fully active.
-derek
On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote:
i would like to eventually go ansible route.. and was starting
path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious
that script
so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a
down script
around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote: > When I have to shut down cluster... ups runs out etc.. I need a sequence > set of just a small number of VMs to "autostart" > > Normally I just use DNS FQND to connect to oVirt engine but as two of my > VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need > those two infrastructure VMs to be auto boot. > > I looked at HA settings for those VMs but it seems to be watching for > pause > /resume.. but it does not imply or state auto start on clean first boot. > > Options? > > > -- > p <jeremey.wise@gmail.com>enguinpages > _______________________________________________ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-leave@ovirt.org > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: >
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
>
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant

In EL 8 , there is no 'default' python. You can use both. My choice would be ansible because APIs change , but also ansible modules are updated. If you create your own script , you will have to take care about the updates, while with ansible - you just update the relevan packages :) Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 22:55:40 Гринуич+3, Jeremey Wise <jeremey.wise@gmail.com> написа: As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions 1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check: 2:29:38 ago on Wed 30 Sep 2020 01:18:32 PM EDT. No match for argument: python There are following alternatives for "python": python2, python36, python38 Error: Unable to find a match: python 2) When you have three nodes.. one is set to host the ovirt-engine active, and another as backup. If this is added to rc.local. Of the two nodes hosting HA for oVirt-engine.. node which boots first will host (or so it seems). I think if I add this to both those hosts .. it will not create issues. Any thoughts? On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek@ihtfp.com> wrote:
I run it out of rc.local:
/usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 &
The script is smart enough to wait for the engine to be fully active.
-derek
On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote:
i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs?
Thanks
On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/RDGSTXC5NEQD2N...

As I mentioned, I would use systemd service to start the ansible play (or a script running it). Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 22:15:17 Гринуич+3, Jeremey Wise <jeremey.wise@gmail.com> написа: i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous. I will modify and post how it went. One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs? Thanks On Wed, Sep 30, 2020 at 2:42 PM Derek Atkins <derek@ihtfp.com> wrote:
Hi,
I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and start the VMs in the specified order with specified delay and/or wait-for-up signal between them.
You can find my scripts at https://www.ihtfp.org/ovirt/
Or you can go the ansible route :)
Enjoy!
-derek
On Wed, September 30, 2020 11:21 am, Jeremey Wise wrote:
When I have to shut down cluster... ups runs out etc.. I need a sequence set of just a small number of VMs to "autostart"
Normally I just use DNS FQND to connect to oVirt engine but as two of my VMs are a DNS HA cluster.. as well as NTP / SMTP /DHCP etc... I need those two infrastructure VMs to be auto boot.
I looked at HA settings for those VMs but it seems to be watching for pause /resume.. but it does not imply or state auto start on clean first boot.
Options?
-- p <jeremey.wise@gmail.com>enguinpages _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VAYHFFSANCBRN4...
-- Derek Atkins 617-623-3745 derek@ihtfp.com www.ihtfp.com Computer and Internet Security Consultant
-- jeremey.wise@gmail.com _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/XGHXJVGACPIPIZ...

On Wed, Sep 30, 2020 at 9:14 PM Jeremey Wise <jeremey.wise@gmail.com> wrote:
i would like to eventually go ansible route.. and was starting down that path.... but this is fabulous.
I will modify and post how it went.
One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs?
Thanks
This was the original thread where Derek discussed about VM autostart: https://lists.ovirt.org/archives/list/users@ovirt.org/message/2SWGNCELQXAQ6R... And this was my answer regarding the possible Ansible route: https://lists.ovirt.org/archives/list/users@ovirt.org/message/46MHN2NYGIBP73... HIH, Gianluca
participants (4)
-
Derek Atkins
-
Gianluca Cecchi
-
Jeremey Wise
-
Strahil Nikolov