1. 07 7月, 2016 2 次提交
  2. 28 6月, 2016 1 次提交
  3. 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
  4. 20 5月, 2016 1 次提交
  5. 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
  6. 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
  7. 15 4月, 2016 1 次提交
  8. 11 4月, 2016 1 次提交
  9. 11 3月, 2016 2 次提交
  10. 10 3月, 2016 2 次提交
  11. 17 2月, 2016 1 次提交
  12. 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
  13. 12 1月, 2016 1 次提交
  14. 11 1月, 2016 1 次提交
  15. 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
  16. 08 12月, 2015 3 次提交
  17. 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
  18. 27 11月, 2015 2 次提交
  19. 26 11月, 2015 4 次提交
    • D
      logging: inhibit virtlogd shutdown while log files are open · df34363d
      Daniel P. Berrange 提交于
      The virtlogd daemon is launched with a 30 second timeout for
      unprivileged users. Unfortunately the timeout is only inhibited
      while RPC clients are connected, and they only connect for a
      short while to open the log file descriptor. We need to hold
      an inhibition for as long as the log file descriptor itself
      is open.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      df34363d
    • D
      logging: add client for virtlogd daemon · 37ed4224
      Daniel P. Berrange 提交于
      Add the virLogManager API which allows for communication with
      the virtlogd daemon to RPC program. This provides the client
      side API to open log files for guest domains.
      
      The virtlogd daemon is setup to auto-spawn on first use when
      running unprivileged. For privileged usage, systemd socket
      activation is used instead.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      37ed4224
    • D
      logging: introduce log handling protocol · 19e5db4a
      Daniel P. Berrange 提交于
      Define a new RPC protocol for the virtlogd daemon that provides
      for handling of logs. The initial RPC method defined allows a
      client to obtain a file handle to use for writing to a log
      file for a guest domain. The file handle passed back will not
      actually refer to the log file, but rather an anonymous pipe.
      The virtlogd daemon will forward I/O between them, ensuring
      file rotation happens when required.
      
      Initially the log setup is hardcoded to cap log files at
      128 KB, and keep 3 backups when rolling over, which gives
      a max usage of 512 KB per guest.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      19e5db4a
    • D
      Import stripped down virtlockd code as basis of virtlogd · 323a329b
      Daniel P. Berrange 提交于
      Copy the virtlockd codebase across to form the initial virlogd
      code. Simple search & replace of s/lock/log/ and gut the remote
      protocol & dispatcher. This gives us a daemon that starts up
      and listens for connections, but does nothing with them.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      323a329b