Bug 740321

Summary: Power control operations still appear to complete against systems not associated with a lab controller
Product: [Retired] Beaker Reporter: Derrich Hafemann <dhafeman>
Component: web UIAssignee: Steven Lawrance <stl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 0.7CC: bpeck, dcallagh, mcsontos, mschick, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-26 07:16:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Derrich Hafemann 2011-09-21 15:59:11 UTC
Description of problem:

When decommissioning a Beaker system recently, we noticed that after the system was disassociated with the lab controller, the power control buttons were still displayed. The buttons appeared to still be functional - the UI reported that the command was enqueued, but the action never showed up in the power mini-log, nor the overall system history.

Looking at beakerd.log and cobbler.log as I was playing with this, the system in question never appeared in the logs.

So, power control actions aren't being taken against systems with no lab controller associated with them - that's good, since it's the behavior we want. The only real problem here is very minor, and it's just that the UI presents the power control buttons as if they were still available, when they're not.

Version-Release number of selected component (if applicable): beaker-0.7.1-2.el5


How reproducible: 100%

Steps to Reproduce:
1. Change lab controller association of a given system to 'None'
2. Note that power control buttons are still present
3. Start tailing logs on both beaker scheduler and lab controller
4. Click any of the power action buttons in the Web UI
  
Actual results:

The power operation is reported as enqueued, and no error is thrown back to the user letting them know that the operation won't complete.


Expected results:

Either the power control buttons shouldn't be displayed for systems that aren't attached to a lab controller, or the user should be given an error message telling them that their power action won't complete.

Additional info: