1. 16 9月, 2019 2 次提交
  2. 28 8月, 2019 1 次提交
  3. 14 8月, 2019 1 次提交
  4. 09 8月, 2019 1 次提交
  5. 07 8月, 2019 2 次提交
  6. 27 7月, 2019 1 次提交
  7. 19 7月, 2019 1 次提交
    • D
      remote: increase daemon shutdown timer to 2 minutes · 9d7fcdbf
      Daniel P. Berrangé 提交于
      Shutting down the daemon after 30 seconds of being idle is a little bit
      too aggressive. Especially when using 'virsh' in single-shot mode, as
      opposed to interactive shell mode, it would not be unusual to have
      more than 30 seconds between commands. This will lead to the daemon
      shutting down and starting up between a series of commands.
      
      Increasing the shutdown timer to 2 minutes will make it less likely that
      the daemon will shutdown while the user is in the middle of a series of
      commands.
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      9d7fcdbf
  8. 12 7月, 2019 9 次提交
  9. 11 7月, 2019 2 次提交
    • D
      rpc: always pass "-T -e none" args to ssh · 1939bcd5
      Daniel P. Berrangé 提交于
      Way back in the past, the "no_tty=1" option was added for the remote
      driver to disable local password prompting by disabling use of the local
      tty:
      
        commit b32f4298
        Author: Daniel P. Berrange <berrange@redhat.com>
        Date:   Fri Sep 21 20:17:09 2007 +0000
      
          Added a no_tty param to remote URIs to stop SSH prompting for password
      
      This was done by adding "-T -o BatchMode=yes -e none" args to ssh. This
      achieved the desired results but is none the less semantically flawed
      because it is mixing up config parameters for the local tty vs the
      remote tty.
      
      The "-T" arg stops allocation of a TTY on the remote host. This is good
      for all libvirt SSH tunnels as we never require a TTY for our usage
      model, so we should have just passed this unconditionally.
      
      The "-e none" option disables the escape character for sessions with a
      TTY. If we pass "-T" this is not required, but it also not harmful to
      add it, so we should just pass it unconditionally too.
      
      Only the "-o BatchMode=yes" option is related to disabling local
      password prompts and thus needs control via the no_tty URI param.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      1939bcd5
    • D
  10. 08 7月, 2019 1 次提交
    • D
      rpc: ensure thread safe initialization of SASL library · 7722606b
      Daniel P. Berrangé 提交于
      Neither the sasl_client_init or sasl_server_init methods are even
      remotely threadsafe. They do a bunch of one-time initialization and
      merely use a simple integer counter to avoid repeated work, not even
      using atomic increment/reads on the counter. This can easily race in a
      threaded program. Protect the calls using a virOnce initializer function
      which is guaranteed threadsafe at least from libvirt's POV.
      
      If the application using libvirt also uses another library that makes
      use of SASL then the race still exists. It is impossible to fix that
      fully except in SASL code itself.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      7722606b
  11. 01 7月, 2019 1 次提交
  12. 21 6月, 2019 3 次提交
    • D
      rpc: add $(SASL_CFLAGS) to libvirt_net_rpc_server_la_CFLAGS · c44022f6
      Daniel P. Berrangé 提交于
      The files for libvirt-net-rpc-server.la refernce the sasl/sasl.h
      system header but never used the $(SASL_CFLAGS) variable. This
      was never noticed previously because the $(AVAHI_CLFAGS) were
      set and these typically pulled in the same include directory.
      
      When mDNS/Avahi support was removed this exposed the bug which
      caused FreeBSD builds to break as /usr/local/include was no
      longer searched for headers.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c44022f6
    • D
      remote: delete the avahi mDNS support · 5a148ce8
      Daniel P. Berrangé 提交于
      Libvirtd has long had integration with avahi for advertising libvirtd
      using mDNS when TCP/TLS listening is enabled. For a long time the
      virt-manager application had support for auto-detecting libvirtds
      on the local network using mDNS, but this was removed last year
      
        commit fc8f8d5d7e3ba80a0771df19cf20e84a05ed2422
        Author: Cole Robinson <crobinso@redhat.com>
        Date:   Sat Oct 6 20:55:31 2018 -0400
      
          connect: Drop avahi support
      
          Libvirtd can advertise itself over avahi. The feature is disabled by
          default though and in practice I hear of no one actually using it
          and frankly I don't think it's all that useful
      
          The 'Open Connection' wizard has a disproportionate amount of code
          devoted to this feature, but I don't think it's useful or worth
          maintaining, so let's drop it
      
      I've never heard of any other applications having support for using
      mDNS to detect libvirtd instances. Though it is theoretically possible
      something exists out there, it is clearly going to be a niche use case
      in the virt ecosystem as a whole.
      
      By removing avahi integration we can cut down the dependency chain for
      the basic libvirtd install and reduce our code maint burden.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      5a148ce8
    • P
      rpc: virnetlibsshsession: update deprecated functions · e0ce339c
      Pavel Hrdina 提交于
      In libssh 0.9.0 functions ssh_is_server_known and ssh_write_knownhost
      are marked as deprecated.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1722735Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      e0ce339c
  13. 19 6月, 2019 1 次提交
  14. 17 6月, 2019 1 次提交
  15. 23 5月, 2019 1 次提交
  16. 14 5月, 2019 1 次提交
  17. 16 4月, 2019 1 次提交
  18. 12 4月, 2019 2 次提交
  19. 09 4月, 2019 1 次提交
  20. 03 4月, 2019 2 次提交
  21. 09 2月, 2019 1 次提交
    • N
      rpc: client: stream: fix multi thread abort/finish · d63c82df
      Nikolay Shirokovskiy 提交于
      If 2 threads call abort for example then one of them
      will hang because client will send 2 abort messages and
      server will reply only on first of them, the second will be
      ignored. And on server reply client changes the state only
      one of abort message to complete, the second will hang forever.
      There are other similar issues.
      
      We should complete all messages waiting reply if we got
      error or expected abort/finish reply from server. Also if one
      thread send finish and another abort one of them will win
      the race and server will either abort or finish stream. If
      stream is aborted then thread requested finishing should report
      error. In order to archive this let's keep stream closing reason
      in @closed field. If we receive VIR_NET_OK message for stream
      then stream is finished if oldest (closest to queue end) message
      in stream queue is finish message and stream is aborted if oldest
      message is abort message. Otherwise it is protocol error.
      
      By the way we need to fix case of receiving VIR_NET_CONTINUE
      message. Now we take oldest message in queue and check if
      this is dummy message. If one thread first sends abort and
      second thread then receives data then oldest message is abort
      message and second thread won't be notified when data arrives.
      Let's find oldest dummy message instead.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d63c82df
  22. 08 2月, 2019 4 次提交