Description of problem: Migrate gears with mysql cartridge will meet following error: "upgrade_script_mysql": { "context": { "cartridge": "mysql", "rc": 1, "stderr": "/var/lib/openshift/525f49aba168100152000027/mysql/bin/upgrade: line 7: ${${new_cart_version#*.}%%.*}: bad substitution\n", "stdout": "" }, "errors": [ "Upgrade script for mysql returned a non-zero exit code (1)" ], "status": "incomplete" } Version-Release number of selected component (if applicable): devenv-stage_496 to devenv_3907 How reproducible: always Steps to Reproduce: 1. Create apps with mysql cartridge on devenv-stage_496 2. Upgrade the server and migrate the datastore 3. Upgrade gears with oo-admin-upgrade #oo-admin-upgrade upgrade-node --version 2.0.35 --ignore-cartridge-version Actual results: All the gears which contain mysql cartridge will fail due to the upgrade_script_mysql failed. Expected results: Mysql cartridge should be upgraded successfully. Additional info:
https://github.com/openshift/origin-server/pull/3921
Tested on devenv_3921, issue has been fixed. Mysql cartridge for both scale app and non-scale can be upgraded without error. Move bug to verified.