Race between test_enlist_node and test_commission_node

Bug #1260364 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-test
Fix Committed
High
Raphaël Badin

Bug Description

I think I've stumbled on a possible race condition.

Originally, I observed this:
test_power_up_node starts
Node powers up
test_power_up_node ends
test_enlist_node starts
Node PXEs and enlists
test_enlist_node ends
test_commission_node starts
Node powers off
test_commission_node times out and fails
Node NEVER powers back on.

I worked around this manually by pushing the power button on my SUT during test_commission_node.

Then, I retried and observed THIS behaviour:
test_power_up_node starts
Node powers up
test_power_up_node ends
test_enlist_node starts
Node PXEs by this point and enlists
Node Powers Off
test_enlist_node ends
test_commission_node starts
Node powers up
Node PXEs and commissions
test_commission_node ends

So that makes it seem that there's a race between enlistment and commissioning that prevents test_commission_node from powering the node back up for the commissioning phase and testing.

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

Looks like a race indeed. It's likely that the BMC dropped the "power up" command from test_commission_node because the node was still being powered down.

Changed in maas-test:
status: New → Triaged
importance: Undecided → High
Raphaël Badin (rvb)
Changed in maas-test:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
summary: - possible race between test_enlist_node and test_commission_node
+ Race between test_enlist_node and test_commission_node
Changed in maas-test:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.