1. 28 6月, 2017 1 次提交
  2. 18 3月, 2017 1 次提交
    • P
      (log|lock)daemon: Don't spam logs with IO error messages after client disconnects · f0803dae
      Peter Krempa 提交于
      The log and lock protocol don't have an extra handshake to close the
      connection. Instead they just close the socket. Unfortunately that
      resulted into a lot of spurious garbage logged to the system log files:
      
      2017-03-17 14:00:09.730+0000: 4714: error : virNetSocketReadWire:1800 : End of file while reading data: Input/output error
      
      or in the journal as:
      
      Mar 13 16:19:33 xxxx virtlogd[32360]: End of file while reading data: Input/output error
      
      Use the new facility in the netserverclient to suppress the IO error
      report from the virNetSocket layer.
      f0803dae
  3. 16 3月, 2017 1 次提交
    • D
      Increase default file handle limits for daemons · 27cd7635
      Daniel P. Berrange 提交于
      Linux still defaults to a 1024 open file handle limit. This causes
      scalability problems for libvirtd / virtlockd / virtlogd on large
      hosts which might want > 1024 guest to be running. In fact if each
      guest needs > 1 FD, we can't even get to 500 guests. This is not
      good enough when we see machines with 100's of physical cores and
      TBs of RAM.
      
      In comparison to other memory requirements of libvirtd & related
      daemons, the resource usage associated with open file handles
      is essentially line noise. It is thus reasonable to increase the
      limits unconditionally for all installs.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      27cd7635
  4. 15 12月, 2016 2 次提交
  5. 14 12月, 2016 1 次提交
  6. 10 10月, 2016 3 次提交
  7. 20 9月, 2016 1 次提交
    • A
      virtlogd: Don't stop or restart along with libvirtd · f496ce1d
      Andrea Bolognani 提交于
      Commit 839a0608 tied the lifecycle of virtlogd more
      closely to that of libvirtd. Unfortunately, while starting
      virtlogd when libvirtd is started is definitely a good idea,
      restarting virtlogd or shutting it down at any time outside
      of system poweroff is not.
      
      Revert part of that commit by removing the PartOf= lines,
      meaning that only startup requests will be propagated from
      libvirtd to virtlogd.
      
      Resolves: https://bugzilla.redhat.com/1372576
      f496ce1d
  8. 06 9月, 2016 1 次提交
    • A
      virtlogd.socket: Tie lifecycle to libvirtd.service · 839a0608
      Andrea Bolognani 提交于
      We already guarantee that virtlogd.socket is enabled/disabled
      along with libvirtd.service, but if libvirtd.service has just
      been installed and is started before rebooting, then
      virtlogd.socket will not be running and guest startup will
      fail.
      
      Add Requires=virtlogd.socket to libvirtd.service to make sure
      virtlogd.socket is always started along with libvirtd.service,
      and add Before=libvirtd.service to both virtlogd.socket and
      virtlogd.service so that virtlogd never disappears before
      libvirtd has exited.
      
      Also add PartOf=libvirtd.service to both virtlogd.socket and
      virtlogd.service, so that virtlogd can be shut down when not
      needed.
      
      Resolves: https://bugzilla.redhat.com/1372576
      839a0608
  9. 12 7月, 2016 1 次提交
  10. 07 7月, 2016 2 次提交
  11. 28 6月, 2016 1 次提交
  12. 08 6月, 2016 2 次提交
    • P
      log: daemon: Add remote protocol handling for the log appending API · 78b9b85c
      Peter Krempa 提交于
      Implement the RPC dispatcher and caller for the new API.
      78b9b85c
    • P
      log: handler: Add new API to append to logging files · 5e6143fb
      Peter Krempa 提交于
      For logging one-shot entries to the VM log file it's quite a waste to
      hold open the file descriptor for logging that is provided by the
      current API.
      
      This new API will be ideal for logging one-shot entries to the file
      e.g. at the point when we shut the VM down rather than having to add the
      whole file-descriptor infrastructure.
      
      Additionally this will allow to add the messages even after restart of
      libvirtd since virtlogd doesn't allow to obtain a regular context with
      filedescriptors while the VM is still active.
      5e6143fb
  13. 20 5月, 2016 1 次提交
  14. 03 5月, 2016 1 次提交
    • E
      rpc: virnetserverclient: Identify clients by an integer ID · 5841d64d
      Erik Skultety 提交于
      Admin API needs a way of addressing specific clients. Unlike servers, which we
      are happy to address by names both because its name reflects its purpose (to
      some extent) and we only have two of them (so far), naming clients doesn't make
      any sense, since a) each client is an anonymous, i.e. not recognized after a
      disconnect followed by a reconnect, b) we can't predict what kind of requests
      it's going to send to daemon, and c) the are loads of them comming and going,
      so the only viable option is to use an ID which is of a reasonably wide data
      type.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      5841d64d
  15. 25 4月, 2016 2 次提交
    • A
      man: Fix SYNOPSIS section · 92b2c047
      Andrea Bolognani 提交于
      Format the text properly.
      92b2c047
    • A
      build: Standardize on .pod -> .x.in -> .x · 5b479f3b
      Andrea Bolognani 提交于
      After this commit, all man pages are generated using the same two
      steps:
      
        1. Process a source $command.pod file with pod2man(1) to obtain
           a valid man page in $command.$section.in
      
        2. Process $command.$section.in with sed(1) to obtain the final
           man page in $command.$section
      5b479f3b
  16. 15 4月, 2016 1 次提交
  17. 11 4月, 2016 1 次提交
  18. 11 3月, 2016 2 次提交
  19. 10 3月, 2016 2 次提交
  20. 17 2月, 2016 1 次提交
  21. 19 1月, 2016 1 次提交
    • M
      virLogManagerDomainReadLogFile: Don't do dummy allocs · c03fbecc
      Michal Privoznik 提交于
      Since we pass dummy variables @fdout and @fdoutlen into
      virNetClientProgramCall() we make it alloc @fdout array (even
      though it's an array of 0 elements since vitlogd can hardly pass
      us some FDs at this stage). Nevertheless, it's an allocation not
      followed by free():
      
      ==29385== 0 bytes in 60 blocks are definitely lost in loss record 2 of 1,009
      ==29385==    at 0x4C2C070: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==29385==    by 0x54B99EF: virAllocN (viralloc.c:191)
      ==29385==    by 0x56821B1: virNetClientProgramCall (virnetclientprogram.c:359)
      ==29385==    by 0x563B304: virLogManagerDomainReadLogFile (log_manager.c:272)
      ==29385==    by 0x217CD613: qemuDomainLogContextRead (qemu_domain.c:2485)
      ==29385==    by 0x217EDC76: qemuProcessReadLog (qemu_process.c:1660)
      ==29385==    by 0x217EDE1D: qemuProcessReportLogError (qemu_process.c:1696)
      ==29385==    by 0x217EE8C1: qemuProcessWaitForMonitor (qemu_process.c:1957)
      ==29385==    by 0x217F6636: qemuProcessLaunch (qemu_process.c:4955)
      ==29385==    by 0x217F71A4: qemuProcessStart (qemu_process.c:5152)
      ==29385==    by 0x21846582: qemuDomainObjStart (qemu_driver.c:7396)
      ==29385==    by 0x218467DE: qemuDomainCreateWithFlags (qemu_driver.c:7450)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c03fbecc
  22. 12 1月, 2016 1 次提交
  23. 11 1月, 2016 1 次提交
  24. 06 1月, 2016 2 次提交
    • O
      fix LSB part of virtlogd runlevel script · b22344f3
      Olaf Hering 提交于
      Currently pkg build of master branch fails:
      
      [  300s] + /usr/lib/rpm/brp-boot-scripts
      [  300s] E: File `virtlogd' is missing `Required-Start', please add even if empty!
      [  300s] W: File `virtlogd' is missing `Required-Stop', please add even if empty!
      [  300s] E: File `virtlogd' has empty `Default-Start', please specify default runlevel(s)!
      [  300s] ERROR: found one or more broken init or boot scripts, please fix them.
      [  300s]        For more information about LSB headers please read the manual
      [  300s]        page of of insserv by executing the command `man 8 insserv'.
      [  300s]        If you don't understand this, mailto=werner@suse.de
      [  300s] error: Bad exit status from /var/tmp/rpm-tmp.44965 (%install)
      
      Add the required tags, fix the existing tags.
      Use soft dependency "Should-Start" because virtlogd may work without network.
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      b22344f3
    • M
      virtlogd: fix lock file path in initscript · 44b4a4f6
      Michael Chapman 提交于
      The virtlogd initscript's lock file should go in /var/lock/subsys/, not
      (the nonexistent) /var/log/subsys/.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      44b4a4f6
  25. 08 12月, 2015 3 次提交
  26. 01 12月, 2015 1 次提交
    • M
      log_manager: Include configmake.h last · bd205a90
      Michal Privoznik 提交于
      The problem is that in some mingw header DATADIR is used but
      gnulib defines it too. This leads to the following compile error:
      
        CC       locking/libvirt_driver_la-lock_manager.lo
      In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/objbase.h:66:0,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/ole2.h:17,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/wtypes.h:12,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/winscard.h:10,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:97,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23,
                       from ../gnulib/lib/unistd.h:48,
                       from ../../src/util/virutil.h:29,
                       from ../../src/logging/log_manager.c:30:
      /usr/i686-w64-mingw32/sys-root/mingw/include/objidl.h:12275:2: error: expected identifier or '(' before string constant
       } DATADIR;
        ^
      Makefile:7888: recipe for target 'logging/libvirt_driver_la-log_manager.lo' failed
      
      The fix is to include configmake.h at the end of includes.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      bd205a90
  27. 27 11月, 2015 2 次提交
  28. 26 11月, 2015 1 次提交