2018-07-31 18:44:23 |
Andres Rodriguez |
description |
When deploying bionic, cloud-init doesn't set the mac address for the bond or bridge interface, which causes issues when there's expectations between MAC/IP mappings.
For example, in Bionic:
curtin config sent (/etc/cloud/cloud.cfg.d/50-curtin-networking.cfg): http://paste.ubuntu.com/p/25GnQXQVhn/
neplan config written to netplan (/etc/netplan/50-cloud-init.cfg): http://paste.ubuntu.com/p/XGQRzjGTDm/
The result is that each interface have a different MAC address from those told in the configuration:
ip addr sh: http://paste.ubuntu.com/p/25GnQXQVhn/
This results in inconsistency which was configured and intended by the user, vs what it was actually written.
For example, in Xenial, the issue above doesn't exist and the result is as expected:
curtin config: http://paste.ubuntu.com/p/DmFvryXdwm/
e/n/i config: http://paste.ubuntu.com/p/fsXYpmMzCb/
ip addr sh: http://paste.ubuntu.com/p/wXXSTNfwHK/ |
When deploying bionic, cloud-init doesn't set the mac address for the bond or bridge interface, which causes issues when there's expectations between MAC/IP mappings.
For example, in Bionic:
curtin config sent (/etc/cloud/cloud.cfg.d/50-curtin-networking.cfg): http://paste.ubuntu.com/p/25GnQXQVhn/
neplan config written to netplan (/etc/netplan/50-cloud-init.cfg): http://paste.ubuntu.com/p/XGQRzjGTDm/
The result is that each interface have a different MAC address from those told in the configuration:
ip addr sh: http://paste.ubuntu.com/p/25GnQXQVhn/
This results in inconsistency which was configured and intended by the user, vs what it was actually written.
For example, in Xenial, the issue above doesn't exist and the result is as expected:
curtin config: http://paste.ubuntu.com/p/DmFvryXdwm/
e/n/i config: http://paste.ubuntu.com/p/fsXYpmMzCb/
ip addr sh: http://paste.ubuntu.com/p/wXXSTNfwHK/
Also note that in my configuration, I kept the same mac addresses for bridges/bond as the physical interfaces, but if I were to randomize those or choose other ones, the behavior is the same. |
|