Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for persistent storage owner label changes in teardown #396

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

matthew-richerson
Copy link
Contributor

The workflow controller add/removes owner labels on the PersistentStorageInstance resource in the teardown phase of the create_persistent/destroy_persistent directives. This is so that the later call to DeleteChildren() will find (or not find) the persistent storage and delete it if necessary. The call to DeleteChildren() may do the wrong thing if the PersistentStorageInstance resource in the cache is stale. This commit adds a check after the labels are changed to make sure the changes are visible in our client cache.

Also, change the Requeue while waiting for children to delete to a RequeueAfter.

Fix a bug in the NnfSystemStorage and NnfAccess tests. The Storage resource are created by the SystemConfiguration controller, so we don't need to create or delete them
Signed-off-by: Matt Richerson [email protected]

The workflow controller add/removes owner labels on the PersistentStorageInstance
resource in the teardown phase of the create_persistent/destroy_persistent directives.
This is so that the later call to DeleteChildren() will find (or not find) the persistent
storage and delete it if necessary. The call to DeleteChildren() may do the wrong thing
if the PersistentStorageInstance resource in the cache is stale. This commit adds a check
after the labels are changed to make sure the changes are visible in our client cache.

Also, change the Requeue while waiting for children to delete to a RequeueAfter.

Fix a bug in the NnfSystemStorage and NnfAccess tests. The Storage resource are created
by the SystemConfiguration controller, so we don't need to create or delete them
Signed-off-by: Matt Richerson <[email protected]>
@matthew-richerson matthew-richerson merged commit 11f7bfc into master Oct 3, 2024
3 checks passed
@matthew-richerson matthew-richerson deleted the persistent_delete branch October 3, 2024 00:26
bdevcich pushed a commit that referenced this pull request Oct 21, 2024
The workflow controller add/removes owner labels on the PersistentStorageInstance
resource in the teardown phase of the create_persistent/destroy_persistent directives.
This is so that the later call to DeleteChildren() will find (or not find) the persistent
storage and delete it if necessary. The call to DeleteChildren() may do the wrong thing
if the PersistentStorageInstance resource in the cache is stale. This commit adds a check
after the labels are changed to make sure the changes are visible in our client cache.

Also, change the Requeue while waiting for children to delete to a RequeueAfter.

Fix a bug in the NnfSystemStorage and NnfAccess tests. The Storage resource are created
by the SystemConfiguration controller, so we don't need to create or delete them
Signed-off-by: Matt Richerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants