Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJan Pazdziora (Red Hat)
2016-07-01 07:49:56 UTC
Description of problem:
When configuring IPA server on a machine with custom hostname, for example because the server will be base of new identity of new domain, ipa-server-install fails with
The IPA server requires an administrative user, named 'admin'.
This user is a regular system account used for IPA server administration.
IPA admin password:
Password (confirm):
Checking DNS domain example.test., please wait ...
Enter the IP address to use, or press Enter to finish.
Please provide the IP address to be used for this host name:
No usable IP address provided nor resolved.
ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Version-Release number of selected component (if applicable):
ipa-server-4.4.0-0.el7.2.alpha1.x86_64
How reproducible:
Deterministic.
Steps to Reproduce:
1. Get IP address of the current host (say 10.16.46.37).
2. Run hostname ipa.example.test
3. Runecho 10.16.46.37 ipa.example.test >> /etc/hosts
4. Run ping ipa.example.test and verify that it's resolvable and reachable.
5. Run ipa-server-install, confirm that you want to use example.test domain.
Actual results:
Checking DNS domain example.test., please wait ...
Enter the IP address to use, or press Enter to finish.
Please provide the IP address to be used for this host name:
No usable IP address provided nor resolved.
ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
The logfile ends with
2016-07-01T07:15:53Z DEBUG session_auth_duration: 0:20:00
2016-07-01T07:15:54Z DEBUG Mounting ipaserver.rpcserver.jsonserver_kerb() at '/json'
2016-07-01T07:15:54Z DEBUG session_auth_duration: 0:20:00
2016-07-01T07:15:54Z DEBUG Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index'
2016-07-01T07:15:54Z INFO Checking DNS domain example.test., please wait ...
2016-07-01T07:15:54Z DEBUG The DNS query name does not exist: ipa.example.test.
2016-07-01T07:16:04Z DEBUG File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute
return_value = self.run()
File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 318, in run
cfgr.run()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 308, in run
self.validate()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 317, in validate
for nothing in self._validator():
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda>
step = lambda: next(self.__gen)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
value = gen.send(prev_value)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 564, in _configure
next(validator)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 449, in _handle_exception
self.__parent._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 446, in _handle_exception
super(ComponentBase, self)._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda>
step = lambda: next(self.__gen)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
value = gen.send(prev_value)
File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 63, in _install
for nothing in self._installer(self.parent):
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 1348, in main
install_check(self)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 264, in decorated
func(installer)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 603, in install_check
dns.install_check(False, api, False, options, host_name)
File "/usr/lib/python2.7/site-packages/ipaserver/install/dns.py", line 260, in install_check
True, options.ip_addresses)
File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 504, in get_server_ip_address
sys.exit(1)
2016-07-01T07:16:04Z DEBUG The ipa-server-install command failed, exception: SystemExit: 1
2016-07-01T07:16:04Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Expected results:
No error -- the hostname is clear and /etc/hosts makes it resolvable.
Additional info:
This breaks IPA in containers.
Comment 4Jan Pazdziora (Red Hat)
2016-07-08 08:39:18 UTC
(In reply to Petr Vobornik from comment #3)
> Can you reproduce even with ipa-4.4.0-1.el7?
The problem no longer seems to be present with that build. Thank you.
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.
https://rhn.redhat.com/errata/RHBA-2016-2404.html
Description of problem: When configuring IPA server on a machine with custom hostname, for example because the server will be base of new identity of new domain, ipa-server-install fails with The IPA server requires an administrative user, named 'admin'. This user is a regular system account used for IPA server administration. IPA admin password: Password (confirm): Checking DNS domain example.test., please wait ... Enter the IP address to use, or press Enter to finish. Please provide the IP address to be used for this host name: No usable IP address provided nor resolved. ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information Version-Release number of selected component (if applicable): ipa-server-4.4.0-0.el7.2.alpha1.x86_64 How reproducible: Deterministic. Steps to Reproduce: 1. Get IP address of the current host (say 10.16.46.37). 2. Run hostname ipa.example.test 3. Runecho 10.16.46.37 ipa.example.test >> /etc/hosts 4. Run ping ipa.example.test and verify that it's resolvable and reachable. 5. Run ipa-server-install, confirm that you want to use example.test domain. Actual results: Checking DNS domain example.test., please wait ... Enter the IP address to use, or press Enter to finish. Please provide the IP address to be used for this host name: No usable IP address provided nor resolved. ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information The logfile ends with 2016-07-01T07:15:53Z DEBUG session_auth_duration: 0:20:00 2016-07-01T07:15:54Z DEBUG Mounting ipaserver.rpcserver.jsonserver_kerb() at '/json' 2016-07-01T07:15:54Z DEBUG session_auth_duration: 0:20:00 2016-07-01T07:15:54Z DEBUG Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index' 2016-07-01T07:15:54Z INFO Checking DNS domain example.test., please wait ... 2016-07-01T07:15:54Z DEBUG The DNS query name does not exist: ipa.example.test. 2016-07-01T07:16:04Z DEBUG File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute return_value = self.run() File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 318, in run cfgr.run() File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 308, in run self.validate() File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 317, in validate for nothing in self._validator(): File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner self._handle_exception(exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner step() File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda> step = lambda: next(self.__gen) File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 564, in _configure next(validator) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner self._handle_exception(exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 449, in _handle_exception self.__parent._handle_exception(exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 446, in _handle_exception super(ComponentBase, self)._handle_exception(exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner step() File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda> step = lambda: next(self.__gen) File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 63, in _install for nothing in self._installer(self.parent): File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 1348, in main install_check(self) File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 264, in decorated func(installer) File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 603, in install_check dns.install_check(False, api, False, options, host_name) File "/usr/lib/python2.7/site-packages/ipaserver/install/dns.py", line 260, in install_check True, options.ip_addresses) File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 504, in get_server_ip_address sys.exit(1) 2016-07-01T07:16:04Z DEBUG The ipa-server-install command failed, exception: SystemExit: 1 2016-07-01T07:16:04Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information Expected results: No error -- the hostname is clear and /etc/hosts makes it resolvable. Additional info: This breaks IPA in containers.