libvirt/tools
Nikolay Shirokovskiy 29f2b5248c tools: console: pass stream/fd errors to user
If the console was disconnected due to a connection problem or a problem on the
server side it is convinient to provide the cause to the user. If the error
come from the API then the error is saved in a virsh global variable. However,
since success is returned from virshRunConsole after we reach the waiting stage,
then the error is never reported. Let's track the error in the event loop.

Next after failure we do a cleanup and this cleanup can overwrite
root cause. Thus let's save root cause immediately and then set it to
virsh error after all cleanup is done.

Since we'll be sending the error to the consumer, each failure path from
the event handlers needs to be augmented to provide what error generated
the failure.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
2019-04-04 10:36:04 +03:00
..
bash-completion tools: Provide bash autompletion file 2018-01-11 18:53:04 +01:00
nss Use virStringHasSuffix() where possible 2019-03-07 10:10:49 +01:00
wireshark tools: Drop support for pre-2.4.0 wireshark 2019-02-12 09:22:59 +01:00
libvirt_recover_xattrs.sh tools: Provide a script to recover fubar'ed XATTRs setup 2018-12-19 15:32:45 +01:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.service.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.sh.in tools: do not report unknown guests in print_guests_shutdown 2018-04-24 10:46:41 +02:00
libvirt-guests.sysconf lxc: allow use of lxc:///system URI as preferred format 2018-04-12 16:52:01 +01:00
Makefile.am Drop support for "Red Hat" init scripts 2019-03-15 18:36:19 +01:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh-completer.c virsh-completer: introduce virshPagesizeNodeToString 2019-04-03 10:29:15 +02:00
virsh-completer.h virsh: Add event name completion to 'network-event' command 2019-03-05 09:09:48 +01:00
virsh-console.c tools: console: pass stream/fd errors to user 2019-04-04 10:36:04 +03:00
virsh-console.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsh-domain-monitor.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
virsh-domain-monitor.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-domain.c virsh: fix indentation of info_managed_save_edit 2019-04-03 10:07:36 +02:00
virsh-domain.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-edit.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-host.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-host.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-interface.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-interface.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-network.c virsh: Add event name completion to 'network-event' command 2019-03-05 09:09:48 +01:00
virsh-network.h virsh-network: Introduce virshNetworkEventCallback to handle network events 2019-03-05 09:09:48 +01:00
virsh-nodedev.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-nodedev.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-nwfilter.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-nwfilter.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-pool.c virsh-pool: Offer only active pool for pool-refresh completer 2019-03-16 07:50:51 +01:00
virsh-pool.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-secret.c Use VIR_AUTODISPOSE_STR instead of VIR_DISPOSE_STRING where possible 2019-04-03 11:58:10 +02:00
virsh-secret.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-snapshot.c snapshot: Refactor list filtering 2019-03-22 01:18:33 -05:00
virsh-snapshot.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh-util.c all: Replace virGetLastError with virGetLastErrorCode where we can 2018-06-05 18:44:05 +02:00
virsh-util.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virsh-volume.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virsh-volume.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virsh.pod virsh.pod: Improve native configuration format doc 2019-04-03 13:55:59 -04:00
virt-admin-completer.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin-completer.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin.c Use NULLSTR_EMPTY 2019-02-14 14:09:38 +01:00
virt-admin.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-admin.pod virsh: Treat any command name starting with # as comment 2019-03-25 09:01:53 -05:00
virt-host-validate-bhyve.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
virt-host-validate-bhyve.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-common.c tools/virt-host-validate: Fix IOMMU check on s390x 2019-03-08 09:16:00 +01:00
virt-host-validate-common.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-lxc.c virt-host-validate: require freezer for LXC 2018-10-05 15:53:29 +02:00
virt-host-validate-lxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate-qemu.c virt-host-validate: rewrite cgroup detection to use util/vircgroup 2018-10-05 15:53:29 +02:00
virt-host-validate-qemu.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
virt-host-validate.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
virt-host-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-login-shell.c Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00
virt-login-shell.conf virt-login-shell: add ability to auto-detect shell from container 2016-06-10 11:03:02 +01:00
virt-login-shell.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-pki-validate.in tools: rename S_ORG to C_ORG in virt-pki-validate 2018-12-11 14:58:43 +00:00
virt-pki-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-sanlock-cleanup.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-sanlock-cleanup.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-xml-validate.in tools/virt-xml-validate: Fix GPL information 2019-01-25 14:04:19 +01:00
virt-xml-validate.pod virt-xml-validate: Add schema for nwfilterbinding 2018-07-19 16:16:57 -04:00
vsh-table.c vsh-table: allow empty columns 2019-02-12 10:14:53 +01:00
vsh-table.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
vsh.c virsh: Add 'echo --err' option 2019-03-25 09:02:02 -05:00
vsh.h Remove even more Author(s): lines from source files 2019-01-03 13:24:18 +01:00