octavia/elements/no-resolvconf
Gregory Thiemonge 2043788473 Workaround to fix amphora-agent on centos
dnspython now requires to have at least one nameserver in
/etc/resolv.conf.
The amphora image doesn't need and doesn't use any dns servers, add a
dummy dns server as a workaround on centos (on ubuntu, resolv.conf
contains the systemd resolver).
We will revert this patch when we find a more convenient fix for this
issue

Story: 2009281
Task: 43552

Change-Id: I81af508e7df5ffef343f1614335ffe1a98540912
2021-10-12 18:49:42 +02:00
..
finalise.d Workaround to fix amphora-agent on centos 2021-10-12 18:49:42 +02:00
README.rst Fix the amphora image support for RH Linux flavors 2017-01-31 20:05:07 +02:00

This element clears out /etc/resolv.conf and prevents dhclient from populating it with data from DHCP. This means that DNS resolution will not work from the amphora. This is OK because all outbound connections from the amphora will be based using raw IP addresses.

In addition we remove dns from the nsswitch.conf hosts setting.

This has the real benefit of speeding up host boot and configutation times. This is especially helpful when running tempest tests in a devstack environment where DNS resolution from the amphora usually doesn't work anyway: This means that the amphora never waits for DNS timeouts to occur.