Bug 964113 - Fails to migrate for scalable nodejs-0.6 apps with db addon carts added
Summary: Fails to migrate for scalable nodejs-0.6 apps with db addon carts added
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-17 09:20 UTC by joycezhang
Modified: 2015-05-14 23:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:05:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description joycezhang 2013-05-17 09:20:00 UTC
Description of problem:
If trying to migrate scalable nodejs-0.6 apps with db carts, it would be failed as below:

Migrating app 'scalndcarts' gear 'scalndcarts' with uuid '519596ed548dd90a47000007' on node 'ip-10-152-178-145' for user: jinzhang+2
Failed to migrate with cmd: '/usr/bin/rhc-admin-migrate --login 'jinzhang+2' --migrate-gear '519596ed548dd90a47000007' --app-name 'scalndcarts' --version '2.0.28'' after 2 tries with exception: Failed migrating gear. Rerun with: /usr/bin/rhc-admin-migrate --login 'jinzhang+2' --migrate-gear '519596ed548dd90a47000007' --app-name 'scalndcarts' --version '2.0.28'
Migrating gear on node with: /usr/bin/rhc-admin-migrate --login 'jinzhang+2' --migrate-gear '519596ed548dd90a47000007' --app-name 'scalndcarts' --version '2.0.28'
/usr/bin/rhc-admin-migrate --login 'jinzhang+2' --migrate-gear '519596ed548dd90a47000007' --app-name 'scalndcarts' --version '2.0.28'
You have mail in /var/spool/mail/root


Version-Release number of selected component (if applicable):
Upgrading devenv-stage_353 to devenv_3235 and migrate

How reproducible:
always

Steps to Reproduce:
1. Launch devenv-stage_353
2. Create a scalable nodejs-0.6 app, and add db carts postgresql, mysql and mongodb to this app.
3. Add V1 marker to node
touch /var/lib/openshift/.settings/v1_cartridge_format
4. scp -r ~/devenv-local and /etc/yum.repos.d/* from devenv_3235 instance to
same location on devenv-stage_353 instance
5. yum update -y --enablerepo devenv-local
6. Run oo-admin-clear-pending-ops
7. Remove the v1 marker from the node
rm -f /var/lib/openshift/.settings/v1_cartridge_format
8. Clear the broker cache
rake tmp:clear
9. Restart the rhc-broker and mcollective
10. Run migrate-mongo-2.0.28
11. Run rhc-admin-migrate --version 2.0.28
12. Check migrate log for the app and check app status..
  
Actual results:
It's failed for haproxy gear which is stopped as below:

# rhc app show -a scalndcarts --gears -l jinzhang+2
ID                       State   Cartridges             Size  SSH URL
------------------------ ------- ---------------------- ----- -------------------------------------------------------------------------
519596ee548dd90a47000008 started postgresql-8.4         small 519596ee548dd90a47000008.rhcloud.com
519596ee548dd90a47000009 started mysql-5.1              small 519596ee548dd90a47000009.rhcloud.com
519596ee548dd90a4700000a started mongodb-2.2            small 519596ee548dd90a4700000a.rhcloud.com
519596ed548dd90a47000007 stopped nodejs-0.6 haproxy-1.4 small 519596ed548dd90a47000007.rhcloud.com


Expected results:
It should be successful.


Additional info:
1. It works well for non-scalable nodejs-0.6 app with all db carts added.
2. It works well for scalable nodejs-0.6 apps with jenkins client added, or a single scalable nodejs-0.6 app.

Comment 1 joycezhang 2013-05-20 07:54:37 UTC
Verified on devenv_stage_353 migrated to devenv_3246, the scalable nodejs-0.6 app with db carts can be migrated successfully.


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