Comment 1 for bug 1896322

Revision history for this message
Douglas Viroel (dviroel) wrote :

Looks like in Ubuntu Focal and Open vSwitch version 2.13.0 the behavior of how external-ids are stored in network interfaces was changed.
The command 'ovs-vsctl set interface veth1234567 external-ids:manila-container=container_name' doesn't add quotation marks around the value and also remove them if we added it manually:

1) without quotes:
$ sudo ovs-vsctl set interface vetha9e3dec external-ids:manila-container=manila_85fd0ad7_f614_46e3_bad3_f19eae36f6ea

$ sudo ovs-vsctl list interface vetha9e3dec | grep manila-container
external_ids : {attached-mac="fa:16:3e:a5:51:4b", iface-id="ea1a4107-4e47-45c5-8211-d60d80ac3b50", iface-status=active, manila-container=manila_85fd0ad7_f614_46e3_bad3_f19eae36f6ea}

2) adding quotes:
$ sudo ovs-vsctl set interface vetha9e3dec external-ids:manila-container="manila_85fd0ad7_f614_46e3_bad3_f19eae36f6ea"

$ sudo ovs-vsctl list interface vetha9e3dec | grep manila-container
external_ids : {attached-mac="fa:16:3e:a5:51:4b", iface-id="ea1a4107-4e47-45c5-8211-d60d80ac3b50", iface-status=active, manila-container=manila_85fd0ad7_f614_46e3_bad3_f19eae36f6ea}

And the code expected to have a quotation mark around container name:
https://opendev.org/openstack/manila/src/branch/master/manila/share/drivers/container/container_helper.py#L152