[6.14.z] New provisioning cleanup method to workaround BZ:2207698 #13826
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherrypick of PR: #13818
Problem Statement
Currently provisioning tests fails due to mentioned BZ where there are no new IPs available to offer
Solution
Restarting services after a host is removed from a server seems to work well here, Thanks to @shubhamsg199 to find this workaround. So we're now introducing one new common cleanup method which deletes and restart services for us, and update all on_prem tests to use this new method.
We have tested this with Jenkins jobs on J-MR and the results seem promising!