#8683 [ipatests] `test_ipa_dns_systemrecords_check` and `test_ipa_healthcheck_no_errors` fail in Azure Pipelines
Closed: fixed by abbra. Opened by slev.

test_ipa_healthcheck_no_errors and test_ipa_dns_systemrecords_check fail with:

    [
      {
        "source": "ipahealthcheck.ipa.idns",
        "check": "IPADNSSystemRecordsCheck",
        "result": "WARNING",
        "uuid": "b979a88a-6373-4990-bc83-ce724e9730b4",
        "when": "20210120055054Z",
        "duration": "0.032740",
        "kw": {
          "msg": "Got {count} ipa-ca AAAA records, expected {expected}",
          "count": 1,
          "expected": 2
        }
      }
    ]

IPA server's AAAA records at embedded DNS mode depend on the result of get_server_ip_address function (ipaserver.install.installutils), which in turn, relies on NSS.

In the case of Azure Pipelines, there are neither IPv6 records in /etc/hosts nor external DNS, which may provide such. This leads to the missing AAAA records for master and missing AAAA records for ipa-ca pointing to master in embedded DNS.

test_ipa_dns_systemrecords_check doesn't expect to be in IPv6 environment.


Metadata Update from @slev:
- Issue assigned to slev

GH PR:
https://github.com/freeipa/freeipa/pull/5486

master:

  • 3e33e546c3e4fa21e5232a0490093b17ad82515e Azure: Populate containers with self-AAAA records
  • 596bb320bef19d2fd2270b9eb797a24a9f107b09 ipatests: Handle AAAA records in test_ipa_dns_systemrecords_check
  • 778ef959162a98886495c5b28bb0b7942ea2e946 rpm-spec: Require crypto-policies-scripts

ipa-4-9:

  • 63b14839aff23db7977decbeb742949bd05a8219 Azure: Populate containers with self-AAAA records
  • 151fa5040af0f044fe7bf0154c2dcfc58506a499 ipatests: Handle AAAA records in test_ipa_dns_systemrecords_check
  • 0b11a7ce5542fae4d3d2ab0584d3dfe0f67ef617 rpm-spec: Require crypto-policies-scripts

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

ipa-4-8:

  • af96a07c01bc60ec8668751a80fb14b19d8d7481 Azure: Populate containers with self-AAAA records
  • 11e4e159339d37d136e8d06eb991498aed3861e1 ipatests: Handle AAAA records in test_ipa_dns_systemrecords_check
  • e9a5c8af6854c2b4fbe8dfa59da504795a6e73b9 rpm-spec: Require crypto-policies-scripts
Metadata