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/5279 github. org/Juniper/ contrail- controller/ commit/ b0f8f5a3f5103d2 1735b7d80ce4298 6de8d7cbc4
Committed: http://
Submitter: Zuul
Branch: master
commit b0f8f5a3f5103d2 1735b7d80ce4298 6de8d7cbc4
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 filesystem: :remove_ all instead of delete
boost::
the files if the directory is not empty.
Change-Id: I48ced8fc1ef860 63127ff50d42a40 592082d27cb
Closes-bug: #1399241