Waiting on build system to successfully test and merge https://github.com/openshift/enterprise-server/pull/395
Verify this bug with openshift-origin-cartridge-mysql-1.18.4-1.el6op.noarch. Checked the code, the default start_timeout in /usr/libexec/openshift/cartridges/mysql/bin/control has been set to 45s now. And OPENSHIFT_MYSQL_START_TIMEOUT and OPENSHIFT_MYSQL_STOP_TIMEOUT env variable were added to control timeout during cartridge start and stop. Steps: 1. Create one scalable app, set env variable for this app rhc env-set OPENSHIFT_MYSQL_START_TIMEOUT=1 OPENSHIFT_MYSQL_STOP_TIMEOUT=1 -a test1 [root@broker ~]# rhc env list -a test1 OPENSHIFT_MYSQL_START_TIMEOUT=1 OPENSHIFT_MYSQL_STOP_TIMEOUT=1 2. Try to add mysql cartridge to this app [root@broker ~]# rhc cartridge add -a test1 -c mysql-5.1 Adding mysql-5.1 to application 'test1' ... Starting MySQL cartridge Unable to complete the requested operation due to: An invalid exit code (157) was returned from the server broker.ose20z.example.com. This indicates an unexpected problem during the execution of your request.. Reference ID: 16c681989b3bc65340a66ed893d76787 3. Make OPENSHIFT_MYSQL_START_TIMEOUT to a bigger one, then add mysql cartridge again [root@broker ~]# rhc env-set OPENSHIFT_MYSQL_START_TIMEOUT=3 OPENSHIFT_MYSQL_STOP_TIMEOUT=1 -a test1 Setting environment variable(s) ... done [root@broker ~]# rhc cartridge add -a test1 -c mysql-5.1 Adding mysql-5.1 to application 'test1' ... done mysql-5.1 (MySQL 5.1) ... MySQL 5.1 database added. Please make note of these credentials: ...
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/RHBA-2015-1588.html