Bug 873568

Summary: Postgresql should be displayed in the app's cartridge select list after user embed mysql to the app.
Product: OKD Reporter: Mengjiao Gao <mgao>
Component: WebsiteAssignee: N. Harrison Ripps <hripps>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: hripps, szhou, xtian, yujzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: greater than rubygem-openshift-origin-console-1.1.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-19 19:27:36 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:
Embargoed:

Description Mengjiao Gao 2012-11-06 08:21:12 UTC
Description of problem:
   Since non-scalable app do not support to add mysql and postgresql at the same time.After user add mysql to an app, the postgresql cartridge will be moved from the app's cartridge select list to the cartridge conflict list. 

   However, for scalable app, we support to add mysql and postgresql to the app at the same time now. So we should not remove the postgresql cartridge from the cartridge select list for scalable app after user add mysql to the app.

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

How reproducible:
always

Steps to Reproduce:
1.Go to website, and create a scalable app.
2.Add mysql to the app.
3.Check the cartridge select list of the app.
4.Try to add postgresql in the page: /app/console/applications/spring/cartridge_types/postgresql-8.4
  
Actual results:
At step 3, the cartridge postgresql would be removed from the cartridge select list , and stayed in the conflict list. 
At step 4, the postgresql can be added successfully.

Expected results:
At step 3, the cartridge postgresql should still in the cartridge select list.

Additional info:

Comment 1 Mengjiao Gao 2012-11-08 07:26:17 UTC
Tested this issue on devenv_2441, all sqls could be added to one app now. So we should not remove the postgresql cartridge from the cartridge select list for all apps after user add mysql to the apps.

Comment 2 Xiaoli Tian 2012-11-08 07:37:11 UTC
Remove security from keyword  since it's a misoperation

Comment 3 Mengjiao Gao 2012-11-08 07:38:32 UTC
Remove security from keyword  since it's a misoperation

Comment 4 Tomas Hoger 2012-11-08 09:03:21 UTC
Removed security group, added private.  You should be able to remove private if this should be public.

Comment 5 Xiaoli Tian 2012-11-08 09:34:14 UTC
(In reply to comment #4)
> Removed security group, added private.  You should be able to remove private
> if this should be public.

Thanks

Comment 6 Yujie Zhang 2012-11-13 07:30:18 UTC
Tested on INT today, mysql and postgresql still conflict with each other.Higher the severity in case it block stage.

Comment 7 N. Harrison Ripps 2012-11-13 16:21:41 UTC
Assigned

Comment 8 N. Harrison Ripps 2012-11-13 18:17:17 UTC
cartridge config file contained outdated constraints that were affecting the UI; pull request for fix is here: https://github.com/openshift/origin-server/pull/885

Should be available in today's daily build.

Comment 9 Yujie Zhang 2012-11-14 06:54:20 UTC
(In reply to comment #8)
Tested this issue on devenv_2465, the mysql,postgresql,and mongodb will not conflict with each other now, so verify this bug, thanks.