• D
    Improve LXC startup error reporting · 09f5e012
    Daniel P. Berrange 提交于
    Currently we rely on a VIR_ERROR message being logged by the
    virRaiseError function to report LXC startup errors. This gives
    the right message, but is rather ugly and can be truncated
    if lots of log messages are written. Change the LXC controller
    to explicitly print any virErrorPtr message to stderr. Then
    change the driver to skip over anything that looks like a log
    message.
    
    The result is that this
    
    error: Failed to start domain busy
    error: internal error guest failed to start: 2013-03-04 19:46:42.846+0000: 1734: info : libvirt version: 1.0.2
    2013-03-04 19:46:42.846+0000: 1734: error : virFileLoopDeviceAssociate:600 : Unable to open /root/disk.raw: No such file or directory
    
    changes to
    
    error: Failed to start domain busy
    error: internal error guest failed to start: Unable to open /root/disk.raw: No such file or directory
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    09f5e012
lxc_controller.c 48.1 KB