Fix lo being used for DHCP, try next on cmd fail#1208
Conversation
| # Skip dummy interfaces | ||
| if "dummy" in iface[0]: | ||
| # Skip dummy, lo interfaces | ||
| if iface[0] in ['lo', 'dummy']: |
There was a problem hiding this comment.
This check would now fail to filter out numbered dummy interfaces, e.g. "dummy0".
FWIW I've been considering taking the filtering done for net.find_fallback_nic() and providing a method so we can query the set of viable interfaces without the data sources having to add similar filtering logic for themselves if fallback_interface is not sufficient.
There was a problem hiding this comment.
FYI: something like this https://github.com/canonical/cloud-init/pull/1209/files
There was a problem hiding this comment.
Ah indeed it would. Not sure why I didn't see that... Anyways its fixed, and it looks like find_candidate_nics is exactly what I need. Once that's merged in I will immediately refactor this to use that instead. Probably when I go through and simplify the generation of our metadata. I am looking at making a new endpoint on our end that feeds cloud-init format configs directly instead of doing what we are doing here to eliminate some of these inconsistencies we are seeing due to our metadata bumping heads with the cloud-init format here and there.
|
Seems like travis is stuck here? Am I able to kick that from my end to get it going? I dont see an option. |
|
Hey @eb3095 , it should work now if you push anything to the branch. If there's nothing new, you can force push a trivial change (i.e., an extra space) in the commit message. |
Proposed Commit Message
Fix lo being used for DHCP, try next on cmd fail
Test Steps
Deployed Arch on Vultr
Checklist: