Merge ~raharper/cloud-init:fix/net-get-devices-ignore-devs-with-master into cloud-init:master
Proposed by
Ryan Harper
Status: | Merged |
---|---|
Approved by: | Chad Smith |
Approved revision: | 15ffe027cb53d162bc1f436e0f50b8b16c796484 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~raharper/cloud-init:fix/net-get-devices-ignore-devs-with-master |
Merge into: | cloud-init:master |
Diff against target: |
77 lines (+25/-2) 2 files modified
cloudinit/net/__init__.py (+8/-2) cloudinit/net/tests/test_init.py (+17/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Dan Watkins | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+372828@code.launchpad.net |
Commit message
net: add is_master check for filtering device list
Some network devices are transformed into a bond via kernel magic
and do not have the 'bonding' sysfs attribute, but like a bond they
have a duplicate MAC of other bond members. On Azure Advanced
Networking SRIOV devices are auto bonded and will have the same MAC
as the HyperV nic. We can detect this via the 'master' sysfs attribute
in the device sysfs path and this patch adds this to the list of devices
we ignore when enumerating device lists.
LP: #1844191
To post a comment you must log in.
PASSED: Continuous integration, rev:17b20580170 74424fa8b87c0a1 eea5547935a2a7 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 1143/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 1143//rebuild
https:/