-
Notifications
You must be signed in to change notification settings - Fork 28
When created multiple bucketclaims parallelly, later associated buckets are not getting deleted along with the bucketclaim #139
Comments
Hi @BlaineEXE , While going through the codes of 'controller' & 'sidecar', I see that both sidecar & controller are updating status of the bucketclaim (within the scope of method BucketClaimListener#provisionBucketClaimOperation). In this scenario, the bucketclaim object with the method(provisionBucketClaimOperation) of controller gets outdated, once sidecar updates the bucketClaim CR's status. A suggestion from our side is to follow sidecar's approach with controller as well.
Note: Lets us know, if we could help further. |
Thanks @narayviv this sounds like something we should address in the v1alpha2 API updates as well. I created a new issue and started tracking it via the COSI kanban board |
@vegullah it's not clear to me from reading your description if this is a permanent or temporary issue. Could you clarify? If the issue is temporary, this is an issue that can sometimes happen with any controller. This error is how Kubernetes helps prevent multiple readers/writers from colliding. As long as the issue resolves itself eventually, I don't see a need to fix this urgently. As @narayviv has mentioned, this might be due to controller and sidecar both editing the resource. We will look into this and see if we can make the error reported here less frequent at a minimum. While the error doesn't seem concerning based on my assumption that it's not preventing reconciliation, we also don't want to have this happen every time, spamming the logs. |
@BlaineEXE, You don't see the issue for initial 2 to 3 tries. The issue doesn't fix by itself, unless you delete controller and side-car pods |
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):
Verify if this error is seen in the object controller pod logs.
-> 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:
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
gcr.io/k8s-staging-sig-storage/objectstorage-controller:v20221027-v0.1.1-8-g300019f
gcr.io/k8s-staging-sig-storage/objectstorage-sidecar:latest
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
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
The text was updated successfully, but these errors were encountered: