traceback due to malformed ceph request when upgrading from ~15.04 to 17.11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
Medium
|
Unassigned | ||
OpenStack Glance Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Upgrading glance from ~15.04 (r113, revision-id: <email address hidden>) to 17.11 yielded the following traceback:
2018-02-07 22:54:37 INFO config-changed File "/var/lib/
2018-02-07 22:54:37 INFO config-changed if is_request_
2018-02-07 22:54:37 INFO config-changed File "/var/lib/
2018-02-07 22:54:37 INFO config-changed states = get_request_
2018-02-07 22:54:37 INFO config-changed File "/var/lib/
2018-02-07 22:54:37 INFO config-changed previous_request = get_previous_
2018-02-07 22:54:37 INFO config-changed File "/var/lib/
2018-02-07 22:54:37 INFO config-changed request_
2018-02-07 22:54:37 INFO config-changed KeyError: 'request-id'
From examining the code it seems that the ~15.04 version of glance has a very early version of the ceph code. Later versions added the request-id field but did not bump api-version, and also apparently cannot cope when it's missing.
The following workaround (adjusted to match the actual request as needed) and juju resolved --retry completed the upgrade.
juju run --unit glance/0 'relation-set -r $(relation-ids ceph) broker_
tags: | added: canonical-is-ps45-1711-upgrade |
tags: |
added: charm-upgrade removed: upgrade |
This should be fixable with some opportunistic reading of request-id.