Bug 1006557
Summary: | stop_lock gears have status of "started" | |||
---|---|---|---|---|
Product: | OpenShift Online | Reporter: | Matt Woodson <mwoodson> | |
Component: | Image | Assignee: | Paul Morie <pmorie> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
Severity: | low | Docs Contact: | ||
Priority: | medium | |||
Version: | 2.x | CC: | bmeng, chunchen, dmcphers, mwoodson, pmorie, twiest, xtian | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1207486 (view as bug list) | Environment: | ||
Last Closed: | 2014-01-30 00:48:39 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: | 1207486 |
Description
Matt Woodson
2013-09-10 19:54:26 UTC
Any change of state, ie starting the application will reset the values correctly. Are these V1 gears upgraded to V2? (In reply to Jhon Honce from comment #1) > Any change of state, ie starting the application will reset the values > correctly. > The .state file is update when stop/starting one of these gears. > Are these V1 gears upgraded to V2? On the host I looked at, all of the gears in this state have been migrated from V1 to V2. To tell that it was migrated to V2 I checked for the existence of .env/CARTRIDGE_VERSION_2 This has only been found on V1 created applications. Resolving issue would require writing a script to transverse all gears on a Node and ensuring that stop_lock and .state are consistent. I have modified watchman to detect and correct this when it happens. Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/300f8aaa02a1d3631f2c181e633c276a526d9c17 Fix bug 1006557: make watchman check for hanging stop_lock files Checked on devenv_4003, 1. Touch .stop_lock for a started gear, [root@ip-10-239-15-120 runtime]# ls -al total 28 drwxr-x---. 5 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:59 . drwxr-xr-x. 4 root 527c7e73aef9e993f300000c 4096 Nov 8 01:02 .. drwxr-x---. 2 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:02 build-dependencies lrwxrwxrwx. 1 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 7 Nov 8 01:02 data -> ../data drwxr-x---. 3 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:02 dependencies drwxr-x---. 6 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:04 repo -rw-r-----. 1 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 8 Nov 8 01:28 .state -rw-r-----. 1 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 8 Nov 8 01:28 .stop_lock 2. Check the /var/log/messages for the rhc-watchman log Found: Nov 8 02:00:10 ip-10-239-15-120 rhc-watchman[2051]: watchman deleted stop lock for user 527c7e73aef9e993f300000c because the state of the gear was STARTED 3. Check the stop_lock in the gear dir again, the stop_lock has been removed automatically. [root@ip-10-239-15-120 runtime]# ls -al total 24 drwxr-x---. 5 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 02:00 . drwxr-xr-x. 4 root 527c7e73aef9e993f300000c 4096 Nov 8 01:02 .. drwxr-x---. 2 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:02 build-dependencies lrwxrwxrwx. 1 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 7 Nov 8 01:02 data -> ../data drwxr-x---. 3 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:02 dependencies drwxr-x---. 6 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 4096 Nov 8 01:04 repo -rw-r-----. 1 527c7e73aef9e993f300000c 527c7e73aef9e993f300000c 8 Nov 8 01:28 .state For stopped gear, it will not be impacted. Move bug to verified. |