Add a way to not show the same warning each time a snap run

Bug #1926283 reported by maxf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Low
Unassigned

Bug Description

Hello, using snap 2.49.2 on Debian sid here. I think I understand there's some WIP regarding a cgroup v2 thing, and for now we're stuck with the warning "WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement" each time a snap run.

The issue is I use the `lxc exec` command a lot in scripts and the result is my output is literally spammed with this warning.

‎I am now well aware of it, having read it hundreds of time in a short period of time ;). Furthermore it makes reading the useful output very hard.

Trying to set system.kernel.printk.console-loglevel from 0 to 7 didn't change anything.

I was told on IRC that the above setting couldn't help me (we're not dealing with a kernel level warning) and that there's currently no way to suppress the warning. The same person suggested I filled a bug asking for an environment flag we could use to disable the warning.

‎Another person humoristically suggested the flag `SNAPD_SHUT_UP=true` ;)

Regards

Changed in snapd:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Stefano Rivera (stefanor) wrote :

Please consider bumping the severity, this doesn't just cause annoyance, but also breaks things that expect nothing on stderr. See https://bugs.debian.org/996036

Revision history for this message
Ian Johnson (anonymouse67) wrote :

This output will be gone in snapd 2.53 I think since we have finished cgroupsv2 support, see https://github.com/snapcore/snapd/pull/10776 which will be included in snapd 2.53.

Changed in snapd:
status: Triaged → Fix Released
milestone: none → 2.53
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.