Bug 2124469
| Summary: | [OCS 4.8] pvc for ocs-storagecluster-cephfs in pending state "subvolume group 'csi' does not exist" | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | jpeyrard |
| Component: | csi-driver | Assignee: | Madhu Rajanna <mrajanna> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Yosi Ben Shimon <ybenshim> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.8 | CC: | mrajanna, muagarwa, ocs-bugs, odf-bz-bot, tdesala |
| Target Milestone: | --- | ||
| Target Release: | ODF 4.12.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 4.12.0-74 | Doc Type: | Bug Fix |
| Doc Text: |
Cause:
When a user creates a new cephfs PVC, CephCSI creates a default subvolumegroup with a name (csi) on each filesystem. If a filesystem is recreated and the cephfs CSI provisioner pod is not restarted, the new PVC fails as no subvolumegroup exists.
Consequence:
Failure to create new PVC
Fix:
CephCSI will try to create a subvolumegroup if it doesn't always exist.
Result:
PVC creation never fails if a subvolumegroup is not present.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-02-08 14:06:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
jpeyrard
2022-09-06 09:12:00 UTC
Changes have been synced in the downstream devel and release-4.12 branches. ODF-4.12 is expected to have a fix for this bug. Tested on ODF version 4.12.0-91 following the steps in comment #13. Flow: # List subvolume sh-4.4$ ceph fs subvolume ls ocs-storagecluster-cephfilesystem csi [ { "name": "csi-vol-7c13ed73-9cb3-4572-841d-d44070fa82d1" } ] # Remove subvolume & subvolumegroup sh-4.4$ ceph fs subvolume rm ocs-storagecluster-cephfilesystem csi-vol-7c13ed73-9cb3-4572-841d-d44070fa82d1 csi sh-4.4$ ceph fs subvolumegroup rm ocs-storagecluster-cephfilesystem csi # List subvolumegroup sh-4.4$ ceph fs subvolumegroup ls ocs-storagecluster-cephfilesystem [] # Create PVC [ybenshim@localhost tmp]$kubectl create -f pvc.yaml persistentvolumeclaim/cephfs-pvc created [ybenshim@localhost tmp]$kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE cephfs-pvc Bound pvc-978f4174-79ce-435f-b8ae-2fa794067c57 1Gi RWO ocs-storagecluster-cephfs 3s db-noobaa-db-pg-0 Bound pvc-462b678f-d2b5-43fb-be74-e992a5d9c194 50Gi RWO ocs-storagecluster-ceph-rbd 31h ocs-deviceset-0-data-0lm4lh Bound pvc-6ce4900b-6c5b-470e-875d-cda2d29b3f9a 100Gi RWO thin 31h ocs-deviceset-1-data-0h4khv Bound pvc-9dce2a0c-791f-4ecd-9ffb-0461c66941a9 100Gi RWO thin 31h ocs-deviceset-2-data-06ff4f Bound pvc-58027f41-4345-45d5-a9fc-b9d4e06c4798 100Gi RWO thin 31h rook-ceph-mon-a Bound pvc-7467daea-de4d-4a59-811d-53eb723d627d 50Gi RWO thin 31h rook-ceph-mon-b Bound pvc-f8629fe3-31eb-4aa8-8347-a2871b540f7c 50Gi RWO thin 31h rook-ceph-mon-c Bound pvc-4ddb2f12-a271-44ee-b68a-e69a0ac73889 50Gi RWO thin 31h sh-4.4$ ceph fs subvolumegroup ls ocs-storagecluster-cephfilesystem [ { "name": "csi" } ] After subvolumegoup deletion, the PVC was created and reached bound state. Moving to VERIFIED |