Bug 1367791 - Unable to deploy PostgreSQL
Summary: Unable to deploy PostgreSQL
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Storage
Version: 3.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Vu Dinh
QA Contact: Jianwei Hou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-17 13:24 UTC by Marek Jelen
Modified: 2016-08-23 16:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-23 16:08:14 UTC
Target Upstream Version:


Attachments (Terms of Use)
Errors displayed in web console (216.60 KB, image/png)
2016-08-17 13:24 UTC, Marek Jelen
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.