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
I dont think we need users to confirm whether they want to halt or not
On Thu, 26 Jan 2012 08:45:36 +0800 Christopher Meng cickumqt@gmail.com wrote:
I dont think we need users to confirm whether they want to halt or not
Well, I wanted a way for the user running the tool to see users logged in and decide to wait and notify them before rebooting/halting.
kevin
I prefer showing a page when near halt time.Or we can make a banner above the page. Your idea is great,you can keep waitting for others's opinion.
On 1/26/12, Kevin Fenzi kevin@scrye.com wrote:
On Thu, 26 Jan 2012 08:45:36 +0800 Christopher Meng cickumqt@gmail.com wrote:
I dont think we need users to confirm whether they want to halt or not
Well, I wanted a way for the user running the tool to see users logged in and decide to wait and notify them before rebooting/halting.
kevin
infrastructure@lists.fedoraproject.org