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
Created attachment 338807 [details] patch
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
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
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
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.
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.
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'
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'
This looks correct.
I will perform same test on other RHEL platform as well. If all passed, I will close the bug. (Thanks Rich)
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
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