OVN upgrade order does not match upstream
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Charm Guide |
Triaged
|
High
|
Unassigned |
Bug Description
According to the upstream OVN documentation:
https:/
The upgrade order should be:
- ovn-controller (charm: ovn-chassis, a subordinate of nova-compute or ovn-dedicated-
- ovn-northd, ovn databases (charm: ovn-central)
However currently in the upgrade guide the order is incorrect:
https:/
16 neutron-api
17 ovn-dedicated-
18 ovn-central [should be after nova-compute]
21 nova-compute
The charm upgrade guide also states that:
The general order is:
- all principal charms
- all subordinate charms
And the openstack upgrade guide also says:
Services that are associated with subordinate charms are upgradable but only indirectly. They get upgraded along with their parent principal application.
I'm not sure if that is going to always be true. Something has to trigger the upgrade of the OVN packages specifically. Currently that is done by the charm-upgrade hook. And we now upgrade charms themselves to get new versions of OVN, which is not something the guide really covers atm as it did not used to be that way. Previously we always used the managed upgrade methods and updated the "source" or "openstack-origin" but now we potentially need new charms at the same time and upgrading the charm often implicitly upgrades the software.
For ovn-chassis the apt repo comes from nova-compute, so there is also an issue here that if we wanted to upgrade OVN before nova-compute itself we would need to update the apt source but not upgrade nova itself yet, using the nova-compute charm. That is sometimes easier said than done.
We may need to split the above issues out into separate bugs but I wanted to mention them for completeness. In any case, the service upgrade order appears to be incorrect at a minimum.
-------
Release: 0.0.1.dev656 on 2022-08-31 17:46:35
SHA: 4faf6b24cb34eb5
Source: https:/
URL: https:/
Changed in charm-guide: | |
importance: | Undecided → High |
assignee: | nobody → Peter Matulis (petermatulis) |
Changed in charm-guide: | |
assignee: | Peter Matulis (petermatulis) → nobody |
status: | New → Triaged |
Thank you for reporting this bug. It is true that the current upstream documentation suggests the ordering you point out, however that order does not work for upgrades from OVN 20.03 to 22.03.
This is detailed in bug 1940043 and there is also a update pending to the upstream documentation [0].
The documentation should probably be extended to cover the two upgrade procedures separately.
0: https:/ /mail.openvswit ch.org/ pipermail/ ovs-dev/ 2022-December/ 400132. html