Bug 1281912
Summary: | oo-admin-chk doesn't recognize when gear no longer exists on node | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Rory Thrasher <rthrashe> |
Component: | Node | Assignee: | Rory Thrasher <rthrashe> |
Status: | CLOSED NOTABUG | QA Contact: | Jianwei Hou <jhou> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.2.0 | CC: | aos-bugs, jialiu, jokerman, mmccomas |
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: | 2015-12-07 03:06:53 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
Rory Thrasher
2015-11-13 19:04:36 UTC
"rm -rf /var/lib/openshift/<UUID>" does not trigger error message. But delete gear uuid entry from /etc/passwd (or userdel -f -r <uuid>) will trigger the error. After some exploration, it looks like there was previously a check for the gear directory in oo-admin-chk. It was removed for speed purposes and because the check existed elsewhere in oo-accept-node <https://github.com/openshift/origin-server/blob/master/node-util/sbin/oo-accept-node#L594>. QE: Please verify that oo-accept-node will catch an instance of a user existing in /etc/passd but not having a corresponding gear directory in /var/lib/openshift/ 1. Create any app rhc create-app myapp python-3.3 2. Manually delete the app from the node rm -rf /var/lib/openshift/GEARUUID 3. Run oo-accept-node from the broker If oo-accept-node reports a failure like below, then this check exists and this bug is notabug. FAIL: user {gear_uuid} does not have a home directory /var/lib/openshift/{gear_uuid} Yeah, oo-accept-node reports a failure: # oo-accept-node FAIL: user jialiu-php53app-1 does not have a home directory /var/lib/openshift/jialiu-php53app-1 FAIL: Gear does not have an OPENSHIFT_GEAR_DNS variable: 'jialiu-php53app-1' 2 ERRORS So according to comment 2, close it as "NOTABUG". |