"stop" hook fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-gui |
Fix Released
|
High
|
Francesco Banconi | ||
juju-gui (Juju Charms Collection) |
Fix Released
|
Undecided
|
Francesco Banconi |
Bug Description
Hi,
the "stop" hook of the juju-gui charm fails:
2013/04/22 14:28:03 INFO worker/uniter: running "stop" hook
2013/04/22 14:28:04 INFO worker/uniter: HOOK Traceback (most recent call last):
2013/04/22 14:28:04 INFO worker/uniter: HOOK File "/var/lib/
2013/04/22 14:28:04 INFO worker/uniter: HOOK from utils import (
2013/04/22 14:28:04 INFO worker/uniter: HOOK ImportError: cannot import name stop
2013/04/22 14:28:04 ERROR worker/uniter: hook failed: exit status 1
I suppose this does not happen with pyjuju because the stop hook is not called, but it does happen when deploying the charm and destroying the service using gojuju. After having called "juju destroy-service juju-gui", I got this in status and the above small backtrace in the unit logs:
:
andreas@nsn7:~$ juju status
machines:
"0":
agent-state: started
agent-version: 1.9.14
dns-name: ec2-54-
instance-id: i-3036835e
"1":
agent-state: started
agent-version: 1.9.14
dns-name: ec2-54-
instance-id: i-89065ae6
services:
juju-gui:
charm: cs:precise/
exposed: true
units:
juju-gui/0:
machine: "1"
andreas@nsn7:~$
Related branches
- charmers: Pending requested
-
Diff: 123 lines (+22/-9)5 files modifiedconfig.yaml (+1/-1)
hooks/stop (+0/-1)
hooks/utils.py (+3/-2)
revision (+1/-1)
tests/test_utils.py (+17/-4)
Changed in juju-gui: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju-gui (Juju Charms Collection): | |
assignee: | nobody → Francesco Banconi (frankban) |
Changed in juju-gui: | |
assignee: | nobody → Francesco Banconi (frankban) |
Changed in juju-gui: | |
status: | Triaged → In Progress |
Changed in juju-gui (Juju Charms Collection): | |
status: | New → In Progress |
Changed in juju-gui (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in juju-gui: | |
status: | In Progress → Fix Committed |
Changed in juju-gui: | |
status: | Fix Committed → Fix Released |
Changed in juju-gui (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
tags: | added: landscape |