Bug 864137

Summary: Failed to restore mongodb of scalable apps
Product: OKD Reporter: jizhao
Component: ContainersAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mpatel, szhou, 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: 2012-11-06 18:48:57 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 jizhao 2012-10-08 17:13:13 UTC
Description of problem:
Create a scalable app, embed mongodb to it. Take snapshot of the app. Change the data in mongodb and use the tarball to restore it. The data isn't restored successfully.

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

How reproducible:
Always

Steps to Reproduce:
1.Create a scalable app and add mongodb to it.
$ rhc app create -a <appname> -t jbossas-7 -s
$ rhc app cartridge add -a <appname> -c mongodb-2.2 -d
2.Add some data to mongodb and take snapshot of it.
$ rhc app snapshot save -a <appname> -d
3.Change the data in mongodb and use the tarball to restore the app
$ rhc app snapshot restore -a <appname> -f <tarball> -d
  
Actual results:
The data in mongodb isn't restored successfully.

Expected results:
The data in mongodb should be restored.

Additional info:

Comment 1 Mrunal Patel 2012-10-08 21:35:11 UTC
Fixed with https://github.com/openshift/origin-server/pull/617

Comment 2 Xiaoli Tian 2012-10-09 02:32:15 UTC
Move it to ON_QA since above pull request is merged in devenv_2031

Comment 3 Xiaoli Tian 2012-10-09 02:32:53 UTC
(In reply to comment #2)
> Move it to ON_QA since above pull request is merged in devenv_2031

Should be 2301

Comment 4 jizhao 2012-10-09 10:45:14 UTC
Verify this bug on devenv_2301

Version:
devenv_2301
rhc-0.99.5

Steps to verify:
1.Create a scalable app and add mongodb to it.
$ rhc app create -a <appname> -t jbossas-7 -s
$ rhc app cartridge add -a <appname> -c mongodb-2.2 -d
2.Add some data to mongodb and take snapshot of it.
$ rhc app snapshot save -a <appname> -d
3.Change the data in mongodb and use the tarball to restore the app
$ rhc app snapshot restore -a <appname> -f <tarball> -d

Actual results:
The data in mongodb is restored successfully.