-
Notifications
You must be signed in to change notification settings - Fork 814
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 should not treat MAC addresses as case sensitive #3672
Comments
Launchpad user Dan Watkins(oddbloke) wrote on 2020-05-05T15:12:08.863343+00:00 Hi, Thanks for the bug report! I've filed bug 1876941 specifically for the documentation changes you suggested, and I'm going to rework this bug report slightly to cover fixing the underlying problem. Dan |
Launchpad user GM van de Bospoort(bospoort) wrote on 2020-05-05T15:35:23+00:00 Thank you Dan. Let me know if I can help. -----Original Message----- Hi, Thanks for the bug report! I've filed bug 1876941 specifically for the documentation changes you suggested, and I'm going to rework this bug report slightly to cover fixing the underlying problem. Dan ** Summary changed:
-- Title: Status in cloud-init: Bug description: version: 2 RuntimeError: Not all expected physical devices present: cloudinit/net/init.py, Line 545, in wait_for_physdevs. Can you either fix the documentation to explicitly require lower case To manage notifications about this bug go to: |
Launchpad user James Falcon(falcojr) wrote on 2022-04-26T18:43:07.864642+00:00 Since we've updated the docs to accurately specify and show examples of lowercase, I'm demoting the importance of dealing with the rest of this. |
This bug was originally filed in Launchpad as LP: #1876363
Launchpad details
Launchpad user GM van de Bospoort(bospoort) wrote on 2020-05-01T19:12:49.938843+00:00
Currently, cloud-init can run into issues applying network configuration if the MAC addresses reported by the system are in a different case to the MAC addresses provided by the network configuration source. It is likely that there are also other places where a mismatch could happen. We should ensure that cloud-init's MAC address handling is not case sensitive.
[Original Report]
I'm using an ISO with the following yaml in network-config. cloud-init will not match eth0, but will match eth1 due to capitalization.
version: 2
ethernets:
eth0:
match:
macaddress: 00:15:5D:0E:AE:0C
set-name: External
eth1:
match:
macaddress: 00:15:5d:0e:ae:0d
set-name: Internal
RuntimeError: Not all expected physical devices present: {'00:15:5D:0E:AE:0C'}
cloudinit/net/init.py, Line 545, in wait_for_physdevs.
Can you either fix the documentation to explicitly require lower case (this page has several uppe case references: https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html). Or do the lower case conversion in wait_for_physdevs when you compare the present_macs to the expected_macs?
The text was updated successfully, but these errors were encountered: