Fix Azure networking failures on FreeBSD by correcting NIC discovery, interface selection, and platform-specific networking behavior.#6686
Conversation
|
@holmanb I closed the previous PR and opened a new one from a clean branch, still CLA checks aren't passing. |
It only checks public email addresses that are associated with your account. |
@holmanb There is only 1 email associated with my account, it's the same email that I have used to make other PRs where checks passed. |
Strange. After rerunning the CLA job it still fails, though I do see a passing test within the last hour so it doesn't seem likely for it to be in a bad state. |
@holmanb I'm not sure, at this point it could be a problem on my end, could you override the checks or raise this issue to an admin? I have already emailed Chad Smith regarding this issue. |
|
There does seem to be an issue with the backend at the moment - we can check again once it has fixed. |
|
@MoeSalah1999 Please test this code and include log output from that test. |
@holmanb I ran the new FreeBSD unit tests locally with DEBUG logging enabled. 2026-01-29 18:10:11 DEBUG cloudinit.net:net:940 Duplicate MAC aa:bb:cc:dd:ee:ff found on hn0 and mce0; keeping first All 4 tests passed. |
I'm not concerned about unit tests. I'm interested in how the code behaves on Freebsd on Azure, which is what the code is supposed to fix. |
|
@holmanb I currently do not have access to an Azure account, so I’m unable to directly verify the runtime behavior in that environment. this would need to be validated on a real FreeBSD/Azure instance. |
|
I'm happy to consider this contribution once it has been verified that this fix produces the correct behavior on the affected system. |
|
@holmanb I understand the need to validate this on a real FreeBSD/Azure instance before merging. Validation would need to be performed by someone with access to an affected FreeBSD/Azure environment. I’m happy to assist by, reviewing logs from such a test, or adjusting the patch if any Azure-specific issues are observed. Thank you for the review. |
Proposed Commit Message
Additional Context
Issue: #6657
Results:
With these changes applied:
Scope and Compatibility:
Test Steps
Provided tests in tests/unittests/net/test_net_freebsd.py.
Log Evidence
This change is covered by new FreeBSD-specific unit tests which assert:
Example asserted log output:
Merge type