Description of problem: ------------------------- While installing RHSC, the redhat-access-plugin-rhsc fails to install. See the following snippet from the installation logs - ----------------------------------------------------------------- wss4j.noarch 0:1.6.10-1.redhat_1.ep6.el6 xalan-j2.noarch 0:2.7.0-9.8.el6 xalan-j2-eap6.noarch 0:2.7.1-6.12.redhat_3.ep6.el6.2 xerces-j2.x86_64 0:2.7.1-12.6.el6_0 xerces-j2-eap6.noarch 0:2.9.1-14_redhat_4.ep6.el6 xml-commons-apis.x86_64 0:1.3.04-3.6.el6 xml-commons-resolver.x86_64 0:1.1-4.18.el6 xml-commons-resolver-eap6.noarch 0:1.2-10.redhat_3.ep6.el6.4 xml-security.noarch 0:1.5.5-1.redhat_1.ep6.el6 xmltooling.noarch 0:1.3.2-10.redhat_4.ep6.el6 xom.noarch 0:1.2.7-1._redhat_3.1.ep6.el6.6 yum-plugin-versionlock.noarch 0:1.1.30-14.el6 Failed: redhat-access-plugin-rhsc.noarch 0:2.1.2-2.el6rhs Complete! ----------------------------------------------------------------- Version-Release number of selected component (if applicable): rhsc-2.1.2-0.32.el6rhs.noarch How reproducible: Tried twice, observed both times. Steps to Reproduce: 1. Download all rhsc rpms and dependent rpms to a directory on the management server. 2. createrepo on the directory created above 3. add this local repo to /etc/yum.repos.d 4. run 'yum install rhsc' Actual results: RHSC installation completes but the redhat-access-plugin-rhsc fails to install. Expected results: The redhat-access-plugin-rhsc should be installed successfully. Additional info:
Following error is seen during installation: ---- Installing : rhsc-dbscripts-2.1.2-0.32.el6rhs.noarch 321/328 Error in PREIN scriptlet in rpm package redhat-access-plugin-rhsc-2.1.2-2.el6rhs.noarch useradd: invalid home directory '%{engine_state}' error: %pre(redhat-access-plugin-rhsc-2.1.2-2.el6rhs.noarch) scriptlet failed, exit status 3 error: install: %pre scriptlet failed (2), skipping redhat-access-plugin-rhsc-2.1.2-2.el6rhs Installing : rhsc-webadmin-portal-2.1.2-0.32.el6rhs.noarch ----
The code that is failing is from bug 1007751[1]. Bala you provided this code and I know it worked in 2.1.1. Do you have any idea why this is now failing? Is it possible the "%{engine_state} variable is no longer being created by rhsc? [1] - https://bugzilla.redhat.com/show_bug.cgi?id=1007751
Created attachment 845929 [details] The fix is attached Spenser, the issue is about missing %{engine_state}. This failure occurs when there is no user %{engine_user} and/or group %{engine_group} present in the system. I have attached a patch which fixes this.
Verified as fixed with redhat-access-plugin-rhsc-2.1.2-3.el6rhs and rhsc-2.1.2-0.33.el6rhs.noarch. The access plugin installs along with RHSC.
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. http://rhn.redhat.com/errata/RHEA-2014-0208.html