Backtrace in juju debug-log when destroying a service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned |
Bug Description
Seen while testing a charm:
$ juju destroy-service landscape
2011-11-04 12:56:48,236 unit:landscape/3: unit.lifecycle DEBUG: services changed old:[<ServiceRe
2011-11-04 12:56:48,237 unit:landscape/3: unit.lifecycle DEBUG: processing relations changed
2011-11-04 12:56:48,237 unit:landscape/3: unit.relation.watch DEBUG: relation watcher stop
2011-11-04 12:56:48,237 unit:landscape/3: hook.scheduler DEBUG: stop
2011-11-04 12:56:48,237 unit:landscape/3: unit.relation.
2011-11-04 12:56:48,239 unit:landscape/3: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,240 unit:landscape/3: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,240 unit:landscape/3: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,240 unit:landscape/3: unit.relation.watch DEBUG: relation watcher stop
2011-11-04 12:56:48,241 unit:apache2/2: unit.lifecycle DEBUG: services changed old:[<ServiceRe
2011-11-04 12:56:48,241 unit:landscape/3: hook.scheduler DEBUG: stop
2011-11-04 12:56:48,241 unit:landscape/3: unit.relation.
2011-11-04 12:56:48,241 unit:apache2/2: unit.lifecycle DEBUG: processing relations changed
2011-11-04 12:56:48,241 unit:apache2/2: unit.relation.watch DEBUG: relation watcher stop
2011-11-04 12:56:48,241 unit:landscape/3: unit.relation.
2011-11-04 12:56:48,242 unit:apache2/2: hook.scheduler DEBUG: stop
2011-11-04 12:56:48,241 unit:landscape/3: unit.relation.
2011-11-04 12:56:48,241 unit:landscape/3: hook.executor DEBUG: Running hook: /var/lib/
2011-11-04 12:56:48,242 unit:apache2/2: unit.relation.
2011-11-04 12:56:48,243 unit:apache2/2: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,244 unit:apache2/2: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,245 unit:apache2/2: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,245 unit:apache2/2: unit.relation.watch DEBUG: relation watcher stop
2011-11-04 12:56:48,245 unit:apache2/2: hook.scheduler DEBUG: stop
2011-11-04 12:56:48,248 unit:landscape/3: hook.output DEBUG: hook website-
2011-11-04 12:56:48,246 unit:apache2/2: unit.relation.
2011-11-04 12:56:48,247 unit:apache2/2: unit.relation.
2011-11-04 12:56:48,247 unit:apache2/2: unit.relation.
2011-11-04 12:56:48,247 unit:apache2/2: hook.executor DEBUG: Running hook: /var/lib/
2011-11-04 12:56:48,251 unit:apache2/2: hook.output DEBUG: hook website-
2011-11-04 12:56:48,270 Machine:0: juju.agents.machine DEBUG: Units changed old:set(
2011-11-04 12:56:48,271 Machine:0: juju.agents.machine DEBUG: Stopping service unit: landscape/3 ...
2011-11-04 12:56:48,271 Machine:0: juju.agents.machine INFO: Stopping service unit landscape/3...
2011-11-04 12:56:48,271 Machine:0: unit.deploy DEBUG: Destroying container...
2011-11-04 12:56:48,282 unit:landscape/3: hook.executor DEBUG: Hook complete: /var/lib/
2011-11-04 12:56:48,294 unit:apache2/2: hook.executor DEBUG: Hook complete: /var/lib/
2011-11-04 12:56:48,306 unit:apache2/2: statemachine DEBUG: relationworkflo
2011-11-04 12:56:48,308 unit:landscape/3: twisted ERROR: Unhandled error in Deferred:
2011-11-04 12:56:48,309 unit:landscape/3: twisted ERROR: Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield watch_topology_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self._process_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield workflow.
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
result = yield self.fire_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self.set_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self._store(
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield retry_change(
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
new_content = yield change_
File "/usr/lib/
unit_data = yaml.load(content)
File "/usr/lib/
loader = Loader(stream)
File "/usr/lib/
Reader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data = self.stream.
exceptions.
2011-11-04 12:56:48,312 unit:landscape/3: juju.agents.unit DEBUG: Configuration Changed
2011-11-04 12:56:48,314 unit:landscape/3: statemachine DEBUG: unitworkflowstate: transition reconfigure (started -> started) {}
2011-11-04 12:56:48,314 unit:landscape/3: statemachine DEBUG: unitworkflowstate: execute action do_reconfigure
2011-11-04 12:56:48,315 unit:landscape/3: hook.executor INFO: Hook does not exist, skipping /var/lib/
2011-11-04 12:56:48,316 unit:landscape/3: unit.lifecycle DEBUG: configured unit
2011-11-04 12:56:48,333 unit:landscape/3: twisted ERROR: Unhandled error in Deferred:
2011-11-04 12:56:48,334 unit:landscape/3: twisted ERROR: Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield callback(
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self.workflow.
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self.set_
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield self._store(
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
yield retry_change(
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
new_content = yield change_
File "/usr/lib/
unit_data = yaml.load(content)
File "/usr/lib/
loader = Loader(stream)
File "/usr/lib/
Reader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data = self.stream.
exceptions.
2011-11-04 12:56:49,390 Machine:0: unit.deploy INFO: Destroyed container for landscape/
Related branches
Changed in juju: | |
status: | In Progress → Confirmed |
assignee: | Kapil Thangavelu (hazmat) → nobody |
Changed in juju: | |
milestone: | florence → galapagos |
Changed in juju: | |
status: | Confirmed → Triaged |
Thanks for reporting. Effectively the unit data tree is being destroyed from the cli to trigger the unit destruction, which in turn causes the machine agent to kill the unit, but the unit agent is still executing hooks and tries to update the tree with the state post the hook run, except there isn't anything to update at that point.