Bug 885840 - Gear with embedded mysql-5.1 cartridge can't be moved due to regression in cart move script
Summary: Gear with embedded mysql-5.1 cartridge can't be moved due to regression in ca...
Keywords:
Status: CLOSED DUPLICATE of bug 884589
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-10 18:52 UTC by Dan Mace
Modified: 2015-05-14 23:03 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-10 19:16:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.