ovs_all_ports option used by ovs cleanup has a misleading help string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Darragh O'Reilly |
Bug Description
The help for ovs_all_ports says that when False, only ports that were created by Neutron are deleted.
https:/
cfg.
But actually ports created by Nova are also deleted. Those also have the iface-id and attached-mac fields.
https:/
# ovs-vsctl --columns=
name external_ids
---------------- -------
...
"qr-868ef235-bb" {attached-
...
"qvof43ccb24-99" {attached-
Not sure which is wrong, the help or the script. Is it supposed to delete ports that were created by nova?
tags: | added: ovs |
Changed in neutron: | |
assignee: | nobody → Darragh O'Reilly (darragh-oreilly) |
Let's look at the code: https:/ /github. com/openstack/ neutron/ blob/67b613b795 416406fb4fab143 b3ec9ba8657711f /neutron/ cmd/ovs_ cleanup. py#L63- L76. 'ovs_all_ports' is used to decide what bridges are going to be cleaned-up. For each selected bridge, though, all the ports are cleaned up. And this behavior has been the same since the very beginning: https:/ /review. opendev. org/#/c/ 18302/8/ quantum/ agent/ovs_ cleanup_ util.py. So the issue is the help string.