Bug 1503661
Summary: | warning: group tomcat does not exist - using root | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sam Yangsao <syangsao> |
Component: | tomcat | Assignee: | Coty Sutherland <csutherl> |
Status: | CLOSED ERRATA | QA Contact: | Jan Onderka <jonderka> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | csutherl, mbabacek, mczernek, syangsao |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 18:33:14 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
Sam Yangsao
2017-10-18 14:24:04 UTC
Installation pass and install all packages, but we expecting install to fail. this part is always pass even if group cannot be created due to || : in the end of the line. preinstall scriptlet (using /bin/sh): # add the tomcat user and group /usr/sbin/groupadd -g 91 -r tomcat 2>/dev/null || : Console output: [root@dhcp-10-40-4-110 ~]# groupadd -g 91 test [root@dhcp-10-40-4-110 ~]# yum install tomcat Downloading packages: (1/8): apache-commons-logging-1.1.2-7.el7.noarch.rpm | 78 kB 00:00:00 (2/8): avalon-framework-4.3-10.el7.noarch.rpm | 87 kB 00:00:00 (3/8): tomcat-7.0.76-2.el7.noarch.rpm | 90 kB 00:00:00 (4/8): avalon-logkit-2.1-14.el7.noarch.rpm | 87 kB 00:00:00 (5/8): tomcat-jsp-2.2-api-7.0.76-2.el7.noarch.rpm | 93 kB 00:00:00 (6/8): tomcat-el-2.2-api-7.0.76-2.el7.noarch.rpm | 79 kB 00:00:00 (7/8): tomcat-servlet-3.0-api-7.0.76-2.el7.noarch.rpm | 211 kB 00:00:00 (8/8): tomcat-lib-7.0.76-2.el7.noarch.rpm | 3.9 MB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 4.6 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : tomcat-servlet-3.0-api-7.0.76-2.el7.noarch 1/8 Installing : avalon-logkit-2.1-14.el7.noarch 2/8 Installing : avalon-framework-4.3-10.el7.noarch 3/8 Installing : apache-commons-logging-1.1.2-7.el7.noarch 4/8 Installing : tomcat-jsp-2.2-api-7.0.76-2.el7.noarch 5/8 Installing : tomcat-el-2.2-api-7.0.76-2.el7.noarch 6/8 Installing : tomcat-lib-7.0.76-2.el7.noarch 7/8 Installing : tomcat-7.0.76-2.el7.noarch 8/8 warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: group tomcat does not exist - using root warning: user tomcat does not exist - using root warning: user tomcat does not exist - using root warning: group tomcat does not exist - using root Verifying : apache-commons-logging-1.1.2-7.el7.noarch 1/8 Verifying : tomcat-servlet-3.0-api-7.0.76-2.el7.noarch 2/8 Verifying : tomcat-jsp-2.2-api-7.0.76-2.el7.noarch 3/8 Verifying : avalon-logkit-2.1-14.el7.noarch 4/8 Verifying : avalon-framework-4.3-10.el7.noarch 5/8 Verifying : tomcat-el-2.2-api-7.0.76-2.el7.noarch 6/8 Verifying : tomcat-lib-7.0.76-2.el7.noarch 7/8 Verifying : tomcat-7.0.76-2.el7.noarch 8/8 Installed: tomcat.noarch 0:7.0.76-2.el7 Dependency Installed: apache-commons-logging.noarch 0:1.1.2-7.el7 avalon-framework.noarch 0:4.3-10.el7 avalon-logkit.noarch 0:2.1-14.el7 tomcat-el-2.2-api.noarch 0:7.0.76-2.el7 tomcat-jsp-2.2-api.noarch 0:7.0.76-2.el7 tomcat-lib.noarch 0:7.0.76-2.el7 tomcat-servlet-3.0-api.noarch 0:7.0.76-2.el7 Complete! [root@dhcp-10-40-4-110 ~]# rpm -qa tomcat* tomcat-lib-7.0.76-2.el7.noarch tomcat-servlet-3.0-api-7.0.76-2.el7.noarch tomcat-jsp-2.2-api-7.0.76-2.el7.noarch tomcat-7.0.76-2.el7.noarch tomcat-el-2.2-api-7.0.76-2.el7.noarch To easily reproduce this you can just manually create a user/group that takes uid/gid 91 and then try and install tomcat (Satellite isn't required). Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0992 |