deb-cinder/cinder/tests
John Griffith 844aa0ac3e Provide cfg to ignore lvm descriptor leak warnings
For some reason the leaded descriptor warning message coming
from LVM is causing Cinder to fail startup and it appears to be
masking out the vg response in vgs calls.

We typically don't hit this, but due to the nature of Kolla and
I guess going through the different processes via the containers
this gets logged every time vgs is called.  Eric Harney rightly
pointed out that rather than use exception handling and such
that we should use the LVM env variable mechanism we already have
in place in Cinder.

For now this patch added a new config option to the LVM driver:
    lvm_suppress_fd_warnings=True|False

This is useful for K8 deployments that have an indirect call to the
LVM cmds which results in failures.

For those that are interested, this can also be done outside of
cinder by setting the silence_logs variable in lvm.conf

This is made optional as a config flag to avoid any breakage for
existing deployments during upgrade.

DocImpact: Need to add info regarding config update to docs

Change-Id: I85612fa49475beea58d30330c8fe8352a2f91123
Closes-Bug: #1619701
(cherry picked from commit 055ec1ce73)
2016-09-27 14:25:36 -06:00
..
compliance Use assertEqual/Less/Greater/In/IsNone 2016-07-04 17:58:16 +02:00
functional Fix ImportError of fake_driver 2016-08-03 10:52:46 +08:00
tempest Provide volume size for tempest volume creation 2016-09-06 08:33:47 -05:00
unit Provide cfg to ignore lvm descriptor leak warnings 2016-09-27 14:25:36 -06:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_driver.py Move fake_driver to tests root dir 2016-07-26 09:08:43 -06:00
fixtures.py Copy StandardLogging fixture from Nova 2016-02-29 17:46:31 -05:00