Skip to content

Commit

Permalink
lxc/cgroup/init: change warning that network priority will be ignored…
Browse files Browse the repository at this point in the history
… 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 <aleksandr.mikhalitsyn@canonical.com>
  • Loading branch information
mihalicyn committed Sep 14, 2023
1 parent 7439e0d commit fdfa52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/cgroup/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
}

Expand Down

0 comments on commit fdfa52e

Please sign in to comment.