Bug 1190856
| Summary: | RFE: add a "stop-and-lock" operation to oo-admin-ctl-gears | |||
|---|---|---|---|---|
| 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: | bmeng, jgoulding, jokerman, mmccomas | |
| Target Milestone: | --- | Keywords: | NeedsTestCase | |
| Target Release: | 2.x | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1202512 (view as bug list) | Environment: | ||
| Last Closed: | 2015-04-21 18:01:02 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: | 1202512 | |||
|
Description
Andy Grimm
2015-02-09 19:30:48 UTC
.stop_lock is the flag for when a gear is stopped by the user/developer vs. an administrative stop. It is currently the only way a Node knows the difference. So far the only thing I'm aware of stop_lock being used for is to tell "startall" whether or not to start the gear when the node boots, and that is precisely the thing I am trying to affect here. If stop_lock has other uses, then we need to add another flag and make startall key off the other flag (or a combination of the two flags). In reference to our IRC conversation, I'm fine with adding content to the file to differentiate between administrative stops (potentially with a reason given for the stop) and user-initiated stops. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/e42f7414fa7426397683111ec5880fd520f251ab Bug 1190856 - Allow Operator to stop gear with .stop_lock Checked on devenv_5449, the .stop_lock will be generated with given message as content. [root@ip-10-136-82-250 runtime]# cat .stop_lock TEST_MESSAGE The gear can be stopped by the option successfully. And can be started by user. Move bug to verified. |