Closed anjannath closed 7 months ago
/hold
need to test the bundles from CI
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gbraad
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/test e2e-snc
@anjannath: The following test failed, say /retest
to rerun all failed tests or /retest-required
to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command |
---|---|---|---|---|
ci/prow/e2e-snc | e21245106cd3f2f1d58ee24163403fd1736bd5df | link | true | /test e2e-snc |
Full PR test history. Your PR dashboard.
@anjannath let me know once bundle testing succeed.
Tested the ocp bundle from this PR and now pvs are created with Reclaim policy set to Retain
:
% main git:(main) oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
test-pvc Bound pvc-34eb1bb5-3c40-4149-a8f2-e898fe98c543 30Gi RWX crc-csi-hostpath-provisioner 5s
% main git:(main) oc get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-1c419fcf-08cb-4384-9691-9b3c81ccac3e 30Gi RWX Retain Bound openshift-image-registry/crc-image-registry-storage crc-csi-hostpath-provisioner 21h
pvc-34eb1bb5-3c40-4149-a8f2-e898fe98c543 30Gi RWX Retain Bound default/test-pvc crc-csi-hostpath-provisioner 8s
After deleting pod and pvc, the pv stays around:
% main git:(main) oc get pods
NAME READY STATUS RESTARTS AGE
testpod 1/1 Running 0 55s
% main git:(main) oc delete pod testpod
pod "testpod" deleted
% main git:(main) oc get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-1c419fcf-08cb-4384-9691-9b3c81ccac3e 30Gi RWX Retain Bound openshift-image-registry/crc-image-registry-storage crc-csi-hostpath-provisioner 21h
pvc-f12af845-da7a-4615-bde0-17a33461ef90 30Gi RWX Retain Bound default/test-pvc crc-csi-hostpath-provisioner 62s
% main git:(main) oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
test-pvc Bound pvc-f12af845-da7a-4615-bde0-17a33461ef90 30Gi RWX crc-csi-hostpath-provisioner 71s
% main git:(main) oc delete pvc test-pvc
persistentvolumeclaim "test-pvc" deleted
% main git:(main) oc get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-1c419fcf-08cb-4384-9691-9b3c81ccac3e 30Gi RWX Retain Bound openshift-image-registry/crc-image-registry-storage crc-csi-hostpath-provisioner 21h
pvc-f12af845-da7a-4615-bde0-17a33461ef90 30Gi RWX Retain Released default/test-pvc crc-csi-hostpath-provisioner 79s
you need to remove on-hold
in that case.
/cherry-pick release-4.15
@praveenkumar: once the present PR merges, I will cherry-pick it on top of release-4.15 in a new PR and assign it to you.
/unhold
@praveenkumar: new pull request created: #852
this restore to the original behavior we had for persistent volumes when they were manually created and had reclaimPolicy as Recycle
with this pvs dynamically created by the hostpath-provisioner won't be deleted allowing users to recover any data after deleting a pod/pv
fixes #835