Public bug reported: For debian, the network configure file was named /etc/network/interfaces.d/50-cloud-init, details in https://github.com/canonical/cloud-init/blob/main/cloudinit/distros/debian.py#L48 but in the /etc/network/interfaces.d, it will "source /etc/network/interfaces.d/*.cfg", details in https://github.com/canonical/cloud-init/blob/main/cloudinit/sources/helpers/vmware/imc/config_nic.py#L277 This will lead to static IP customization on debian failed. The new static IP will be added to the 50-cloud-init file, but it will not show the same IP address when using 'ifconfig' command.
It seems it needs to change the "/etc/network/interfaces.d/50-cloud- init" to /etc/network/interfaces.d/50-cloud-init.cfg" in https://github.com/canonical/cloud- init/blob/main/cloudinit/distros/debian.py#L48. ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1950136 Title: Static ip customize debian system, ip does not take effect To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1950136/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
