"stop" hook fails

Bug #1171490 reported by Andreas Hasenack
6
This bug affects 1 person
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/juju/agents/unit-juju-gui-0/charm/hooks/stop", line 6, in <module>
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-234-244-124.compute-1.amazonaws.com
    instance-id: i-3036835e
  "1":
    agent-state: started
    agent-version: 1.9.14
    dns-name: ec2-54-224-145-163.compute-1.amazonaws.com
    instance-id: i-89065ae6
services:
  juju-gui:
    charm: cs:precise/juju-gui-41
    exposed: true
    units:
      juju-gui/0:
        agent-state: error
        agent-state-info: 'hook failed: "stop"'
        agent-version: 1.9.14
        machine: "1"
        public-address: ec2-54-224-145-163.compute-1.amazonaws.com
andreas@nsn7:~$

Tags: landscape

Related branches

Gary Poster (gary)
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
Curtis Hovey (sinzui)
Changed in juju-gui:
status: Fix Committed → Fix Released
Changed in juju-gui (Juju Charms Collection):
status: Fix Committed → Fix Released
tags: added: landscape
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.