From fa6168469f3ee38f15e2de73c925e2d790071ea8 Mon Sep 17 00:00:00 2001 From: Bharat Kumar Kobagana Date: Mon, 17 Nov 2014 11:12:13 +0530 Subject: [PATCH] Invalid GlusterFS share format error When we provide invalid GlusterFS share format in GlusterFS shares configuration file (glusterfs_shares_config), it will log a Warning message in the volume log file, which not easily discover able while debugging. So, this patch changing Invalid GlusterFS share Warning message to Error message. Change-Id: I24d47dafc56490d40bd81256135f4b13fce5614a --- cinder/volume/drivers/remotefs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/volume/drivers/remotefs.py b/cinder/volume/drivers/remotefs.py index 4c1850d8a..2a7e582c0 100644 --- a/cinder/volume/drivers/remotefs.py +++ b/cinder/volume/drivers/remotefs.py @@ -377,8 +377,8 @@ class RemoteFSDriver(driver.VolumeDriver): share_opts = share_info[1].strip() if len(share_info) > 1 else None if not re.match(self.SHARE_FORMAT_REGEX, share_address): - LOG.warn(_LW("Share %s ignored due to invalid format. Must be " - "of form address:/export.") % share_address) + LOG.error(_LE("Share %s ignored due to invalid format. Must " + "be of form address:/export.") % share_address) continue self.shares[share_address] = share_opts -- 2.45.2