This relies on quota-ish stuff that doesn't exist
in kclient. We can still run the outer part
of the test though.
Signed-off-by: John Spray <john.spray@redhat.com>
Should have been to umount_wait, not umount (i.e.
the blocking foreground version). This happened
to matter because umount_wait is more tolerant
of being called if the client is not already mounted.
Signed-off-by: John Spray <john.spray@redhat.com>
This test was probably buggy and only happened to work
with ceph-fuse, because it expects the MDS to immediately
respond to updates to the client's auth caps, but that
doesn't happen.
Signed-off-by: John Spray <john.spray@redhat.com>
With the kernel client, this was proceeding to attempt
a split before the directory had persisted, because
there was no fsync after creating it.
Signed-off-by: John Spray <john.spray@redhat.com>
This tests a fuse-only feature, ticket for adding
it in kclient is:
http://tracker.ceph.com/issues/17805
Signed-off-by: John Spray <john.spray@redhat.com>
Change the Mount interface to take it as an
argument to mount() instead of setting it
out of band in a config file as we used to
for the fuse client.
Signed-off-by: John Spray <john.spray@redhat.com>
It was not correct to expect a client to block after
eviction unless it was also deauthorised. I guess
this was working with fuse because fuse does a less
good job at re-establishing a session than the kclient?
Signed-off-by: John Spray <john.spray@redhat.com>
Some tests want to use power cycling to reset stuck
mounts, and that needs to not kill OSDs as collateral
damage.
Need to revisit this to avoid unnecessarily using a whole
node for the client for those tests that don't require it
(i.e. those that don't use CephFSTestCase.REQUIRE_KCLIENT_REMOTE)
Signed-off-by: John Spray <john.spray@redhat.com>
With fuse client we expect everything to be
runnable so treat SkipTest as a failure because
it indicates something bad in the config. With kclient
we known we have to skip some tests, so tolerate it.
Signed-off-by: John Spray <john.spray@redhat.com>
Instead of asserting in configure_auth (which in fact
works fine with KernelMount.write_secret_file), raise
a SkipTest in test_session_reject (because the kernel
client cannot handle the client_metadata setting to
inject bogus data)
Signed-off-by: John Spray <john.spray@redhat.com>
http://tracker.ceph.com/issues/15612
Not all test machines(mira, vps) have 4 osd's and without this
change it will fail on nodes with < 4 osds, since one of the
osd will be on ext4 and it will hit long filename issue
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
The xenial valgrind has a bug with generating random
numbers; see http://tracker.ceph.com/issues/18126
Revert this when it is fixed.
Signed-off-by: Sage Weil <sage@redhat.com>
Do not exclude the ceph-test package otherwise the ceph-coverage
executable is not installed.
Fixes: http://tracker.ceph.com/issues/16506
Signed-off-by: Loic Dachary <loic@dachary.org>
3.13 won't build on newer distros, due to lack of gcc5 support.
nightly/pre-single-major (with a slash) is now gone.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>