charm has no way to report error state

Bug #1392786 reported by Jay R. Wren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Low
Unassigned

Bug Description

https://juju.ubuntu.com/docs/authors-hook-errors.html says "If any of your hooks returns a non-zero exit code, juju will stop managing the unit directly and will wait for user intervention. This is a Bad Thing, and you should make every effort to avoid it"

I have a charm which could be configured in a state which is error. It should be possible to return an error message so that a user knows what happened.
e.g.
My config takes a ppa, but I typed it wrong. Charm would say "invalid ppa" and this could show in juju status.

Curtis Hovey (sinzui)
tags: added: charms
Changed in juju-core:
status: New → Triaged
importance: Undecided → Low
tags: added: feature hoos
tags: added: hooks
removed: hoos
Revision history for this message
Jay R. Wren (evarlast) wrote :

This is fixed with juju workload status feature.

Changed in juju-core:
status: Triaged → Fix Released
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.