Same problem with V1 also
As of now my pool and vip are deleted. I still see the namespace.
When we delete the vip, we are deleting all the info in /var/lib/neutron/lbaas/<pool_id> except namespace.
when delete_pool, we are checking if this namespace exists by connecting to the namespace using socket created during create_vip.
This will fail, so we don't even attempt to delete it.
[root@controller-01 ~]# file /var/lib/neutron/lbaas/779dc094-0436-479b-ad49-95b10a8a8e9e/sock
/var/lib/neutron/lbaas/779dc094-0436-479b-ad49-95b10a8a8e9e/sock: cannot open (No such file or directory)
[root@controller-01 ~]#
There is should be a different way to find out if the pool exists
def delete_pool(self, pool):
if self.exists(pool['id']): self.undeploy_instance(pool['id'], delete_namespace=True)
Same problem with V1 also neutron/ lbaas/< pool_id> except namespace.
As of now my pool and vip are deleted. I still see the namespace.
When we delete the vip, we are deleting all the info in /var/lib/
when delete_pool, we are checking if this namespace exists by connecting to the namespace using socket created during create_vip.
This will fail, so we don't even attempt to delete it.
[root@controller-01 ~]# ip netns exec qlbaas- 779dc094- 0436-479b- ad49-95b10a8a8e 9e ifconfig -a UP,LOOPBACK, RUNNING> mtu 65536
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@controller-01 ~]# file /var/lib/ neutron/ lbaas/779dc094- 0436-479b- ad49-95b10a8a8e 9e/sock neutron/ lbaas/779dc094- 0436-479b- ad49-95b10a8a8e 9e/sock: cannot open (No such file or directory)
/var/lib/
[root@controller-01 ~]#
There is should be a different way to find out if the pool exists
def delete_pool(self, pool): pool['id' ]):
self. undeploy_ instance( pool['id' ], delete_ namespace= True)
if self.exists(
as you see self.exists fails