Bug 1020177

Summary: Failed to migrate gears with mysql cartridge
Product: OpenShift Online Reporter: Meng Bo <bmeng>
Component: ContainersAssignee: John Keck <jkeck>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 2.x   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:24:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Meng Bo 2013-10-17 08:10:57 UTC
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:

Comment 2 Meng Bo 2013-10-21 08:16:10 UTC
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.