On the original bind config, 'dnssec-validation' is set. In some cases, when parsing the config, 'dnssec-validation' is not removed automatically from the bind's config, but it is always added to MAAS' config. This, sometimes, causes bind to fail to start because of duplicate options.
Backport of 2c48791 LP: #1768323 - Create generic link for old style hwe kernels.
18b0508 made sure only the ga kernel is launched when the ephemerial
environment is started is a generic kernel by making sure only the 'generic'
hard link is only created for the ga kernel. This did not account for old
style kernels using the format hwe-<first letter of release>. This caused no
generic hard link to be created. Trusty deployments were not effected as MAAS
specifies the real kernel and subarch name(hwe-t). This does not happen with
precise as the commissioning OS is used to deploy and generic is used for the
image subarch instead.
Also fixes a bug where MAAS would use theimage URL for any subarch matching
the arch, osystem, and series. This allows Precise to deploy with current
streams.
Backport of 69b6984 LP:1701352 - Set default exit status to 1 when failure.
When Curtin sends the metadata server the installation result does not
include an exit status. It indicates pass or failure with SUCCESS or
FAILURE as the result. When storing the result if no exit status was given
MAAS assumed the script passed and set the exit status to 0. This caused
the ScriptResult for the installation log in both the UI and API to always
be passed even when Curtin failed and the node is marked failed deployment.
Now when Curtin sends failure 1 is set causing the ScriptResult for the
installation log to be set to FAILED. Commissioning and testing results use
a different API end point and are uneffected by this change.
LP: #1759284 - Change the interface name gathering during commissioning
The interface names can now be larger than 8 characters before Bionic.
Bionic forward these can be much larger than that. This caused issues
where ifconfig -s would not output the whole interface name. As such,
change the mechanism in which how we discover the interfaces for the DHCP
commissioning script.