]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
LVM: log thin pool name and size upon creation
authorJon Bernard <jobernar@redhat.com>
Mon, 3 Feb 2014 17:44:05 +0000 (12:44 -0500)
committerJon Bernard <jobernar@redhat.com>
Tue, 4 Feb 2014 14:12:18 +0000 (09:12 -0500)
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

index 781234f84bb07f51b7ca91a9450604fed16ab0c5..bb1dc385af6077ff03ce6de65e2008ea3d75f51b 100644 (file)
@@ -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,