Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1150971 - Console failed to add restricted gear size cartridge to scalable app with different gear size.
Console failed to add restricted gear size cartridge to scalable app with dif...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
2.2.0
Unspecified Unspecified
high Severity medium
: ---
: ---
Assigned To: Jason DeTiberus
libra bugs
: Upstream
Depends On: 1151548
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-09 06:36 EDT by Yanping Zhang
Modified: 2014-11-03 14:55 EST (History)
6 users (show)

See Also:
Fixed In Version: rubygem-openshift-origin-console-1.31.3.1-1.el6op
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1151548 (view as bug list)
Environment:
Last Closed: 2014-11-03 14:55:20 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1796 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise 2.2 Release Advisory 2014-11-03 19:52:02 EST

  None (edit)
Description Yanping Zhang 2014-10-09 06:36:11 EDT
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@sphp54-domnew.ose22-auto.com.cn
543657f882611df693000025 started mysql-5.1           small  543657f882611df693000025@543657f882611df693000025-domnew.ose22-auto.com.cn


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

Additional info:
Comment 5 Yanping Zhang 2014-10-20 01:27:46 EDT
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@spy33-dom1.ose22.manual.com
54449b306b263c6a0a000002 started mysql-5.1              medium 54449b306b263c6a0a000002@54449b306b263c6a0a000002-dom1.ose22.manual.com
Comment 7 errata-xmlrpc 2014-11-03 14:55:20 EST
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.