[Bug 2017757] Re: external-id.hostname is overwritten on each openvswtich service start with ovs 3.1
Frode Nordahl
2017757 at bugs.launchpad.net
Mon Jul 3 13:03:14 UTC 2023
** Changed in: openvswitch (Ubuntu Mantic)
Status: Fix Committed => Fix Released
** Changed in: openvswitch (Ubuntu Lunar)
Status: Triaged => Fix Committed
** Changed in: cloud-archive/antelope
Status: Triaged => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to openvswitch in Ubuntu.
https://bugs.launchpad.net/bugs/2017757
Title:
external-id.hostname is overwritten on each openvswtich service start
with ovs 3.1
Status in Ubuntu Cloud Archive:
Triaged
Status in Ubuntu Cloud Archive antelope series:
Fix Committed
Status in openvswitch package in Ubuntu:
Fix Released
Status in openvswitch source package in Lunar:
Fix Committed
Status in openvswitch source package in Mantic:
Fix Released
Bug description:
In jammy/antelope repo openvswitch-common=3.1.0-1~cloud0 contain a
buggy version of OVS that does not respect `ovs-vsctl add` command, so
instead of appending values it does replace them.
```
root at aio1:/home/ubuntu# ovs-vsctl list open .|grep hostname
external_ids : {hostname=aio1.openstack.local, ovn-bridge-mappings="vlan:br-provider,lbaas:br-octavia", ovn-cms-options=enable-chassis-as-gw, ovn-encap-ip="172.29.240.100", ovn-encap-type=geneve, ovn-remote="ssl:172.29.236.100:6642", rundir="/var/run/openvswitch", system-id="bbad02ce-ab79-42c0-8f54-ce0b7e732c59"}
root at aio1:/home/ubuntu# ovs-vsctl set open_vswitch . external-ids:hostname=aio1
root at aio1:/home/ubuntu# ovs-vsctl list open .|grep hostname
external_ids : {hostname=aio1, ovn-bridge-mappings="vlan:br-provider,lbaas:br-octavia", ovn-cms-options=enable-chassis-as-gw, ovn-encap-ip="172.29.240.100", ovn-encap-type=geneve, ovn-remote="ssl:172.29.236.100:6642", rundir="/var/run/openvswitch", system-id="bbad02ce-ab79-42c0-8f54-ce0b7e732c59"}
root at aio1:/home/ubuntu# ovs-vsctl list open .|grep hostname
external_ids : {hostname=aio1.openstack.local, ovn-bridge-mappings="vlan:br-provider,lbaas:br-octavia", ovn-cms-options=enable-chassis-as-gw, ovn-encap-ip="172.29.240.100", ovn-encap-type=geneve, ovn-remote="ssl:172.29.236.100:6642", rundir="/var/run/openvswitch", system-id="bbad02ce-ab79-42c0-8f54-ce0b7e732c59"}
root at aio1:/home/ubuntu#
root at aio1:/home/ubuntu# apt info openvswitch-common
Package: openvswitch-common
Version: 3.1.0-1~cloud0
Priority: optional
Section: net
Source: openvswitch
Maintainer: Debian OpenStack <team+openstack at tracker.debian.org>
Installed-Size: 3359 kB
Depends: openssl, python3:any, libc6 (>= 2.34), libcap-ng0 (>= 0.7.9), libssl3 (>= 3.0.0~~alpha1), libunbound8 (>= 1.8.0)
Suggests: ethtool, openvswitch-doc
Breaks: openvswitch-switch (<< 2.13.0~git20200212.15ae9db33-0ubuntu2~)
Replaces: openvswitch-switch (<< 2.13.0~git20200212.15ae9db33-0ubuntu2~)
Download-Size: 1061 kB
APT-Manual-Installed: yes
APT-Sources: http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-updates/antelope/main amd64 Packages
Description: Open vSwitch common components
Open vSwitch is a production quality, multilayer, software-based,
Ethernet virtual switch. It is designed to enable massive network
automation through programmatic extension, while still supporting
standard management interfaces and protocols (e.g. NetFlow, IPFIX,
sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed
to support distribution across multiple physical servers similar to
VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V.
.
openvswitch-common provides components required by both openvswitch-switch
and openvswitch-testcontroller.
N: There are 2 additional records. Please use the '-a' switch to see them.
root at aio1:/home/ubuntu#
```
This can be workarounded with setting `OPTIONS="--no-record-hostname"`
in /etc/default/openvswitch-switch
Path in OVS has been already proposed:
https://mail.openvswitch.org/pipermail/ovs-dev/2023-March/403255.html
Related bug to RDO:
https://bugzilla.redhat.com/show_bug.cgi?id=2182767
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2017757/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list