nspawn_cache_prep_dns only works on initial container image creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I would like to overwrite the default DNS nameservers used for the nspawn container setup. We use an internal Ubuntu mirror, which can only be resolved by our internal DNS servers and not by
208.67.222.222 and 8.8.8.8.
When running
openstack-ansible setup-hosts.yml
my configured DNS are only properly configured in the Ubuntu container image ubuntu-bionic-amd64 when the container image does not exist. If it exists the default DNS servers are configured and the following container image setup command fails
fatal: [controller1]: FAILED! => {"changed": false, "cmd": "chroot /var/lib/
It is not very convenient to have to delete the base container image when setting up some nspawn container.
support for nspawn has been removed from currently supported versions of openstack-ansible