#8070 Test failure in test_integration/test_replica_promotion.py::TestHiddenReplicaPromotion::()::test_hidden_replica_install
Closed: fixed 4 years ago by frenaud. Opened 4 years ago by frenaud.

The test test_integration/test_replica_promotion.py::TestHiddenReplicaPromotion::()::test_hidden_replica_install randomly fails in nightly_f29 (link).

The test is checking that a given IP address is not in the DNS records for the domain. When we are unlucky, we may come up with the following situation:
- IP address that is unexpected: 192.168.121.25
- IP address that is found for the DNS record: 192.168.121.254

As 192.168.121.25 is a substring of 192.168.121.254, the test wrongly considers that the unexpected address was found.
Extract of the log:

            for host in hosts_unexpected:
                value = host.hostname if rtype == 'SRV' else host.ip
>               assert value not in txt
E               AssertionError: assert '192.168.121.25' not in 'ipa-ca.ipa.test. 1 IN A 192.168.121.254'
E                 '192.168.121.25' is contained here:
E                   ipa-ca.ipa.test. 1 IN A 192.168.121.254
E                 ?                         ++++++++++++++

Metadata Update from @frenaud:
- Issue assigned to frenaud

4 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3742

4 years ago

master:

  • 121971a ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-8:

  • b24feb4 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-7:

  • 548b697 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

ipa-4-6:

  • a5228a7 ipatests: fix test_replica_promotion.py::TestHiddenReplicaPromotion

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.6.7

4 years ago

Login to comment on this ticket.

Metadata