Bug 844912 - Stopped added cartridges' status will always be changed after move within district
Summary: Stopped added cartridges' status will always be changed after move within d...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-01 08:58 UTC by Rony Gong 🔥
Modified: 2015-05-15 02:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:42:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
development.log (32.18 KB, text/plain)
2012-08-01 08:58 UTC, Rony Gong 🔥
no flags Details

Description Rony Gong 🔥 2012-08-01 08:58:48 UTC
Created attachment 601688 [details]
development.log

Description of problem:


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

How reproducible:
always


Steps to Reproduce:
1.Create scalable app, eg jbosseap-6.0
2.Embed mysql-5.1
3.Just stop the mysql by
rhc app cartridge stop -a jbosseap -c mysql-5.1

[root@localhost qsjbosseap]# rhc app cartridge status  -a qsjbosseap -c mysql-5.1
Password: 


RESULT:
MySQL is stopped

4.Then move the mysql gear by mysql gear within district 
  
Actual results:
The mysql gear become running status
[root@localhost qsjbosseap]# rhc app cartridge status  -a qsjbosseap -c mysql-5.1
Password: 


RESULT:
MySQL is running


Expected results:
The mysql gear should still be stopped status



Additional info:
Then I stop the whole app, go on moving the mysql gear, mysql still changed to running status, and the move log show mysql component is runing(wrong). So please focus on the code of check mysql gear component status.

Comment 1 Rony Gong 🔥 2012-08-01 09:12:41 UTC
This kind of error also exist in non-scalable app with embed mysql, only stop mysql cartridge, but after move, the mysql will be running status.

Comment 2 John Poelstra 2012-08-01 18:08:47 UTC
per conversation with Rajat, expecting a fix by 5 p.m. today.

Comment 3 Rajat Chopra 2012-08-02 16:55:14 UTC
rev# 40f9344ad9fe289ea45ca28fbb949a3a788d5e85 in crankcase.repo!

Please note the expected behaviour for this bug :
 - When a gear with mysql on it is moved, its state will be determined by the application's status
 - So, stop the app (its framework) and then move the mysql gear (scalable or not) and check the mysql cartridge's state (it should be stopped because the app was stopped)
 - what has changed with the fix? Earlier, if the app was stopped, but the catridge was running, we would keep the cartridge as running after move, now we explicitly stop it because the app was stopped.

Note: this fix is yet to be hot-fixed into stage

Comment 4 Rajat Chopra 2012-08-02 20:34:17 UTC
on stage with pull request#327

Comment 5 Chandrika Gole 2012-08-03 01:13:26 UTC
verified on devenv-stage_228


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