libvirt/tools
Michal Privoznik f6e88f6113 virsh: Make cmdVersion() work with split daemon
When virsh connects to a non-hypervisor daemon directly (e.g.
"nodedev:///system") and user executes 'version' they are met
with an error message. This is because cmdVersion() calls
virConnectGetVersion() which fails, hence the error.

The reason for virConnectGetVersion() fail is simple - it's
documented as:

  Get the version level of the Hypervisor running.

Well, there's no hypervisor in non-hypervisor daemons and thus it
doesn't make sense to provide an implementation in each driver's
virConnectDriver.hypervisorDriver table (just like we do for
other APIs, e.g. nodeConnectIsSecure()).

Given all of this, just make cmdVersion() deal with the error in
a non-fatal fashion.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2023-07-19 13:08:30 +02:00
..
bash-completion
nss Use G_N_ELEMENTS() more 2023-03-13 13:29:07 +01:00
wireshark meson: Replace meson.source_root() with meson.project_source_root() 2022-10-10 15:06:09 +02:00
libvirt_recover_xattrs.sh
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.service.in meson: Use initconfdir 2023-05-05 15:08:25 +02:00
libvirt-guests.sh.in meson: Use initconfdir 2023-05-05 15:08:25 +02:00
meson.build meson: Use initconfdir 2023-05-05 15:08:25 +02:00
virsh_win_icon.rc
virsh-backup.c virsh: Require --xpath for *dumpxml 2022-07-25 09:50:21 +02:00
virsh-backup.h
virsh-checkpoint.c tools: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virsh-checkpoint.h
virsh-completer-checkpoint.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-checkpoint.h
virsh-completer-domain.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-domain.h
virsh-completer-host.c virsh: Add completer for hypervisor-cpu-baseline --model 2022-10-10 14:31:43 +02:00
virsh-completer-host.h virsh: Add completer for hypervisor-cpu-baseline --model 2022-10-10 14:31:43 +02:00
virsh-completer-interface.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-interface.h
virsh-completer-network.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-network.h
virsh-completer-nodedev.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-nodedev.h
virsh-completer-nwfilter.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-nwfilter.h
virsh-completer-pool.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-pool.h
virsh-completer-secret.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-secret.h
virsh-completer-snapshot.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-snapshot.h
virsh-completer-volume.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer-volume.h
virsh-completer.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
virsh-completer.h
virsh-console.c util: remove virObjectUnref() adapters 2022-07-15 16:44:39 -05:00
virsh-console.h
virsh-domain-event.c virsh-domain-event: Make 'virshEventIOError(Reason)Print' translation friendly 2023-04-14 15:22:02 +02:00
virsh-domain-event.h
virsh-domain-monitor.c tools: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virsh-domain-monitor.h
virsh-domain.c virsh: Add migrate options to set parallel compress level 2023-05-18 15:47:30 +02:00
virsh-domain.h
virsh-edit.c tools: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virsh-host.c virsh: Make cmdVersion() work with split daemon 2023-07-19 13:08:30 +02:00
virsh-host.h
virsh-interface.c tools: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virsh-interface.h
virsh-network.c tools: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virsh-network.h
virsh-nodedev.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-nodedev.h
virsh-nwfilter.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-nwfilter.h
virsh-pool.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-pool.h
virsh-secret.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-secret.h
virsh-snapshot.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-snapshot.h
virsh-util.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-util.h tools: add helper method for printing an XML document 2022-06-20 10:40:34 +01:00
virsh-volume.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh-volume.h
virsh.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virsh.h virsh: Add --model option for hypervisor-cpu-baseline 2022-10-10 14:31:43 +02:00
virt-admin-completer.c
virt-admin-completer.h
virt-admin.c Remove trailing spaces from translatable strings 2023-04-03 08:55:27 +02:00
virt-admin.h
virt-host-validate-bhyve.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virt-host-validate-bhyve.h
virt-host-validate-ch.c
virt-host-validate-ch.h
virt-host-validate-common.c virt-host-validate: Detect SMMU presence on ARMs by parsing IORT table 2023-04-06 12:48:22 +02:00
virt-host-validate-common.h
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c
virt-host-validate-qemu.h
virt-host-validate.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virt-login-shell-helper.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virt-login-shell.c Use G_N_ELEMENTS() more 2023-03-13 13:29:07 +01:00
virt-login-shell.conf
virt-pki-query-dn.c tools: Update format strings in translated messages (part 2) 2023-04-01 11:40:36 +02:00
virt-pki-validate.in meson: Use initconfdir 2023-05-05 15:08:25 +02:00
virt-qemu-qmp-proxy scripts: Fix the flake8 syntax-check failures 2023-06-29 11:51:27 +02:00
virt-qemu-sev-validate scripts: Fix the flake8 syntax-check failures 2023-06-29 11:51:27 +02:00
virt-sanlock-cleanup.in
virt-xml-validate.in virt-xml-validate: Fix incorrect wildcards for XML roots 2022-07-07 12:21:16 +02:00
vsh-table.c tools: Remove unused includes 2022-06-16 06:43:58 +02:00
vsh-table.h
vsh.c vshPrint: Add version using 'va_list' 2023-04-14 15:22:02 +02:00
vsh.h vshPrint: Add version using 'va_list' 2023-04-14 15:22:02 +02:00