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

[Storage] sky storage delete -a aborted when deletion of one storage failed #4050

Open
cblmemo opened this issue Oct 8, 2024 · 0 comments · May be fixed by #4454
Open

[Storage] sky storage delete -a aborted when deletion of one storage failed #4050

cblmemo opened this issue Oct 8, 2024 · 0 comments · May be fixed by #4454
Labels
good first issue Good for newcomers

Comments

@cblmemo
Copy link
Collaborator

cblmemo commented Oct 8, 2024

sky storage delete -a aborted for all storage when deletion of one storage failed. Expected behaviour: print out error for corresponding storage while still delete all other storages.

sky storage delete -a
Deleting 7 storages: skypilot-workdir-txia-60a9b7bc, skypilot-workdir-txia-f8997026, skypilot-workdir-txia-cf42367e, skypilot-workdir-txia-4e6768c9, skypilot_test_compress, comp-289a68bd-c3ed-42bd-93b8-ee3735cdb835-0, comp-3525982f-f669-4c43-b2e7-f5a1e9789a2b-1. Proceed? [Y/n]: ^[[A
Error: invalid input
Deleting 7 storages: skypilot-workdir-txia-60a9b7bc, skypilot-workdir-txia-f8997026, skypilot-workdir-txia-cf42367e, skypilot-workdir-txia-4e6768c9, skypilot_test_compress, comp-289a68bd-c3ed-42bd-93b8-ee3735cdb835-0, comp-3525982f-f669-4c43-b2e7-f5a1e9789a2b-1. Proceed? [Y/n]: 
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadBucket operation: Forbidden

The above exception was the direct cause of the following exception:

sky.exceptions.StorageBucketGetError: Failed to access existing bucket 'skypilot-workdir-txia-60a9b7bc'. This is likely because it is a private bucket you do not have access to.
To fix: 
  1. If you are trying to create a new bucket: use a different name.
  2. If you are trying to connect to an existing bucket: make sure your cloud credentials have access to it. To debug, consider running `aws s3 ls skypilot-workdir-txia-60a9b7bc`.
@cblmemo cblmemo added the good first issue Good for newcomers label Oct 8, 2024
@cblmemo cblmemo changed the title sky storage delete -a aborted when deletion of one storage failed [Storage] sky storage delete -a aborted when deletion of one storage failed Oct 8, 2024
@Michaelvll Michaelvll added the OSS label Dec 19, 2024 — with Linear
@Michaelvll Michaelvll removed the OSS label Dec 19, 2024
@Michaelvll Michaelvll added the OSS label Dec 19, 2024 — with Linear
@Michaelvll Michaelvll removed the OSS label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants