Bug 1081020

Summary: Failed to restore snapshot after force-stop app
Product: OKD Reporter: Michal Fojtik <mfojtik>
Component: ImageAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: chunchen, lzhang, xiama
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-04-24 21:34:16 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 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]