Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • None

    Description

      Discovery works using SSH for first phase but second phase fails.


      Libvirt VM: error: Cannot recv data: ssh: connect to host ovz1 port 22: Connection refused: Connection reset by peer
      error: failed to connect to the hypervisor
      error: Cannot recv data: ssh: connect to host ovz1 port 22: Connection refused: Connection reset by peer
      error: failed to connect to the hypervisor
      ------

      hackaround:

      discovery/libvirt-vminfo.inc.php

      Old: $uri = $method.'://' . $device['hostname'] . '/system';
      New: $uri = $method.'://' . $device['hostname'] . ':' . $device['ssh_port'] . '/system';

      Old: $uri = $method.'://' . $device['hostname'];
      New: $uri = $method.'://' . $device['hostname'] . ':' . $device['ssh_port'];

      Attachments

        Activity

          [OBS-954] SSH as parameter virsh

          Fixed in r9772.

          landy Mike Stupalov added a comment - Fixed in r9772.

          Hi, I hope this helps.
          I've modified the first lines of libvirt-vminfo.inc.php where it checks the method by the following ones:

          foreach ($config['libvirt_protocols'] as $method)
          { // new lines from here
          $uri = $method.'://' . $device['hostname'];

          if (strstr($method,'ssh') && !$ssh_ok)

          { $uri = $uri.':'.$device['ssh_port']; }

          if (strstr($method,'qemu'))

          { $uri = $uri.'/system'; }

          // until here
          if (strstr($method,'ssh') && !$ssh_ok)

          Regards
          Edu

          Edu Eduardo Campillo added a comment - Hi, I hope this helps. I've modified the first lines of libvirt-vminfo.inc.php where it checks the method by the following ones: foreach ($config ['libvirt_protocols'] as $method) { // new lines from here $uri = $method.'://' . $device ['hostname'] ; if (strstr($method,'ssh') && !$ssh_ok) { $uri = $uri.':'.$device['ssh_port']; } if (strstr($method,'qemu')) { $uri = $uri.'/system'; } // until here if (strstr($method,'ssh') && !$ssh_ok) Regards Edu

          People

            sid3windr Tom Laermans
            wgfreewill William Groh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: