Static ip customize debian system, ip does not take effect

Bug #1950136 reported by cheng cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

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.

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
cheng cheng (chcheng) wrote :
Changed in cloud-init (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 21.4-25-g039c40f9-0ubuntu1~22.04.1

---------------
cloud-init (21.4-25-g039c40f9-0ubuntu1~22.04.1) jammy; urgency=medium

  * New upstream snapshot.
    - Reorganize unit test locations under tests/unittests (#1126)
      [Brett Holman]
    - Fix exception when no activator found (#1129) (LP: #1948681)
    - jinja: provide and document jinja-safe key aliases in instance-data
      (SC-622) (#1123)
    - testing: Remove date from final_message test (SC-638) (#1127)
    - Move GCE metadata fetch to init-local (SC-502) (#1122)
    - Fix missing metadata routes for vultr (#1125) [eb3095]
    - cc_ssh_authkey_fingerprints.py: prevent duplicate messages on console
      (#1081) [dermotbradley]
    - sources/azure: remove unused remnants related to agent command (#1119)
      [Chris Patterson]
    - github: update PR template's contributing URL (#1120) [Chris Patterson]
    - docs: Rename HACKING.rst to CONTRIBUTING.rst (#1118)
    - testing: monkeypatch system_info call in unit tests (SC-533) (#1117)
    - Fix Vultr timeout and wait values (#1113) [eb3095]
    - lxd: add preference for LXD cloud-init.* config keys over user keys
      (#1108)
    - VMware: source /etc/network/interfaces.d/* on Debian
      [chengcheng-chcheng] (LP: #1950136)
    - Add cjp256 as contributor (#1109) [Chris Patterson]
    - integration_tests: Ensure log directory exists before symlinking to it
      (#1110)
    - testing: add growpart integration test (#1104) [Brett Holman]
    - integration_test: Speed up CI run time (#1111)
    - Some miscellaneous integration test fixes (SC-606) (#1103)
    - tests: specialize lxd_discovery test for lxd_vm vendordata (#1106)
    - Add convenience symlink to integration test output (#1105) [Brett Holman]
    - Fix for set-name bug in networkd renderer (#1100)
      [Andrew Kutz] (LP: #1949407)
    - Wait for apt lock (#1034) (LP: #1944611)
    - testing: stop chef test from running on openstack (#1102)
    - alpine.py: add options to the apk upgrade command (#1089) [dermotbradley]

 -- Chad Smith <email address hidden> Fri, 03 Dec 2021 15:44:06 -0700

Changed in cloud-init (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.