The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6073
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From f43b20f9f5fb6df15d21d2fbdc496d17254e0f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 13 Aug 2019 16:00:20 -0400 Subject: [PATCH] lxd/storage/lvm: Log actual error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/storage_lvm_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxd/storage_lvm_utils.go b/lxd/storage_lvm_utils.go index 80ea742724..c35e66bcca 100644 --- a/lxd/storage_lvm_utils.go +++ b/lxd/storage_lvm_utils.go @@ -596,7 +596,7 @@ func lvmLvIsWritable(lvName string) (bool, error) { func storageVGActivate(lvmVolumePath string) error { output, err := shared.TryRunCommand("vgchange", "-ay", lvmVolumePath) if err != nil { - return fmt.Errorf("could not activate volume group \"%s\": %s", lvmVolumePath, output) + return fmt.Errorf("could not activate volume group \"%s\": %s: %s", lvmVolumePath, output, err) } return nil @@ -605,7 +605,7 @@ func storageVGActivate(lvmVolumePath string) error { func storageLVActivate(lvmVolumePath string) error { output, err := shared.TryRunCommand("lvchange", "-ay", lvmVolumePath) if err != nil { - return fmt.Errorf("could not activate logival volume \"%s\": %s", lvmVolumePath, output) + return fmt.Errorf("could not activate logival volume \"%s\": %s: %s", lvmVolumePath, output, err) } return nil
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel