idea: func-reboot

Kevin Fenzi kevin at scrye.com
Wed Jan 25 20:08:02 UTC 2012


Just a random idea that perhaps we could implement. 

func-reboot. It takes a hostname or hostnames as a argument, then does: 

Is this a virthost?
yes:

1) Gather list of guests running on that host. 
2) See if any users are logged into them
3) Display list of guests and ask if user wants to halt them. (note if
users are logged in to any)
4) add 15m downtime in nagios for host with triggered downtime for
guests. 
5) halt all guests and wait for them to be down. 
6) reboot host

no:

1) See if anyone is logged into host. 
2) Confirm that user wants to reboot it. 
3) add 15m downtime in nagios for host. 
4) reboot host. 

Just a thought. It might help with mass rebooting... saves us having to
deal with the nagios web interface and constructing the list of guests
on each host. 

kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20120125/7d8dd56f/attachment.sig>


More information about the infrastructure mailing list