Merge ~chad.smith/cloud-init:azure-no-ifupdown into cloud-init:master
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 6d567fe2e563f27412b4c6527eb12f57c81aeeea |
Merged at revision: | b05b9972d20ec3ea699d1691b67314d04e852d2f |
Proposed branch: | ~chad.smith/cloud-init:azure-no-ifupdown |
Merge into: | cloud-init:master |
Diff against target: |
134 lines (+40/-13) 2 files modified
cloudinit/sources/DataSourceAzure.py (+16/-9) tests/unittests/test_datasource/test_azure.py (+24/-4) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Needs Fixing | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Commit message
azure: Only bounce network when necessary.
This fixes a traceback when attempting to bounce the network after
hostname resets.
In artful and bionic ifupdown package is no longer installed in default
cloud images. As such, Azure can't use those tools to bounce the network
informing DDNS about hostname changes. This doesn't affect DDNS updates
though because systemd-networkd is now watching hostname deltas and with
default behavior to SendHostname=True over dhcp for all hostname updates
which publishes DDNS for us.
LP: #1722668
Description of the change
azure: Don't bounce network with ifdown ifup when those tools don't exist
This fixes a traceback when attempting to bounce the network after
hostname resets.
In artful and bionic ifupdown package is no longer installed in default
cloudimages. As such, Azure can't use those tools to bounce the network
informing DDNS about hostname changes. This doesn't affect DDNS updates
though because systemd-networkd is now watching hostname deltas and with
default behavior to SendHostname=True over dhcp for all hostname updates
which publishes DDNS for us.
LP: #1722668
One inline comment about a potential alternative that may be more palatable/specific.