Can't upgrade using the 'openstack-upgrade' action due to "upgrade_openstack" optional param missing from specialised "run_upgrade()" method in charm class.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenStack Designate Charm | Status tracked in Trunk | |||||
2023.1 |
Triaged
|
High
|
Unassigned | |||
2023.2 |
Triaged
|
High
|
Unassigned | |||
Trunk |
Triaged
|
High
|
Unassigned | |||
Yoga |
Triaged
|
High
|
Unassigned | |||
Zed |
Triaged
|
High
|
Unassigned |
Bug Description
The Paused-singe-unit upgrade method [1] fails for the designate upgrade from xena to yoga.
Initial designate charm: xena/stable 208
Target designate charm: yoga/stable 204
The full execution log is available here [2]
Initially I though it's lp1990062 but ajkavanagh has already verified that this is a new problem specific to the designate charm [3]:
"
@wilkmarcin
The bug in designate is different to this one. On the stable/yoga branch the designate charm has:
class DesignateCharmQ
# This charms support Queens and onward
release = 'queens'
...
def run_upgrade(self, interfaces_
"""Upgrade OpenStack if an upgrade is available and action-managed
upgrades is not enabled.
:param interfaces_list: List of instances of interface classes
:returns: None
"""
memcached = relations.
However, the action calls run_upgrade(...) as:
def openstack_
"""Run the openstack-upgrade action."""
with charms_
i.e. with the "upgrade_
This is an actual bug in the designate charm not being updated to support the "upgrade_openstack" optional param but it existing in the lib. As such it's a new/different bug.
"
[1] https:/
[2] https:/
[3] https:/
summary: |
- Can't upgrade from xena to yoga using the 'openstack-upgrade' action + Can't upgrade using the 'openstack-upgrade' action due to + "upgrade_openstack" optional param missing from specialised + "run_upgrade()" method in charm class. |
Just one update: the All-in-one upgrade method [1] works fine for the designate xena->yoga. It may be used as an alternative or workaround if needed.
[1] https:/ /docs.openstack .org/charm- guide/latest/ admin/upgrades/ openstack. html#all- in-one
Marcin