From: Jon Bernard Date: Mon, 3 Feb 2014 17:44:05 +0000 (-0500) Subject: LVM: log thin pool name and size upon creation X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=abe836390dc760e87c443d762dac4849eff21e13;p=openstack-build%2Fcinder-build.git LVM: log thin pool name and size upon creation The thin pool creation size may not be obvious to the user, so a log message may help alleviate some confusion. Change-Id: I3a98b610be612a4fb7496a89f9005012c9210bf8 --- diff --git a/cinder/brick/local_dev/lvm.py b/cinder/brick/local_dev/lvm.py index 781234f84..bb1dc385a 100644 --- a/cinder/brick/local_dev/lvm.py +++ b/cinder/brick/local_dev/lvm.py @@ -431,6 +431,10 @@ class LVM(executor.Executor): size_str = self._calculate_thin_pool_size() cmd = ['lvcreate', '-T', '-L', size_str, vg_pool_name] + LOG.debug(_('Created thin pool \'%(pool)s\' with size %(size)s of ' + 'total %(free)sg') % {'pool': vg_pool_name, + 'size': size_str, + 'free': self.vg_free_space}) self._execute(*cmd, root_helper=self._root_helper,