129 Star 0 Fork 36

src-openEuler/podman

 / 详情

【22.03 LTS 】[arm/x86]podman create --blkio-weight 15 alpine ls命令执行报错

已挂起
缺陷
创建于  
2022-02-21 17:43

【环境信息】
系统:arm/x86
【问题复现步骤】
1、安装包
dnf install -y podman podman-docker
2、准备条件
echo -e "[registries.search]
registries = ['docker.io']

[registries.insecure]
registries = []

[registries.block]
registries = []
" >/etc/containers/registries.conf
podman pull postgres:alpine
podman run --name postgres -e POSTGRES_PASSWORD=secret -d postgres:alpine
备注:https://gitee.com/openeuler/mugen/blob/master/testcases/cli-test/podman/common/common_podman.sh
3、命令验证
ID=$(podman create --blkio-weight-device /dev/:15 fedora ls)
podman inspect $ID | grep '"BlkioWeight"'
【预期结果】
命令执行成功
备注:以下是sp2执行结果
输入图片说明
【实际结果】
命令执行报内核不支持,但是返回0,查询结果不符合预期
输入图片说明

评论 (5)

ssttkx 创建了任务

Hi ssttkx, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-CloudNative, and any of the maintainers: @weibaohui , @biannm , @pixiake , @haozi007 , @haomintsai , @yangzhao_kl , @Jianmin

openeuler-ci-bot 添加了
 
sig/sig-CloudNative
标签
ssttkx 负责人设置为small_leek
ssttkx 优先级设置为主要
ssttkx 任务类型任务 修改为缺陷
ssttkx 修改了描述
ssttkx 任务类型缺陷 修改为任务
ssttkx 修改了描述
ssttkx 优先级主要 修改为次要

1.导致这个问题的直接原因是因为/sys/fs/cgroup/blkio/ 目录下面没有blkio.weight
2.导致没有blkio.weight 的原因是因为这个分支对应的内核版本是5.10版本,而blkio.weight只在小于4.20的内核版本上才支持。
3.现在使用的5.10内核版本上cgroup对io带宽的控制是通过blkio.bfq.weight实现的
4.现行版本的podman软件包还不支持blkio.bfq.weight
5.结论:上述四条导致现行版本的podman create 如果跟参数--blkio-weight 或参数 --blkio-weight-device会因为现行版本不支持而失败。
6.建议处理方案:对podman软件包进行升级

待排查下上层依赖后进行升级解决

podman升级后,是支持--blk-weight这个参数的,前提是在cgroup V2下,需要设置启动参数cgroup_no_v1=all ,禁用cgroup v1.
输入图片说明

1)podman create --blkio-weight 或参数 --blkio-weight-device 没加参数是否下默认值
--不会下发默认值
2)podman create其他参数是否问题
--已和测试印证测试podman create 除了以上两个参数有问题,其余没问题
3)podman create 创建容器是否可运行起来
--可以
4)制定修复计划
--待后续拉会补充时间戳

此问题已拉测试经理沟通 暂时挂起

ssttkx 任务类型任务 修改为缺陷
ssttkx 任务状态待办的 修改为已挂起

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/podman.git
git@gitee.com:src-openeuler/podman.git
src-openeuler
podman
podman

搜索帮助

Cb406eda 1850385 E526c682 1850385