RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1412585 - [WALA]dhclient lease file is not removed during deprovisioning when using NetworkManager
Summary: [WALA]dhclient lease file is not removed during deprovisioning when using Net...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: WALinuxAgent
Version: 7.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Rezanina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-12 11:14 UTC by Yuhui Jiang
Modified: 2019-02-26 20:57 UTC (History)
16 users (show)

Fixed In Version: WALinuxAgent-2.2.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-07 08:52:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Azure WALinuxAgent issues 539 0 None closed [2.2.0+]dhclient lease file is not removed during deprovisioning when using NetworkManager 2020-09-30 03:59:55 UTC

Description Yuhui Jiang 2017-01-12 11:14:09 UTC
Description of problem:
In RHEL-7, the dhclient lease file under /var/lib/NetworkManager/ folder is not removed during deprovisioning.

Version-Release number of selected component (if applicable):
WALinuxAgent-2.2.0+

RHEL Version:
RHEL-7.3

How reproducible:
100%

Steps to Reproduce:
1. Prepare a RHEL-7.3 VM with WALA-2.2.0+ installed(NetworkManager enabled)
2. Run "waagent -deprovision". It shows "WARNING! Cached DHCP leases will be deleted."
3. Check dhclient lease file:
ls /var/lib/NetworkManager/dhclient-*.lease

Actual Result:
The dhclient lease file is not removed.

Expect Result:
The dhclient lease file is removed.

Additional Info:
Currently WALA only remove all the files under /var/lib/dhclient/dhclient/. But if we use NetworkManager, the dhclient lease file is like this: /var/lib/NetworkManager/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.lease

Comment 2 Yuxin Sun 2017-02-27 03:04:45 UTC
Verify on RHEL-7.3 ondemand image with WALinuxAgent-2.2.4-1.el7.mrezanin201702081000.noarch.rpm
Result: PASS

Comment 3 Yuxin Sun 2017-03-06 03:16:34 UTC
Change the status to "POST" for developers to add it into ERRATA.


Note You need to log in before you can comment on or make changes to this bug.