Bug 798529 - It'll cause metrics to stopping work after stop then restart an app of embeded metrics
It'll cause metrics to stopping work after stop then restart an app of embede...
Product: OpenShift Origin
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Dan McPherson
libra bugs
: Regression
Depends On:
  Show dependency treegraph
Reported: 2012-02-29 02:46 EST by bzhao
Modified: 2015-05-14 18:52 EDT (History)
0 users

See Also:
Fixed In Version: devenv_1650
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-02 16:56:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description bzhao 2012-02-29 02:46:40 EST
Description of problem:
Metrics will stop work after stop then restart an app of embeded metrics

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

How reproducible:

Perl and ruby has only the same issue.

Steps to Reproduce:
1. create an app
#rhc-create-app -a perltest -l bzhao -p xxx -t perl-5.10

2. embed metrics-0.1 cartridge
#rhc-ctl-app -a perltest -l bzhao -p xxx -e add-metrics-0.1

3. stop this app using rhc-ctl-app
#rhc-ctl-app -a perltest -l bzhao -p xxx -c stop

3. restart this app using rhc-ctl-app and observe app and metrics's status
#rhc-ctl-app -a perltest -l bzhao -p xxx -c restart
Actual results:
Metrics will stop work after restart app

Expected results:
started app and metrics service without error successfully and get correct static metrics page without error

Additional info:
#rhc-ctl-app -a perltest -l bzhao -p xxx -c restart
#rhc-ctl-app -a perltest -l bzhao -p xxx -c status
Total Accesses: 0
Total kBytes: 0
Uptime: 10
ReqPerSec: 0
BytesPerSec: 0
BusyWorkers: 1
IdleWorkers: 0
Scoreboard: W....

# rhc-ctl-app -a perltest -p xxx -e status-metrics-0.1 -d
Contacting https://ec2-107-22-156-151.compute-1.amazonaws.com
Response from server:

Exit Code: 0
api_c: placeholder
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
API version:    1.1.2

Metrics is either stopped or inaccessible
Comment 1 Dan McPherson 2012-02-29 11:00:56 EST
This sounds like it is as expected.  And the same as the other embedded carts would behave.  Stop stops everything. Start starts everything.  Restart only restarts the app.

However, now that we have state tracking, this scenario has convinced me that if something is stopped entirely and restart is called we should start everything up.  So restart when started will still only affect the app.  But restart when stopped will mean: the user must have meant start and just didn't realize it was stopped.
Comment 2 bzhao 2012-03-01 20:46:46 EST
Passed verification against rhc-0.87.7-1.el6_2.noarch

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