juju refresh can fail due to empty charm sha256
Bug #2059990 reported by
Ian Booth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Heather Lanigan |
Bug Description
It's been observed when running some smoke tests that the unit agent can error when deploying / refreshing a charm - the agent goes to failure status with an error that the charm's sha256 is empty.
It turns out his can happen if the charm is not yet saved to the database when the unit agent makes the api call during deploy / refresh. The root cause here is ultimately the transition to async deploys. There's mistakes in that implementation if the unit agent is allowed to start or upgrade before the charm is ready.
summary: |
- juju refresh can fail due to emoty charm sha256 + juju refresh can fail due to empty charm sha256 |
Changed in juju: | |
milestone: | 3.3.4 → 3.3.5 |
Changed in juju: | |
milestone: | 3.3.5 → 3.3.6 |
Changed in juju: | |
assignee: | nobody → Caner Derici (cderici) |
milestone: | 3.3.6 → 3.4.4 |
Changed in juju: | |
milestone: | 3.4.4 → 3.4.5 |
Changed in juju: | |
assignee: | Caner Derici (cderici) → Heather Lanigan (hmlanigan) |
To post a comment you must log in.
This PR https:/ /github. com/juju/ juju/pull/ 17134 adds a defensive retry to the unit agent CharmArchiveSha 256() method. It will mask the issue until a proper fix can be done.