Commit Graph

9 Commits

Author SHA1 Message Date
Patrick Donnelly
9832beac85
tasks/mds_thrash: support multimds
This commit amends the MDS thrasher task to also work on multimds
clusters. Main changes:

o New FSStatus class in tasks/cephfs/filesystem.py which gets a snapshot
  of the fsmap (`ceph fs dump`). This allows consecutive operations on
  the same fsmap without repeated fs dumps.

o Only one MDSThrasher is started for each file system.

o The MDSThrasher operates on ranks instead of names (and groups of
  standbys following the initial active).

o The MDSThrasher also will change the max_mds for the cluster to a new
  value [1, current) or (current, starting max_mds]. When reduced,
  randomly selected MDSs other than rank 0 will be deactivated to reach
  the new max_mds. The likelihood of changing max_mds in a given cycle of
  the MDSThrasher is set by the "thrash_max_mds" config.

o The MDSThrasher prints out stats on completion, e.g. number of
  mds deactivated or mds_max changed.

Pre-requisite for: http://tracker.ceph.com/issues/10792
Partially fixes: http://tracker.ceph.com/issues/15134

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-07 21:24:09 -05:00
Zack Cerza
bf797f0b1f Update console checking, and DRY
Signed-off-by: Zack Cerza <zack@redhat.com>
2016-08-24 11:13:32 -06:00
Gregory Farnum
2b5b66d6c4 Merge pull request #1053 from ceph/wip-thrash-raise
task/mds_thrash: don't drop exceptions from thrasher
2016-06-16 07:25:16 -07:00
John Spray
40ed110c55 tasks/mds_thrash: fix more references to self.manager
Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-13 16:51:53 +01:00
John Spray
9d7a91c91b task/mds_thrash: don't drop exceptions from thrasher
Previously, when there was an exception in the thrasher
main loop, it would log it but ultimately "succeed"
the teuthology task.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-13 12:08:36 +01:00
Greg Farnum
ca4728b49c reference the kill_mds_by_rank function in the right location
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-06-10 15:05:43 -07:00
John Spray
53f4430d03 tasks/cephfs: further thrasher fixes
Move the thrasher-specific methods out of CephManager
into MDSThrasher and plumb them into MDSCluster.

Signed-off-by: John Spray <john.spray@redhat.com
2016-03-11 10:39:37 +00:00
John Spray
b02afb2a2a tasks: fix mds_thrash for multi filesystems
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
Zack Cerza
0e1df3cc72 Import teuthology tasks (master branch)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-07 08:24:58 -06:00