origin icon indicating copy to clipboard operation
origin copied to clipboard

pvc status could use more details

Open jmccormick2001 opened this issue 10 years ago • 5 comments

would be great if when you do 'oc get pvc' that the status shows more detailed information. For example, I recently spent time debugging why my pvc was forever in 'Pending' status. Fortunately I found in the logs (loglevel=5) the messages:

I0128 08:56:21.501128 6929 persistentvolume_claim_binder_controller.go:196] Synchronizing PersistentVolume[pv0001], current phase: Available I0128 08:56:21.518409 6929 persistentvolume_claim_binder_controller.go:326] Synchronizing PersistentVolumeClaim[backupsclaim1] I0128 08:56:21.518442 6929 persistentvolume_claim_binder_controller.go:337] A volume match does not exist for persistent claim: backupsclaim1

This led me to Google search on 'volume match persistent_claim' and found where someone else had this exact error and pointed out that maybe the AccessModes were not matching between the PV and PVC, that was my exact error.

I suspect others will have all sorts of errors like this, would be great if you could add more detailed status or logging to indicate the reason a PVC is in 'Pending' status, perhaps 'Pending - no match on access mode', or similar.

jmccormick2001 avatar Jan 28 '16 15:01 jmccormick2001

oc status should also be changed to provide suggestions for any claim that has existed for more than X time and isn't bound.

smarterclayton avatar Jan 30 '16 17:01 smarterclayton

@smarterclayton my team will be taking this one

erinboyd avatar Feb 17 '16 17:02 erinboyd

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Feb 05 '18 09:02 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Mar 07 '18 17:03 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Apr 06 '18 22:04 openshift-bot