Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
9
Star
0
Fork
62
src-openEuler
/
NetworkManager
Closed
Code
Issues
3
Pull Requests
2
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
反复创建删除连接,/var/lib/NetworkManager下残留大量的租约文件
Done
#I6FEWP
Bug
peulerosci
Opened this issue
2023-02-16 09:05
<h3>优先级:</h3><p>次要</p><p></p><h3>详细描述:</h3><p> 【测试类型】:发现问题的测试类型,功能测试、可靠性测试、性能测试等</p><p></p><p>可靠性测试</p><p></p><p> 【测试步骤】:详细描述可以复现该问题的测试步骤</p><p></p><p> 反复创建删除连接,/var/lib/NetworkManager下残留大量的租约文件</p><p></p><p> 【结果输出】:根据上述测试步骤执行后,系统的实际输出</p><p></p><p>在/var/lib/NetworkManager目录下出现大量的租约文件</p><p></p><p> </p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>否</p><p></p><p>【定位分析】</p><p></p><p>问题分析:</p><p></p><p>当前版本NetworkManager默认使用dhcp软件包提供的dhclient命令获取租约,并通过-lf 选项指定文件名称,使 dhclient 生成租约文件。</p><p></p><p></p><p></p><p>租约文件为“/var/lib/NetworkManager/*.lease”。NM基于每个连接和设备命名这些文件,</p><p></p><p>NM每一条新connection成功获取动态ip后会生成一个租约文件dhclient-UUID-ethx.lease。</p><p></p><p>每条connection的UUID都不同,因此文件不会重复dhclient-1325d997-fc9f-499f-8cc8-080c41fb04bf-ens8.lease</p><p></p><p>目前NM无清理dhcp租约文件行为,仅通过重启系统清理/var/lib/目录,</p><p></p><p>长期运行服务情况下租约文件有可能会堆积起来,持续占用内存。</p><p></p><p></p><p></p><p></p><p>解决方案:</p><p></p><p>当connection被用户删除时,对应租约文件可以被删除。此场景下,在nmcli命令行中添加删除租约文件逻辑,清理租约文件</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>NA</p><p></p><p></p>
<h3>优先级:</h3><p>次要</p><p></p><h3>详细描述:</h3><p> 【测试类型】:发现问题的测试类型,功能测试、可靠性测试、性能测试等</p><p></p><p>可靠性测试</p><p></p><p> 【测试步骤】:详细描述可以复现该问题的测试步骤</p><p></p><p> 反复创建删除连接,/var/lib/NetworkManager下残留大量的租约文件</p><p></p><p> 【结果输出】:根据上述测试步骤执行后,系统的实际输出</p><p></p><p>在/var/lib/NetworkManager目录下出现大量的租约文件</p><p></p><p> </p><h3>原因分析:</h3><p></p><p>【是否新引入rpm包,是否进行了安全编译选项扫描】</p><p></p><p>否</p><p></p><p>【定位分析】</p><p></p><p>问题分析:</p><p></p><p>当前版本NetworkManager默认使用dhcp软件包提供的dhclient命令获取租约,并通过-lf 选项指定文件名称,使 dhclient 生成租约文件。</p><p></p><p></p><p></p><p>租约文件为“/var/lib/NetworkManager/*.lease”。NM基于每个连接和设备命名这些文件,</p><p></p><p>NM每一条新connection成功获取动态ip后会生成一个租约文件dhclient-UUID-ethx.lease。</p><p></p><p>每条connection的UUID都不同,因此文件不会重复dhclient-1325d997-fc9f-499f-8cc8-080c41fb04bf-ens8.lease</p><p></p><p>目前NM无清理dhcp租约文件行为,仅通过重启系统清理/var/lib/目录,</p><p></p><p>长期运行服务情况下租约文件有可能会堆积起来,持续占用内存。</p><p></p><p></p><p></p><p></p><p>解决方案:</p><p></p><p>当connection被用户删除时,对应租约文件可以被删除。此场景下,在nmcli命令行中添加删除租约文件逻辑,清理租约文件</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p>【对外部是否有影响】</p><p></p><p>NA</p><p></p><p></p>
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Networking
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/NetworkManager.git
git@gitee.com:src-openeuler/NetworkManager.git
src-openeuler
NetworkManager
NetworkManager
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register