Bug 1081020 - Failed to restore snapshot after force-stop app
Summary: Failed to restore snapshot after force-stop app
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
: 1080771 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-26 13:43 UTC by Michal Fojtik
Modified: 2015-05-15 02:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 21:34:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michal Fojtik 2014-03-26 13:43:59 UTC
Description of problem:

This is clone of https://bugzilla.redhat.com/show_bug.cgi?id=1080381#c4


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

devenv

Step:
1. force-stop app
2. do restore snapshot

[lijun@ray Work]$ rhc snapshot restore -a myphp53 -f myphp53.tar.gz 
Restoring from snapshot myphp53.tar.gz...
Removing old git repo: ~/git/myphp53.git/
Removing old data dir: ~/app-root/data/*
Restoring ~/git/myphp53.git and ~/app-root/data
Error in trying to restore snapshot. You can try to restore manually by running:
cat 'myphp53.tar.gz' | ssh 53315d8e87b85301db0004d1.rhcloud.com 'restore INCLUDE_GIT'

$ cat 'myphp53.tar.gz' | ssh 53315d8e87b85301db0004d1.rhcloud.com 'restore INCLUDE_GIT'
$ echo $?
255


Actual results:


Expected results:


Additional info:

Comment 2 Michal Fojtik 2014-03-26 15:36:09 UTC
*** Bug 1080771 has been marked as a duplicate of this bug. ***

Comment 3 chunchen 2014-03-27 02:07:00 UTC
It's fixed, verified on devenv_4586, please refer to the following results:

1. Create an app
rhc app create cphp4 php-5.4 mongodb-2.4 --no-git

2. Force sotp this app
rhc app force-stop cphp4

3. Save snapshot for this app
[chunchen@F17-CCY test]$ rhc snapshot save cphp4
Pulling down a snapshot of application 'cphp4' to cphp4.tar.gz ... done

4. Restore snapshot for this app
[chunchen@F17-CCY test]$ rhc snapshot restore cphp4 -f cphp4.tar.gz 
Restoring from snapshot cphp4.tar.gz to application 'cphp4' ... done

5. Show the command exit status
[chunchen@F17-CCY test]$ echo $?
0

Comment 4 Ma xiaoqiang 2014-04-03 07:50:36 UTC
There are the same issue on puddle [2.1/2014-04-02.2]


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