actions kicked off by juju remove-service not finishing
Bug #1359827 reported by
Eric Snow
This bug report is a duplicate of:
Bug #1219902: Cannot destroy service when install hook failed.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
New
|
Undecided
|
Unassigned |
Bug Description
After deploying a charm it settled into an error state (which I'm handling in a separate bug report). I tried removing the service that was created and nothing happened (even after +/- 1 hour). The failed service simply would not go away. I also tried to remove the unit and the machine. Neither worked. Eventually I destroyed the environment to clean everything up.
Here's a more specific breakdown of what I did:
$ juju bootstrap # local server- member- status: has-vote machine- 1 postgresql- 3
agent- state: error
agent- state-info: 'hook failed: "install"'
agent- version: 1.21-alpha1.1
public- address: 10.0.3.58 server- member- status: has-vote machine- 1 postgresql- 3
agent- state: error
agent- state-info: 'hook failed: "install"'
agent- version: 1.21-alpha1.1
public- address: 10.0.3.58
...
$ juju deploy postgresql
$ juju status
environment: local
machines:
"0":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: localhost
instance-id: localhost
series: trusty
state-
"1":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 10.0.3.58
instance-id: esnow-local-
series: trusty
hardware: arch=amd64
services:
postgresql:
charm: cs:trusty/
exposed: false
relations:
replication:
- postgresql
units:
postgresql/0:
machine: "1"
open-ports:
- 5432/tcp
$ juju remove-service postgresql
# Nothing written to std*.
$ juju status
environment: local
machines:
"0":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: localhost
instance-id: localhost
series: trusty
state-
"1":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 10.0.3.58
instance-id: esnow-local-
series: trusty
hardware: arch=amd64
services:
postgresql:
charm: cs:trusty/
exposed: false
life: dying
units:
postgresql/0:
life: dying
machine: "1"
open-ports:
- 5432/tcp
Removing the unit:
$ juju remove-unit postgresql/0 server- member- status: has-vote machine- 1 postgresql- 3
agent- state: error
agent- state-info: 'hook failed: "install"'
agent- version: 1.21-alpha1.1
public- address: 10.0.3.58
$ juju status
environment: local
machines:
"0":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: localhost
instance-id: localhost
series: trusty
state-
"1":
agent-state: started
agent-version: 1.21-alpha1.1
dns-name: 10.0.3.58
instance-id: esnow-local-
series: trusty
hardware: arch=amd64
services:
postgresql:
charm: cs:trusty/
exposed: false
life: dying
units:
postgresql/0:
life: dying
machine: "1"
open-ports:
- 5432/tcp
Removing the machine:
$ juju remove-machine 1
ERROR no machines were destroyed: machine 1 has unit "postgresql/0" assigned