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:
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
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