Nodes powered by APC PDU cannot commission or deploy if the outlet is already turned "ON"
Bug #1436438 reported by
Newell Jensen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Newell Jensen |
Bug Description
Nodes powered by APC PDU cannot commission or deploy if the outlet is already turned "ON" because the current logic of turning the node "OFF" and then back "ON" is failing for some reason. This needs to be troubleshooted.
Related branches
lp:~newell-jensen/maas/fix-apc-power-on-1436438
- Gavin Panella (community): Approve
-
Diff: 150 lines (+63/-36)2 files modifiedsrc/provisioningserver/drivers/hardware/apc.py (+21/-14)
src/provisioningserver/drivers/hardware/tests/test_apc.py (+42/-22)
Changed in maas: | |
importance: | Undecided → High |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The logic in the code is correct and works when manually executing the same exact steps. The reason it is failing while the code is executing is that the machine needs some time to turn the actual power OFF before turning it on. During runtime, the code is telling the PDU to change from ON to OFF and the back to ON so quickly that it doesn't actually turn off the outlet. This was verified with putting a sleep in the code between turning the outlet OFF and ON.