juju remove-unit ceph-osd/5 breaks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Fix Released
|
Medium
|
Unassigned | ||
Charm Helpers |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
Running the command in the subject resulted at secrets-
2020-03-19 16:05:39 INFO juju-log secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 DEBUG secrets-
2020-03-19 16:05:41 ERROR juju.worker.
The workaround I used was to make token = last_token (with juju run ... relation-set )
and then it passed the failing line: File "/var/lib/
But I believe the issue is that it removes first the relation to vault and then tries to fetch a secret_id with an invalidated token key.
Changed in charm-helpers: | |
status: | New → Triaged |
Changed in charm-ceph-osd: | |
status: | New → Triaged |
Changed in charm-helpers: | |
importance: | Undecided → Medium |
Changed in charm-ceph-osd: | |
importance: | Undecided → Medium |
tags: | added: scaleback |
Changed in charm-helpers: | |
status: | Triaged → Fix Committed |
Changed in charm-ceph-osd: | |
milestone: | none → 20.05 |
Changed in charm-ceph-osd: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. opendev. org/716549 /git.openstack. org/cgit/ openstack/ charm-ceph- osd/commit/ ?id=0ecc33223cd c6a7a1b162cb93c a622df013f9b8e
Committed: https:/
Submitter: Zuul
Branch: master
commit 0ecc33223cdc6a7 a1b162cb93ca622 df013f9b8e
Author: Chris MacNaughton <email address hidden>
Date: Wed Apr 1 12:56:11 2020 +0200
Be more defensive when checking Vault
When relations are departing during a unit removal, the relation departed hook
to Vault can loose enough data that the vault-relation-
raises an exception. The checks for Vault readiness should be more
defensive to ensure that charms can successfully depart their relations
Depends-On https:/ /github. com/juju/ charm-helpers/ pull/445
Closes-Bug: #1868282
Change-Id: I0b6226f0f3500a ef7304f8e8b38d0 6daebfd0c20