Failed to upgrade ceph-mon from pacific (cloud:focal-xena) to quincy (cloud:focal-yoga)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
In Progress
|
Medium
|
Unassigned | ||
Ceph RADOS Gateway Charm |
New
|
Undecided
|
Unassigned |
Bug Description
This bug looks like with #2007976, but it's a little bit different.
I tried to upgrade ceph-mon from pacific to quincy and the following problem happened:
2023-10-23 20:45:26 DEBUG juju.worker.uniter agent.go:22 [AGENT-STATUS] executing: running config-changed hook
2023-10-23 20:45:26 DEBUG juju.worker.
2023-10-23 20:45:26 DEBUG unit.ceph-
2023-10-23 20:45:26 DEBUG unit.ceph-
2023-10-23 20:45:26 INFO unit.ceph-
2023-10-23 20:45:26 INFO unit.ceph-
2023-10-23 20:45:26 ERROR unit.ceph-
2023-10-23 20:45:26 INFO unit.ceph-
2023-10-23 20:45:26 DEBUG unit.ceph-
2023-10-23 20:45:26 WARNING unit.ceph-
2023-10-23 20:45:26 WARNING unit.ceph-
2023-10-23 20:45:26 WARNING unit.ceph-
2023-10-23 20:45:26 INFO unit.ceph-
2023-10-23 20:45:26 DEBUG unit.ceph-
2023-10-23 20:45:27 DEBUG unit.ceph-
2023-10-23 20:45:27 DEBUG unit.ceph-
2023-10-23 20:45:27 DEBUG unit.ceph-
As the logs shows, for some reason both old and new version are as pacific which does not make sense and the ceph packages didn't get upgrade.
The workaround was setting back the source to cloud:focal-xena and then again to cloud:focal-yoga. In the second time the new version was correctly pointed to quincy and the packages upgraded
Changed in charm-ceph-mon: | |
status: | New → In Progress |
I was also upgrading from Focal/Xena to Focal/Yoga and encountered a very similar issue.
Partial logs:
2023-08-18 22:42:50 WARNING unit.ceph- mon-nvme/ 8.juju- log server.go:316 0 containers are present in metadata.yaml and refresh_event was not specified. Defaulting to update_status. Metrics IP may not be set in a timely fashion. mon-nvme/ 8.juju- log server.go:316 old_version: quincy mon-nvme/ 8.juju- log server.go:316 new_version: quincy mon-nvme/ 8.juju- log server.go:316 Invalid upgrade path from quincy to quincy. Valid paths are: ['firefly -> hammer', 'hammer -> jewel', 'jewel -> luminous', 'luminous -> mimic', 'mimic -> nautilus', 'nautilus -> octopus', 'octopus -> pacific', 'pacific -> quincy'] mon-nvme/ 8.juju- log server.go:316 Monitor hosts are ['10.1.15.140', '10.1.15.199', '10.1.15.222']
2023-08-18 22:42:50 INFO unit.ceph-
2023-08-18 22:42:50 INFO unit.ceph-
2023-08-18 22:42:50 ERROR unit.ceph-
2023-08-18 22:42:50 INFO unit.ceph-
I'm attaching a more verbose version here.
Please let me know if you need anything else.
Best,
Alan