FreeIPA installation fails (RHCSA preparation)

Issues related to applications and software problems
Post Reply
chlebik
Posts: 2
Joined: 2019/06/17 16:10:54

FreeIPA installation fails (RHCSA preparation)

Post by chlebik » 2019/06/17 16:20:09

Welcome everybody,

I am new to CentOS as I am trying to pass RHCSA exam. Therefore I've started studying with Cert Guide (book) and tried to install FreeIPA on my VBox in order to have fully external authentication/login server to practice on.

However during installation of FreeIPA I get error when setting DNS:
Restarting the KDC
Configuring DNS (named)
[1/12]: generating rndc key file
[2/12]: adding DNS container
[3/12]: setting up our zone
[4/12]: setting up reverse zone
[5/12]: setting up our own record
[error] RequirementError: 'idnsname' is required
ipapython.admintool: ERROR 'idnsname' is required
ipapython.admintool: ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Error log file shows error here:
2019-06-17T16:00:30Z DEBUG [error] RequirementError: 'idnsname' is required
2019-06-17T16:00:30Z DEBUG File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 178, in execute
return_value = self.run()
File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 319, in run
return cfgr.run()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 364, in run
return self.execute()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 389, in execute
for rval in self._executor():
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 434, in __runner
exc_handler(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 463, in _handle_execute_exception
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 424, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, 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 658, in _configure
next(executor)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 434, in __runner
exc_handler(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 463, in _handle_execute_exception
self._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 521, in _handle_exception
self.__parent._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 518, in _handle_exception
super(ComponentBase, self)._handle_exception(exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 453, in _handle_exception
six.reraise(*exc_info)
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 424, in __runner
step()
File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 421, 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 65, in _install
for unused in self._installer(self.parent):
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/__init__.py", line 583, in main
master_install(self)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 250, in decorated
func(installer)
File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 872, in install
dns.install(False, False, options)
File "/usr/lib/python2.7/site-packages/ipaserver/install/dns.py", line 341, in install
bind.create_instance()
File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 724, in create_instance
self.start_creation()
File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 570, in start_creation
run_step(full_msg, method)
File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 560, in run_step
method()
File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 860, in __add_self
self.__add_master_records(self.fqdn, self.ip_addresses)
File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 857, in __add_master_records
add_ptr_rr(reverse_zone, addr, fqdn, None, api=self.api)
File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 374, in add_ptr_rr
add_rr(zone, name, "PTR", normalize_zone(fqdn), dns_backup, api)
File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 359, in add_rr
api.Command.dnsrecord_add(unicode(zone), unicode(name), **addkw)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 450, in __call__
return self.__do_call(*args, **options)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 476, in __do_call
self.validate(**params)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 763, in validate
param.validate(value, supplied=param.name in kw)
File "/usr/lib/python2.7/site-packages/ipalib/parameters.py", line 873, in validate
raise RequirementError(name=self.name)

2019-06-17T16:00:30Z DEBUG The ipa-server-install command failed, exception: RequirementError: 'idnsname' is required
2019-06-17T16:00:30Z ERROR 'idnsname' is required
2019-06-17T16:00:30Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Ok, error message is clear. However as I am completly new to DNS/FreeIPA/Kerberos/etc. I even do not know what I should set/search for. What is 'idnsname'? I am following a couple of tutorials and my certification guide but it seems that for the time being I've provided all data during configuration phase.

Thraex
Posts: 12
Joined: 2019/05/14 19:50:28

Re: FreeIPA installation fails (RHCSA preparation)

Post by Thraex » 2019/06/17 16:58:27

Do you have your /etc/hosts file with the correct host/client to IP's mapped? I think it needs either that or a DNS server to work. Either way, this site helped me get it going pretty easily. https://www.digitalocean.com/community/ ... n-centos-7

chlebik
Posts: 2
Joined: 2019/06/17 16:10:54

Re: FreeIPA installation fails (RHCSA preparation)

Post by chlebik » 2019/06/17 17:04:17

Yes, I got mapping for my local IP and example domain. That requirement is always mentioned in all tutorials I was reading.

But what I did is for the time being disabling installation of DNS. And right now the FreeIPA was installed successfully.
Last edited by chlebik on 2019/06/18 14:01:35, edited 1 time in total.

hunter86_bg
Posts: 1789
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: FreeIPA installation fails (RHCSA preparation)

Post by hunter86_bg » 2019/06/18 03:42:15

What is the domain you are using.
It shouldn't exist at all and should be in FQDN format.

I think I used 'freeipa.example5.org' as a domain when I have prepared for my RHCSA.

Keep in mind that 'example.com' is a special one - so just create one and check if it really exist (because FreeIPA is also dooing it).

Post Reply