Skip to contentSkip to conversation

main - lvmdbustest: Test duplicate VG rename

PATCH Tony Asleson 1 participant 1 message Mar 3, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8e27dfd40576f4e2828b169bfe18d8cae9968244
Commit:        8e27dfd40576f4e2828b169bfe18d8cae9968244
Parent:        3e616230f2627d31599d1f4a2c7ff29b5ba86703
Author:        Tony Asleson <[email protected]>
AuthorDate:    Fri Mar 3 11:17:30 2023 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Fri Mar 3 11:17:30 2023 -0600

lvmdbustest: Test duplicate VG rename

---
 daemons/lvmdbusd/cmdhandler.py |  6 ++++--
 test/dbus/lvmdbustest.py       | 43 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 2 deletions(-)
daemons/lvmdbusd/cmdhandler.py +4 -2
index ea7e300cf..8bc741dc6 100644
@@ -324,10 +324,12 @@ def vg_rename(vg_uuid, new_name, rename_options):
 	return call(cmd)
 
 
-def vg_remove(vg_name, remove_options):
+def vg_remove(vg_id, remove_options):
 	cmd = ['vgremove']
 	cmd.extend(options_to_cli_args(remove_options))
-	cmd.extend(['-f', vg_name])
+	cmd.extend(['-f', vg_id])
+	# https://bugzilla.redhat.com/show_bug.cgi?id=2175220 is preventing us from doing the following
+	# cmd.extend(['-f', "--select", "vg_uuid=%s" % vg_id])
 	return call(cmd)
 
 
test/dbus/lvmdbustest.py +43 -0

49 lines not on this page · raw message