Bug 494980

Summary: setup-ds-admin.pl -u and silent setup complain about ServerIpAddress
Product: [Retired] 389 Reporter: Rich Megginson <rmeggins>
Component: Install/UninstallAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: high    
Version: 1.2.0CC: benl, mgregg, nkinder, yzhang
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-29 23:11:59 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: 249650, 493682    
Attachments:
Description Flags
patch
none
cvs commit log none

Description Rich Megginson 2009-04-08 21:27:01 UTC
Running setup-ds-admin.pl -u or silent setup (-s -f file.inf) report the following errors:

The map value 'ServerIpAddress' for key 'as_addr' did not map to a value in any of the given information files

Comment 1 Rich Megginson 2009-04-08 21:28:13 UTC
Created attachment 338807 [details]
patch

Comment 2 Rich Megginson 2009-04-08 22:48:37 UTC
Created attachment 338820 [details]
cvs commit log

Reviewed by: nkinder (Thanks!)
Fix Description: We were only setting the default ServerIpAddress in the regular interactive mode, not in -u or silent mode.  In addition, I found several other parameters that had the same problem.  I borrowed code from the interactive mode code to set the default values.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no

Comment 3 Fedora Update System 2009-04-09 01:37:41 UTC
fedora-ds-admin-1.1.7-3.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/fedora-ds-admin-1.1.7-3.fc10

Comment 4 Fedora Update System 2009-04-09 01:40:21 UTC
fedora-ds-admin-1.1.7-3.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/fedora-ds-admin-1.1.7-3.fc9

Comment 5 Fedora Update System 2009-04-09 16:09:16 UTC
fedora-ds-admin-1.1.7-3.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2009-04-09 16:12:15 UTC
fedora-ds-admin-1.1.7-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Yi Zhang 2009-04-13 22:52:38 UTC
test 1 :
ds.ini has this value: (the real ipaddress of test host is:10.16.98.123)
[admin]
SysUser=                 nobody
Port=                    9830
ServerIpAddress=         192.168.122.132


result:
>[root@mv64d-vm ~]# setup-ds-admin.pl -s -f ./ds.ini 
Creating directory server . . .
Your new DS instance 'mv64d-vm' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Error updating console.conf:
Content-type: text/html

NMC_Status: 1
NMC_ErrType: Application Error
NMC_ErrInfo: Attribute[configuration.nsServerAddress] has invalid value
Could not update the httpd engine configuration.
Failed to create and configure the admin server
Exiting . . .
Log file is '/tmp/setupg1ahj0.log'

Comment 8 Yi Zhang 2009-04-13 22:58:11 UTC
test 2: ds.ini has empty value for ServerIpAddress
[admin]
SysUser=                 nobody
Port=                    9830
ServerIpAddress=
ServerAdminID=           admin
ServerAdminPwd=          redhat123



result:
[root@mv64d-vm ~]# setup-ds-admin.pl -s -f ./ds.ini 
Creating directory server . . .
Your new DS instance 'put-you-name-here' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setup2IDPgt.log'

Comment 9 Rich Megginson 2009-04-13 23:20:27 UTC
This looks correct.

Comment 10 Yi Zhang 2009-04-14 16:15:22 UTC
I will perform same test on other RHEL platform as well. If all passed, I will close the bug.

(Thanks Rich)

Comment 11 Yi Zhang 2009-04-14 23:21:23 UTC
Test on RHEL 5 64bit
========  test 1: setup.ini file has wrong ip address ================


Test result:
[root@mv64a-vm ~]# setup-ds-admin.pl -s -f ./sample.ds.ini 
Creating directory server . . .
Your new DS instance 'mv64a-vm' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Error updating console.conf:
Content-type: text/html

NMC_Status: 1
NMC_ErrType: Application Error
NMC_ErrInfo: Attribute[configuration.nsServerAddress] has invalid value
Could not update the httpd engine configuration.
Failed to create and configure the admin server
Exiting . . .
Log file is '/tmp/setuppcZOIw.log'

===> install failed, test pass



============= test 2 setup.ini has no ip address ==========
setup-ds-admin.pl -s -f ./sample.ds.ini 
Creating directory server . . .
Your new DS instance 'mv64a-vm' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupZcbxVK.log'

==> install success, test pass


Same test has run on RHEL 5 i386

bug closed

Comment 12 Chandrasekar Kannan 2009-04-29 23:11:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-0455.html