Bug 719577

Summary: power command queuing
Product: [Retired] Beaker Reporter: Petr Beňas <pbenas>
Component: web UIAssignee: Raymond Mancy <rmancy>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 0.6CC: bpeck, dcallagh, ebaak, mcsontos, pstehlik, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-08 14:40:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Beňas 2011-07-07 11:22:24 UTC
Description of problem:
I see strange power command queuing on webUI system reboot. Previously, the power command took effect immediately. The system is stuck on kernel bug and I'm unable to force reboot due this strange power command queuing bug/feature.

Version-Release number of selected component (if applicable):
0.6.14

How reproducible:
always for ibm-ls41-02.rhts.eng.bos.redhat.com, ibm-js22-08.rhts.eng.bos.redhat.com, sassmann reports the same for dell-pet410-02.lab.bos.redhat.com

Steps to Reproduce:
1. reboot the system from webUI multiple times. The 'power command enqueued message' is printed out for every attempt and lines in Recent Power Commands added with Queued status.
  
Actual results:
<hostname> power reboot command enqueued

Expected results:
immediate reboot

Additional info:
The same for power on/of command, does not apply for reboot only.

Comment 1 Bill Peck 2011-07-08 14:40:43 UTC
There was an issue where the power command queue was stuck.  We reset the queue and are monitoring it.

Because a power command can take quite a while it is not practical to run these in the foreground of the web session.  Also, without the queue its possible to run conflicting power commands at the same time.

Comment 2 Marian Csontos 2011-07-08 14:47:15 UTC
> Because a power command can take quite a while

it would make sense to merge requests, so we do not keep rebooting machine when the user is not patient enough:

reboot + reboot -> reboot
reboot + poweroff -> poweroff
poweroff + poweron -> reboot
...