Bug 1024322

Summary: Unable to migrate perl/nodejs/jboss gears due to error "Couldn't move dep contents from ... to ..."
Product: OpenShift Online Reporter: Jianwei Hou <jhou>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: dmace
Target Milestone: ---Keywords: TestBlocker
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:27:29 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:
Attachments:
Description Flags
upgrade error none

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.