Merge ~smoser/cloud-init:bug/1718029-fix-dhcp-parsing-from-networkd into cloud-init:master
| Status: | Merged |
|---|---|
| Approved by: | Chad Smith on 2017-10-03 |
| Approved revision: | d4d3ff41214b5daa80e785dae8a44792bc9dc43e |
| Merged at revision: | 9d2a87dc386b7aed1a8243d599676e78ed358749 |
| Proposed branch: | ~smoser/cloud-init:bug/1718029-fix-dhcp-parsing-from-networkd |
| Merge into: | cloud-init:master |
| Diff against target: |
629 lines (+282/-64) 6 files modified
cloudinit/net/dhcp.py (+42/-0) cloudinit/net/tests/test_dhcp.py (+111/-2) cloudinit/sources/DataSourceCloudStack.py (+13/-4) cloudinit/sources/helpers/azure.py (+14/-6) tests/unittests/test_datasource/test_azure_helper.py (+95/-48) tests/unittests/test_datasource/test_cloudstack.py (+7/-4) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chad Smith | 2017-10-02 | Approve on 2017-10-03 | |
| Dimitri John Ledkov (community) | Approve on 2017-10-03 | ||
| Server Team CI bot | continuous-integration | Approve on 2017-10-03 | |
|
Review via email:
|
|||
Commit Message
Azure, CloudStack: Support reading dhcp options from systemd-networkd
Systems that used systemd-networkd's dhcp client would not be able
to get information on the Azure endpoint (placed in Option 245) or the
CloudStack server (in 'server_address').
The change here supports reading these files in /run/systemd/
The files declare that "This is private data. Do not parse.", but
at this point we do not have another option.
LP: #1718029
| Scott Moser (smoser) wrote : | # |
FAILED: Continuous integration, rev:dbbc9e0eab5
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
FAILED: Ubuntu LTS: Build
Click here to trigger a rebuild:
https:/
| Dimitri John Ledkov (xnox) wrote : | # |
os.listdir is not safe to call, if directory does not exist.
| Dimitri John Ledkov (xnox) wrote : | # |
Also needs a test for no leases dir, or use glob.iglob in the implementation.
PASSED: Continuous integration, rev:a6e48aaa195
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/
| Scott Moser (smoser) wrote : | # |
ok. feedbaack addressed.
also renamed the functions to 'networkd' rather than 'systemd'.
PASSED: Continuous integration, rev:fe360f58def
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:d4d3ff41214
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/
| Chad Smith (chad.smith) wrote : | # |
tested on Azure Artful with and without ifupdown. It worked in both cases either by parsing the /run/cloud-


This re-works Dimitri's branch a bit (https:/ /code.launchpad .net/~xnox/ cloud-init/ +git/cloud- init/+merge/ 331642)