DVR: router namespace is not getting removed once all VMs from a compute node migrates to other node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Undecided
|
Swaminathan Vasudevan |
Bug Description
Setup:
1) Multimode setup with 1 controller & 2 compute nodes running linux+KVM.
2) NFS for shared storage. (instances_path = /opt/stack/
Steps:
1) Create 2 private networks.
2) Create a DVR router and add an interface to each of the above network.
3) Create 1st VM on private network 1 and on compute node1
4) Create 2nd VM on private network 2 and on compute node 2
5) Migrate VM2 from compute node 2 to compute node 1 (nova live-migrate VM2)
6) Notice that after VM2 migrates to compute node1, router namespace is still there on the compute node 2.
Example:
Before migration: VM11 & VM12 are hosted on the different compute nodes (CN-1 & CN-2).
stack@CTL:~$ nova show vm11 | grep OS-EXT-
| OS-EXT-
| OS-EXT-
stack@CTL:~$ nova show vm12 | grep OS-EXT-
| OS-EXT-
| OS-EXT-
Router namespace is present on both the compute nodes:
stack@CN-1:~$ ip netns
qrouter-
stack@CN-2:~$ sudo ip netns
qrouter-
After migrating VM12 to CN-1:(Both VMs are now hosted on CN-1)
stack@CTL:~$ nova show vm11 | grep OS-EXT-
| OS-EXT-
| OS-EXT-
stack@CTL:~$ nova show vm12 | grep OS-EXT-
| OS-EXT-
| OS-EXT-
Router namespace is still present on the compute node2 which is not hosting any VMs.
stack@CTL:~$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 0a2f82e0-
| 1274d128-
stack@CN-
qrouter-
tags: | added: l3-dvr-backlog |
Changed in neutron: | |
assignee: | nobody → Swaminathan Vasudevan (swaminathan-vasudevan) |
Changed in neutron: | |
status: | New → Confirmed |
Changed in neutron: | |
status: | Confirmed → In Progress |
Looks like a duplicate of https:/ /bugs.launchpad .net/neutron/ +bug/1508869