Trigger storage pool refresh on buddy group and target deletions #40
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.
Hi @rustybee42,
I was removing sleep statements in test cases and found out there was a test create file stripping api which had sleep 310 sec. This was because the file striping took more than 5 minutes to take effect. The test only passed when there was a sleep of over 300 seconds; otherwise, the expected number of targets differed from the actual targets used for striping.
In the meta code it looks like in the meta code waits for 5 min for the first pass. We never refresh the storage‑pool definitions once mgmtd finally knows about the targets.
With 7.4 version management we did not require this 300 sec sleep. So looks like we had to add this 5 min sleep in test case from 8.x release.
This PR implements notifications to refresh storage pools when stripping is changed, buddy groups or targets are deleted, ensuring pool membership remains consistent.