Bug 1160494
Summary: | Unhandled ShellExecutionException prevents oo-admin-ctl-gears forcestopgear from pkill'ing gear processes | |||
---|---|---|---|---|
Product: | OpenShift Online | Reporter: | Andy Grimm <agrimm> | |
Component: | Containers | Assignee: | Jhon Honce <jhonce> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 1.x | CC: | jgoulding, jokerman, mmccomas, ruliu | |
Target Milestone: | --- | |||
Target Release: | 2.x | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1162192 (view as bug list) | Environment: | ||
Last Closed: | 2015-02-18 16:52:35 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1162192 |
Description
Andy Grimm
2014-11-05 01:36:16 UTC
oo-admin-ctl-gears uses ApplicationContainer#stop_gear() not ApplicationContainer#force_stop() for better control of gear state. This method does not handle the ShellExecutionException properly. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/26e43acb8358e1d415abe185b968910cfd54c651 Bug 1160494 - Protect Ops stop_gear from cartridge errors force-stop now works on devenv_5288 Verified as follows: 0. Check the max processes limit: [app0-ruliu0.dev.rhcloud.com 54606c4629133999e5000012]\> ulimit -u 250 1. Run as many as processes as possible: [app0-ruliu0.dev.rhcloud.com 54606c4629133999e5000012]\> cat /tmp/1.sh #!/bin/bash for i in `seq 0 249`; do sleep 3600 & done [app0-ruliu0.dev.rhcloud.com 54606c4629133999e5000012]\> /tmp/1.sh 2. Force stop the gear: [root@ip-10-231-32-4 ~]# oo-admin-ctl-gears forcestopgear 54606c4629133999e5000012 Then the gear is stopped and all sleep processes killed. 3. Start and restart the gear: [root@ip-10-231-32-4 ~]# oo-admin-ctl-gears startgear 54606c4629133999e5000012 [root@ip-10-231-32-4 ~]# oo-admin-ctl-gears restartgear 54606c4629133999e5000012 Succeed and the gear is now started. |