When running in an environment that provides more than 3 nameservers, cloud-init will raise a ValueError exception:
Mar 04 18:03:01 localhost.localdomain cloud-init[901]: ValueError: Adding '8.8.8.8' would go beyond the '3' maximum name servers
While that is a legitimate complaint, raising an exception seems like the wrong response, because this results in *no* nameserver configuration, which can have a substantial operational impact on the system. Cloud-init should probably just log a warning in this case, and ignore any nameservers received after the first three.
When running in an environment that provides more than 3 nameservers, cloud-init will raise a ValueError exception:
Mar 04 18:03:01 localhost. localdomain cloud-init[901]: ValueError: Adding '8.8.8.8' would go beyond the '3' maximum name servers
While that is a legitimate complaint, raising an exception seems like the wrong response, because this results in *no* nameserver configuration, which can have a substantial operational impact on the system. Cloud-init should probably just log a warning in this case, and ignore any nameservers received after the first three.