Bug 494980
| Summary: | setup-ds-admin.pl -u and silent setup complain about ServerIpAddress | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] 389 | Reporter: | Rich Megginson <rmeggins> | ||||||
| Component: | Install/Uninstall | Assignee: | Rich Megginson <rmeggins> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 1.2.0 | CC: | 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
Rich Megginson
2009-04-08 21:27:01 UTC
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 |