-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fix wrong mutation of virt sc storage class meta #2218
Fix wrong mutation of virt sc storage class meta #2218
Conversation
Hi @akalenyu. Thanks for your PR. I'm waiting for a red-hat-storage member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
@akalenyu Can you please test the changes and confirm they work as intended, Install kubevirt, Install ODF Then oc get storageclass oc get storageclass ocs-storagecluster-ceph-rbd -o yaml oc get storageclass ocs-storagecluster-ceph-rbd-virtualization -o yaml |
/cherry-pick release-4.14 |
@agarwal-mudit: once the present PR merges, I will cherry-pick it on top of release-4.14 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@akalenyu if this is not merged today then we have to move this to the next release. Can we finish it quickly? |
Yes, sure, would I use the CI here to spin up a cluster? or do I get an existing cluster and deploy my build on it? |
/cc @nixpanic |
I don't think we have a cluster, you need to respin @malayparida2000 @iamniting Do you guys have a cluster |
@agarwal-mudit I do have a cluster but currently I am outside. But I think the changes apeear to be good enough. I will request @iamniting to review the unit test changes and approve it today if it's urgent enough. |
I think I figured it out, I have a cluster, where I can edit the CSV and inject my own ocs-operator image. Sounds good? |
Yes that sounds good. |
$ oc get deploy -n openshift-storage ocs-operator -o yaml | grep image:
image: quay.io/akalenyu/ocs-operator:latest
# Delete existing storage classes
$ oc get storageclass ocs-storagecluster-ceph-rbd -o yaml
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
description: Provides RWO Filesystem volumes, and RWO and RWX Block volumes
creationTimestamp: "2023-10-17T13:35:59Z"
name: ocs-storagecluster-ceph-rbd
resourceVersion: "3325649"
uid: 6d3bd962-1b1e-4d88-99ff-f58d3784acda
parameters:
clusterID: openshift-storage
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage
csi.storage.k8s.io/fstype: ext4
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage
imageFeatures: layering,deep-flatten,exclusive-lock,object-map,fast-diff
imageFormat: "2"
pool: ocs-storagecluster-cephblockpool
provisioner: openshift-storage.rbd.csi.ceph.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
$ oc get storageclass ocs-storagecluster-ceph-rbd-virtualization -o yaml
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
description: Provides RWO and RWX Block volumes suitable for Virtual Machine disks
storageclass.kubevirt.io/is-default-virt-class: "true"
creationTimestamp: "2023-10-17T13:35:59Z"
name: ocs-storagecluster-ceph-rbd-virtualization
resourceVersion: "3325650"
uid: 5d724954-5d49-4db6-aa35-d6f5a5ee2eaf
parameters:
clusterID: openshift-storage
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage
csi.storage.k8s.io/fstype: ext4
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage
imageFeatures: layering,deep-flatten,exclusive-lock,object-map,fast-diff
imageFormat: "2"
mapOptions: krbd:rxbounce
mounter: rbd
pool: ocs-storagecluster-cephblockpool
provisioner: openshift-storage.rbd.csi.ceph.com
reclaimPolicy: Delete
volumeBindingMode: Immediate |
Looks clean, @agarwal-mudit can be approved & merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pls update the commit msg description to have 73 chars per line?
bc5736e
to
8d30aeb
Compare
We weren't performing the changes on the pointer, and thus name/annotations are not applied. Signed-off-by: Alex Kalenyuk <[email protected]>
8d30aeb
to
974985a
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akalenyu, iamniting, malayparida2000 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@akalenyu Can you pls add the bug in the description box and get the acks? |
@agarwal-mudit: new pull request created: #2221 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We weren't performing the changes on the pointer, and thus name/annotations are not applied.
https://bugzilla.redhat.com/show_bug.cgi?id=2244383