Bug 134500

Summary: installer fails for host using NIS
Product: Red Hat Satellite 5 Reporter: Richard Keech <rkeech>
Component: InstallerAssignee: Mike McCune <mmccune>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cperry, nobody
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-24 17:54:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 145467    

Description Richard Keech 2004-10-04 03:47:34 UTC
Description of problem:

Installation of Satellite 3.4 failed for a system which had
NIS enabled.  Disabling NIS allowed proper installation to 
proceed.

Installer failure indications did not suggest the 
underlying cause.


Version-Release number of selected component (if applicable):

Satellite 3.4.0-38.


The installer failed at the point where the database instance
was first created.  Failure dialog gave text 
"sat-install db connect errors: (rhnsat/rhnsat@(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) )
(CONNECT_DATA = (SID = rhnsat) ) )): 12541: ORA-12541: TNS:no listener"

The underlying cause ended up being that user/group oracle was/were 
already defined in NIS.  

Installation succeeded after NIS was shutdown (service ypbind stop).


I suggest that the installer better test for the possibility
of username collision and abort with an obvious error message.


I suggest that the installer documentation indicate the possibility
of name collision.

Comment 1 Clifford Perry 2004-10-04 14:02:11 UTC
I encountered this same issue, and had in my inbox to create a
bugzilla on this to have documented that NIS + Satellite does not
always mix well. 

I would suggest to change the satellite install script logging to show
exit status and/or command output - reviewing the log file you do not
know/see that the usermod command failed. 

It took me some tracking down before I relealised that the cause of my
installer failure was due to not being able to correctly add/modify
the oracle user group permissions. 


Cliff. 

 + mkdir -p /rhnsat 
 
 + chown oracle:dba /rhnsat 
 
 + usermod -G oracle,dba,apache oracle 
 
 + su - oracle -c '~/admin/9.2.0/create-db.sh --db rhnsat --user
rhnsat -- 
password rhnsat --datadir /rhnsat/data/rhnsat --admindir
/rhnsat/admin/rhnsat' 
 

Comment 4 Robin Norwood 2006-10-17 16:03:05 UTC
mass reassign to mmccune