Unit in error after refresh charm to pacific/stable channel version

Bug #2049753 reported by davwolf steppen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Invalid
Undecided
Unassigned
Pacific
Fix Released
High
Felipe Reyes

Bug Description

Cloud Wallaby/Pacific is currently in production, originally deployed with Ceph Mimic and Bionic/Stein

I am in the process of migrating all charms to a channel version, but when I try with ceph-osd, I encounter an error: "hook failed: config-changed" on all units.

juju version 2.9.46

App Version Status Scale Charm Channel Rev Exposed Message
ceph-osd 16.2.14 active 13 ceph-osd stable 564 no Unit is ready (27 OSD)

juju refresh --switch ch:ceph-osd --channel pacific/stable ceph-osd

App Version Status Scale Charm Channel Rev Exposed Message
ceph-osd 16.2.14 error 13 ceph-osd pacific/stable 548 no Hook failed: "config-changed"

I noticed that in https://github.com/openstack/charm-ceph-osd/blob/stable/pacific/lib/charms_ceph/utils.py#L3175, there isn't a line for Wallaby/Pacific.
A similar charm, ceph-mon, includes the needed line (https://github.com/openstack/charm-ceph-mon/blob/stable/pacific/lib/charms_ceph/utils.py#L3231).

I added 'wallaby': 'pacific' to UCA_CODENAME_MAP in charms_ceph/utils.py in a ceph-osd unit and fixed the error.

Unit Workload Agent Machine Public address Ports Message
ceph-osd/17 active idle 100 aaa.bbb.ccc.ddd Unit is ready (22 OSD)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-osd (stable/pacific)

Fix proposed to branch: stable/pacific
Review: https://review.opendev.org/c/openstack/charm-ceph-osd/+/906045

Revision history for this message
Felipe Reyes (freyes) wrote :

Hello davwolf, thanks for filing this bug and identify the root cause of the failure, I just proposed a new patch to sync up the charm.ceph library into the stable/pacific branch.

Changed in charm-ceph-osd:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (stable/pacific)

Reviewed: https://review.opendev.org/c/openstack/charm-ceph-osd/+/906045
Committed: https://opendev.org/openstack/charm-ceph-osd/commit/8542450f795a1c74a0a5868986088969a98c1834
Submitter: "Zuul (22348)"
Branch: stable/pacific

commit 8542450f795a1c74a0a5868986088969a98c1834
Author: Felipe Reyes <email address hidden>
Date: Thu Jan 18 10:25:03 2024 -0300

    Sync charms.ceph

    The main purpose of this sync is to update the UCA_CODENAME_MAP
    dictionary.

    Also pin charm-tools<3.0.0` and jsonschema<4.18.0 to fix the build.

    Change-Id: I28cc1f5f7c8046dc3daed970cb183d4cde1810c8
    Closes-Bug: #2049753
    Related-Bug: #1951094

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.