Red Hat Bugzilla – Bug 845162
MySQL status hook does not correctly show true status
Last modified: 2015-05-14 18:57:28 EDT
Description of problem:
Mysql status is wrong
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an app with mysql embedded
2. Kill the mysql process by ssh-ing into the gear
3. check status from cli tools
mysql is running
mysql should appear as stopped or inaccessible
In status function of the mysql_ctl file :
The pid file is executed directly instead reading its contents
And the runcon set for finding out if mysql_safe is running is insufficient for pgrep (should use user's uid as well)
Fixed with git commit 9183866fe72a1cd839b9a95cbe5dd3610c057d30. Waiting to push this out.
Issued a pull request : https://github.com/openshift/crankcase/pull/324 for this fix -- awaiting bot build results.
Pull request for stage hotfix : https://github.com/openshift/crankcase/pull/327
Verified for mongodb and mysql on stg_228.
[root@localhost mytest]# rhc app cartridge status -a qs1jbossas -c mongodb-2.0
MongoDB is stopped