ceph backup: Only warn about striping opts when necessary
Only issue this warning message if the striping options were enabled. Change-Id: I4116412db30602260049a4129cdfbbc5d5c20c73
This commit is contained in:
parent
e9c18c7f94
commit
89a0c76692
@ -185,14 +185,16 @@ class CephBackupDriver(driver.BackupDriver):
|
||||
self.chunk_size = CONF.backup_ceph_chunk_size
|
||||
self._execute = execute or utils.execute
|
||||
|
||||
self.rbd_stripe_count = 0
|
||||
self.rbd_stripe_unit = 0
|
||||
|
||||
if self._supports_stripingv2:
|
||||
self.rbd_stripe_unit = CONF.backup_ceph_stripe_unit
|
||||
self.rbd_stripe_count = CONF.backup_ceph_stripe_count
|
||||
else:
|
||||
elif (CONF.backup_ceph_stripe_unit != 0 or
|
||||
CONF.backup_ceph_stripe_count != 0):
|
||||
LOG.info("RBD striping not supported - ignoring configuration "
|
||||
"settings for rbd striping.")
|
||||
self.rbd_stripe_count = 0
|
||||
self.rbd_stripe_unit = 0
|
||||
|
||||
self._ceph_backup_user = CONF.backup_ceph_user
|
||||
self._ceph_backup_pool = CONF.backup_ceph_pool
|
||||
|
Loading…
Reference in New Issue
Block a user