This repository was archived by the owner on Dec 3, 2024. It is now read-only.
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
When created multiple bucketclaims parallelly, later associated buckets are not getting deleted along with the bucketclaim #139
Open
Description
Bug Report
What happened:
I've created 5 bucketclaims in parallel, all the bucketclaims and associated buckets were created.
When I tried to delete those bucketclaims, all the bucketclaims got deleted, but some of the buckets were not deleted
What you expected to happen:
When deleted bucketclaim, associated buckets should get deleted successfully
How to reproduce this bug (as minimally and precisely as possible):
- Create 5-6 BucketClaims parallely(with help of any script & thread package).
- Delete the BucketClaim's together in a single command.
- Repeat step 1 and 2 few times
- Create 5-6 BucketClaims, with the same name as in step-1, parallely.
Verify if this error is seen in the object controller pod logs.
I1023 11:56:15.533581 1 bucketclaim.go:32] "Add BucketClaim" name="bclc" ns="default" bucketClass="bc1"
E1023 11:56:15.545584 1 bucketclaim.go:197] "Failed to update status of BucketClaim" err="Operation cannot be fulfilled on bucketclaims.objectstorage.k8s.io \"bclc\": the object has been modified; please apply your changes to the latest version and try again" name=""
E1023 11:56:15.545618 1 bucketclaim.go:53] "name" err="Operation cannot be fulfilled on bucketclaims.objectstorage.k8s.io \"bclc\": the object has been modified; please apply your changes to the latest version and try again" bclc="ns" default="err" Operation cannot be fulfilled on bucketclaims.objectstorage.k8s.io "bclc": the object has been modified; please apply your changes to the latest version and try again="(MISSING)"
- Delete the BucketClaim's together in a single command(or) one after another.
-> The bucketclaims would be seen as deleted, but few buckets would be remaining.
-> Delete request for the buckets remained, is not seen in side-car
-> Something makes the controller delete the bucketclaim, without waiting for the bucket to be deleted.
cosi-provisioner-sidecar.log
objectstorage-controller.log
Anything else relevant for this bug report?:
Environment:
- Kubernetes version (use
kubectl version
), please list client and server:
Client Version: v1.30.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.0 - Controller version (provide the release tag or commit hash):
gcr.io/k8s-staging-sig-storage/objectstorage-controller:v20221027-v0.1.1-8-g300019f - Provisoner name and version (provide the release tag or commit hash):
gcr.io/k8s-staging-sig-storage/objectstorage-sidecar:latest - Cloud provider or hardware configuration:
- OS (e.g:
cat /etc/os-release
):
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy - Kernel (e.g.
uname -a
):
Linux tnh-cosi-3 5.15.0-46-generic move to sigs.k8s.io, remove retry logic in cosi-controller #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux - Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
Metadata
Metadata
Assignees
Labels
No labels