When performing a deployment the interface configuration of the machine is automatically changed when curtin requests the installation preseed.
Before curtin preseed request:
enp3s0f0 - fabric0 - untagged - 12.12.8.0/24 - DHCP
enp3s0f1 - Disconnected
During/after curtin preseed request:
enp3s0f0 - fabric6 - untagged - 192.168.17.0/24 - Unconfigured
enp3s0f1 - Disconnected
This affects the deployment of the machine as the network interface configuration is not correct when it is placed on the disk. Once the machine reboots into the local disk cloud-init fails since the network configuration is incorrect.
network:
config:
- id: enp3s0f0
mac_address: 0c:c4:7a:df:23:80
mtu: 1500
name: enp3s0f0
subnets:
- type: manual
type: physical
- id: enp3s0f1
mac_address: 0c:c4:7a:df:23:81
mtu: 1500
name: enp3s0f1
subnets:
- type: manual
type: physical
- address:
- 172.19.11.12
search:
- maas
type: nameserver
version: 1
curtin-install.log - https://paste.ubuntu.com/26319894/
curtin-install.yaml - https://paste.ubuntu.com/26319885/
cloud-init.log - https://paste.ubuntu.com/26319901/
In the ephemeral environment the machine PXE booted with the IP of 12.12.1.143 as you can see in the regiond log snippet below. Once it requested the data it change the network configuration as described above.
2018-01-03 09:55:32 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/meta-data/instance-id HTTP/1.1 --> 200 OK (referrer: -; agent: Cloud-Init/17.1)
2018-01-03 09:55:32 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/meta-data/instance-id HTTP/1.1 --> 200 OK (referrer: -; agent: python-requests/2.9.1)
2018-01-03 09:55:32 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/meta-data/local-hostname HTTP/1.1 --> 200 OK (referrer: -; agent: python-requests/2.9.1)
2018-01-03 09:55:32 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/meta-data/public-keys HTTP/1.1 --> 200 OK (referrer: -; agent: python-requests/2.9.1)
2018-01-03 09:55:33 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/meta-data/vendor-data HTTP/1.1 --> 200 OK (referrer: -; agent: python-requests/2.9.1)
2018-01-03 09:55:33 regiond: [info] ::1 GET /MAAS/rpc/ HTTP/1.0 --> 200 OK (referrer: -; agent: provisioningserver.rpc.clusterservice.ClusterClientService)
2018-01-03 09:55:33 maasserver.preseed: [warn] WARNING: '/etc/maas/preseeds/curtin_userdata_centos' contains deprecated preseed variables. Please remove: main_archive_directory, ports_archive_directory, http_proxy
2018-01-03 09:55:33 regiond: [info] 12.12.1.143 GET /MAAS/metadata/curtin/2012-03-01/user-data HTTP/1.1 --> 200 OK (referrer: -; agent: python-requests/2.9.1)
So far it's been difficult to reproduce this issue; I set up a similar topology (including an unmanaged network) and hit a different issue[1], though so far it looks unrelated.
https:/ /paste. ubuntu. com/26348273/
More information about which subnets and IP ranges exist in MAAS, and how they are configured, would help to get to the bottom of this. I'll keep looking.