From c843b9b20939dd5db7629078d8386665434ead03 Mon Sep 17 00:00:00 2001 From: zhufl Date: Mon, 23 Sep 2019 11:12:16 +0800 Subject: [PATCH] Fix missing print format in log messages This is to fix: 1. print format is missing in "%(volume)" 2. ws is missing between words in log messages. Change-Id: Iff2712a8157895d5a67bccee596a80a8b255fc40 --- cinder/backup/drivers/ceph.py | 2 +- cinder/volume/drivers/macrosan/driver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/backup/drivers/ceph.py b/cinder/backup/drivers/ceph.py index 7bf4e846f18..db2b60a5604 100644 --- a/cinder/backup/drivers/ceph.py +++ b/cinder/backup/drivers/ceph.py @@ -976,7 +976,7 @@ class CephBackupDriver(driver.BackupDriver): self.delete_backup(backup) else: if backup.parent_id: - LOG.debug("Volume file is NOT RBD: can't perform" + LOG.debug("Volume file is NOT RBD: can't perform " "incremental backup.") raise exception.BackupRBDOperationFailed LOG.debug("Volume file is NOT RBD: will do full backup.") diff --git a/cinder/volume/drivers/macrosan/driver.py b/cinder/volume/drivers/macrosan/driver.py index f26691eba97..0d043c6e5ad 100644 --- a/cinder/volume/drivers/macrosan/driver.py +++ b/cinder/volume/drivers/macrosan/driver.py @@ -967,7 +967,7 @@ class MacroSANBaseDriver(driver.VolumeDriver): owner = self.client.get_lun_sp(src_name) pool = host['capabilities'].get('pool_name', self.pool) - LOG.info('Migrating volume: %(volume), ' + LOG.info('Migrating volume: %(volume)s, ' 'host: %(host)s, ' 'backend: %(volume_backend_name)s', {'volume': src_name,