Running lvm2 regression tests
I am having a problem with building LVM2.2.02.155 from source.
Actually, the build is OK:
./configure --prefix=/usr \
--exec-prefix= \
--enable-applib \
--enable-cmdlib \
--enable-pkgconfig \--enable-udev_sync
make
sudo make install
My problem comes when I try to run some checks:
sudo make -k check_local
In this case every test times out. I killed the tests after two hours. The journal shows things like:
ndev-vanilla:api/dbustest.sh started
ndev-vanilla:api/dbustest.sh timeout
I have the following kernel settings in linux-4.4.2:
CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=yCONFIG_MD_RAID10=yCONFIG_MD_RAID456=y
# CONFIG_MD_MULTIPATH is not set
# CONFIG_MD_FAULTY is not setCONFIG_BCACHE=mCONFIG_BCACHE_DEBUG=yCONFIG_BCACHE_CLOSURES_DEBUG=yCONFIG_BLK_DEV_DM_BUILTIN=yCONFIG_BLK_DEV_DM=mCONFIG_DM_MQ_DEFAULT=yCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=mCONFIG_DM_BIO_PRISON=mCONFIG_DM_PERSISTENT_DATA=mCONFIG_DM_DEBUG_BLOCK_STACK_TRACING=yCONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=mCONFIG_DM_THIN_PROVISIONING=mCONFIG_DM_CACHE=mCONFIG_DM_CACHE_MQ=mCONFIG_DM_CACHE_SMQ=mCONFIG_DM_CACHE_CLEANER=mCONFIG_DM_ERA=mCONFIG_DM_MIRROR=mCONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=m
# CONFIG_DM_MULTIPATH is not set
# CONFIG_DM_DELAY is not setCONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=m
# CONFIG_DM_VERITY is not set
# CONFIG_DM_SWITCH is not set
# CONFIG_DM_LOG_WRITES is not set
...
# CONFIG_MAGIC_SYSRQ is not set
I do not have thin-provisioning-tools installed but I thought that was optional.
What am I missing?
-- Bruce Dubbs
linuxfromscratch.org
Dne 10.6.2016 v 05:08 Bruce Dubbs napsal(a):
Quoted 16 lines
I am having a problem with building LVM2.2.02.155 from source.
Actually, the build is OK:
./configure --prefix=/usr \ --exec-prefix= \ --enable-applib \ --enable-cmdlib \ --enable-pkgconfig \--enable-udev_sync
make
sudo make installMy problem comes when I try to run some checks:
Quoted 8 lines
sudo make -k
check_localIn this case every test times out. I killed the tests after two hours. The journal shows things like:
ndev-vanilla:api/dbustest.sh started
ndev-vanilla:api/dbustest.sh timeout
dbus support is highly experimental and likely full of bugs. It's not even supported - it's purely proof-of-concept.
For now use 'make check_local S=dbustest' to skip this one...
Regards
Zdenek
Quoted 23 lines · Zdenek Kabelac
Quoted 22 lines · Bruce Dubbs
I am having a problem with building LVM2.2.02.155 from source.
Actually, the build is OK:
./configure --prefix=/usr \ --exec-prefix= \ --enable-applib \ --enable-cmdlib \ --enable-pkgconfig \ --enable-udev_syncmake
sudo make installMy problem comes when I try to run some checks:
sudo make -k
check_localIn this case every test times out. I killed the tests after two hours. The journal shows things like:
Quoted 7 lines
Quoted 2 lines
ndev-vanilla:api/dbustest.sh started
ndev-vanilla:api/dbustest.sh timeoutdbus support is highly experimental and likely full of bugs. It's not even supported - it's purely proof-of-concept.
For now use 'make
check_localS=dbustest' to skip this one...
I wasn't clear enough. *ALL* the tests time out for me.
As a test, I rebuilt the kernel enabling CONFIG_MAGIC_SYSRQ=y and the tests now work. Too bad that this is not documented. Perhaps a mention of the kernel requirements for the regression tests in the README or INSTALL files would be appropriate.
-- Bruce
Dne 10.6.2016 v 20:15 Bruce Dubbs napsal(a):
Quoted 30 lines
Quoted 28 lines · Zdenek Kabelac
Quoted 17 lines · Bruce Dubbs
I am having a problem with building LVM2.2.02.155 from source.
Actually, the build is OK:
./configure --prefix=/usr \ --exec-prefix= \ --enable-applib \ --enable-cmdlib \ --enable-pkgconfig \ --enable-udev_syncmake
sudo make installMy problem comes when I try to run some checks:
Quoted 7 lines
sudo make -k
check_localIn this case every test times out. I killed the tests after two hours. The journal shows things like:
ndev-vanilla:api/dbustest.sh started
ndev-vanilla:api/dbustest.sh timeoutdbus support is highly experimental and likely full of bugs. It's not even supported - it's purely proof-of-concept.
Quoted 9 lines
Quoted 1 line
For now use 'make
check_localS=dbustest' to skip this one...I wasn't clear enough. *ALL* the tests time out for me.
As a test, I rebuilt the kernel enabling
CONFIG_MAGIC_SYSRQ=yand the tests now work. Too bad that this is not documented. Perhaps a mention of the kernel requirements for the regression tests in the README or INSTALL files would be appropriate.
Hi
It's unclear to me why 'sysrq' kernel support could change anything. Test suite does echo 't' to sysrq - in case of timeout - but purely to capture machine state for analysis.
Also - lvm2 test suite is not a user-friendly installable app and certainly does require some 'know-how' to be executed in some usable way - so it takes
some few more steps - like ensuring there are no other running daemons like lvmetad, lvmpoll and dmeventd in the system. Proper udev rules needs to be installed (to get cookie confirmation from udev) and of course whole test suite needs to be run as 'root'.
So it's mainly targeted to developers.
But it's great more people try to use it.
So - instead of checking whole test suite report result from:
# cd test # make check_local T=basic VERBOSE=1
Regards
Zdenek