Bug 864137 - Failed to restore mongodb of scalable apps
Summary: Failed to restore mongodb of scalable apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-08 17:13 UTC by jizhao
Modified: 2015-05-14 23:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:48:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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