Bug 1948564 - [UX] Improve configuring OVN's availability zones user-experience
Summary: [UX] Improve configuring OVN's availability zones user-experience
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: OSP Team
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-12 13:02 UTC by Lucas Alvares Gomes
Modified: 2022-12-07 19:22 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20221010235131.e0d438c.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 19:21:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 786020 0 None master: MERGED tripleo-heat-templates: Add OVNAvailabilityZone to improve UX (I90932c2445eda2cd0d6e661b561ce86a87dcdec2) 2022-10-31 17:43:13 UTC
OpenStack gerrit 814751 0 None stable/train: MERGED tripleo-heat-templates: Add OVNAvailabilityZone to improve UX (I90932c2445eda2cd0d6e661b561ce86a87dcdec2) 2022-10-31 17:43:19 UTC
Red Hat Issue Tracker OSP-2310 0 None None None 2021-11-19 10:47:05 UTC
Red Hat Product Errata RHBA-2022:8794 0 None None None 2022-12-07 19:22:17 UTC

Description Lucas Alvares Gomes 2021-04-12 13:02:11 UTC
This BZ is related to the work done in https://bugzilla.redhat.com/show_bug.cgi?id=1849571

The ML2/OVN driver now supports router availability zones but, when configuring the AZs the ML2/OVN differs from ML2/OVS as it does not use the same configuration options to do so.

This was not by choice since ML2/OVN does not have agents (L3 agent more specially for this case) therefore there's no configuration files to set the availability zones to. In that case, ML2/OVN uses the local OVSDB for this.

This is done via the ovn-cms-options entry in external_ids column of the local Open_vSwitch table, e.g:

$ ovs-vsctl set Open_vSwitch . external-ids:ovn-cms-options="enable-chassis-as-gw,availability-zones=az-0:az-1:az-2"

Or, in the TripleO-Heat-Templates language this is the equivalent of setting the "OVNCMSOptions" configuration in the template as:

OVNCMSOptions: "enable-chassis-as-gw,availability-zones=az-0:az-1:az-2"

As you can see, this is just a string and we've heard some complains about it not being user-friendly. So this BZ is about this usability issue that we have in setting the availability zones for OVN using TripleO-Heat-Templates.

Ideally, it would be good to have a separated key in the template that holds a list (e.g OVNAvailabilityZones [0]) and underneath THT would create the string and append to the value of the "OVNCMSOptions" options. For example:

OVNAvailabilityZone: ['az-0', 'az-1', 'az-2']
OVNCMSOptions: "enable-chassis-as-gw"

That would result in ovn-cms-options="enable-chassis-as-gw,availability-zones=az-0:az-1:az-2" being set in the local OVSDB.

[0] I would also suggest to keep the name generic and not add Router to it even if this BZ is about router availability zones. Reason being, OVN will use this same settings to also add Network Availability Zones in the future. So the same configuration will apply to both.

Comment 11 errata-xmlrpc 2022-12-07 19:21:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.4), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8794


Note You need to log in before you can comment on or make changes to this bug.