Comment 3 for bug 1495430

Revision history for this message
Naveen Chandra Sekhara (cnaveens) wrote :

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 ~]# ip netns exec qlbaas-779dc094-0436-479b-ad49-95b10a8a8e9e ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        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-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)

as you see self.exists fails