juju.agents.unit upstart jobs for a subordinate service are not removed when the service is destroyed

Bug #1115080 reported by Liam Young
12
This bug affects 2 people
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+bzr614-0juju2~quantal1 on the client and 0.6.0.1+bzr614-0juju2~precise1 on the vms.

To replicate:
juju bootstrap
juju deploy local:dummy-website
juju deploy local:nrpe-external-master
juju set nrpe-external-master "nagios_master=127.0.0.1"
juju add-relation dummy-website nrpe-external-master

# Upstart jobs for dummy-website and nrpe-external-master as expected
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/juju/machine-agent.log --session-file /var/run/juju/machine-agent.zksession
root 28084 1 0 09:23 ? 00:00:01 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/dummy-website-0/charm.log --session-file /var/run/juju/unit-dummy-website-0-agent.zksession
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/nrpe-external-master-0/units/nrpe-external-master-0/charm.log --session-file /var/run/juju/unit-nrpe-external-master-0-agent.zksession
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/juju-dummy-website-0.conf
-rw-r--r-- 1 root root 379 Feb 4 09:23 /etc/init/juju-machine-agent.conf
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/juju-nrpe-external-master-0.conf

juju destroy-service dummy-website
juju destroy-service nrpe-external-master

# dummy-website jobs have gone but nrpe-external-master remains
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/juju/machine-agent.log --session-file /var/run/juju/machine-agent.zksession
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/nrpe-external-master-0/units/nrpe-external-master-0/charm.log --session-file /var/run/juju/unit-nrpe-external-master-0-agent.zksession
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/juju-machine-agent.conf
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/juju-nrpe-external-master-0.conf

juju deploy local:dummy-website
juju deploy local:nrpe-external-master
juju set nrpe-external-master "nagios_master=127.0.0.1"
juju add-relation dummy-website nrpe-external-master

# 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/juju/machine-agent.log --session-file /var/run/juju/machine-agent.zksession
root 28168 1 0 09:28 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/nrpe-external-master-0/units/nrpe-external-master-0/charm.log --session-file /var/run/juju/unit-nrpe-external-master-0-agent.zksession
root 32588 1 0 09:34 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/dummy-website-1/charm.log --session-file /var/run/juju/unit-dummy-website-1-agent.zksession
root 32623 1 1 09:35 ? 00:00:00 /usr/bin/python -m juju.agents.unit --nodaemon --logfile /var/lib/juju/units/nrpe-external-master-1/units/nrpe-external-master-1/charm.log --session-file /var/run/juju/unit-nrpe-external-master-1-agent.zksession
-rw-r--r-- 1 root root 601 Feb 4 09:34 /etc/init/juju-dummy-website-1.conf
-rw-r--r-- 1 root root 379 Feb 4 09:23 /etc/init/juju-machine-agent.conf
-rw-r--r-- 1 root root 727 Feb 4 09:28 /etc/init/juju-nrpe-external-master-0.conf
-rw-r--r-- 1 root root 727 Feb 4 09:35 /etc/init/juju-nrpe-external-master-1.conf

Curtis Hovey (sinzui)
Changed in juju:
importance: Undecided → Low
status: New → Triaged
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.