debug-hooks exit 1 , doesn't mark hook as failed
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju-core |
High
|
Horacio Durán | ||
| | 1.23 |
High
|
Horacio Durán | ||
| | 1.24 |
High
|
Horacio Durán | ||
Bug Description
[Environment]
1.20.14-
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
[Description]
Set a debug-hooks trace point into any unit
$ juju debug-hooks ceph-radosgw/0 identity-
Once jumped into the tmux session, exiting the session with 'exit' or 'exit 1' makes no difference.
According to the current documentation: https:/
should mark the hook as failed and will require a 'juju resolved' in order to keep the hooks queue execution.
| description: | updated |
| tags: | added: cts |
| Curtis Hovey (sinzui) wrote : | #1 |
| tags: | added: debug-hooks |
| Changed in juju-core: | |
| status: | New → Incomplete |
| description: | updated |
| description: | updated |
| Changed in juju-core: | |
| status: | Incomplete → New |
| Changed in juju-core: | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| Kapil Thangavelu (hazmat) wrote : Re: [Bug 1415176] Re: debug-hooks exit 1 , doesn't mark hook as failed | #2 |
noted a workaround i've been able to use in bug:1415176
On Tue, Jan 27, 2015 at 4:38 PM, Curtis Hovey <email address hidden> wrote:
> ** Changed in: juju-core
> Status: New => Triaged
>
> ** Changed in: juju-core
> Importance: Undecided => Medium
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> https:/
>
> Title:
> debug-hooks exit 1 , doesn't mark hook as failed
>
> To manage notifications about this bug go to:
> https:/
>
| Leonardo Borda (lborda) wrote : | #3 |
Hi Kapil
Can you describe us the workaround you were able to use it?
Thank Leo
| Changed in juju-core: | |
| milestone: | none → 1.24-alpha1 |
| importance: | Medium → High |
| Changed in juju-core: | |
| assignee: | nobody → Jorge Niedbalski (niedbalski) |
| status: | Triaged → In Progress |
| Changed in juju-core: | |
| assignee: | Jorge Niedbalski (niedbalski) → nobody |
| status: | In Progress → Confirmed |
| Changed in juju-core: | |
| milestone: | 1.24-alpha1 → 1.25.0 |
| Kapil Thangavelu (hazmat) wrote : | #4 |
i found if i closed all the windows in tmux minus the hook window, i could exit 1 from that window and the hook would be marked as failed.
| Kapil Thangavelu (hazmat) wrote : | #5 |
note this was also added to the original bug report on this issue https:/
| Horacio Durán (hduran-8) wrote : | #6 |
Just proposed http://
| Horacio Durán (hduran-8) wrote : | #7 |
1.24 got merged and http://
| Changed in juju-core: | |
| assignee: | nobody → Horacio Durán (hduran-8) |
| status: | Confirmed → In Progress |
| Changed in juju-core: | |
| status: | In Progress → Fix Committed |
| Changed in juju-core: | |
| status: | Fix Committed → Fix Released |


I don't think this example is correct for the problem described. Per bug 1221501, juju does not support debug-hooks with the install hook. Is this issue a problem with the other hooks?