LVM: collect more debug data when VG creation fails
Our 3rd party CI fails sometimes because Cinder cannot create a LVM volume group. The error in the c-vol log is: WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!\n Volume group "stack-volumes-lvmdriver-1" has in sufficient free space (255 extents): 768 required.\n' This failure cannot be pinned to one specific tempest test case. In order to get more debug data when this case happens, this change adds another error log entry to display the current state of the volume groups on the system. Change-Id: Ib75d20a1d603e620acf4766aef4f5876e98ab848 Related-Bug: 1186902
This commit is contained in:
parent
54b0742f2e
commit
7e7e9952ed
|
@ -547,6 +547,7 @@ class LVM(executor.Executor):
|
|||
LOG.error(_LE('Cmd :%s'), err.cmd)
|
||||
LOG.error(_LE('StdOut :%s'), err.stdout)
|
||||
LOG.error(_LE('StdErr :%s'), err.stderr)
|
||||
LOG.error(_LE('Current state: %s'), self.get_all_volume_groups())
|
||||
raise
|
||||
|
||||
@utils.retry(putils.ProcessExecutionError)
|
||||
|
|
Loading…
Reference in New Issue