Skip to content

Deleting a Bucket object with a missing bucket fails #378

@dkoshkin

Description

@dkoshkin

/kind bug

What steps did you take and what happened:

A clear and concise description of what the bug is and how has this been tested. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  1. Create a BucketClaim
  2. Write an object to the bucket
  3. Attempt to delete the Bucket which fails with an BucketNotEmpty error.
  4. Delete the bucket in PC
  5. Deletion fails with NoSuchBucket

What did you expect to happen:

I think the deletion should succeed if the bucket is missing, especially if in order to delete the bucket it needs to be empty.

Anything else you would like to add:

Miscellaneous information that will assist in solving the issue.

Error from the logs:

E1223 16:15:04.824681       1 s3-handlers.go:105] "failed to delete bucket" err=<
        NoSuchBucket: The specified bucket does not exist.
                status code: 404, request id: 7b98496e-ed5d-4204-79c3-56f13e7517c3+210000+5349+523930+75312, host id: 7b98496e-ed5d-4204-79c3-56f13e7517c3+210000+5349+523930+75312

Environment:

  • Nutanix objects version:
  • Nutanix COSI version:
    main built on 12/20/2024
  • Kubernetes version: (use kubectl version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions