Skip to contentSkip to conversation

master - tests: remove lvmetad tests

PATCH David Teigland 1 participant 1 message Jul 11, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=63ec42f428e010dcc638d887a5089d491b36b0e9
Commit:        63ec42f428e010dcc638d887a5089d491b36b0e9
Parent:        117160b27e510dceb1ed6acf995115c040acd88d
Author:        David Teigland <[email protected]>
AuthorDate:    Tue Jul 10 14:40:48 2018 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Jul 11 11:27:54 2018 -0500

tests: remove lvmetad tests

---
 test/Makefile.in                    |   67 +++-------------------
 test/shell/lvmetad-ambiguous.sh     |   73 ------------------------
 test/shell/lvmetad-autoshutdown.sh  |   58 -------------------
 test/shell/lvmetad-client-filter.sh |   22 -------
 test/shell/lvmetad-disabled.sh      |  107 -----------------------------------
 test/shell/lvmetad-dump.sh          |   26 ---------
 test/shell/lvmetad-lvscan-cache.sh  |   35 -----------
 test/shell/lvmetad-no-cluster.sh    |   24 --------
 test/shell/lvmetad-override.sh      |   54 ------------------
 test/shell/lvmetad-pvs.sh           |   25 --------
 test/shell/lvmetad-pvscan-filter.sh |   57 ------------------
 test/shell/lvmetad-pvscan-md.sh     |   38 ------------
 test/shell/lvmetad-pvscan-nomda.sh  |   59 -------------------
 test/shell/lvmetad-restart.sh       |   29 ---------
 test/shell/lvmetad-sysinit.sh       |   92 ------------------------------
 test/shell/lvmetad-test.sh          |   38 ------------
 16 files changed, 8 insertions(+), 796 deletions(-)
test/Makefile.in +8 -59
index 5b7578c..5185322 100644
@@ -38,7 +38,7 @@ CLEAN_TARGETS += $(RUN_BASE) $(addprefix lib/,$(LIB_LVMLOCKD_CONF) $(LIB_MKE2FS_
 endif
 
 CLEAN_TARGETS += .lib-dir-stamp .tests-stamp $(LIB) $(addprefix lib/,\
-	$(CMDS) clvmd dmeventd dmsetup dmstats lvmetad lvmpolld \
+	$(CMDS) clvmd dmeventd dmsetup dmstats lvmpolld \
 	harness lvmdbusd.profile thin-performance.profile fsadm \
 	dm-version-expected version-expected \
 	paths-installed paths-installed-t paths-common paths-common-t)
@@ -54,16 +54,10 @@ comma = ,
 RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/unit/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | $(SORT))
 RUN_BASE = $(subst $(srcdir)/,,$(RUN))
 
-ifeq ("@BUILD_LVMETAD@", "yes")
-LVMETAD_RUN_BASE = $(RUN_BASE)
-LVMETAD_NDEV_FLAVOUR = ,ndev-lvmetad
-LVMETAD_UDEV_FLAVOUR = ,udev-lvmetad
-endif
-
 ifeq ("@BUILD_LVMPOLLD@", "yes")
 LVMPOLLD_RUN_BASE = $(RUN_BASE)
-LVMPOLLD_NDEV_FLAVOUR = ,ndev-lvmpolld,ndev-cluster-lvmpolld,ndev-lvmetad-lvmpolld
-LVMPOLLD_UDEV_FLAVOUR = ,udev-lvmpolld,udev-cluster-lvmpolld,udev-lvmetad-lvmpolld
+LVMPOLLD_NDEV_FLAVOUR = ,ndev-lvmpolld
+LVMPOLLD_UDEV_FLAVOUR = ,udev-lvmpolld
 endif
 
 ifeq ("@BUILD_LVMLOCKD@", "yes")
@@ -85,17 +79,12 @@ help:
 	@echo "  all			Default target, run check."
 	@echo "  check			Run all tests."
 	@echo "  check_system		Run all tests using udev."
-	@echo "  check_local		Run tests without clvmd and lvmetad."
-	@echo "  check_cluster		Run tests with cluster daemon."
-	@echo "  check_lvmetad		Run tests with lvmetad daemon."
+	@echo "  check_local		Run tests."
 	@echo "  check_lvmpolld         Run tests with lvmpolld daemon."
-	@echo "  check_cluster_lvmpolld Run tests with clvmd and lvmpolld daemon."
-	@echo "  check_lvmetad_lvmpolld Run tests with lvmetad and lvmpolld daemon."
 	@echo "  check_all_lvmpolld     Run all tests with lvmpolld daemon."
 	@echo "  check_lvmlockd_sanlock Run tests with lvmlockd and sanlock."
 	@echo "  check_lvmlockd_dlm     Run tests with lvmlockd and dlm."
 	@echo "  check_lvmlockd_test    Run tests with lvmlockd --test."
-	@echo "  check_lvmlockd_test_lvmetad Run tests with lvmlockd --test and lvmetad."
 	@echo "  run-unit-test          Run only unit tests (root not needed)."
 	@echo "  clean			Clean dir."
 	@echo "  help			Display callable targets."
@@ -107,7 +96,6 @@ help:
 	@echo "  LVM_TEST_PREFER_BRD	Prefer using brd (ramdisk) over loop for testing [1]."
 	@echo "  LVM_TEST_DIR		Where to create test files  [$(LVM_TEST_DIR)]."
 	@echo "  LVM_TEST_LOCKING	Normal (1), Cluster (3)."
-	@echo "  LVM_TEST_LVMETAD	Start lvmetad (1)."
 	@echo "  LVM_TEST_LVMETAD_DEBUG_OPTS  Allows to override debug opts [-l all]."
 	@echo "  LVM_TEST_LVMPOLLD	Start lvmpolld"
 	@echo "  LVM_TEST_NODEBUG	Do not debug lvm commands."
@@ -124,7 +112,6 @@ help:
 	@echo "  LVM_TEST_UNLIMITED	Set to get unlimited test log (>32MB)"
 	@echo "  LVM_VALGRIND		Enable valgrind testing, execs $$"VALGRIND.
 	@echo "  LVM_VALGRIND_DMEVENTD	Enable valgrind testing of dmeventd (1)."
-	@echo "  LVM_VALGRIND_LVMETAD	Enable valgrind testing of lvmetad (1)."
 	@echo "  LVM_STRACE		Enable strace logging."
 	@echo "  LVM_DEBUG_LEVEL	Sets debuging level for valgrind/strace (use > 0)."
 	@echo "  LVM_VERIFY_UDEV	Default verify state for lvm.conf."
@@ -136,50 +123,28 @@ help:
 check: .tests-stamp
 	VERBOSE=$(VERBOSE) ./lib/runner \
 		--testdir . --outdir $(LVM_TEST_RESULTS) \
-		--flavours ndev-vanilla,ndev-cluster$(LVMETAD_NDEV_FLAVOUR)$(LVMPOLLD_NDEV_FLAVOUR) --only $(T) --skip $(S)
+		--flavours ndev-vanilla,$(LVMETAD_NDEV_FLAVOUR)$(LVMPOLLD_NDEV_FLAVOUR) --only $(T) --skip $(S)
 
 check_system: .tests-stamp
 	VERBOSE=$(VERBOSE) ./lib/runner \
 		--testdir . --outdir $(LVM_TEST_RESULTS) \
-		--flavours udev-vanilla,udev-cluster$(LVMETAD_UDEV_FLAVOUR)$(LVMPOLLD_UDEV_FLAVOUR)$(LVMLOCKD_UDEV_FLAVOUR) --only $(T) --skip $(S)
-
-check_cluster: .tests-stamp
-	VERBOSE=$(VERBOSE) ./lib/runner \
-		--testdir . --outdir $(LVM_TEST_RESULTS) \
-		--flavours ndev-cluster --only $(T) --skip $(S)
+		--flavours udev-vanilla,$(LVMETAD_UDEV_FLAVOUR)$(LVMPOLLD_UDEV_FLAVOUR)$(LVMLOCKD_UDEV_FLAVOUR) --only $(T) --skip $(S)
 
 check_local: .tests-stamp
 	VERBOSE=$(VERBOSE) ./lib/runner \
 		--testdir . --outdir $(LVM_TEST_RESULTS) \
 		--flavours ndev-vanilla --only $(T) --skip $(S)
 
-ifeq ("@BUILD_LVMETAD@", "yes")
-check_lvmetad: .tests-stamp
-	VERBOSE=$(VERBOSE) ./lib/runner \
-		--testdir . --outdir $(LVM_TEST_RESULTS) \
-		--flavours ndev-lvmetad --only $(T) --skip $(S)
-endif
-
 ifeq ("@BUILD_LVMPOLLD@", "yes")
 check_lvmpolld: .tests-stamp
 	VERBOSE=$(VERBOSE) ./lib/runner \
 		--testdir . --outdir results \
 		--flavours ndev-lvmpolld --only $(T) --skip $(S)
 
-check_cluster_lvmpolld: .tests-stamp
-	VERBOSE=$(VERBOSE) ./lib/runner \
-		--testdir . --outdir results \
-		--flavours ndev-cluster-lvmpolld --only $(T) --skip $(S)
-
-check_lvmetad_lvmpolld: .tests-stamp
-	VERBOSE=$(VERBOSE) ./lib/runner \
-		--testdir . --outdir results \
-		--flavours ndev-lvmetad-lvmpolld --only $(T) --skip $(S)
-
 check_all_lvmpolld: .tests-stamp
 	VERBOSE=$(VERBOSE) ./lib/runner \
 		--testdir . --outdir results \
-		--flavours ndev-lvmpolld,ndev-cluster-lvmpolld,ndev-lvmetad-lvmpolld --only $(T) --skip $(S)
+		--flavours ndev-lvmpolld --only $(T) --skip $(S)
 endif
 
 ifeq ("@BUILD_LVMLOCKD@", "yes")
@@ -203,13 +168,6 @@ check_lvmlockd_test: .tests-stamp
 		--flavours udev-lvmlockd-test --only $(T) --skip $(S)
 endif
 
-ifeq ("@BUILD_LVMLOCKD@", "yes")
-check_lvmlockd_test_lvmetad: .tests-stamp
-	VERBOSE=$(VERBOSE) ./lib/runner \
-		--testdir . --outdir results \
-		--flavours udev-lvmlockd-test-lvmetad --only $(T) --skip $(S)
-endif
-
 run-unit-test unit-test:
 	$(MAKE) -C unit $(@)
 
@@ -217,21 +175,12 @@ DATADIR = $(datadir)/lvm2-testsuite
 EXECDIR = $(libexecdir)/lvm2-testsuite
 
 LIB_FLAVOURS = \
- flavour-ndev-cluster-lvmpolld\
- flavour-ndev-cluster\
- flavour-ndev-lvmetad-lvmpolld\
- flavour-ndev-lvmetad\
  flavour-ndev-lvmpolld\
  flavour-ndev-vanilla\
- flavour-udev-cluster-lvmpolld\
- flavour-udev-cluster\
- flavour-udev-lvmetad-lvmpolld\
- flavour-udev-lvmetad\
  flavour-udev-lvmpolld\
  flavour-udev-lvmlockd-sanlock\
  flavour-udev-lvmlockd-dlm\
  flavour-udev-lvmlockd-test\
- flavour-udev-lvmlockd-test-lvmetad\
  flavour-udev-vanilla
 
 LIB_LVMLOCKD_CONF = \
@@ -362,7 +311,7 @@ LIB = $(addprefix lib/, $(LIB_SHARED) $(LIB_LOCAL) $(LIB_NOT) $(LIB_LINK_NOT) $(
 	$(RM) lib/clvmd
 	for i in $(CMDS); do $(LN_S) -f lvm-wrapper lib/$$i; done
 	for i in daemons/dmeventd/dmeventd \
-		libdm/dm-tools/dmsetup daemons/lvmetad/lvmetad \
+		libdm/dm-tools/dmsetup \
 		daemons/lvmpolld/lvmpolld ; do \
 		$(LN_S) -f $(abs_top_builddir)/$$i lib/; done
 	$(LN_S) -f $(abs_top_builddir)/libdm/dm-tools/dmsetup lib/dmstats
test/shell/lvmetad-ambiguous.sh deleted +0 -73

73 lines not on this page · raw message

test/shell/lvmetad-autoshutdown.sh deleted +0 -58

58 lines not on this page · raw message

test/shell/lvmetad-client-filter.sh deleted +0 -22
deleted file mode 100644
index 095099b..0000000
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2014 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_LVMETAD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_pvs 2
-
-pvs --config 'devices { filter = [ "r%.*%" ] }' 2>&1 | grep rejected
-pvs --config 'devices { filter = [ "r%.*%" ] }' 2>&1 | not grep 'No device found'
test/shell/lvmetad-disabled.sh deleted +0 -107

107 lines not on this page · raw message

test/shell/lvmetad-dump.sh deleted +0 -26
deleted file mode 100644
index 8c9e74f..0000000
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_LVMETAD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_vg 2
-lvcreate -n bar -l 1 $vg
-
-aux lvmetad_dump | tee lvmetad.txt
-
-grep $vg lvmetad.txt
-
-vgremove -ff $vg
test/shell/lvmetad-lvscan-cache.sh deleted +0 -35
deleted file mode 100644
index 28b62fd..0000000
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2014 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_LVMETAD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_pvs 2
-
-vgcreate $vg1 "$dev1" "$dev2"
-lvcreate -n testlv --type mirror -m 1 -l 1 $vg1
-vgs | grep $vg1
-
-lvscan --cache $vg1/testlv
-
-vgs | grep $vg1
-
-aux disable_dev "$dev2"
-
-# pvscan --cache already ran for the disabled device above, this should be a
-# no-op (but should not segfault!)
-lvscan --cache $vg1/testlv
-
-vgremove -ff $vg1
test/shell/lvmetad-no-cluster.sh deleted +0 -24
deleted file mode 100644
index d5eb23b..0000000
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_CLVMD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_vg 2
-aux prepare_lvmetad
-vgs 2>&1 | tee out
-grep "WARNING: Not using lvmetad because locking_type is 3" out
-
-vgremove -ff $vg
test/shell/lvmetad-override.sh deleted +0 -54

54 lines not on this page · raw message

test/shell/lvmetad-pvs.sh deleted +0 -25
deleted file mode 100644
index dc4189d..0000000
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_pvs 1 20000
-get_devs
-
-pvs "${DEVICES[@]}" | grep "$dev1"
-
-# check for PV size overflows
-pvs "${DEVICES[@]}" | grep 19.53g
-pvs "${DEVICES[@]}" | not grep 16.00e
test/shell/lvmetad-pvscan-filter.sh deleted +0 -57

57 lines not on this page · raw message

test/shell/lvmetad-pvscan-md.sh deleted +0 -38
deleted file mode 100644
index 5fb4d50..0000000
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2014-2015 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_LVMETAD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
-	modprobe raid0 || skip
-
-aux prepare_devs 2
-
-# create 2 disk MD raid0 array (stripe_width=128K)
-aux prepare_md_dev 0 64 2 "$dev1" "$dev2"
-
-aux lvmconf 'devices/md_component_detection = 1'
-aux extend_filter_LVMTEST "a|/dev/md|"
-
-pvdev=$(< MD_DEV_PV)
-
-pvcreate "$pvdev"
-
-# ensure that lvmetad can only see the toplevel MD device
-pvs | tee out
-grep "$pvdev" out
-not grep "$dev1" out
-not grep "$dev2" out
test/shell/lvmetad-pvscan-nomda.sh deleted +0 -59

59 lines not on this page · raw message

test/shell/lvmetad-restart.sh deleted +0 -29
deleted file mode 100644
index 2e49f75..0000000
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITHOUT_LVMETAD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_pvs 2
-
-vgcreate $vg1 "$dev1" "$dev2"
-vgs | grep $vg1
-
-kill "$(< LOCAL_LVMETAD)"
-aux prepare_lvmetad
-
-vgs | grep $vg1
-
-vgremove -ff $vg1
test/shell/lvmetad-sysinit.sh deleted +0 -92

92 lines not on this page · raw message

test/shell/lvmetad-test.sh deleted +0 -38
deleted file mode 100644
index 0daf1e4..0000000
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
-#
-# This copyrighted material is made available to anyone wishing to use,
-# modify, copy, or redistribute it subject to the terms and conditions
-# of the GNU General Public License v.2.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-SKIP_WITH_LVMLOCKD=1
-SKIP_WITH_LVMPOLLD=1
-
-. lib/inittest
-
-aux prepare_pvs 2
-
-vgcreate $vg1 "$dev1" "$dev2" --test
-vgs | not grep $vg1
-vgcreate $vg1 "$dev1" "$dev2"
-vgs | grep $vg1
-
-lvcreate -n bar -l 1 $vg1 --test
-lvs | not grep bar
-lvcreate -n bar -l 1 $vg1
-lvs | grep bar
-
-lvremove $vg1/bar -f --test
-lvs | grep bar
-lvremove $vg1/bar -f
-lvs | not grep bar
-
-vgremove $vg1 --test
-vgs | grep $vg1
-vgremove $vg1
-vgs | not grep $vg1