Bug 1024322 - Unable to migrate perl/nodejs/jboss gears due to error "Couldn't move dep contents from ... to ..."
Summary: Unable to migrate perl/nodejs/jboss gears due to error "Couldn't move dep con...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 11:50 UTC by Jianwei Hou
Modified: 2015-05-14 23:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:27:29 UTC
Target Upstream Version:


Attachments (Terms of Use)
upgrade error (272.14 KB, text/plain)
2013-10-29 11:50 UTC, Jianwei Hou
no flags Details

Description Jianwei Hou 2013-10-29 11:50:46 UTC
Created attachment 817056 [details]
upgrade error

Description of problem:
21 out of 62 gears failed migration due to a same error "Couldn't move dep contents from ... to ..."

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

How reproducible:
Always

Steps to Reproduce:
1. On devenv-stage ami, create applications and cover all cartridges
2. Upgrade the devenv-stage ami to latest(devenv_3959)
3. Do datastore migration
4. Do node gears migration
oo-admin-upgrade upgrade-node --ignore-cartridge-version --version 2.0.35

Actual results:
After step 4, oo-admin-upgrade upgrade-node --ignore-cartridge-version --version 2.0.35
You can run the upgrade again with the same arguments to continue.
!!!!!!!!!!WARNING!!!!!!!!!!!!!WARNING!!!!!!!!!!!!WARNING!!!!!!!!!!
#####################################################
Summary:
# of users: 10
# of gears: 62
# of failures: 21
# of leftovers: 0
Gear counts per thread: [nil, nil, nil, 62]

Timings:
    start=1383045678.038s
    total=392.552s
Additional timings:
    gather_active_gears_total_time=20.984s
    gather_users_total_time=0.048s
#####################################################

perl: 
Unhandled exception performing step: Couldn't move dep contents from /var/lib/openshift/526f546f331b6b5bdf00054d/.cpanm.backup to /var/lib/openshift/526f546f331b6b5bdf00054d/.cpanm
jbossews-1.0/jbossews-2.0/jbossas-7/jbosseap-6:
Unhandled exception performing step: Couldn't move dep contents from /var/lib/openshift/526f4aa2331b6b5bdf00015d/.m2.backup to /var/lib/openshift/526f4aa2331b6b5bdf00015d/.m2
nodejs-0.6/nodejs-1.0:
Unhandled exception performing step: Couldn't move dep contents from /var/lib/openshift/526f5358331b6b5bdf0004c5/.npm.backup to /var/lib/openshift/526f5358331b6b5bdf0004c5/.np

Expected results:
Should be able to migrate the gears successfully

Additional info:
Attached migration error log

Comment 1 Dan Mace 2013-10-29 16:54:27 UTC
https://github.com/openshift/li/pull/2055

Comment 2 openshift-github-bot 2013-10-29 19:09:13 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/8a68f1ccecdbdffb578bc7c22ee0ef8e7f13987d
Bug 1024322: Handle migrating empty dependency dirs

Comment 3 Jianwei Hou 2013-10-30 07:44:49 UTC
Verified on devenv_3966, this error is fixed, perl/nodejs/jboss gears are migrated successfully.


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