[Users] shutdown VM and 1 minute wait time

Hello, I have oVirt 3.2.1 and a CentOS 6.4 guest with rhev-agent-2.3.16-6.el6.x86_64. If I run shutdow (red square button) from the admin gui I get the equivalent of shutdown -h +1 Is there any config parameter I can set to have immediately shutdown in place without waiting for one minute by default (so "shutdown -h now")? Gianluca

I ran into this recently but I haven't had a chance to test the solution that I came up with. psql engine postgres -c "update vdc_options set option_value = '0' where option_name = 'VmGracefulShutdownTimeout';" The bigger problem I had is if you do a forced shutdown (click twice on the stop icon) with the rhev-agent installed the /etc/nologin file gets set due to the delayed shutdown. Nobody can login when you bring the system back up until root goes in and removes the file. On Sat, Apr 20, 2013 at 2:33 AM, Gianluca Cecchi <gianluca.cecchi@gmail.com>wrote:
Hello, I have oVirt 3.2.1 and a CentOS 6.4 guest with rhev-agent-2.3.16-6.el6.x86_64. If I run shutdow (red square button) from the admin gui I get the equivalent of
shutdown -h +1
Is there any config parameter I can set to have immediately shutdown in place without waiting for one minute by default (so "shutdown -h now")?
Gianluca _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/20/2013 05:15 PM, Thomas Scofield wrote:
I ran into this recently but I haven't had a chance to test the solution that I came up with.
psql engine postgres -c "update vdc_options set option_value = '0' where option_name = 'VmGracefulShutdownTimeout';"
true, but btw, default is 30 seconds, not 1 minute.
The bigger problem I had is if you do a forced shutdown (click twice on the stop icon) with the rhev-agent installed the /etc/nologin file gets set due to the delayed shutdown. Nobody can login when you bring the system back up until root goes in and removes the file.
you can right click and choose stop directly, without asking for shutdown first.

On Sat, Apr 20, 2013 at 4:29 PM, Itamar Heim wrote:
On 04/20/2013 05:15 PM, Thomas Scofield wrote:
I ran into this recently but I haven't had a chance to test the solution that I came up with.
psql engine postgres -c "update vdc_options set option_value = '0' where option_name = 'VmGracefulShutdownTimeout';"
true, but btw, default is 30 seconds, not 1 minute.
yes, I didn't measure... I supposed it ;-)
The bigger problem I had is if you do a forced shutdown (click twice on the stop icon) with the rhev-agent installed the /etc/nologin file gets set due to the delayed shutdown. Nobody can login when you bring the system back up until root goes in and removes the file.
you can right click and choose stop directly, without asking for shutdown first.
Are you referring as the initial step or as the second one? In case of firts step one chooses stop, what does it happen at VM level? Is it a direct power off? Gianluca

On 04/20/2013 05:35 PM, Gianluca Cecchi wrote:
On Sat, Apr 20, 2013 at 4:29 PM, Itamar Heim wrote:
On 04/20/2013 05:15 PM, Thomas Scofield wrote:
I ran into this recently but I haven't had a chance to test the solution that I came up with.
psql engine postgres -c "update vdc_options set option_value = '0' where option_name = 'VmGracefulShutdownTimeout';"
true, but btw, default is 30 seconds, not 1 minute.
yes, I didn't measure... I supposed it ;-)
The bigger problem I had is if you do a forced shutdown (click twice on the stop icon) with the rhev-agent installed the /etc/nologin file gets set due to the delayed shutdown. Nobody can login when you bring the system back up until root goes in and removes the file.
you can right click and choose stop directly, without asking for shutdown first.
Are you referring as the initial step or as the second one? In case of firts step one chooses stop, what does it happen at VM level? Is it a direct power off?
choosing 'power off' tell qemu to quit. for guest it is like plugging out the power
Gianluca
participants (3)
-
Gianluca Cecchi
-
Itamar Heim
-
Thomas Scofield