When running secret-add and secret-set hook commands in same hook context, the created secret resources kept in provider side even the secret-set was failed
Bug #1992547 reported by
Yang Kelvin Liu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Yang Kelvin Liu |
Bug Description
$ juju exec --unit hello-kubecon/0 'uri=$(secret-add --owner unit foo=unit1); echo $uri; secret-set $uri --label=aaa;'
secret:
creating secrets: secret with label "aaa" already exists
# secret-add created the `cd34kcuffbarde
$ mkubectl -nt1 get secret/
NAME TYPE DATA AGE
cd34kcuffbarder
$ juju show-secret cd34kcuffbarder
{}
ERROR secret "cd34kcuffbarde
Fix: we should delete the `secret/
Changed in juju: | |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → 3.0-beta5 |
Changed in juju: | |
milestone: | 3.0-beta5 → 3.0-rc2 |
Changed in juju: | |
milestone: | 3.0-rc2 → 3.0-rc3 |
Changed in juju: | |
milestone: | 3.0-rc3 → 3.0.1 |
Changed in juju: | |
milestone: | 3.0.1 → 3.0.2 |
Changed in juju: | |
milestone: | 3.0.2 → 3.0.3 |
Changed in juju: | |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
Changed in juju: | |
milestone: | 3.0.3 → 3.0.4 |
To post a comment you must log in.