[libvirt] [PATCH 0/3] Misc LXC errore reporting improvements

Daniel P. Berrange berrange at redhat.com
Mon Oct 14 12:09:40 UTC 2013


From: "Daniel P. Berrange" <berrange at redhat.com>

A few more LXC fixes to improve error reporting

Instead of

# virsh -c lxc:/// start shell
error: Failed to start domain shell
error: internal error: guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=95449419-f969-d649-d996-2566ec42af7d LIBVIRT_LXC_UUID=95449419-f969-d649-d996-2566ec42af7d LIBVIRT_LXC_NAME=shell /bin/sh
error receiving signal from container: Input/output error

we now get

# virsh -c lxc:/// start shell
error: Failed to start domain shell
error: internal error: guest failed to start: Failed to access '/mnt/btr/does/not/exist': No such file or directory


Daniel P. Berrange (3):
  Ensure lxcContainerMain reports errors on stderr
  Ensure lxcContainerResolveSymlinks reports errors
  Improve log filtering in virLXCProcessReadLogOutputData

 src/lxc/lxc_container.c | 18 ++++++++++++++----
 src/lxc/lxc_process.c   | 16 +++++++++++++++-
 2 files changed, 29 insertions(+), 5 deletions(-)

-- 
1.8.3.1




More information about the libvir-list mailing list