[Openstack] [Neutron][LBaaS] Pool deletion is not causing the respective directory on Network Node to be deleted

Vishal2 Agarwal vishal2.agarwal at aricent.com
Mon May 26 07:34:52 UTC 2014


Hi All,

I am on Icehouse-GA using ML2 plugin, using haproxy as my loadbalancer driver. I have one network node and two compute nodes.

Whenever I trigger lb-pool-delete (lbaas), respective lbaas namespace and the contents inside directory /var/lib/neutron/lbaas/<pool-id>/* (on network node) gets deleted but the directory "/var/lib/neutron/lbaas/<pool-id>" still persists.

In file "./services/loadbalancer/drivers/haproxy/namespace_driver.py" inside function "undeploy_instance" I can see below lines which are responsible for deleting the directory:

      "  if os.path.isdir(conf_dir):
            shutil.rmtree(conf_dir)"

.A sample python program with these lines is working fine for me i.e. it is deleting both the directory (conf_dir) and the contents inside the directory. Any idea why it is not working for pool_id directory for Lbaas.

Regards,
Vishal
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140526/b71175aa/attachment.html>


More information about the Openstack mailing list