summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-09-02 15:14:58 +0300
committerLars Wirzenius <liw@liw.fi>2018-09-02 15:14:58 +0300
commited3e227625e34fbe7f045e2eb89a7258986f670e (patch)
tree9b579d84b15cef9f7fa97d08c82ed5e4d3e12959
parent4bb550ec48a0b2842b540c5970fc4b3802b97ffc (diff)
downloadvmdb2-ed3e227625e34fbe7f045e2eb89a7258986f670e.tar.gz
Change: close VG in teardown
-rw-r--r--vmdb/plugins/lvm2_plugin.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/vmdb/plugins/lvm2_plugin.py b/vmdb/plugins/lvm2_plugin.py
index 356223b..ec67834 100644
--- a/vmdb/plugins/lvm2_plugin.py
+++ b/vmdb/plugins/lvm2_plugin.py
@@ -45,13 +45,7 @@ class VgcreateStepRunner(vmdb.StepRunnerInterface):
vmdb.runcmd(['vgcreate', vgname] + physical)
def teardown(self, step, settings, state):
- return
- # vgname = self.get_vg(step)
- # physical = self.get_pv(step, state)
-
- # vmdb.runcmd(['vgremove', '--force', vgname])
- # for phys in physical:
- # vmdb.runcmd(['pvremove', phys])
+ vmdb.runcmd(['vgchange', '-an', vgname])
def get_vg(self, step):
return step['vgcreate']