Bug 918764
Summary: | Unable to delete an app when userid is missing from /etc/passwd | ||
---|---|---|---|
Product: | OKD | Reporter: | Thomas Wiest <twiest> |
Component: | Containers | Assignee: | Paul Morie <pmorie> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | bmeng, chunchen, dmcphers, whearn, xtian |
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: | 2013-03-15 13:53:20 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
Thomas Wiest
2013-03-06 20:02:39 UTC
The root cause for the error message being observed is that the system is in a state where the user is missing from /etc/passwd but the broker still considers the application to exist. The UnixUser class reads /etc/passwd to get the location of the user's home directory. Because the user uid is passed in from mcollection, the logic which is intended to check for the case of an already existing user passes: https://github.com/openshift/origin-server/blob/master/node/lib/openshift-origin-node/model/unix_user.rb#L164 The exception on the following line is then raised because @homedir is nil. Addendum to above comment: I trying to determine how the system got into this state, as this could be due to another bug. Pull request has been merged. Checked on devenv-stage_313, issue has been fixed. 1.Create app 2.Remove the user of the gear from /etc/passwd 3.Try to delete the app App is deleted successfully. Mark bug as verified. |