| Summary: | old nodejs apps have root-owned dependency symlinks | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Andy Grimm <agrimm> |
| Component: | Containers | Assignee: | Dan Mace <dmace> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | bmeng, jgoulding |
| 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: | 2014-01-30 00:52:54 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: | |
|
Description
Andy Grimm
2013-12-09 21:04:43 UTC
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/3b70512681c28bdd451bf308beaceb032df11890 Bug 1039726: Fix ownership of files in deployments dirs during upgrade Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/fb1563dfb101080a9c449d5464aaafbf99c57aeb Bug 1039726: Fix ownership of files in deployments dirs during upgrade Manually change the owner and the selinux label for the nodejs app to simulate the issue. [root@ip-10-45-150-206 runtime]# ls -Zd build-dependencies dependencies drwxr-x---. root root system_u:object_r:openshift_var_lib_t:s0 build-dependencies drwxr-x---. root root system_u:object_r:openshift_var_lib_t:s0 dependencies After upgrade to devenv_4120 (where the fix merged), and migrate the gears. The ownership issue has been fixed. [root@ip-10-45-150-206 runtime]# ls -Zd build-dependencies dependencies drwxr-x---. 52a8074851549dbc38000052 52a8074851549dbc38000052 system_u:object_r:openshift_var_lib_t:s0:c0,c1002 build-dependencies drwxr-x---. 52a8074851549dbc38000052 52a8074851549dbc38000052 system_u:object_r:openshift_var_lib_t:s0:c0,c1002 dependencies Will move the bug to verified once the fix is merged into stage branch. For the symlink part, Before upgrade: [root@ip-10-45-150-206 nodejs]# ls -Z node_modules lrwxrwxrwx. root root unconfined_u:object_r:openshift_var_lib_t:s0 node_modules -> /var/lib/openshift/52a8074851549dbc38000052/app-root/runtime/dependencies/nodejs/node_modules After upgrade: [root@ip-10-45-150-206 nodejs]# ls -Z node_modules lrwxrwxrwx. 52a8074851549dbc38000052 52a8074851549dbc38000052 system_u:object_r:openshift_var_lib_t:s0:c0,c1002 node_modules -> /var/lib/openshift/52a8074851549dbc38000052/app-root/runtime/dependencies/nodejs/node_modules @dan Will this fix pulled to STAGE for sprint37? I found there are two PRs for this fix on STG, but did not get the ami which contains the PRs. Meng, It didn't make the stage cut, so we'll be applying the patch manually later on. The fix has been merged into devenv-stage_613 Checked on devnev-stage_613, issue has been fixed. After migrate, the owner_ship has been updated lrwxrwxrwx. 52aa9f60931fa01f34000007 52aa9f60931fa01f34000007 system_u:object_r:openshift_var_lib_t:s0:c0,c1000 node_modules -> /var/lib/openshift/52aa9f60931fa01f34000007/app-root/runtime/dependencies/nodejs/node_modules |