tasks/ceph: conservative PG count in FS pools

This was tripping over the recent commit 42c85e80
in Ceph master, which tightens the limits on
acceptable PG counts per OSD, and was making
teuthology runs fail due to never going clean.

Rather than put in a new hardcoded count, infer
it from config.  Move some code around so that
the ceph task can get at a Filesystem object
to use in FS setup (this already has conf-getting
methods).

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/ceph: move FS creation inside Filesystem

Leave the legacy handling out in cephfs_setup, move
the filesystem creation stuff into Filesystem.  I
anticipate this being the right place for it if/when
we have tests that want to do 'fs rm' 'fs new' type
cycles within themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks: add test case for readonly MDS

Signed-off-by: Yan, Zheng <zyan@redhat.com>
tasks/watch_notify_same_primary: fix test for new watch/notify

It now checks for 'notify1' and 'notify2' strings, allowing it to work
on both old and new versions of rados watch command.

Signed-off-by: Sage Weil <sage@redhat.com>
Merge pull request #264 from ceph/wip-wn

tasks/watch_notify_same_primary: fix test for new watch/notify

Reviewed-by: Samuel Just <sjust@redhat.com>
Merge pull request #260 from ceph/wip-mds-readonly

tasks: add test case for readonly MDS

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
krbd: add huge_tickets workunit

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Merge pull request #265 from ceph/wip-test-huge-tickets

krbd: add huge_tickets workunit
radosgw-admin: wait before trimming usage

Fixes: #9892

Need to wait through the usage interval before trimming usage, otherwise we might not
remove all pending usage info.

Backport: dumpling, firefly, giant

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit dd09ecbfab8a659f3faaf879a52849caab5e8e8e)
Merge pull request #266 from ceph/wip-9892-2

radosgw-admin: wait before trimming usage
Merge pull request #257 from ceph/wip-fs-creation

Fix PG counts and refactor FS creation during setup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
kcephfs: test inline data

Signed-off-by: Sage Weil <sage@redhat.com>
ceph_objectstore_tool: Changes for rename of binary ceph-objectstore-tool

Signed-off-by: David Zafman <dzafman@redhat.com>
Merge pull request #268 from ceph/wip-kcephfs-inline

kcephfs: test inline data

Reviewed-by: John Spray <john.spray@redhat.com>
tasks/cephfs: enable kclient for mds_* tasks

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/kclient: add 'debug' option

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/mds_client_limits: fix initial rm -rf

This was previously a no-op because it was trying
to delete "*" instead of *

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs: enable osd epoch get from mounts

Using new hooks for #7317

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs: let get_config use non-mon services

Previously was always using the default values of things
so querying mon instead of the appropriate service
worked fine.  However, for things we might want to
update on a per-test basis we need to go ask the
correct service what the setting really is.

Needed for osd_mon_report_interval_max in the ENOSPC
testing.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks: add mds_full task

This is for exercising the CephFS behaviour
when the cluster becomes full.

Signed-off-by: John Spray <john.spray@redhat.com>