Bug 1367791

Summary: Unable to deploy PostgreSQL
Product: OpenShift Online Reporter: Marek Jelen <mjelen>
Component: StorageAssignee: Vu Dinh <vdinh>
Status: CLOSED NOTABUG QA Contact: Jianwei Hou <jhou>
Severity: high Docs Contact:
Priority: high    
Version: 3.xCC: aos-bugs, mjelen, vdinh
Target Milestone: ---   
Target Release: ---   
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: 2016-08-23 16:08:14 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:
Attachments:
Description Flags
Errors displayed in web console none

Description Marek Jelen 2016-08-17 13:24:22 UTC
Created attachment 1191633 [details]
Errors displayed in web console

Description of problem
Tried to deploy PostgreSQL using the web UI

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

1. Add to project -> Postgresql persistent

Actual results:


Expected results:


Additional info:

Comment 1 Vu Dinh 2016-08-19 18:12:08 UTC
I would like to ask which cluster of dev-preview that you experience this issue from? PROD, STG or INT?

Comment 2 Marek Jelen 2016-08-20 09:11:49 UTC
PROD

https://console.preview.openshift.com/console

Comment 3 Vu Dinh 2016-08-22 18:50:24 UTC
Hey Marek,

I can't reproduce the issue on PROD. I would like to ask if you can re-try this to see if you still experience the issue. If you do, can you provide the project name so I can ask Ops to look into it.

Thanks,
Vu

Comment 4 Marek Jelen 2016-08-23 16:03:24 UTC
Cleaning up the existing resources

$ oc delete all --all                                                                                                                                                                
deploymentconfig "postgresql" deleted
service "postgresql" deleted

And trying to recreate

Add to Project -> postgresql-persistent -> No changes in configuration -> Clicking Create

And I see this message

"Cannot create persistent volume claim "postgresql". persistentvolumeclaims "postgresql" already exists."

Going back to console and running

$ oc delete pvc postgresql                                                                                                                                                                           persistentvolumeclaim "postgresql" deleted

$ oc delete all --all                                                                                                                                                                                deploymentconfig "postgresql" deleted
service "postgresql" deleted
pod "postgresql-1-deploy" deleted
pod "postgresql-1-fc2pj" deleted

And recreating again

Add to Project -> postgresql-persistent -> No changes in configuration -> Clicking Create

No erros shown, PostgreSQL starts.

The problem was that there was some old PVC, that was not cleaned up and was blocking the deployment of the PostgreSQL server.

I guess we can close this bug as a storage problem. 

Question, does it make sense to open bug for "oc delete all --all does not delete pvcs"? is it an intention? it definitely feels very unintuitive to me.

thanks

Comment 5 Vu Dinh 2016-08-23 16:08:14 UTC
Hey Marek,

Thanks for verifying the issue. "oc delete all --all" won't delete PVCs due to the possibility that users may want to reuse the PVCs to or retrieve info from PVs that the PVCs are bounded as well. The thing is as soon as the PVCs are deleted, the PVs will be deleted as well. At the point, there is no way to recover the PVs.

Thanks,
Vu