Bug 872123
Summary: | Stopped app's ~/app-root/runtime/.state file changed from "stopped" to "started" after git push | ||
---|---|---|---|
Product: | OKD | Reporter: | Meng Bo <bmeng> |
Component: | Containers | Assignee: | Jhon Honce <jhonce> |
Status: | CLOSED UPSTREAM | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | dmace, dmcphers, jhonce, mmcgrath, qgong |
Target Milestone: | --- | Keywords: | FutureFeature, Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-16 16:16:31 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
Meng Bo
2012-11-01 10:29:06 UTC
Reducing priority for this release. The bug still exists in production (but takes a slightly different form: the state is incorrect post-build, but is stuck in "deploying" rather than "started"). The problem in the current master branch is in the stop_app function in the abstract cart util: origin-server/cartridges/openshift-origin-cartridge-abstract/abstract/info/lib/util The function does an unconditional "set_app_state started" which doesn't honor any stop_lock which might be present in the gear's cart directories. Unfortunately, this hook is invoked from the abstract start_app.sh script which doesn't provide enough context to easily check the locks, meaning it'll take too much time and testing to sort out this late in the release. So, given the fact that it's not a regression, and that the fix is non-trivial, we're going to lower the priority for now and tackle it in the next release. Also faild for set app idle first, then gitpush to this app. After gitpush, app is idle actuall, but app status show app is started. Checked on devenv_2547, issue has been fixed. Make app stopped or idle before git push, do some change and push it, check the app status again. The status is still keeping idle or stopped. Check the .state file under $OPENSHIFT_REPO_DIR/runtime, it is still keeping idle or stopped. Mark bug as VERIFIED. Fix broke 'rhc app start...' Fix reverted in https://github.com/openshift/origin-server/pull/1157 No easy solution to problem. The issue is the code from git push and rhc start use the same function, one requires the state to change while the other does not. The cartridge refactor will not create the same problem. Jhonce, Can this be fixed before the cartridge refactor? The issue is the code from git push and rhc start use the same function, one requires the state to change while the other does not. The cartridge refactor will not create the same problem. Note: This is being worked on in v2 and will likely not be valid after that. Fixed in new cartridge format |