【环境信息】
系统: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=(podmancreate−−blkio−weight−device/dev/:15fedorals)podmaninspectID | grep '"BlkioWeight"'
【预期结果】
命令执行成功
备注:以下是sp2执行结果
【实际结果】
命令执行报内核不支持,但是返回0,查询结果不符合预期
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 , @duguhaotian , @caihaomin , @yangzhao_kl , @jianminw
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
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)制定修复计划
--待后续拉会补充时间戳
此问题已拉测试经理沟通 暂时挂起
/close
登录 后才可以发表评论