Bug 885840

Summary: Gear with embedded mysql-5.1 cartridge can't be moved due to regression in cart move script
Product: OKD Reporter: Dan Mace <dmace>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium 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: 2012-12-10 19:16:02 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:
Embargoed:

Description Dan Mace 2012-12-10 18:52:46 UTC
Description of problem:

Attempts to move a gear containing a mysql-5.1 cart will fail with an error such as the following, caused by a problem in the mysql-5.1 move hook:

+ sed -i s,,74dfe0d3239449dd9a32ff8e3b4e3054, /var/lib/openshift/74dfe0d3239449dd9a32ff8e3b4e3054//mysql-5.1/etc/my.cnf
sed: -e expression #1, char 0: no previous regular expression

The problem is due to the removal of the old_uuid variable, which is still referenced in the sed statement during the move. The variable was actively removed with this commit:

commit 9c00cde25867dc9ddf6e9949a530f7452a2fa7e9
Author: Rajat Chopra <rchopra>
Date:   Thu Nov 29 16:32:40 2012 -0800

    remove logic that attempts to move cart from one gear to another

Decide whether the sed statement for old_uuid is still valid. If not, remove it. If it's still required, investigate why old_uuid was removed in the first place.


Version-Release number of selected component (if applicable):

devenv_2577


How reproducible:

1. Create a multi-node cluster with two districts, one node per district
2. Create a php-5.3 application with mysql-5.1 embedded
3. Attempt to move the gear from district A to district B

 
Actual results:

Move fails with error cited in the bug description.

Expected results:

A successful move across nodes.

Additional info:

Comment 1 Dan Mace 2012-12-10 19:16:02 UTC
Didn't mean to create this. Closing.

*** This bug has been marked as a duplicate of bug 884589 ***