1. 12 7月, 2019 1 次提交
    • D
      logging: ensure virtlogd rollover takes priority over logrotate · 975b004d
      Daniel P. Berrangé 提交于
      The virtlogd config is set to rollover logs every 2 MB.
      
      Normally a logrotate config file is also installed to handle cases where
      virtlogd is disabled. This is set to rollover weekly with no size
      constraint.
      
      As a result logrotate can interfere with virtlogd's, rolling over files
      that virtlogd has already taken care of.
      
      This changes logrotate configs to rollover based on a max size
      constraint of 2 MB + 1 byte. When virtlogd is running the log files will
      never get this large, making logrotate a no-op.
      
      If the user changes the size in virtlogd's config to something larger,
      they are responsible for also changing the logrotate config suitably.
      
      The LXC/libxl drivers don't use virtlogd, but there logrotate config is
      altered to match the QEMU driver config, for the sake of consistency.
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      975b004d
  2. 11 7月, 2019 25 次提交
  3. 10 7月, 2019 3 次提交
  4. 09 7月, 2019 11 次提交
    • E
      maint: Typo fix for whether · 66ec1e80
      Eric Blake 提交于
      Signed-off-by: NEric Blake <eblake@redhat.com>
      66ec1e80
    • E
      bhyve: Fix build · 846fe076
      Eric Blake 提交于
      Continuous integration caught that although 'make syntax-check' was
      sufficient to let me be aware that I had to change bhyve to use
      s/virDomainShutdownEnsureACL/virDomainShutdownFlagsEnsureACL/, it was
      not sufficient to note which ACL functions require 2 vs. 3 arguments
      for flag validation.
      
      Fixes: eded8aadSigned-off-by: NEric Blake <eblake@redhat.com>
      846fe076
    • M
      libxl_driver: Drop needless variable · 0a8d9ce7
      Michal Privoznik 提交于
      The @oldDef variable in libxlAddDom0() is not used really. Drop
      it.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      0a8d9ce7
    • E
      test: Add various vir*Flags API · 667ac11e
      Eric Blake 提交于
      Even though we don't accept any flags, it is unfriendly to callers
      that use the modern API to have to fall back to the flag-free API.
      
      Note that virDomainBlockStats does not trivially forward to
      virDomainBlockStatsFlags, so that one is omitted for now.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      667ac11e
    • E
      phyp: Add various vir*Flags API · b7acc9a6
      Eric Blake 提交于
      Even though we don't accept any flags, it is unfriendly to callers
      that use the modern API to have to fall back to the flag-free API.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      b7acc9a6
    • E
      esx: Add various vir*Flags API · cb550267
      Eric Blake 提交于
      Even though we don't accept any flags, it is unfriendly to callers
      that use the modern API to have to fall back to the flag-free API.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      cb550267
    • E
      bhyve: Add various vir*Flags API · eded8aad
      Eric Blake 提交于
      Even though we don't accept any flags, it is unfriendly to callers
      that use the modern API to have to fall back to the flag-free API.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      eded8aad
    • A
      tests: Add getuid() to virnetdevbandwidthmock · 13f5b223
      Andrea Bolognani 提交于
      When only geteuid() is mocked, the test crashes on Debian 10.
      
        Fatal: failed to reset uid: No such file or directory
      
        Program received signal SIGABRT, Aborted.
        __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        (gdb) t a a bt
      
        Thread 1 (Thread 0x7ffff3b3e080 (LWP 12003)):
        #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
        #1  0x00007ffff7798535 in __GI_abort () at abort.c:79
        #2  0x00007ffff485ca20 in _gcry_logv (level=level@entry=40, fmt=fmt@entry=0x7ffff4929126 "failed to reset uid: %s\n", arg_ptr=arg_ptr@entry=0x7fffffffe4a0) at ../../src/misc.c:142
        #3  0x00007ffff485cd61 in _gcry_log_fatal (fmt=fmt@entry=0x7ffff4929126 "failed to reset uid: %s\n") at ../../src/misc.c:218
        #4  0x00007ffff48639d1 in lock_pool_pages (n=<optimized out>, p=<optimized out>) at ../../src/secmem.c:340
        #5  _gcry_secmem_init_internal (n=<optimized out>) at ../../src/secmem.c:563
        #6  0x00007ffff4863d78 in _gcry_secmem_init (n=4096) at ../../src/secmem.c:581
        #7  0x00007ffff485e4e6 in _gcry_vcontrol (cmd=<optimized out>, arg_ptr=arg_ptr@entry=0x7fffffffe5e0) at ../../src/global.c:506
        #8  0x00007ffff485a789 in gcry_control (cmd=cmd@entry=GCRYCTL_INIT_SECMEM) at ../../src/visibility.c:79
        #9  0x00007ffff71af10f in ssh_crypto_init () at ./src/libgcrypt.c:621
        #10 0x00007ffff7193796 in _ssh_init (constructor=constructor@entry=1) at ./src/init.c:79
        #11 0x00007ffff71834de in libssh_constructor () at ./src/init.c:116
        #12 0x00007ffff7fe437a in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffe778, env=env@entry=0x7fffffffe788) at dl-init.c:72
        #13 0x00007ffff7fe4476 in call_init (env=0x7fffffffe788, argv=0x7fffffffe778, argc=1, l=<optimized out>) at dl-init.c:30
        #14 _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffe778, env=0x7fffffffe788) at dl-init.c:119
        #15 0x00007ffff7fd60ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
        #16 0x0000000000000001 in ?? ()
        #17 0x00007fffffffea26 in ?? ()
        #18 0x0000000000000000 in ?? ()
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      13f5b223
    • L
      virsh: support block device storage type in virshParseSnapshotDiskspec · 7ca81e6f
      Liu Dayu 提交于
      virsh snapshot-create-as supports 'file' storage type in --diskspec by default.
      But it doesn't support 'block' storage type in the virshParseSnapshotDiskspec().
      So if a snapshot on a block device (e.g. LV) was created, the type of
      current running storage source in dumpxml is inconsistent with the actual
      backend storage source. It will check file-system type mismatch failed
      and return an error message of 'Migration without shared storage is unsafe'
      when VM performs a live migration after this snapshot.
      
      Considering virsh has to be able to work remotely that recognizing a block device
      by prefix /dev/ or by stat() may be not suitable, so adding a "stype" field
      for the --diskspec string which will be either "file" or "block".
      e.g. --diskspec vda,snapshot=external,driver=qcow2,stype=block,file=/dev/xxx.
      Signed-off-by: NLiu Dayu <liu.dayu@zte.com.cn>
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      7ca81e6f
    • P
      po: Drop src/xenconfig/xen_sxpr.c from POTFILES · dd94cc2e
      Peter Krempa 提交于
      Commit 2f1c9099 forgot this change.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      dd94cc2e
    • P
      news: Mention drop of xen sxpr support · 139b267b
      Peter Krempa 提交于
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      139b267b