TestProvisionerObservesMachineJobs fails intermittently

Bug #1552589 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
John A Meinel
juju-core
Fix Released
Medium
Anastasia
1.25
Fix Released
Medium
Anastasia

Bug Description

I ran into this today. I spent some time debugging it, and it looks like sometimes it takes long enough for the NewProvisionerTask to start, that by the time it starts up, the configuration has already changed. So the task starts is HarvestAny mode and never sends the signal (there is never a change).
So we need the test to wait until NewProvisionerTask has started before it changes the configuration.

Revision history for this message
John A Meinel (jameinel) wrote :

I've been able to reproduce this on multiple machines by just doing it in parallel:

for i in `seq 4`; do go test -v -check.v -check.f ProvisionerObserves & done ; time wait

Revision history for this message
John A Meinel (jameinel) wrote :

I wanted to make the test more deterministic, but there is a race condition before you get the observer set. So you can't wait for a first config observation, because you can't create the provisioner with an observer.

Revision history for this message
John A Meinel (jameinel) wrote :

This might be a useful fix for 1.25, but I don't think it is mandatory.

Revision history for this message
Cheryl Jennings (cherylj) wrote :
Changed in juju-core:
status: Triaged → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
milestone: none → 2.0-beta2
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Anastasia (anastasia-macmood) wrote :
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta2 → none
milestone: none → 2.0-beta2
Changed in juju-core:
assignee: nobody → Anastasia (anastasia-macmood)
importance: Undecided → Medium
status: New → Fix Released
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.