Commit Graph

34 Commits

Author SHA1 Message Date
Douglas Fuller
e01ff2e3c1 cephfs/vstart_runner: add -ww option to ps
vstart_runner can't find arguments to ceph daemons to identify them with
ps -x because commands are cut off at terminal width. Add -ww for wide
output.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-08-09 06:19:14 -07:00
Ramana Raja
335872355d vstart_runner: fix misleading log message
Message is logged as, filesystem is mounted,
despite the vstart_runner just trying to mount
at this stage.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:55 +01:00
Ramana Raja
6d074bdb4c tasks/cephfs: rename 'long_running' decorator
Rename 'long_running' decorator as 'for_teuthology',
which is more intuitive.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:54 +01:00
John Spray
bb517c6415 tasks/cephfs: fix vstart_runner with cmake
This needed updating for the CLI living in bin/ now

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:19 +01:00
John Spray
4d3b4cd753 tasks/cephfs: fix vstart runner _get_pid
Dropping the 'x' caused the ps lines not to include
the "-i <myid>" part of the command line that we use
to find named daemons' pids.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-08 16:23:13 +01:00
John Spray
fc7d268e3b Merge pull request #1043 from batrick/ps-uid
vstart_runner: only kill/look at user's processes

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-08 10:46:47 +01:00
Patrick Donnelly
77a23a87fd
vstart_runner: move info message for loaded mods
The message was printing loaded modules before loading each module.
2016-06-07 17:03:15 -04:00
Patrick Donnelly
1675a47d0f
vstart_runner: only kill/look at user's processes
This prevents vstart_runner.py from trying to kill other user's
ceph-mds/ceph-fuse instances.
2016-06-07 16:38:06 -04:00
Ramana Raja
cbadb384f2 tasks/cephfs: test volume client eviction
Test whether the CephFSVolumeClient can evict a client based on its
auth ID and the volume path it has mounted.

Fixes: http://tracker.ceph.com/issues/15045

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-05-04 18:54:08 +05:30
John Spray
9263bef283 tasks/cephfs: update vstart_runner for cmake build changes
All binaries now go into bin/

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-29 12:13:37 +01:00
Gregory Farnum
6254215399 Merge pull request #861 from ceph/wip-vstart-fixes
tasks/cephfs: vstart & fuse improvements
2016-03-15 12:41:07 -07:00
John Spray
22b350de86 tasks: generalise cephfs classes for multi-fs
Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-11 10:36:43 +00:00
John Spray
a693be2792 tasks/cephfs: vstart & fuse improvements
A couple of corner cases that would get tripped up sometimes
in a vstart_runner.py environment.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-03-10 12:27:44 +00:00
John Spray
86b4231a64 tasks/cephfs: run ceph-fuse in foreground
Previously was running this in background, which prevented
checking for nonzero exit codes.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-10 12:22:05 +00:00
Greg Farnum
4169ca9434 Merge remote-tracking branch 'origin/wip-global-config' into greg-fs-testing
https://github.com/ceph/ceph-qa-suite/pull/784

Conflicts:
	tasks/cephfs/vstart_runner.py
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-01-18 16:06:02 -08:00
John Spray
500aac599d tasks/cephfs: override max_pgs_per_osd in TestVolumeClient
Because volume client cues its PG counts from the
mon pg warn max per osd setting, the teuthology template's
ultra-high 10000 setting causes problems.  Force it down
to the usual sensible default for this test.

Also update vstart_runner to populate ctx.daemons so that the test
can restart daemons the same way on vstart as in full blown teuthology.

For branch wip-manila

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
fb2e38f2df tasks/cephfs: fix raising from RemoteProcess.wait()
...in the case where we call wait() on an already-finished
process.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
55a04930e3 tasks/cephfs: fix vstart's LocalDaemon.proc
This class is meant to quack like a DaemonState,
so it needs to expose a .proc attribute.  This
was breaking TestDamageTable.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
627c33054c tasks/cephfs: add test_volume_client
Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
523d84b5f0 tasks/cephfs: fix fuse killing in vstart
The "ps au" output was truncating lines which could cause
processes to get missed in some cases, like where there
is a long --client-mountpoint argument.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-14 22:55:29 +00:00
John Spray
aafa06eb9d tasks/cephfs: generate mount paths on the fly
...because new tests that modify the client ID will
get confused about whether they're mounted or not, otherwise.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-11 14:04:05 +00:00
John Spray
00f1523170 tasks/cephfs: update vstart_runner for teuthology change
Previously teuthology read test path from ctx.teuthology_config,
now it reads it from the global teuthology.config.config object.

This was breaking test_journal_migration because it uses tasks/workunit,
when run with vstart_runner.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-06 23:57:54 +00:00
John Spray
d8106fa9e1 tasks: add run_ceph_w to CephManager
Analogous to raw_cluster_command, but instead
of calling blocking CLI command we're invoking
the -w mode.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:58:00 +00:00
John Spray
8b5edd4fe9 tasks/cephfs: new hooks for auth keys and config
Used when configuring clients with dynamically
generated auth keys, and pointing them at mount paths.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-01-05 18:57:33 +00:00
John Spray
62247f2009 tasks/cephfs: fix FuseMount bin path in vstart
FuseMount only uses the prefix for finding the 'ceph'
executable, which is in ./ for either cmake or
authtools, not ./src for cmake like other binaries.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:18 +01:00
John Spray
176123caea tasks/cephfs: extend vstart_runner's ctx&run
Sufficiently to enable using workunits.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
99e3a400e1 tasks/cephfs: add --interactive for vstart runner
Just like interactive-on-error in teuthology.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
20e7d2af24 tasks/cephfs: remove a redundant sudo
Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
4f8adf155b tasks/cephfs: raise error on non-string stdins
Shouldn't be any from the fs tests that get run

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
80a9efb73d tasks/cephfs: warn if vstart_runner can't import mods
Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
06891416da tasks/cephfs: stop if needed binaries are absent
Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
23ae9815a5 tasks/cephfs: add instructions to vstart_runner
Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
cbb85720f3 tasks/cephfs: updates for cmake environ
Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00
John Spray
8b846b9f2c tasks/cephfs: add vstart runner script
This is to allow running CephFSTestCase tests
against a vstart cluster, for much faster turnaround
during development than running teuthology against
built ceph packages.

Not everything will be runnable this way, but for
certain things like filesystem repair scenarios we
have everything we need within a vstart environment.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-02 17:41:17 +01:00