Bug 12247 - [AnolisOS23] 软件包 libcgroup-tools.x86_64 在AnolisOS23中的行为异常
Summary: [AnolisOS23] 软件包 libcgroup-tools.x86_64 在AnolisOS23中的行为异常
Status: CONFIRMED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-05 22:33 UTC by young_estt
Modified: 2025-01-07 17:24 UTC (History)
1 user (show)

See Also:


Attachments
libcgroup-tools的指令cgdelete -g memory:/testgroup 的差异报告 (17.50 KB, application/pdf)
2024-12-05 22:33 UTC, young_estt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description young_estt 2024-12-05 22:33:46 UTC
Created attachment 1241 [details]
libcgroup-tools的指令cgdelete -g memory:/testgroup 的差异报告

Description of problem:
在AnolisOS23下安装libcgroup-tools.x86_64后,不存在testgroup的控制组(cgroup)的情况下,cgdelete -g memory:/testgroup指令无法得到正确的报错信息,并且命令的返回值为0,在AnolisOS8下的报错信息为cgdelete: cannot remove group '/testgroup':
No such file or directory,返回值为96


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


How reproducible:
进入AnolisOS23的docker容器执行以下指令

Steps to Reproduce:
1.yum install -y libcgroup-tools.x86_64
2.cgdelete -g memory:/testgroup
3.

Actual results:
returncode: 0
无输出/错误输出

Expected results:
returncode: 96
cgdelete: cannot remove group '/testgroup':
No such file or directory

Additional info:
Comment 1 mgb01105731 2025-01-07 17:24:46 UTC
上游源码问题,需要升级或打补丁解决(https://kkgithub.com/libcgroup/libcgroup/commit/07259f1f17a3a60e46f72728e0262d8d8927c509