#5420 ipa-replica-install without resovalble A/AAAA records fail during DS install
Closed: Fixed None Opened 8 years ago by mbasti.

Replica install should fail instantly, or check in DS install should not require to be A/AAAA records resovalble.

Please note that there is also warning the records are not resolvable.

[ipa.ipatests.test_integration.host.Host.replica1.ParamikoTransport] RUN ['ipa-replica-install', '-U', '-p', 'Secret123', '-w', 'Secret123', '--ip-address', '192.168.129.102', '--setup-ca']
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] RUN ['ipa-replica-install', '-U', '-p', 'Secret123', '-w', 'Secret123', '--ip-address', '192.168.129.102', '--setup-ca']
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] ipa         : ERROR    Could not resolve hostname replica1.ipa.test using DNS. Clients may not function properly. Please check your DNS setup. (Note that this check queries IPA DNS directly and ignores /etc/hosts.)
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] Check connection from replica to remote master 'master.ipa.test':

...

[ipa.ipatests.test_integration.host.Host.replica1.cmd25]   [25/43]: creating DS keytab
[ipa.ipatests.test_integration.host.Host.replica1.cmd25]   [error] DNSNotARecordError: Host does not have corresponding DNS A/AAAA record
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] ipa.ipapython.install.cli.install_tool(Replica): ERROR    Host does not have corresponding DNS A/AAAA record
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] ipa.ipapython.install.cli.install_tool(Replica): ERROR    The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] Your system may be partly configured.
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] Run /usr/sbin/ipa-server-install --uninstall to clean up.
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] 
[ipa.ipatests.test_integration.host.Host.replica1.cmd25] Exit code: 1

might be fixed by #5421, moving to the same bucket.

It is not #related to #5421.
This is regression, I tried IPA 4.1.4, installer shows warning that the A/AAAA records not found, but installation finished properly.

This bug occurs in the replica promotion code path, hence moving the ticket to 4.3 milestone.

The issue was that the replica promotion code call service-add that expected a resolvable A/AAAA hostname, but replica does not have it, so it failed.

We should not force to have A/AAAA records of replica in advance as replica records can be added to DNS system later and replica install should be sucessfull without A/AAAA records if hosts file is configured properly.

master:

  • 5427e7a Install: Force service add during replica promotion

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

7 years ago

Login to comment on this ticket.

Metadata