immediate agent restart fails
Bug #898082 reported by
William Reade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Undecided
|
William Reade |
Bug Description
If a (unit, for example) agent running under upstart is 'kill -9'ed, the subsequent run will not work correctly; most obvious symptom is that the ephemeral presence node already exists and cannot be recreated. This is because the previous session was never properly closed, and therefore still exists (for several seconds, at least).
Related branches
lp:~fwereade/pyjuju/agent-trash-old-sessions
- Benjamin Saller (community): Approve
- Kapil Thangavelu (community): Approve
-
Diff: 970 lines (+304/-68)30 files modifiedexamples/oneiric/mysql/hooks/install (+2/-2)
examples/oneiric/mysql/hooks/start (+3/-1)
examples/oneiric/mysql/hooks/stop (+1/-1)
juju/agents/base.py (+56/-3)
juju/agents/tests/common.py (+1/-0)
juju/agents/tests/test_base.py (+170/-22)
juju/agents/tests/test_machine.py (+3/-4)
juju/agents/tests/test_unit.py (+3/-1)
juju/agents/unit.py (+8/-3)
juju/control/tests/test_status.py (+1/-0)
juju/machine/tests/test_unit_deployment.py (+3/-1)
juju/machine/unit.py (+6/-2)
juju/providers/common/cloudinit.py (+4/-2)
juju/providers/common/tests/data/cloud_init_bootstrap (+4/-2)
juju/providers/common/tests/data/cloud_init_bootstrap_zookeepers (+4/-2)
juju/providers/common/tests/data/cloud_init_branch (+2/-1)
juju/providers/common/tests/data/cloud_init_branch_trunk (+2/-1)
juju/providers/common/tests/data/cloud_init_distro (+2/-1)
juju/providers/common/tests/data/cloud_init_ppa (+2/-1)
juju/providers/ec2/tests/data/bootstrap_cloud_init (+4/-2)
juju/providers/ec2/tests/data/launch_cloud_init (+2/-1)
juju/providers/ec2/tests/data/launch_cloud_init_branch (+2/-1)
juju/providers/ec2/tests/data/launch_cloud_init_ppa (+2/-1)
juju/providers/local/agent.py (+3/-1)
juju/providers/local/tests/test_agent.py (+1/-0)
juju/providers/orchestra/tests/data/bootstrap_user_data (+4/-2)
juju/providers/orchestra/tests/data/launch_user_data (+2/-1)
juju/state/tests/test_security.py (+1/-0)
juju/unit/lifecycle.py (+0/-4)
juju/unit/tests/test_workflow.py (+6/-5)
Changed in juju: | |
status: | New → In Progress |
assignee: | nobody → William Reade (fwereade) |
milestone: | none → florence |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.