Bug 1954124
Summary: | oc set volume not adding storageclass to pvc which leads to issues using snapshots | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | daniel <dmoessne> |
Component: | oc | Assignee: | Filip Krepinsky <fkrepins> |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.6.z | CC: | aos-bugs, jokerman, maszulik, mfojtik, pneedle |
Target Milestone: | --- | ||
Target Release: | 4.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
oc volume set ... --claim-class=<...> did not set the storageClassName but only a deprecated volume.beta.kubernetes.io/storage-class annotation
Fix: oc volume set command properly sets storageClassName on a PVC
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-27 23:04:05 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
daniel
2021-04-27 15:52:29 UTC
This bug hasn't had any activity in the last 30 days. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're marking this bug as "LifecycleStale" and decreasing the severity/priority. If you have further information on the current state of the bug, please update it, otherwise this bug can be closed in about 7 days. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. Additionally, you can add LifecycleFrozen into Keywords if you think this bug should never be marked as stale. Please consult with bug assignee before you do that. Checked with latest oc , can't reproduce the issue now: [root@localhost roottest]# oc version --client Client Version: 4.8.0-202106130124.p0.git.1077b05.assembly.stream-1077b05 Now we can see the storageClassName added . # Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: pv.kubernetes.io/bind-completed: "yes" pv.kubernetes.io/bound-by-controller: "yes" volume.beta.kubernetes.io/storage-provisioner: openshift-storage.cephfs.csi.ceph.com creationTimestamp: "2021-06-17T06:21:20Z" finalizers: - kubernetes.io/pvc-protection name: my-shared-storage namespace: my-shared-storage resourceVersion: "83896" uid: 360b7b64-4f06-4a40-b0e8-d73d4af607cf spec: accessModes: - ReadWriteMany resources: requests: storage: 1Gi storageClassName: ocs-storagecluster-cephfs volumeMode: Filesystem volumeName: pvc-360b7b64-4f06-4a40-b0e8-d73d4af607cf status: accessModes: - ReadWriteMany capacity: storage: 1Gi phase: Bound Hi Paul, this looks fine. Thanks 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 |