提交 d55e11a3 编写于 作者: M Michal Privoznik

virt-host-validate: Check those CGroups that we actually use

Since the introduction of virt-host-validate tool the set of
cgroup controllers we use has changed so the tool is checking for
some cgroups that we don't need (e.g. net_cls, although I doubt
we have ever used that one) and is not checking for those we
actually use (e.g. cpuset).
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 9cbd1ecc
......@@ -78,19 +78,19 @@ int virHostValidateLXC(void)
"CGROUP_CPUACCT") < 0)
ret = -1;
if (virHostValidateCGroupController("LXC", "devices",
if (virHostValidateCGroupController("LXC", "cpuset",
VIR_HOST_VALIDATE_FAIL,
"CGROUP_DEVICE") < 0)
"CPUSETS") < 0)
ret = -1;
if (virHostValidateCGroupController("LXC", "net_cls",
VIR_HOST_VALIDATE_WARN,
"NET_CLS_CGROUP") < 0)
if (virHostValidateCGroupController("LXC", "devices",
VIR_HOST_VALIDATE_FAIL,
"CGROUP_DEVICE") < 0)
ret = -1;
if (virHostValidateCGroupController("LXC", "freezer",
VIR_HOST_VALIDATE_WARN,
"CGROUP_FREEZER") < 0)
if (virHostValidateCGroupController("LXC", "blkio",
VIR_HOST_VALIDATE_FAIL,
"BLK_CGROUP") < 0)
ret = -1;
return ret;
......
......@@ -74,14 +74,14 @@ int virHostValidateQEMU(void)
"CGROUP_CPUACCT") < 0)
ret = -1;
if (virHostValidateCGroupController("QEMU", "devices",
if (virHostValidateCGroupController("QEMU", "cpuset",
VIR_HOST_VALIDATE_WARN,
"CGROUP_DEVICES") < 0)
"CPUSETS") < 0)
ret = -1;
if (virHostValidateCGroupController("QEMU", "net_cls",
if (virHostValidateCGroupController("QEMU", "devices",
VIR_HOST_VALIDATE_WARN,
"NET_CLS_CGROUP") < 0)
"CGROUP_DEVICES") < 0)
ret = -1;
if (virHostValidateCGroupController("QEMU", "blkio",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册