juju wait can wait forever
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Wait Plugin |
Fix Released
|
Undecided
|
Stuart Bishop | ||
Mojo: Continuous Delivery for Juju |
Fix Released
|
High
|
Tom Haddon |
Bug Description
Starting with mojo 0.1.14, our mojo runs are eternally hanging. Last known good was @ mojo 0.1.12.
I believe this is due to juju wait logic, which I also believe to be ineffective on juju versions with leadership election.
# Passing:
00:02:04.475 Mojo verison:
00:02:04.757 0.1.12
...
00:50:16.199 2015-09-14 16:15:53 [INFO] deployer.cli: Deployment complete in 1646.93 seconds
^ consistently completes OK
# Failing:
00:02:37.107 Mojo verison:
00:02:37.509 0.1.14
...
2015-09-15 18:22:08 [INFO] Waiting for environment to reach steady state
^ stuck there for 4+hrs
^ consistently hangs (3 jobs in a row)
juju:
Installed: 1.24.5-
Candidate: 1.24.5-
juju-core:
Installed: 1.24.5-
Candidate: 1.24.5-
juju-deployer:
Installed: 0.5.1-3
Candidate: 0.5.1-3
Related branches
- Mojo Maintainers: Pending requested
-
Diff: 503 lines (+4/-454)5 files modifiedmojo/juju/__init__.py (+1/-1)
mojo/juju/status.py (+1/-1)
mojo/juju/wait.py (+0/-452)
requirements.txt (+1/-0)
setup.py (+1/-0)
Changed in juju-wait: | |
status: | New → Fix Released |
assignee: | nobody → Stuart Bishop (stub) |
Changed in mojo: | |
status: | Confirmed → Fix Released |
Tom,
Can we make the default for the new deployer config, wait, False? With juju >= 1.24 and leadership election juju wait does not work because leadership election is continually pinging the logs and causes the above hanging.
Also FYI, Ryan is on the front lines of testing and has found that juju wait even with juju < 1.24 and no leadership election still has race conditions.
The ultimate solution will be charms using workgroup status to declare when they are "Ready".