Upgrade from victoria -> wallaby (15.2 -> 16.2) doesn't happen on config-changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph Monitor Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Deploy a cloud with cloud:focal-
Upgrade ceph-mon with: "juju config ceph-mon source=
config-changed runs.
ceph packages do not get upgraded.
Juju status afterwards:
Model Controller Cloud/Region Version SLA Timestamp
zaza-698191b355e9 tinwood2-
App Version Status Scale Charm Store Rev OS Notes
ceph-mon 15.2.14 active 3 ceph-mon jujucharms 483 ubuntu
Unit Workload Agent Machine Public address Ports Message
ceph-mon/0* active idle 0 172.20.1.154 Unit is ready and clustered
ceph-mon/1 active idle 1 172.20.1.191 Unit is ready and clustered
ceph-mon/2 active idle 2 172.20.1.177 Unit is ready and clustered
Machine State DNS Inst id Series AZ Message
0 started 172.20.1.154 80940871-
1 started 172.20.1.191 a2a8a919-
2 started 172.20.1.177 2e40c654-
juju config ceph-mon source
cloud:focal-wallaby
on ceph-mon/0:
$ cat /etc/apt/
# Ubuntu Cloud Archive
deb http://
$ sudo apt list --upgradable
Listing... Done
libssl1.
open-vm-
openssl/
$ sudo apt update
Get:1 http://
Get:2 http://
Get:3 http://
Hit:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 1836 kB in 1s (1461 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
33 packages can be upgraded. Run 'apt list --upgradable' to see them.
sudo apt list --upgradable
Listing... Done
ceph-base/
ceph-common/
ceph-mds/
ceph-mgr-
ceph-mgr/
ceph-mon/
ceph-osd/
ceph/focal-updates 16.2.6-
...
radosgw/
Thoughts:
1. The source was updated.
2. "apt update" was not run
3. "apt install" ceph packages was not called to upgrade the packages.
tags: | added: openstack-upgrade |
Changed in charm-ceph-mon: | |
assignee: | nobody → Alex Kavanagh (ajkavanagh) |
status: | New → Triaged |
status: | Triaged → In Progress |
Changed in charm-ceph-mon: | |
assignee: | Alex Kavanagh (ajkavanagh) → nobody |
Changed in charm-ceph-mon: | |
milestone: | none → 22.04 |
Changed in charm-ceph-mon: | |
status: | Fix Committed → Fix Released |
Changed in charm-ceph-mon: | |
status: | Fix Released → Confirmed |
# A dict of valid ceph upgrade paths. Mapping is old -> new OrderedDict( [
UPGRADE_PATHS = collections.
('firefly', 'hammer'),
('hammer', 'jewel'),
('jewel', 'luminous'),
('luminous', 'mimic'),
('mimic', 'nautilus'),
('nautilus', 'octopus'),
])
# Map UCA codenames to ceph codenames
UCA_CODENAME_MAP = {
'icehouse': 'firefly',
'juno': 'firefly',
'kilo': 'hammer',
'liberty': 'hammer',
'mitaka': 'jewel',
'newton': 'jewel',
'ocata': 'jewel',
'pike': 'luminous',
'queens': 'luminous',
'rocky': 'mimic',
'stein': 'mimic',
'train': 'nautilus',
'ussuri': 'octopus',
}
releases past ussuri need to be added to charms.ceph to support upgrades.