Cannot delete vlan type network via network generic switch (ngs)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Networking ML2 Generic Switch |
New
|
Undecided
|
Unassigned | ||
neutron |
New
|
Medium
|
Unassigned |
Bug Description
User cannot delete vlan type network via network generic switch:
how to reproduce:
1.Create network - works fine - NGS is able to create vlans on switch
openstack network create test-network
2.Delete network - Is not failing via CLI - however goes too quickly - error log in neutron-server (pasted below)
openstack network delete test-network
neutron stable/victoria - It seems that something had changed in neutron between those two versions (the same NGS version):
working neutron version:
$ pip list | grep -E "neutron|
networking-
neutron 17.1.2.dev36
neutron-
neutron-fwaas 16.0.0
neutron-lib 2.6.1
neutron-vpnaas 17.0.1.dev4
python-
not working neutron version:
$ pip list | grep -E "neutron|
networking-
neutron 17.2.1.dev4
neutron-
neutron-fwaas 16.0.0
neutron-lib 2.6.1
neutron-vpnaas 17.0.1.dev4
python-
error:
2021-07-26 09:23:05.274 25 DEBUG neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.293 25 ERROR neutron.
2021-07-26 09:23:05.294 25 ERROR neutron.
Changed in neutron: | |
importance: | Undecided → Medium |
Hello:
The provider information is added to the network dictionary in [1]. If the number of segments in a network is 1, the provider information will be set in the network dictionary. If the number of segments is >1, the provider information will be written in network['segments'] = [...].
You are probably hitting this issue.
I'll add "networking_ generic_ switch" to this bug to make this project aware of this problem.
Regards.
[1]https:/ /github. com/openstack/ neutron/ blob/84ba0a9aeb cb22ce8ebb8131b b114dbb035c0d50 /neutron/ plugins/ ml2/managers. py#L167- L184