Bug 1021917

Summary: Fail to restore the snapshot of a JBossEWS-1.0 app to the existing one
Product: OpenShift Online Reporter: Zhe Wang <zhewang>
Component: ContainersAssignee: Paul Morie <pmorie>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian
Target Milestone: ---   
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:26:05 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:
Embargoed:

Description Zhe Wang 2013-10-22 10:24:46 UTC
Description of problem:
Given a JBossEWS-1.0 app, it fails to restore its snapshot to an existing app.

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

How reproducible:
always

Steps to Reproduce:
1. create a JBossEWS-1.0 app
2. create a new page under src/main/webapp/ dir with the following code:

<--------testpage.jsp-------->

 <html>
   <head><title>WebPage factory</title></head>
   <body>
     <% out.println("version #num#"); %>
   </body>
 </html>


<---------------------------->

3. change the #num# string to "1"

4. push the change

5. check the testpage.jsp page to see if the change takes effect (print "version 1")

6. save a snapshot of this app

7. change the output string to "version 2"

8, push the change

9. check if the output string becomes "version 2" in testpage.jsp

10. restore this app with the tarball saved in Step 6

11. check the testpage to see if it prints "version 1".

Actual results:
In Step 5 and 9, the page was changed as expected. However, although the CLI showed the restoration was successful,  it actually failed to restore the testpage.jsp (of "version 1") in Step 11.

Expected results:
It should be successful to restore the snapshot of a JBossEWS-1.0 app to the existing one.

Additional info:

Comment 1 Paul Morie 2013-10-28 16:10:05 UTC
PR submitted

Comment 2 openshift-github-bot 2013-10-28 23:59:35 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/ddfdc079af35838b20df8d02000ef66215198510
Fix bug 1021917: update snapshot/restore for new build/deployment

Comment 3 Zhe Wang 2013-10-30 08:19:31 UTC
The bug is still reproducible in INT(devenv_3965).

Comment 4 Zhe Wang 2013-10-30 09:42:43 UTC
I was also able to reproduce this bug in devenv_3967.

Comment 5 Paul Morie 2013-10-30 15:29:30 UTC
Works for me in devenv_3968

Comment 6 Zhe Wang 2013-10-31 05:25:07 UTC
Verified this bug in INT(devenv_3971)