Bug 1922264
Summary: | Restore snapshot as a new PVC: RWO/RWX access modes are not click-able if parent PVC is deleted | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Neha Berry <nberry> | ||||
Component: | Console Storage Plugin | Assignee: | Vineet <vbadrina> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jilju Joy <jijoy> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 4.7 | CC: | anbehl, aos-bugs, jijoy, nthomas, ocs-bugs, vbadrina | ||||
Target Milestone: | --- | ||||||
Target Release: | 4.8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-07-27 22:37:34 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1932151 | ||||||
Attachments: |
|
Description
Neha Berry
2021-01-29 14:44:05 UTC
This Bz is of high priority but I don't think this should block the ocp release. Try to fix it before the final freeze of 4,7, else we will push this into a batch update. Un-setting the blocker flag @jilju could you please help in verifying this BZ in 4.8, so that the backport PRs can be created. @jilju for your verification, the following items have been fixed 1. The storage class will have a required asterisk mark 2. The access mode selectors have been fixed, they should be selectable now with any storage class even if the parent pvc has been deleted 3. The access mode that has been selected will be correct in the restored PVC (In reply to Vineet from comment #4) > @jilju for your verification, the following items have been fixed > > 1. The storage class will have a required asterisk mark Yes, verified. Restore button will be enabled only after selecting the storage class. > 2. The access mode selectors have been fixed, they should be selectable now > with any storage class even if the parent pvc has been deleted Access mode can be selected even if parent PVC is deleted. If parent PVC is absent, RWO access mode will be the default selected access mode in "Restore as new PVC" page. The selection can be changed to another access mode as required. RWX selection is disabled if RBD PVC volume mode is Filesystem. However, the if the parent PVC volume mode is Block , the restored PVC will have Filesystem volume mode if parent PVC is deleted. > 3. The access mode that has been selected will be correct in the restored PVC Verified that the new PVC is created with the selected access mode. Tested in version: OCP 4.8.0-0.nightly-2021-02-23-013453 OCS 4.7.0-270.ci > Access mode can be selected even if parent PVC is deleted. If parent PVC is absent, RWO access mode will be the default selected access mode in "Restore as new PVC" page. > The selection can be changed to another access mode as required. RWX selection is disabled if RBD PVC volume mode is Filesystem. However, the if the parent PVC volume mode is Block , the restored PVC will have Filesystem > volume mode if parent PVC is deleted. We have some more enhancements for this in the below PR. https://github.com/openshift/console/pull/8136 Annotations will be passed to the snapshot with access-mode, storage class and volume of the PVC. Hence on restoring we won't be having any of the above issues even if the parent PVC is deleted (In reply to Vineet from comment #6) > > Access mode can be selected even if parent PVC is deleted. If parent PVC is absent, RWO access mode will be the default selected access mode in "Restore as new PVC" page. > > The selection can be changed to another access mode as required. RWX selection is disabled if RBD PVC volume mode is Filesystem. However, the if the parent PVC volume mode is Block , the restored PVC will have Filesystem > > volume mode if parent PVC is deleted. > > We have some more enhancements for this in the below PR. > https://github.com/openshift/console/pull/8136 > > Annotations will be passed to the snapshot with access-mode, storage class > and volume of the PVC. Hence on restoring we won't be having any of the > above issues even if the parent PVC is deleted Thanks Vineet. As discussed these enhancements are not being tracked in this bug, I am moving this bug to verified state. 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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/RHSA-2021:2438 |