Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-700

Wrong error info reported when executing virsh client without starting daemon

    • libvirt-10.0.0-1.el9
    • Minor
    • sst_virtualization
    • ssg_virtualization
    • 20
    • 26
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • Unspecified
    • 10.0.0
    • None

      Description of problem:
      Wrong error info reported when executing 'virsh list' without starting virtqemud

      Version-Release number of selected component (if applicable):
      libvirt-8.0.0-3.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1.Install libvirt pkgs:

      1. yum -y install libvirt*

      2.Executing virsh list without starting virtqemud:
      #virsh list
      error: failed to connect to the hypervisor
      error: Operation not supported: Cannot use direct socket mode if no URI is set

      3.

      Actual results:

      Expected results:
      Should report error to remind no existing socket file, such as:
      error: failed to connect to the hypervisor
      error: Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory

      Additional info:

            mkletzan@redhat.com Martin Kletzander
            rhn-support-yafu Yan Fu
            virt-maint virt-maint
            Yan Fu Yan Fu
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: