Bug 1118717
Summary: | [JBossFuse]Should check whether java process exists when stop a stopped fuse app | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | xjia <xjia> |
Component: | Fuse | Assignee: | Kurt T Stam <kurt.stam> |
Status: | CLOSED WONTFIX | QA Contact: | David Simansky <dsimansk> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 2.2.0 | CC: | aileenc, janstey, 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: | 2017-05-31 18:22:11 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
xjia
2014-07-11 10:33:27 UTC
The error in the log says that the instance.properties does not exist (presumably because the instance is already down). It does check if the process is still up after that 'if ps -p $PID > /dev/null;'. I think we should break the first line 'PID=`cat $FUSE_PID_FILE ...' up to make sure this file exists and stop if it does not. Applied fixes: https://github.com/jboss-fuse/fuse-openshift-cartridge/commit/2ca3f37ec32bb12c07b58ec089b3150de50b860e https://github.com/jboss-fuse/amq-openshift-cartridge/commit/53430962b203d5625568ec688ec8ea82da990e9d Merged in the appropriate places. Jon, which RPM will contain this fix? If we don't need any more product fixes, the next cartridge version will be 6.1.0.redhat.385-3. Gonna wait until we have a few more fixes in place before building another set of RPMs though. Version: openshift-origin-cartridge-fuse-6.1.0.redhat.387-3.el6op.noarch.rpm Sorry, This issue is still existing. Could you help check code in /usr/libexec/openshift/cartridges/fuse/bin/control ? function stop() { if [ -f $AMQ_PID_FILE ]; then PID=`cat $FUSE_PID_FILE | grep "item.0.pid" | awk -F " = " '{print $2}'` AMQ_PID_FILE is a mistake. It should be "FUSE_PID_FILE" instead. Oops nice copy-paste error there. Fixed in: https://github.com/jboss-fuse/fuse-openshift-cartridge/commit/62619a02191837a4d11f8537db37863a5faa8f0e in both master and openshift-enterprise-6.1 branch. Could you move this bug "ON_QA" ? Thanks Version: openshift-origin-cartridge-fuse-6.1.0.redhat.389-1.el6op.noarch.rpm openshift-origin-cartridge-amq-6.1.0.redhat.389-1.el6op.noarch.rpm Step: [root@broker ~]# rhc app stop fuse RESULT: fuse stopped [root@broker ~]# rhc app stop amq RESULT: amq stopped [root@broker ~]# rhc app stop amq RESULT: amq stopped [root@broker ~]# rhc app stop amq RESULT: amq stopped According to comment #7, verify this bug. We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause. |