Bug 1961647
| Summary: | [RBD] Deleting RBD provisioner leader pod breaks thick provisioning | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Container Storage | Reporter: | Jilju Joy <jijoy> |
| Component: | csi-driver | Assignee: | Niels de Vos <ndevos> |
| Status: | CLOSED ERRATA | QA Contact: | Jilju Joy <jijoy> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.8 | CC: | madam, muagarwa, ocs-bugs |
| Target Milestone: | --- | Keywords: | Automation |
| Target Release: | OCS 4.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.8.0-407.ci | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-08-03 18:16:11 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
Jilju Joy
2021-05-18 12:06:55 UTC
In case thick-provisioning is aborted/restarted, the metadata of the RBD image will not contain the thick-provisioning key/value. A CreateVolume request will have the thick-provision option set, so this can be checked with the (missing) value in the RBD image metadata. Upstream change posted at https://github.com/ceph/ceph-csi/pull/2101 https://github.com/openshift/ceph-csi/pull/52 has been merged and will be included in the next build. Verified using the test case tests/manage/pv_services/test_delete_provisioner_pod_while_thick_provisioning.py::TestDeleteProvisionerPodWhileThickProvisioning::test_delete_provisioner_pod_while_thick_provisioning, PR https://github.com/red-hat-storage/ocs-ci/pull/4300 Test case logs : http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/jnk-pr4300-b822/jnk-pr4300-b822_20210607T052437/logs/ rbd du output from test case log: 2021-06-07 07:28:07,452 - MainThread - INFO - ocs_ci.utility.utils.exec_cmd.486 - Executing command: oc -n openshift-storage rsh rook-ceph-tools-56dc89c8c9-dw2tz rbd du -p ocs-storagecluster-cephblockpool csi-vol-8eb3c279-c761-11eb-a3b3-0a580a81020e 2021-06-07 07:28:18,042 - MainThread - DEBUG - ocs_ci.utility.utils.exec_cmd.499 - Command stdout: NAME PROVISIONED USED csi-vol-8eb3c279-c761-11eb-a3b3-0a580a81020e 20 GiB 20 GiB Verified in version: OCS operator v4.8.0-409.ci Cluster Version 4.8.0-0.nightly-2021-06-06-164529 Ceph Version 14.2.11-147.el8cp (1f54d52f20d93c1b91f1ec6af4c67a4b81402800) nautilus (stable) rook_csi_provisioner ose-csi-external-provisioner@sha256:611a895fdc5c9d3b1561cfa0eb01d67349985c2a2909f00c3b010a693667ff8a Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenShift Container Storage 4.8.0 container images bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3003 |