From: Bharat Kumar Kobagana Date: Mon, 17 Nov 2014 05:42:13 +0000 (+0530) Subject: Invalid GlusterFS share format error X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fa6168469f3ee38f15e2de73c925e2d790071ea8;p=openstack-build%2Fcinder-build.git 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 --- 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