From da15f4ebed5c31994fd1471a915de21bc6af592f Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Thu, 10 Aug 2023 13:32:49 +0200 Subject: [PATCH] lxc/cgroup/init: change warning that network priority will be ignored without NetPrio cgroup Currently, we issue the following warning in the logs: Couldn't find the CGroup network priority controller, network priority will be ignored Let's change text to: Couldn't find the CGroup network priority controller, per-instance network priority will be ignored. Please use per-device limits.priority instead Signed-off-by: Alexander Mikhalitsyn --- lxd/cgroup/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/cgroup/init.go b/lxd/cgroup/init.go index 11859dc1aac7..f15fb77a3793 100644 --- a/lxd/cgroup/init.go +++ b/lxd/cgroup/init.go @@ -313,7 +313,7 @@ func (info *Info) Warnings() []cluster.Warning { if !info.Supports(NetPrio, nil) { warnings = append(warnings, cluster.Warning{ TypeCode: warningtype.MissingCGroupNetworkPriorityController, - LastMessage: "network priority will be ignored", + LastMessage: "per-instance network priority will be ignored. Please use per-device limits.priority instead", }) }