Upstart scripts for agents
Bug #770482 reported by
Kapil Thangavelu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Wishlist
|
William Reade |
Bug Description
Use upstart for all agents in the system. Upstart can manage any needed respawns. actually probably removes most of our benefits of twistd daemon support integration.
Related branches
lp://staging/~fwereade/pyjuju/upstartify-services
- Kapil Thangavelu (community): Approve
- Jim Baker (community): Approve
-
Diff: 2996 lines (+1277/-806)29 files modifiedjuju/agents/tests/test_base.py (+6/-9)
juju/control/options.py (+4/-5)
juju/lib/lxc/tests/test_lxc.py (+12/-5)
juju/lib/tests/data/test_basic_install (+1/-1)
juju/lib/tests/data/test_less_basic_install (+1/-1)
juju/lib/tests/data/test_standard_install (+1/-1)
juju/lib/tests/test_upstart.py (+137/-27)
juju/lib/upstart.py (+80/-19)
juju/machine/tests/test_unit_deployment.py (+191/-238)
juju/machine/unit.py (+98/-191)
juju/providers/common/cloudinit.py (+17/-12)
juju/providers/common/tests/data/cloud_init_bootstrap (+52/-8)
juju/providers/common/tests/data/cloud_init_bootstrap_zookeepers (+52/-9)
juju/providers/common/tests/data/cloud_init_branch (+28/-7)
juju/providers/common/tests/data/cloud_init_branch_trunk (+28/-7)
juju/providers/common/tests/data/cloud_init_distro (+27/-6)
juju/providers/common/tests/data/cloud_init_ppa (+28/-7)
juju/providers/common/tests/test_cloudinit.py (+3/-2)
juju/providers/ec2/tests/data/bootstrap_cloud_init (+54/-11)
juju/providers/ec2/tests/data/launch_cloud_init (+27/-6)
juju/providers/ec2/tests/data/launch_cloud_init_branch (+29/-11)
juju/providers/ec2/tests/data/launch_cloud_init_ppa (+27/-6)
juju/providers/local/__init__.py (+5/-9)
juju/providers/local/agent.py (+31/-90)
juju/providers/local/files.py (+53/-39)
juju/providers/local/tests/test_agent.py (+72/-45)
juju/providers/local/tests/test_files.py (+136/-21)
juju/providers/orchestra/tests/data/bootstrap_user_data (+51/-8)
juju/providers/orchestra/tests/data/launch_user_data (+26/-5)
Changed in ensemble: | |
milestone: | none → budapest |
importance: | Undecided → High |
Changed in ensemble: | |
milestone: | budapest → dublin |
Changed in ensemble: | |
assignee: | nobody → Kapil Thangavelu (hazmat) |
Changed in ensemble: | |
assignee: | Kapil Thangavelu (hazmat) → nobody |
Changed in ensemble: | |
milestone: | dublin → none |
Changed in juju: | |
milestone: | none → florence |
Changed in juju: | |
assignee: | nobody → William Reade (fwereade) |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
I'm thinking we just have separate upstarts per agent type, and multiples for a unit. we could explore upstart instances functionality.
Each of the upstart jobs for agents would be marked 'manual' with a 'respawn' stanza.
as an example..
cat /etc/init/ ensemble- test.conf
# tester - The magic sleep
description "Testing Sleep"
manual
respawn
exec sleep 60