Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud-Init unable to bring interface up after interface-changes #5824

Open
f0o opened this issue Oct 14, 2024 · 0 comments
Open

Cloud-Init unable to bring interface up after interface-changes #5824

f0o opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working correctly new An issue that still needs triage

Comments

@f0o
Copy link

f0o commented Oct 14, 2024

Bug report

Cloud-Init retains some information of the previous interface's MAC and will fail bringing up the new interface if the interfaces have been swapped out, for instance to move the machine to a new subnet/network in OpenStack.

Steps to reproduce the problem

  1. Setup NetworkA+SubnetA
  2. Spin up Ubuntu 24.04 Cloud-Image
  3. Observe Instance with correct first boot and accessible network
  4. Shutdown Instance
  5. Setup NetworkB+SubnetB
  6. Add Interface to Instance to NetworkB+SubnetB
  7. Remove NetworkA+SubnetA Interface from Instance
  8. Start Instance
  9. Observe errors in Cloud-Init and no network being set up at all

Environment details

cloud-init logs

2024-10-11 07:57:37,423 - net[DEBUG]: Detected interfaces {'lo': {'downable': False, 'device_id': None, 'driver': None, 'mac': '00:00:00:00:00:00', 'name': 'lo', 'up': True}, 'ens3': {'downable': True, 'device_id': '0x0001', 'driver': 'virtio_net', 'mac': 'fa:16:3e:a9:e9:da', 'name': 'ens3', 'up': False}}
2024-10-11 07:57:37,423 - net[WARNING]: Unable to rename interfaces: [['fa:16:3e:f7:10:04', 'ens3', 'virtio_net', '0x0001']] due to errors: ['[nic not present] Cannot rename mac=fa:16:3e:f7:10:04 to ens3, not available.']
2024-10-11 07:57:37,423 - stages.py[WARNING]: Failed to rename devices: Failed to apply network config names: [nic not present] Cannot rename mac=fa:16:3e:f7:10:04 to ens3, not available.

Note the mismatch in MAC. e9:da is the new interface from NetworkB+SubnetB whereas 10:04 is the removed interface from NetworkA+SubnetA.

@f0o f0o added bug Something isn't working correctly new An issue that still needs triage labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly new An issue that still needs triage
Projects
None yet
Development

No branches or pull requests

1 participant