1. 04 5月, 2016 1 次提交
  2. 03 5月, 2016 2 次提交
    • E
      virt-admin: Introduce command client-info · 9662315d
      Erik Skultety 提交于
      Wire-up the client identity getter into virt-admin tool. This patch adjusts
      man-page accordingly.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      9662315d
    • E
      virt-admin: Introduce srv-clients-list command · de770391
      Erik Skultety 提交于
      Wire-up the public client listing API. Along with this change, a private time
      simple conversion method to interpret client's timestamp obtained from server
      has been added as well. Format used to for time output is as follows:
      YYYY-mm-DD HH:MM:SS+ZZZZ.
      
      Although libvirt exposes methods time-related methods through virtime.h
      internally, it utilizes millisecond precision which we don't need in this case,
      especially when connection timestamps use precision to seconds only.
      This is just a convenience int to string conversion method.
      
      To reflect the new API, man page has been adjusted accordingly.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      de770391
  3. 02 5月, 2016 1 次提交
    • M
      tools: Fix connect command · 0c56d943
      Martin Kletzander 提交于
      The man page says: "(Re)-Connect to the hypervisor. When the shell is
      first started, this is automatically run with the URI parameter
      requested by the "-c" option on the command line."  However, if you run:
      
        virsh -c 'test://default' 'connect; uri'
      
      the output will not be 'test://default'.  That's because the 'connect'
      command does not care about any virsh-only related settings and if it is
      run without parameters, it connects with @uri == NULL.  Not only that
      doesn't comply to what the man page describes, but it also doesn't make
      sense.  It also means you aren't able to reconnect to whatever you are
      connected currently.
      
      So let's fix that in both virsh and virt-admin add a test case for it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0c56d943
  4. 30 4月, 2016 1 次提交
  5. 29 4月, 2016 1 次提交
  6. 26 4月, 2016 1 次提交
    • M
      tools: Introduce install-nss targets · 90bf5f5c
      Michal Privoznik 提交于
      We do have something similar for installing init system files.
      Basically I'm trying to avoid the following warning produced by
      automake:
      
      tools/Makefile.am:429: warning: uninstall-local was already defined in condition TRUE, which includes condition WITH_BSD_NSS ...
      tools/Makefile.am:292: ... 'uninstall-local' previously defined here
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      90bf5f5c
  7. 25 4月, 2016 14 次提交
  8. 21 4月, 2016 8 次提交
    • A
      dist: ln(1) is not guaranteed to have a '-f' option · d0062fb9
      Andrea Bolognani 提交于
      According to the autoconf manual, using '$(LN_S) -f' is not
      portable; remove the target explicitly beforehand to work around
      this limitation.
      
      Adjust some slightly awkward indentation while at it.
      d0062fb9
    • C
      virsh: Don't clear old connection if 'connect $uri' fails · a02a859b
      Cole Robinson 提交于
          virsh # list --all
           Id    Name                           State
          ----------------------------------------------------
           1     test                           running
      
          virsh # connect frob
          error: Failed to connect to the hypervisor
          error: no connection driver available for frob
      
          virsh # list --all
          error: failed to connect to the hypervisor
          error: no valid connection
          error: no connection driver available for frob
      
      Seems sensible IMO to just not clear out the old connection state
      until the new virConnectOpen succeeds.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=829160
      a02a859b
    • R
      virsh: re-fix help printing without connection · 384dde55
      Roman Bogorodskiy 提交于
      Re-do 0217089b so it does not add regression for commit c0726e07 that allowed to
      print help without making a connection to the daemon.
      384dde55
    • A
      build: Use $(LN_S) safely · ed5c9297
      Andrea Bolognani 提交于
      The autoconf documentation recommends to always use this
      construct when creating symbolic links with $(LN_S) to avoid
      unexpected behavior.
      ed5c9297
    • A
      build: Overwrite existing symbolic links · ce8379ee
      Andrea Bolognani 提交于
      The current rule fails if the target already exists:
      
        cd /home/jenkins/build/libvirt/lib && \
          ln -s libnss_libvirt.so.1 nss_libvirt.so.1
        ln: nss_libvirt.so.1: File exists
        Makefile:3357: recipe for target 'install-exec-hook' failed
      
      However, all other rules concerned with installation are
      idempotent and will happily overwrite an existing target,
      so this one should as well.
      ce8379ee
    • P
      virsh: perf: Remove unnecessary 'error' label · b4bc800c
      Peter Krempa 提交于
      The only place that uses it doesn't warrant a separate label.
      b4bc800c
    • P
      virsh: perf: Don't leak domain · f4f916a9
      Peter Krempa 提交于
      After failing to parse the perf event list, the code would return
      failure without freeing the previously acquired object. Rearrange the
      code to avoid the problem.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329046
      f4f916a9
    • R
      virsh: don't override connection URI from argv · 0217089b
      Roman Bogorodskiy 提交于
      Currently, if a connection URI was specified on the command line by the
      '-c' switch, virsh connects to it, but after connecting overrides its
      value with the one it tries to obtain from the VIRSH_DEFAULT_CONNECT_URI
      environment variable.
      
      This makes virsh connecting to the wrong URI if it disconnects from the
      hypervisor and then tries to reconnect, and also leaks the original connname.
      
      Fix by calling virGetEnvBlockSUID() before virshParseArgv().
      0217089b
  9. 20 4月, 2016 2 次提交
  10. 18 4月, 2016 1 次提交
  11. 16 4月, 2016 1 次提交
    • J
      tools: Fix memory leak · cb31d618
      John Ferlan 提交于
      Coverity found that commit id 'c661b675' needed to create a cleanup
      path to handle the closing of 'fp' if the virBitmapNewQuiet failed.
      cb31d618
  12. 15 4月, 2016 4 次提交
  13. 14 4月, 2016 2 次提交
  14. 13 4月, 2016 1 次提交
    • P
      Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event · 5be12071
      Peter Krempa 提交于
      Since we didn't opt to use one single event for device lifecycle for a
      VM we are missing one last event if the device removal failed. This
      event will be emitted once we asked to eject the device but for some
      reason it is not possible.
      5be12071