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
Bug 1827075: Drain GCS buckets before removal #554
Bug 1827075: Drain GCS buckets before removal #554
Conversation
@adambkaplan: This pull request references Bugzilla bug 1827075, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @dmage /cc @ricardomaraschini @coreydaley /hold I'd like to discuss how we can effectively test this. As @coreydaley knows, the GCS SDK does not have good test doubles that allow us to easily unit test. My thought is that I should add a
Do we already have something like this? |
/hold cancel Added e2e test |
@dmage @ricardomaraschini ptal - added an e2e test to ensure the image registry can be removed after images had been imported to it. |
@dmage @ricardomaraschini ptal - I added an e2e to ensure we can tear down the registry if images were added to the storage (via pullthrough in this case). |
@adambkaplan you don't use pull-through there. Image API doesn't interact with the registry. Pushing a blob or using builds might be easier rather than using pull-through. Maybe it's better to add a Disruptive test to openshift-tests? |
I can give that a go here - you can kick off a build using raw |
When removing GCS storage, ensure that there are no objects in the bucket prior to deletion. Otherwise, removing the storage will fail with 409 CONFLICT errors. Added e2e test to ensure the image registry can be removed if an image had been pushed to it. Image push is accomplished via an OpenShift build, using our canonical NodeJS example. Test framework code updated to allow logs to be dumped from a single pod.
Vendor in image and build API code from openshift/api and client-go referenced in test code. This does not bump dependencies - it merely vendors in code from existing modules.
6e0bb8c
to
3286199
Compare
@dmage updated to use a build, and the specific test had clean runs on GCP and AWS. PTAL |
/retest Flake (?) on |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adambkaplan, dmage The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@adambkaplan: All pull requests linked via external trackers have merged: openshift/cluster-image-registry-operator#554. Bugzilla bug 1827075 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When removing GCS storage, ensure that there are no objects in the bucket prior to deletion.
Otherwise, removing the storage will fail with 409 CONFLICT errors.