Bug 1433303
Summary: | NetworkManager leaks NMDevice objects for enslaved veth devices | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sergio Lopez <slopezpa> | ||||||
Component: | NetworkManager | Assignee: | Beniamino Galvani <bgalvani> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 7.3 | CC: | ajawarka, alanm, atragler, bgalvani, fgiudici, lrintel, rkhan, rki, sukulkar, thaller, tpelka, vbenes | ||||||
Target Milestone: | rc | Keywords: | ZStream | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | NetworkManager-1.8.0-0.4.rc1.el7 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1436650 (view as bug list) | Environment: | |||||||
Last Closed: | 2017-08-01 09:24:38 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1436650 | ||||||||
Attachments: |
|
Description
Sergio Lopez
2017-03-17 11:01:50 UTC
Created attachment 1264326 [details]
[PATCH] manager: ensure proper disposal of unrealized devices
Thank you for the detailed analysis. I can reproduce the leak on 1.4
and git master with this script:
ip l add br1 type bridge
for i in $(seq 1 1000); do
echo $i;
ip l add veth$i type veth peer name vethp$i
ip l set veth$i up
ip a a dev veth$i 9.9.9.9
ip l set veth$i master br1
ip l del veth$i
done
The attached patch against git master fixes the problem. It works for
1.4 too, but requires a (trivial) manual apply.
Created attachment 1264327 [details]
[PATCH v2] manager: ensure proper disposal of unrealized devices
Ignore the previous patch please.
Looks good to me lgtm Applied to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=2e0c3d1dacfa06fad0062d272fc77ecc34ba4576 nm-1-6: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-1-6&id=427a3e5cff1bf852c17ef2b359676d037bd58f67 and nm-1-4: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-1-4&id=f0eb192d8c8fcb64b49476edf79f8769cfa225a7 upstream branches. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2299 |