From abe836390dc760e87c443d762dac4849eff21e13 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Mon, 3 Feb 2014 12:44:05 -0500 Subject: [PATCH] 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 --- cinder/brick/local_dev/lvm.py | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.45.2