Juju 3 doesn't report when action fails
Bug #2037279 reported by
Dragomir Penev
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Jack Shaw |
Bug Description
Tested on Juju 3.1 and 3.2 with the same results.
Investigated for https:/
Also reproducible with a test repo https:/
When the action event is failed, there is no output indicating so when using Juju CLI:
$ juju run action-test/0 fail-action
Running operation 1 with 1 task
- task 2 on unit-action-test-0
Waiting for task 2...
Show task produces no input:
$ juju show-task 8
In juju 2.9, both waiting for the action and seeing the report for the task will display both the failed state and the optional failed message.
The issue seems to be happening on both microk8s and lxd.
Changed in juju: | |
status: | New → Confirmed |
Changed in juju: | |
status: | Confirmed → New |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 3.1.7 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
tags: | added: canonical-data-platform-eng |
To post a comment you must log in.
This is quite odd. So far I have replicated this on 3.1. Going to confirm on 3.2 and attempt on 3.3 and in-development 4.0
As a temporary work-around, you can try `juju show-operation 1` which should print something like:
```
summary: fail-action run on unit-action-test-1
status: failed
action:
name: fail-action
parameters: {}
timing:
enqueued: 2023-11-21 15:48:10 +0000 GMT
started: 2023-11-21 15:48:10 +0000 GMT
completed: 2023-11-21 15:48:10 +0000 GMT
tasks:
"6":
host: action-test/1
status: failed
timing:
enqueued: 2023-11-21 15:48:10 +0000 GMT
started: 2023-11-21 15:48:10 +0000 GMT
completed: 2023-11-21 15:48:10 +0000 GMT
message: Fail action failed
results:
return-code: 0
```