juju.agents.unit upstart jobs for a subordinate service are not removed when the service is destroyed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned |
Bug Description
When destroying a subordinate service the juju.agents.unit upstart jobs are not removed from the machine.
I'm using the openstack provider and 0.6.0.1+
To replicate:
juju bootstrap
juju deploy local:dummy-website
juju deploy local:nrpe-
juju set nrpe-external-
juju add-relation dummy-website nrpe-external-
# Upstart jobs for dummy-website and nrpe-external-
juju ssh 1 "ps -ef | grep juju; ls -l /etc/init/juju*"
root 28061 1 0 09:23 ? 00:00:00 python -m juju.agents.machine --nodaemon --logfile /var/log/
root 28084 1 0 09:23 ? 00:00:01 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
ubuntu 32456 32455 0 09:32 ? 00:00:00 bash -c ps -ef | grep juju; ls -l /etc/init/juju*
ubuntu 32458 32456 0 09:32 ? 00:00:00 grep juju
-rw-r--r-- 1 root root 601 Feb 4 09:23 /etc/init/
-rw-r--r-- 1 root root 379 Feb 4 09:23 /etc/init/
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/
juju destroy-service dummy-website
juju destroy-service nrpe-external-
# dummy-website jobs have gone but nrpe-external-
juju ssh 1 "ps -ef | grep juju; ls -l /etc/init/juju*"
root 28061 1 0 09:23 ? 00:00:00 python -m juju.agents.machine --nodaemon --logfile /var/log/
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
ubuntu 32577 32576 0 09:33 ? 00:00:00 bash -c ps -ef | grep juju; ls -l /etc/init/juju*
ubuntu 32579 32577 0 09:33 ? 00:00:00 grep juju
-rw-r--r-- 1 root root 379 Feb 4 09:23 /etc/init/
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/
juju deploy local:dummy-website
juju deploy local:nrpe-
juju set nrpe-external-
juju add-relation dummy-website nrpe-external-
# Now we have 2 dummy-website upstart jobs
juju ssh 1 "ps -ef | grep juju; ls -l /etc/init/juju*"
ubuntu 467 466 0 09:36 ? 00:00:00 bash -c ps -ef | grep juju; ls -l /etc/init/juju*
ubuntu 469 467 0 09:36 ? 00:00:00 grep juju
root 28061 1 0 09:23 ? 00:00:00 python -m juju.agents.machine --nodaemon --logfile /var/log/
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
root 32588 1 0 09:34 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
root 32623 1 1 09:35 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/
-rw-r--r-- 1 root root 601 Feb 4 09:34 /etc/init/
-rw-r--r-- 1 root root 379 Feb 4 09:23 /etc/init/
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/
-rw-r--r-- 1 root root 727 Feb 4 09:35 /etc/init/
Changed in juju: | |
importance: | Undecided → Low |
status: | New → Triaged |