Load balancer haproxy files are not deleted when the vip is deleted

Bug #1399241 reported by Numan Siddique
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Unassigned
OpenContrail
Fix Committed
Medium
Numan Siddique

Bug Description

Load balancer configuration files created under /var/lib/contrail/loadbalance/<LB_UUID>/ are not deleted when the lb vip or lb pool is deleted. These files stay for ever.

Tags: lbaas vrouter
Changed in opencontrail:
assignee: nobody → Numan Siddique (numansiddique)
tags: added: vrouter
Changed in opencontrail:
status: New → In Progress
Changed in juniperopenstack:
status: New → In Progress
importance: Undecided → Medium
Changed in opencontrail:
importance: Undecided → Medium
tags: added: lbaas
Revision history for this message
Numan Siddique (numansiddique) wrote :
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/5279
Committed: http://github.org/Juniper/contrail-controller/commit/b0f8f5a3f5103d21735b7d80ce42986de8d7cbc4
Submitter: Zuul
Branch: master

commit b0f8f5a3f5103d21735b7d80ce42986de8d7cbc4
Author: Numan Siddique <email address hidden>
Date: Thu Dec 4 20:21:05 2014 +0530

Delete the lb configuration files during cleanup

The issue is seen because boost::filesystem::remove
is used to delete the lb pool configuration directory.
Since the directory is not empty, it is failing.

This patch fixes the issue by calling
boost::filesystem::remove_all instead of delete
the files if the directory is not empty.

Change-Id: I48ced8fc1ef86063127ff50d42a40592082d27cb
Closes-bug: #1399241

Changed in juniperopenstack:
status: In Progress → Fix Committed
Changed in opencontrail:
status: In Progress → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/5311
Committed: http://github.org/Juniper/contrail-controller/commit/ad84c274b10f181e831499caf788d7d13b217576
Submitter: Zuul
Branch: R1.10

commit ad84c274b10f181e831499caf788d7d13b217576
Author: Numan Siddique <email address hidden>
Date: Fri Dec 5 16:08:38 2014 +0530

Delete the lb configuration files during cleanup

The issue is seen because boost::filesystem::remove
is used to delete the lb pool configuration directory.
Since the directory is not empty, it is failing.

This patch fixes the issue by calling
boost::filesystem::remove_all instead of delete
the files if the directory is not empty.

Change-Id: I0b22c985aacee9173f1537f029fdc51c6db0324b
Closes-bug: #1399241

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.