Bug 1064040 - Taking a snapshot over ssh of a gear while it is stopped, starts the gear and leaves it running
Summary: Taking a snapshot over ssh of a gear while it is stopped, starts the gear and...
Keywords:
Status: CLOSED DUPLICATE of bug 1030305
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-11 21:16 UTC by Wesley Hearn
Modified: 2015-05-14 23:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-03 15:42:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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