#4561 ipa-server-install modifies files before user agreement
Closed: Fixed None Opened 9 years ago by mbasti.

At least function get_server_ip_address() modify hosts file before user agreed the installation.

This has a side effect: if any DNS specific validation in ipa-server-install raises an error, user get message when is trying to install server again

IPA server is already configured on this system.

even if installation itself hasn't started.

This is caused by storing sysrestore data in function get_server_ip_addres (and probably in other functions too), because installer refuse to install IPA server if detects any statefile or restore file.

# ipa-server-install --setup-dns --reverse-zone 10.in-addr.arpa.
.....
Please provide a realm name [EXAMPLE.COM]: 
Do you want to configure DNS forwarders? [yes]: no
No DNS forwarders configured
There is no IP address matching reverse zone 10.in-addr.arpa..

# ipa-server-install --setup-dns
The log file for this installation can be found in /var/log/ipaserver-install.log
IPA server is already configured on this system.
If you want to reinstall the IPA server, please uninstall it first using 'ipa-server-install --uninstall'.

During processing of remaining tickets in 4.2 Backlog, this ticket was found as suitable to be fixed in the nearest bugfixing branch - which is 4.2.x.

master:

  • 0bcf0c1 Installer: do not modify /etc/hosts before user agreement

ipa-4-2:

  • af10e86 Installer: do not modify /etc/hosts before user agreement

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.2.1

7 years ago

Login to comment on this ticket.

Metadata