#2692 ipa-server-install ignores --hostname
Closed: Fixed Opened by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=817071 (Red Hat Enterprise Linux 6)

ipa-sever-install has optinal parameters, which have all the behavior that if I
specify a value on the command line I'm not asked interactively for the
install.
This is not true for --hostname.
Reproducer:
# ipa-server-install --hostname foo.bar --no-host-dns --domain bar
The log file for this installation can be found in
/var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.
This includes:
<snip />
To accept the default shown in brackets, press the Enter key.
Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
<hostname>.<domainname>
Example: master.example.com.
Server host name [foo.bar]:
###### dkovalsk: I'm actually asked for the hostname, even if I specify the
correct FQDN
Warning: skipping DNS resolution of host foo.bar
Warning: hostname foo.bar does not match system hostname ###REAL_DOMAIN_CUT###
System hostname will be updated during the installation process
to prevent service failures.
#### dkovalsk: domain is properly skipped because it's specified on the command
line
Unable to resolve IP address for host name
Please provide the IP address to be used for this host name:
### (and so forth)
ipa-server-2.1.3-9.el6.x86_64
ipa-server-2.2.0-11.el6.x86_64

master: c481e40d78023731ec9def5fd367bed8c75cd416[[BR]]
ipa-3-1: 39ec75bef9077c0e520708ae22b9a9196b68105e

Metadata Update from @mkosek:
- Issue assigned to lroot
- Issue set to the milestone: Future Releases

master:

  • b8ebce7b185f4c934be693a1fbefe5fd2f279e38 ipatests: test_installation: add install test scenarios

ipa-4-9:

  • a21311095d3b918fcb0f5fe28669e385103c31eb ipatests: test_installation: add install test scenarios
Metadata