Bug 1048247 - [RHSC] redhat-access-plugin-rhsc failed to install while installing rhsc
Summary: [RHSC] redhat-access-plugin-rhsc failed to install while installing rhsc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: redhat-access-plugin-rhsc
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Keith Robertson
QA Contact: Shruti Sampat
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-03 13:40 UTC by Shruti Sampat
Modified: 2016-07-04 01:34 UTC (History)
10 users (show)

Fixed In Version: redhat-access-plugin-rhsc-2.1.2-3.el6rhs
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-25 08:14:03 UTC
Embargoed:


Attachments (Terms of Use)
The fix is attached (412 bytes, patch)
2014-01-06 05:56 UTC, Bala.FA
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Shruti Sampat 2014-01-03 13:40:36 UTC
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:

Comment 2 Prasanth 2014-01-03 15:12:57 UTC
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
----

Comment 3 Spenser Shumaker 2014-01-03 15:51:15 UTC
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

Comment 4 Bala.FA 2014-01-06 05:56:31 UTC
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.

Comment 5 Shruti Sampat 2014-01-16 09:17:47 UTC
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.

Comment 7 errata-xmlrpc 2014-02-25 08:14:03 UTC
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


Note You need to log in before you can comment on or make changes to this bug.