1. 09 1月, 2016 18 次提交
  2. 08 1月, 2016 14 次提交
  3. 07 1月, 2016 3 次提交
  4. 06 1月, 2016 5 次提交
    • W
      rbd: Do not append Ceph monitor port number 6789 if not provided · 6343018f
      Wido den Hollander 提交于
      If no port number was provided for a storage pool libvirt defaults to
      port 6789; however, librbd/librados already default to 6789 when no port
      number is provided.
      
      In the future Ceph will switch to a new port for the Ceph monitors since
      port 6789 is already assigned to a different application by IANA.
      
      Port 6789 is assigned to SMC-HTTPS and Ceph now has port 3300 assigned as
      the 'Ceph monitor' port.
      
      In this case it is the best solution to not hardcode any port number into
      libvirt and let librados handle the connection.
      
      Only if a user specifies a different port number we pass it down to librados,
      otherwise we leave it blank.
      Signed-off-by: NWido den Hollander <wido@widodh.nl>
      
      merge
      6343018f
    • W
      rbd: Do not error out on a single image during pool refresh · f46d137e
      Wido den Hollander 提交于
      It could happen that rbd_list() returns X names, but that while
      refreshing the pool one of those RBD images is removed from Ceph
      through a different route then libvirt.
      
      We do not need to error out in such case, we can simply ignore the
      volume and continue.
      
        error : volStorageBackendRBDRefreshVolInfo:289 :
          failed to open the RBD image 'vol-998': No such file or directory
      
      It could also be that one or more Placement Groups (PGs) inside Ceph
      are inactive due to a system failure.
      
      If that happens it could be that some RBD images can not be refreshed
      and a timeout will be raised by librados.
      
        error : volStorageBackendRBDRefreshVolInfo:289 :
          failed to open the RBD image 'vol-893': Connection timed out
      
      Ignore the error and continue to refresh the rest of the pool's
      contents.
      Signed-off-by: NWido den Hollander <wido@widodh.nl>
      f46d137e
    • W
      rbd: Only close RBD image if it has been opened · 10028a9d
      Wido den Hollander 提交于
      It could be that we error out while the RBD image has not been
      opened yet. This would cause us to call rbd_close() on pointer
      which has not been initialized.
      
      Set it to NULL by default and only close if it is not NULL.
      Signed-off-by: NWido den Hollander <wido@widodh.nl>
      10028a9d
    • 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