This tests RENAME_WHITEOUT, which was enabled for xfs in kernel commit
7dcf5c3e4527cfa2807567b00387cf2ed5e07f00. At first execution, it throws a BUG.
Subsequent executions appear to work correctly. This issue manifests for disks
and RBD instances.
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
This was broken by 96992466 aka "mds: handle missing mydir dirfrag"
The previous code was mistakenly treating a not-yet-loaded
dirfrag as a non-existent dirfrag, resulting in
inconsistent fragstats even when no objects had
actually been lost.
Fixes: #11641
Signed-off-by: John Spray <john.spray@redhat.com>
Move check-local scripts
src/test/run-cli-tests
encode-decode-non-regression.sh
test/encoding/readable.sh
to check_SCRIPTS. Their output is captured in .log file when running
with a recent automake. This reduces the output of make check by an
order of magnitude.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Because of the | grep, the status of tox is no longer the status of
run-tox.sh and errors are not reported as they should.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Remove the helpers because they are not used any longer. They have been
deprecated by ceph-helpers.sh
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Use ceph-helpers.sh instead of mon/mon-test-helpers.sh.
* modifying the .asok and .log names to match the ceph-helpers.sh
conventions
* use explicit ports 7300 and 7301 instead of +1 so that grep
will show that 7301 is used. This reduces the odds of a
port collision when looking for a port that's not already
used by an existing test.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Use ceph-helpers.sh instead of mon/mon-test-helpers.sh.
* The expect_false() helper is replaced by a ! statement which is
simpler and has the same effect.
* modifying the .asok and .log names to match the ceph-helpers.sh
conventions
* trim the --public-addr argument from the run_mon call
* add || return 1 after run_mon where missing
* add || return 1 to all commands in TEST_no_pool_delete
Signed-off-by: Loic Dachary <ldachary@redhat.com>
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.
* modifying the .asok and .log names to match the ceph-helpers.sh
conventions
* trim the --public-addr argument from the run_mon call
Signed-off-by: Loic Dachary <ldachary@redhat.com>
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Fix grep that assume the pool has id 0, because it may be different
when rbd is redefined to have less PG by the run_mon function.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.
* replace check_osd_status with wait_for_osd
* modifying the .asok and .log names to match the ceph-helpers.sh
conventions
Signed-off-by: Loic Dachary <ldachary@redhat.com>
It is just a conversion and the behavior is not changed. It involves:
* calling run_mon from inside each test instead of doing it in run
* modifying the .asok and .log names to match the ceph-helpers.sh
conventions
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Instead of using mon-test-helpers.sh, primarily because the kill_daemon
function implemented in mon-test-helpers.sh is not as good as
ceph-helpers.sh.
Instead of having tests that share the same monitor, each test now runs
on a fresh monitor. The test writer no longer has to worry that it will
be re-using the pool or profile from a previous test. That causes
problems that are difficult to diagnose and the overhead of running a
new monitor is not so high.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Remove call_TEST_functions because it is too complex and rarely used.
Replace the two instances where it was used by a few lines doing the
same thing.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Fix hardcoding of id a in the run_mon function. The directory
in which the mon data is stored must be a sub-directory of the
directory given in argument.
If mon_initial_members is set, the rbd pool cannot be redefined, which
is ok because this is rare and it's only an optimization to reduce the
number of PG.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Instead of just pg dump and health detail, the wait_for_clean
function displays ceph report when it times out, to help figure out what
caused it.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
The wait_for_osd to wait for an osd to go up and down is needed
internally, after running an osd. Move the inline snippet from run_osd
into a function so that it can be used by scripts as well.
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Iterator becomes invalid due to a partial prefix comparision in
rmkeys_by_prefix, resulting in not deleting the objects from backend.
Modified the comparision to the given prefix.
Signed-off-by: Varada Kari <varada.kari@sandisk.com>
Initialize the iterator in get_keys and get_keys_with_header.
This fixes the issues with ceph_test_rados_api_aio.
Signed-off-by: Varada Kari <varada.kari@sandisk.com>