On Wed, September 30, 2020 3:50 pm, Jeremey Wise wrote:
As the three servers are Centos8 minimal installs. + oVirt HCI wizard
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
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
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
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.
On Wed, Sep 30, 2020 at 3:23 PM Derek Atkins <derek(a)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.
> On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote:
> > 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(a)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
> >> storage domains are up before it tries to start the VMs. Then it
> >> 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
> >> 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
> >> > pause
> >> > /resume.. but it does not imply or state auto start on clean first
> >> boot.
> >> >
> >> > Options?
> >> >
> >> >
> >> > --
> >> > p <jeremey.wise(a)gmail.com>enguinpages
> >> > _______________________________________________
> >> > Users mailing list -- users(a)ovirt.org
> >> > To unsubscribe send an email to users-leave(a)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:
> >> >
> >> >
> >> --
> >> Derek Atkins 617-623-3745
> >> derek(a)ihtfp.com www.ihtfp.com
> >> Computer and Internet Security Consultant
> > --
> > jeremey.wise(a)gmail.com
> Derek Atkins 617-623-3745
> derek(a)ihtfp.com www.ihtfp.com
> Computer and Internet Security Consultant
Derek Atkins 617-623-3745
Computer and Internet Security Consultant