Bug 1150971 - Console failed to add restricted gear size cartridge to scalable app with different gear size.
Summary: Console failed to add restricted gear size cartridge to scalable app with dif...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1151548
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-09 10:36 UTC by Yanping Zhang
Modified: 2014-11-03 19:55 UTC (History)
6 users (show)

Fixed In Version: rubygem-openshift-origin-console-1.31.3.1-1.el6op
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1151548 (view as bug list)
Environment:
Last Closed: 2014-11-03 19:55:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1796 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise 2.2 Release Advisory 2014-11-04 00:52:02 UTC

Description Yanping Zhang 2014-10-09 10:36:11 UTC
Description of problem:
Console failed to add restricted gear size cartridge to scalable app with different gear size. 
When set VALID_GEAR_SIZES_FOR_CARTRIDGE="mysql-5.1|small" in broker.conf.
There is no choose button for gear size with mysql-5.1 on website, it use the app's gear size by default, so it failed when add mysql-5.1 to scalable medium size app.The expected action is that mysql-5.1 uses the gear size of ifself.

Version-Release number of selected component (if applicable):
2.2/2014-10-07.1

How reproducible:
Always

Steps to Reproduce:
1.The user has allowed gear sizes with small and medium. Configure in broker.conf with:VALID_GEAR_SIZES_FOR_CARTRIDGE="mysql-5.1|small"
Restart services:
# /etc/init.d/openshift-console restart
# /etc/init.d/openshift-broker restart
2.Create medium size scalable app on website,eg sphp54.
3.Add mysql-5.1 to the app sphp54 on website.
4.Add mysql-5.1 to the app sphp54 with rhc.

Actual results:
2.Succeeded.
3.Failed with info:
The cartridge, mysql-5.1, cannot run on a gear with size: medium. Per configuration, the cartridge can only run on the following gear sizes: small.
4.
$ rhc cartridge add mysql-5.1 -a sphp54 -g small
Adding mysql-5.1 to application 'sphp54' ... done

mysql-5.1 (MySQL 5.1)
---------------------
  Gears:          1 small
  Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
  Database Name:  sphp54
  Password:       Xadr8XbR7-Bv
  Username:       admindY1xGGl

MySQL 5.1 database added.  Please make note of these credentials:

       Root User: admindY1xGGl
   Root Password: Xadr8XbR7-Bv
   Database Name: sphp54

Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/

$ rhc app show sphp54 --gears
ID                       State   Cartridges          Size   SSH URL
------------------------ ------- ------------------- ------ --------------------------------------------------------------------------
54364c9282611da321000091 started php-5.4 haproxy-1.4 medium 54364c9282611da321000091.com.cn
543657f882611df693000025 started mysql-5.1           small  543657f882611df693000025.com.cn


Expected results:
3.Should add mysql-5.1 successfully.

Additional info:

Comment 5 Yanping Zhang 2014-10-20 05:27:46 UTC
Verified on ose 2.2/2014-10-19.1.

Steps to verify:
1.The user has allowed gear sizes with small and medium. Configure in broker.conf with:VALID_GEAR_SIZES_FOR_CARTRIDGE="mysql-5.1|medium"
Restart services:
# /etc/init.d/openshift-console restart
# /etc/init.d/openshift-broker restart
2.Create small size scalable app on website,eg spy33.
3.Add mysql-5.1 to the app spy33 on website.
4.Check the app in command line.

Actual results:
3.Add mysql-5.1 successfully:
MySQL 5.1 database added.  Please make note of these credentials:

       Root User: admingZblbZe
   Root Password: cSyKtk8wNCRz
   Database Name: spy33

Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
4.
# rhc app show spy33 -g
ID                       State   Cartridges             Size   SSH URL
------------------------ ------- ---------------------- ------ -----------------------------------------------------------------------
543cddac6b263c70bf0000b6 started python-3.3 haproxy-1.4 small  543cddac6b263c70bf0000b6.manual.com
54449b306b263c6a0a000002 started mysql-5.1              medium 54449b306b263c6a0a000002.manual.com

Comment 7 errata-xmlrpc 2014-11-03 19:55:20 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.

https://rhn.redhat.com/errata/RHSA-2014-1796.html


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