Bug 983216 - jbossews build artifacts aren't synced to scaled gears due to mv operation during deploy
Summary: jbossews build artifacts aren't synced to scaled gears due to mv operation du...
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: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
: 983494 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-10 17:49 UTC by Dan Mace
Modified: 2015-05-14 23:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-22 15:23:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Mace 2013-07-10 17:49:09 UTC
Description of problem:

The jbossews `control deploy` implementation uses a `mv` operation to relocate built artifacts from $OPENSHIFT_REPO_DIR to the live Tomcat deployments directory. During scale up events and scaled builds, only directories relative to $OPENSHIFT_REPO_DIR are synced. Scaled gears thus do not receive the built artifacts.

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


How reproducible:

Perform a build in a scalable jbossews application.


Steps to Reproduce:
1.
2.
3.

Actual results:

Scaled up gears are missing built artifacts in ~/jbossews.


Expected results:

Scaled up gears should be in sync with the head gear's build output.

Additional info:

Comment 2 openshift-github-bot 2013-07-10 19:58:48 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/0becce09fd0ab8db5c7e2964c854f916682c32eb
Bug 983216: Use rsync for jbossews deployments rather than mv

Comment 3 Meng Bo 2013-07-11 08:39:05 UTC
Checked on devenv_3482 with 3-gear scalable jbossews2.0 app.

Placed a pre-built sample.war into the webapps/ and push the change.

Found it using rsync instead of mv in the git push log.
remote: + rsync -r --delete /var/lib/openshift/966457217098891931942912/app-root/runtime/repo//webapps/ /var/lib/openshift/966457217098891931942912/jbossews//webapps/

Check the web gears, the war exist for all gears.
# rhc ssh jbews2s --gear "ls \$OPENSHIFT_JBOSSEWS_DIR/webapps/"
=== 999629402297430465052672 jbossews-2.0+haproxy-1.4
ROOT.war
sample.war
=== 966457217098891931942912 jbossews-2.0+haproxy-1.4
ROOT.war
sample.war
=== dda1e0c8ea0311e29af122000a8a0ade jbossews-2.0+haproxy-1.4
ROOT.war
sample.war

Comment 4 Dan Mace 2013-07-11 18:17:09 UTC
*** Bug 983494 has been marked as a duplicate of this bug. ***


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