From 827aab1c96af23893a0e4a4a40f30ed556610184 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 4 Nov 2024 11:36:56 -0500 Subject: [PATCH 1/2] lxd/instance/drivers/lxc: downgrade "Failed to statfs" error to warning Signed-off-by: Simon Deziel --- lxd/instance/drivers/driver_lxc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/instance/drivers/driver_lxc.go b/lxd/instance/drivers/driver_lxc.go index 801c1d9fed2b..2ce45b0ea37e 100644 --- a/lxd/instance/drivers/driver_lxc.go +++ b/lxd/instance/drivers/driver_lxc.go @@ -1357,7 +1357,7 @@ func (d *lxc) IdmappedStorage(path string, fstype string) idmap.IdmapStorageType if bindMount { err := unix.Statfs(path, buf) if err != nil { - d.logger.Error("Failed to statfs", logger.Ctx{"path": path, "err": err}) + d.logger.Warn("Failed to statfs", logger.Ctx{"path": path, "err": err}) return mode } } From a28082deb5bea4115c50c71bacbecc177bc838b8 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 4 Nov 2024 11:38:21 -0500 Subject: [PATCH 2/2] lxd/instance/drivers/lxc: downgrade "SFTP server stopped with error" error to warning Signed-off-by: Simon Deziel --- lxd/instance/drivers/driver_lxc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/instance/drivers/driver_lxc.go b/lxd/instance/drivers/driver_lxc.go index 2ce45b0ea37e..8678034264e4 100644 --- a/lxd/instance/drivers/driver_lxc.go +++ b/lxd/instance/drivers/driver_lxc.go @@ -6980,7 +6980,7 @@ func (d *lxc) FileSFTPConn() (net.Conn, error) { // Wait for completion. err = forkfile.Wait() if err != nil { - d.logger.Error("SFTP server stopped with error", logger.Ctx{"err": err, "stderr": strings.TrimSpace(stderr.String())}) + d.logger.Warn("SFTP server stopped with error", logger.Ctx{"err": err, "stderr": strings.TrimSpace(stderr.String())}) return } }()