Bug 1064040

Summary: Taking a snapshot over ssh of a gear while it is stopped, starts the gear and leaves it running
Product: OpenShift Online Reporter: Wesley Hearn <whearn>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: chunchen, whearn, 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-03-03 15:42:53 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 Wesley Hearn 2014-02-11 21:16:59 UTC
Description of problem:
If you take a snapshot of a stopped gear it will not stop the gear again after the the snapshot is finished

Version-Release number of selected component (if applicable):
openshift-origin-node-util-1.18.10

How reproducible:
Always

Steps to Reproduce:
1. rhc app create test -t php-5.3
2. curl --head test-<namespace>.rhcloud.com (verify the app is started and working)
3. rhc app stop test
4. curl --head test-<namespace>.rhcloud.com (should be a 503)
5. ssh <uuid>@test-<namespace>.rhcloud.com "snapshot" > test.tar.gz
6. curl --head test-<namespace>.rhcloud.com (notice it is back to a 200)

Actual results:
Gear is left running

Expected results:
Gear should be stopped

Additional info:
This does not happen when using the rhc utils. I have not found out why as they run the same command.

Comment 1 Jhon Honce 2014-02-11 21:50:28 UTC
whearn, I see same behavior using rhc commands...

# rhc app stop python001
# rhc cartridge-status python-3.3 -a python001 
RESULT:
Application is either stopped or inaccessible
# rhc snapshot save python001
# rhc cartridge-status python-3.3 -a python001 
RESULT:
Application is running

Comment 2 Wesley Hearn 2014-02-11 22:01:18 UTC
derp, you are right, so yes rhc also starts the application back up and leaves it running.

Comment 3 Jhon Honce 2014-03-03 15:42:53 UTC

*** This bug has been marked as a duplicate of bug 1030305 ***