octavia/elements/no-resolvconf
Carlos Goncalves 6c0756864f Fix dhclient enter hook path on RHEL-based amps
dhclient-script(8) defines the enter hook path is
/etc/dhcp/dhclient-enter-hooks:

"On  after defining the make_resolv_conf function, the client script
checks for the presence of an executable /etc/dhcp/dhclient-enter-hooks
script, and if present, it invokes the script inline, using the Bourne
shell command."

This was confirmed to be valid on RHEL and CentOS 7-8, and Fedora 28-30.

Change-Id: I473f1e5c6862ebf0d691a8191d17649ccf51e7f4
Task: 35725
Story: 2006190
2019-07-09 12:34:16 +02:00
..
finalise.d Fix dhclient enter hook path on RHEL-based amps 2019-07-09 12:34:16 +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.