Kefu Chai
e5064b894c
qa/run-standalone.sh: s/Makefile/CMakeCache.txt/
...
as we could use a generator other than Make, for instance ninja.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-30 23:52:36 +08:00
David Zafman
1bb79d827e
test: Output elapse time for each script for information
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-04-10 08:21:35 -07:00
David Zafman
bc2df8c49b
run-standalone.sh: Need double-quotes to handle | in core_pattern
...
on all distributions
OpenSUSE does not automatically add the | back when setting
the corepattern. I tested this on openSUSE Leap 15.0.
Fixes: http://tracker.ceph.com/issues/38325
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-02-14 16:50:14 -08:00
David Zafman
c7dd8549b6
Revert "qa/standalone: discard pipe in sysctl kernel.core_pattern"
...
This reverts commit 5ba6286834
.
Signed-off-by: David Zafman <dzafman@redhat.com>
Conflicts:
qa/run-standalone.sh (reseting core_pattern moved to function)
2019-02-14 16:50:14 -08:00
David Zafman
8bc623b949
test: run-standalone.sh set local library location so mgr can find librados.so
...
This caused qa/standalone/misc/test-ceph-helpers.sh to fail
"MGR_MODULE_DEPENDENCY 8 mgr modules have failed dependencies"
Fixes: http://tracker.ceph.com/issues/38262
Signed-off-by: David Zafman <dzafman@redhat.com>
2019-02-12 09:22:35 -08:00
David Zafman
050a4bb20e
test: Allow directory specified to run-standalone.sh
...
Fixes: http://tracker.ceph.com/issues/35912
Example:
cd build
../qa/run-standalone.sh scrub
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-09-10 12:23:11 -07:00
Noah Watkins
7d3fa9bda3
qa/standalone/ceph-helpers.sh: fix mgr module path
...
callers of get_python_path were not passing in a $1 parameter, so
ceph_lib was an empty string resulting in an invalid path to the built
cython modules. assume this is called from the `lib` parent directory.
pass path to the manager modules when starting ceph-mgr.
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
2018-08-17 15:21:57 -07:00
Sage Weil
3cd7d5eb22
Merge PR #22343 into master
...
* refs/pull/22343/head:
qa/standalone remove ceph-disk from activate_osd helper
cmake: remove subman.sh tests
test remove ceph-disk directory
debian: remove ceph_detect_init python files from base
qa/standalone remove virtualenv paths for ceph-disk and ceph-detect-init
debian: remove ceph-disk ceph-detect-init python files
rpm: remove ceph-disk ceph-detect-init python files
alpine: remove ceph-disk ceph-detect-init python files
alpine: remove ceph-osd and parttypeuuid udev rules
debian: remove ceph-osd and parttypeuuid udev rules
rpm: remove ceph-osd and parttypeuuid udev rules
ceph-helpers.sh: remove ceph-disk, set up osds directly
CMakeLists.txt: add back CEPH_BUILD_VIRTUALENV
alpine: remove ceph-disk, add ceph-volume in APKBUILD.in
upstart: remove ceph-disk activation call
doc/install add anchor for manual osd deployment in freebsd guide
doc/dev remove ceph-disk from freebsd guide, link to manual reference
doc/dev/config-key remove ceph-disk references
doc/dev remove ceph-disk.rst
doc/dev: change ceph-disk suite examples for ceph-deploy
doc/man_index: remove ceph-disk, ceph-detect-init refs
doc/install: remove ceph-disk from freebsd examples
doc/rados remove ceph-disk from man references
doc/man remove ceph-disk ref from ceph-volume-systemd
doc/man: update reference from ceph-disk to ceph-volume
doc/man: remove ceph-disk, ceph-detect-init from cmake
doc/man/ceph-volume remove doc reference to ceph-disk
doc/man: remove ceph-disk, ceph-detect-init
qa/suites: remove ceph-disk
qa/run-standalone.sh: remove requirement for ceph-detect-init virtualenv
qa/workunits: remove ceph-detect-init from rbdmapfile test
qa/workunits: remove ceph-detect-init from ceph-helpers-root.sh
qa/workunits: remove ceph-disk
build: remove ceph-disk from freebsd script
cmake: remove ceph-disk, ceph-detect-init tox tests
init-ceph: remove ceph-disk
cmake: remove top-level entries for ceph-disk, ceph-detect-init
debian: remove ceph-detect-init references
debian: remove ceph-disk references
src: remove ceph-detect-init tool
rpm: remove ceph-disk, ceph-detect-init from spec file
test: remove subman script
script: remove subman script
udev: remove parttypeuuid rules for ceph-disk
tool remove ceph-disk from ps-ceph.pl
upstart: remove ceph-disk conf file
systemd: remove ceph-disk from CMakeLists
systemd: remove ceph-disk service
udev: remove ceph-disk rules
src: remove ceph-disk tool
2018-06-19 07:07:55 -05:00
David Zafman
ea75e03d22
test: run-standalone move aside cores found before testing starts
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-06-18 14:10:10 -07:00
Alfredo Deza
a8095ee7e0
qa/run-standalone.sh: remove requirement for ceph-detect-init virtualenv
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:24 -04:00
Joao Eduardo Luis
6393c7ddeb
qa/standalone: change PATH to allow finding sysctl
...
If, by default, a user's PATH does not contain /sbin and /usr/sbin, we
may have a hard time finding sysctl to adjust the kernel core pattern.
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2018-04-06 04:18:22 +01:00
Joao Eduardo Luis
f501458967
qa/standalone: deduplicate cleanup code
...
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2018-04-06 04:18:22 +01:00
Joao Eduardo Luis
5ba6286834
qa/standalone: discard pipe in sysctl kernel.core_pattern
...
At least verified in openSUSE tumbleweed and ubuntu 16.04,
`sysctl -n kernel.core_pattern` returns a pipe at the start of the
value. We reset core_pattern to its original form once the script is
about to end, but if we do not discard the pipe the new value will
contain an extra pipe (apparently, the pipe is added automatically at
some point, possibly simply on read). We are simply stripping it on
read, as to prevent this behavior.
Additionally, we are also enclosing the reset of kernel.core_pattern in
quotes, so as to make sure patterns that include spaces (e.g., ubuntu's
apport, or tumbleweed's systemd-coredump) are properly reset.
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
2018-04-06 04:18:22 +01:00
Kefu Chai
aaffaee38b
qa/run-standalone.sh: set PYTHONPATH for FreeBSD also
...
do not set PYTHONPATH=/usr/lib/python2.7/dist-packages anymore, it will
be overridden later on anyway.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-28 22:30:32 +08:00
Kefu Chai
084011d8fa
qa/run-standalone.sh: pass PYTHONPATH env var to test
...
otherwise ceph-mgr will refuse to start if the required python binding,
a.k.a mgr_module is not available in default sys.path.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-26 14:38:52 +08:00
Kefu Chai
0c47aa8217
qa: respect $TEMPDIR
...
ceph-disk and ceph-detect-init are build in $TEMPDIR if it's defined.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-09-15 12:19:50 +08:00
David Zafman
599d7622dd
tests: run-standalone.sh skip core_pattern if already set
...
If sudo requires a password it is nice to be able to avoid
sudo sysctl by setting core_pattern ahead of time.
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-18 10:27:12 -07:00
Alfredo Deza
1e8e689ca7
Merge pull request #17093 from dzafman/wip-runs-message
...
tests: run-standalone.sh improve error message
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-08-18 12:08:17 -04:00
David Zafman
175b10795d
tests: run-standalone.sh improve error message
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-18 03:49:42 -07:00
David Zafman
982aef784c
tests: qa/standalone: Add trap for signals to resetore the kernel core pattern
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-14 19:16:30 -07:00
David Zafman
229de6b71d
qa: Add support for core dumps
...
Save core dumps when running tests locally
Dump logs to output whenever cores seen
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 12:37:04 -07:00
David Zafman
2a679a36de
qa: Add support for specifying sub-tests with run-standalone.sh
...
Fix test-ceph-helpers.sh to pass additional arguments on
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:47 -07:00
David Zafman
d99f2a77e9
qa: Skip ceph-helpers.sh which is tested through test-ceph-helpers.sh
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-10 08:30:46 -07:00
David Zafman
b20dfc2864
qa: Add special test_failure.sh script (not run by default)
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
David Zafman
8c768050a5
qa: run-standalone.sh improvements
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2017-08-04 06:38:09 -07:00
Kefu Chai
75e361433d
qa/run-standalone.sh: fix the find option to be compatible with GNU find
...
also re-indent to be consistent with other part of this script
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-28 14:22:02 +08:00
Willem Jan Withagen
ae88edd25d
qa: make run-standalone work on FreeBSD
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-07-26 12:01:37 +02:00
Sage Weil
7c157863a8
qa/run-standalone.sh: helper to run all standalone tests
...
Nothing fancy, but documents how these are run.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-24 22:11:50 -04:00