Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 896433

Summary: Different rule of embedding db cartridges to scalable app on Website and CLI
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: ocAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 1.0.0CC: bleanhar, jialiu, libra-onpremise-devel, lmeyer, szhou, xjia
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The developer console used its own rules to determine which cartridges were compatible and the rules were out of date. Consequence: The developer console didn't allow embedding two different DB cartridges while rhc and the REST API did allow it. Fix: The developer console was updated. Result: Multiple DB cartridges are now allowed in the console, consistent with rhc and the REST API.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-09 18:48:16 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:
Attachments:
Description Flags
Add cartridge none

Description Gaoyun Pei 2013-01-17 10:00:02 UTC
Created attachment 680113 [details]
Add cartridge

Description of problem:
Couldn't embed both postgresql-8.4 and mysql-5.1 db cartridge to one scalable app at the same time via website, while this action could be done successfully via rhc client.

Version-Release number of selected component (if applicable):
http://download.lab.bos.redhat.com/rel-eng/OpenShiftEnterprise/1.1/2013-01-16.1

How reproducible:
Always

Steps to Reproduce:
1.Create an scalable app. Add mysql-5.1 cartridge to the app, then try to add postgresql-8.4 to this app via website console, but the page said "Conflicts with mysql-5.1" as the attachment shows. 

2.While postgresql-8.4 could be embedded to the app via rhc client.

 [root@localhost workspace]# rhc app show app7 -predhat
app7 @ http://app7-1010.test.com/ (uuid: bc8e624a70664a899e0cc555e34b7e15)
==========================================================================
  Created:   4:08 AM
  Gear Size: small
  Git URL:   ssh://bc8e624a70664a899e0cc555e34b7e15.com/~/git/app7.git/
  SSH:       bc8e624a70664a899e0cc555e34b7e15.com

  php-5.3 (PHP 5.3)
  =================
    Scaling: x2 (minimum: 2, maximum: available) on small gears

  postgresql-8.4 (PostgreSQL Database 8.4)
  ========================================
    Connection URL: postgresql://5d1f69cd2c-1010.test.com:35696/
    Database Name:  app7
    Password:       cf7xQwGRZXq8
    Username:       admin

  mysql-5.1 (MySQL Database 5.1)
  ==============================
    Connection URL: mysql://3a987a7e9d-1010.test.com:35736/
    Database Name:  app7
    Password:       bWWtSbrJwx7t
    Username:       admin

  haproxy-1.4 (HAProxy 1.4)
  =========================

  
Actual results:

Expected results:
There should be only one rule for embedding db cartridge to scalable app.

Additional info:
As for non-scalable app, only 1 embedded database permitted on both of the rhc client and website console.

As https://bugzilla.redhat.com/show_bug.cgi?id=873568 said, mysql and postgresql will not conflict with each other on Openshift Origin, so maybe we should also allow postgresql and mysql embedded to the same scalable app on Website

Comment 3 Luke Meyer 2013-01-30 18:30:55 UTC
Actually the website has it right; that shouldn't be allowed.

Comment 5 Brenton Leanhardt 2013-05-17 17:23:58 UTC
As best I can tell this has been fixed upstream.  From both the rhc cli and web console I created scalable and non-scalable applications.  In all cases I was able to add mysql and postgresql.

Please retest.

Comment 6 Gaoyun Pei 2013-05-20 06:31:53 UTC
Check this issue on puddle:
http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.2/2013-05-17.2/

Both website and CLI support embedding mysql-5.1 and postgresql-8.4 to the same scalable application.

So move it to VERIFIED.

Comment 8 errata-xmlrpc 2013-07-09 18:48:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1033.html