freeipa/ipatests/azure/scripts
Stanislav Levin 3e33e546c3 Azure: Populate containers with self-AAAA records
IPA server's AAAA records at embedded DNS mode depend on result of
`get_server_ip_address` function(`ipaserver.install.installutils`),
which in turn, relies on NSS.

In 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.

In particular, tests `test_ipa_healthcheck_no_errors`,
`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
    }
  }
]
```
where `ipa-ca` record exists only for replica.

Note: since the most of the code in setup_containers was touched it has
been reformatted.

Fixes: https://pagure.io/freeipa/issue/8683
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-02-15 09:54:51 +02:00
..
azure-run-base-tests.sh Azure: base: Collect both install and uninstall logs 2020-08-31 09:46:03 +03:00
azure-run-integration-tests.sh Azure: Increase memory limit 2020-04-28 17:50:10 +02:00
azure-run-tests.sh Azure: Add custom seccomp profile 2020-05-12 09:51:50 +02:00
dump_cores.sh Azure: Gather coredumps 2020-04-08 11:27:45 +03:00
generate-matrix.py Azure: Preliminary check for provided limits 2020-02-25 18:02:12 +02:00
install-debuginfo-fedora.sh Azure: Gather coredumps 2020-04-08 11:27:45 +03:00
install-debuginfo.sh Azure: Gather coredumps 2020-04-08 11:27:45 +03:00
setup_containers.py Azure: Populate containers with self-AAAA records 2021-02-15 09:54:51 +02:00
variables-fedora.sh Azure: Add support for testing multi IPA environments 2020-02-25 18:02:12 +02:00
variables.sh Azure: Add support for testing multi IPA environments 2020-02-25 18:02:12 +02:00