-
Notifications
You must be signed in to change notification settings - Fork 545
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
PV deletion of cephfsplugin on PVC deletion fails #48
Comments
this is the problem
At the time the user is to be deleted, the volume should have already be deleted, confirming the credential and cluster are working. @mkimuram what ceph cluster you are using? could you please get the ceph mon logs and see if there is any message about deleting user? @gman0 have you seen this error before? |
@rootfs no. Indeed, ceph logs could help. |
I'm using ceph docker image used in e2e testing.
Logs are extracted below way. Please check it.
|
there is no
|
@mkimuram can you post the relevant e2e test console messages too? I wonder if the ceph cluster was (in the process of) teardown before the PV was deleted in the background. |
@mkimuram this is what message i would look for to ensure the PV is deleted before the cluster is teared down. |
I run e2e test again with saving console log(e2e-console.txt) and wait until "Waiting up to 20m0s for PersistentVolume pvc-xxx to get deleted" message shows up. However, I still can't find
|
right, the timeline matches: in CSI logs, delete volume happened before cluster was teared down. |
Sharing logs with debug messages: |
This is what happened. The e2e test just creates/deletes volume, it doesn't publish the volume, thus the volume is never mounted during the test. However, the cephfs controller service doesn't create the user; the node service creates it here. So by the time volume is to be deleted by controller service, the user doesn't exist. |
@rootfs very nice find, thanks! I'll move |
Sync openshift/master to ceph-csi/devel
Sync rhs:release-4.10 with rhs:devel
In case creating the CSIAddonsNode for a Pod fails, a retry is done. There are several causes that can cause failures, these seem to be the most common ones: - User cannot create resource "csiaddonsnodes" in API group "csiaddons.openshift.io" - no kind "CSIAddonsNode" is registered for the internal version of group "csiaddons.openshift.io" In the above cases, either the RBAC is limiting access to the API, or the CRD is not available in the Kubernetes cluster. Updates: #48 Signed-off-by: Niels de Vos <ndevos@redhat.com>
If a PV is dynamic-provisioned and has delete reclaim-policy, it should be deleted when PVC for it is deleted. However, the deletion fails with the following error messages, when tested with kubernetes/kubernetes#66388.
[Error messages in cephfsplugin]
The text was updated successfully, but these errors were encountered: