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.
Reviewed: https:/ /review. opencontrail. org/5311 github. org/Juniper/ contrail- controller/ commit/ ad84c274b10f181 e831499caf788d7 d13b217576
Committed: http://
Submitter: Zuul
Branch: R1.10
commit ad84c274b10f181 e831499caf788d7 d13b217576
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 filesystem: :remove_ all instead of delete
boost::
the files if the directory is not empty.
Change-Id: I0b22c985aacee9 173f1537f029fdc 51c6db0324b
Closes-bug: #1399241