Azure data source contains hardcoded distribution-specific paths
Bug #1571629 reported by
Lars Kellogg-Stedman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
The Azure data source (in sources/
The location of the lease file should probably be part of the Distro object.
A secondary problem is that the WALinuxAgentShim class does not have any access to the Distro object, so that code needs some fiddling to implement this fix.
Related branches
~johnsonshi/cloud-init:rhel-centos-dhclient-lease-path
On hold
for merging
into
cloud-init:master
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Needs Fixing
- Scott Moser: Pending requested
-
Diff: 617 lines (+293/-175) (has conflicts)5 files modifiedcloudinit/net/dhcp.py (+151/-0)
cloudinit/net/tests/test_dhcp.py (+128/-1)
cloudinit/sources/DataSourceAzure.py (+9/-6)
cloudinit/sources/DataSourceCloudStack.py (+1/-93)
tests/unittests/test_datasource/test_cloudstack.py (+4/-75)
Changed in cloud-init: | |
assignee: | nobody → Johnson Shi (johnsonshi) |
status: | New → In Progress |
Changed in cloud-init: | |
assignee: | Johnson Shi (johnsonshi) → nobody |
To post a comment you must log in.
...and systems running NetworkManager store it somewhere *else*:
$ ps -fe | grep dhclient nm-dhcp- helper -pf /var/run/ dhclient- eth0.pid -lf /var/lib/ NetworkManager/ dhclient- e4599575- 5a21-46c1- bfe3-62cb23268b 69-eth0. lease -cf /var/lib/ NetworkManager/ dhclient- eth0.conf eth0
root 27312 27292 0 Apr11 ? 00:00:00 /sbin/dhclient -d -q -sf /usr/libexec/
Handling this properly probably entails talking to NetworkManager via the API (or the via nmcli tool).