Commit Graph

452 Commits

Author SHA1 Message Date
Sage Weil
a328e3e60d tasks/ceph_manager: dump pgs when recover times out
It is really hard to map a stuck recovery back to the pgs that
are stuck.  This will make it easy.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-08 08:59:49 -04:00
Sage Weil
394dbc1890 Merge remote-tracking branch 'gh/wip-ceph-deploy' 2015-09-06 13:36:07 -04:00
Kefu Chai
ff4e2ad3dc Merge pull request #552 from ceph/wip-12878
tasks/scrub_test: sudo ls ...

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-09-06 18:26:56 +08:00
Sage Weil
6064443ad1 tasks/divergent_prior[2]: fix rados get syntax
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-05 09:25:24 -04:00
Sage Weil
7b3ea31efe tasks/reg11184.py: fix rados get syntax
no -o

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-05 09:23:54 -04:00
Sage Weil
26eb35d611 tasks/s3tests: use ceph-$foo branches
We need to be able to merge things into s3-tests master that
break rgw.  Create ceph-foo branches (ceph-master,
ceph-infernalis, etc.) and use those instead.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-04 14:42:21 -04:00
Sage Weil
d46c3a53ab tasks/scrub_test: sudo ls ...
/var/lib/ceph/osd/* is owned by ceph now; ubuntu user can't read
it.

Fixes: #12878
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-02 22:01:58 -04:00
Sage Weil
0553e50401 tasks/ceph_deploy: install ceph-test
Signed-off-by: Sage Weil <sage@redhat.com>
2015-09-02 18:45:33 -04:00
John Spray
8e275049a0 tasks/cephfs: fix mount_timeout config loading
Previously were defaulting to a string, which
always compared greater than elapsed, so never
timed out.

Fixes: #12820
Signed-off-by: John Spray <john.spray@redhat.com>
2015-09-01 11:31:23 +01:00
Sage Weil
f5865d32a8 tasks/ceph_deploy: work with systemd
This is ugly, but I'm not going to rewrite this right now.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-08-31 14:21:29 -04:00
Loic Dachary
fbaedbf9fa Merge pull request #546 from dachary/wip-11881-multipath
ceph-disk workunit
2015-08-31 17:30:05 +02:00
Sage Weil
33ad04c715 Merge remote-tracking branch 'gh/next' 2015-08-28 15:41:17 -04:00
John Spray
ffe79e9f31 tasks/cephfs: timeout on wait in test_network_death
So that we can get a failure instead of a hang in

Signed-off-by: John Spray <john.spray@redhat.com>
2015-08-28 13:57:23 +01:00
John Spray
a3f8a44d25 Merge remote-tracking branch 'origin/next' 2015-08-28 09:17:28 +01:00
Loic Dachary
d6c72c3a25 ceph-deploy: implement only_mon
If only_mon is true, do not attempt to deploy osds.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:23:53 +02:00
Loic Dachary
b181783166 ceph-deploy: implement keep_running
When keep_running is true, do not shutdown the cluster, leave it as it
is for other workunits or tasks to use. This effectively allows the
ceph-deploy task to be used as a helper to deploy clusters.

The call to build_ceph_cluster is simplified by giving it the whole
configuration dictionary instead of re-building one with selected arguments.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:20:25 +02:00
Loic Dachary
e5db657e86 ceph-deploy: ceph report on failure
When ceph-deploy fails, run ceph report to get more information about
the state of the cluster at the time of the failure.

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-08-27 23:19:22 +02:00
John Spray
df8cecf479 tasks/cephfs: fix test_pool_perm teardown
Fixes: #12777
Signed-off-by: John Spray <john.spray@redhat.com>
2015-08-27 17:53:24 +01:00
Andrew Schoen
766da54dbc ceph_deploy: if a branch is given, use it when installing rgw
Fixes: http://tracker.ceph.com/issues/12758

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-08-24 10:09:24 -05:00
Yan, Zheng
753f93dde8 Merge pull request #526 from ceph/wip-stashed-layout
tasks/cephfs: implement TestDataScan.test_stashed_layout
2015-08-20 19:03:59 +08:00
Travis Rhoden
dceae70ece Merge pull request #514 from ceph/wip-cd-add-branch-install
- Use branch from config for ceph-deploy testing

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
2015-08-14 11:24:08 -07:00
John Spray
c1ca95cd16 tasks/cephfs: implement TestDataScan.test_stashed_layout
This is for testing how cephfs-data-scan handles
the new 'layout' xattr when found during recovery.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-08-13 14:29:35 +01:00
Ken Dreyer
0cf220ad4f calamari_setup: install "cli" utils on Calamari node
In our RHCS 1.3 ceph-deploy docs, we tell users to run "ceph-deploy
install --cli" on their calamari admin node, but our smoke test wasn't
actually doing this.

See https://bugzilla.redhat.com/1252929 , "[Ubuntu 1.3.0] - ceph-deploy
install --no-adjust-repos --cli `hostname` is failing with a Traceback
error"
2015-08-12 14:52:37 -06:00
Dan Mick
532a4e4a8b calamari_setup: change to use ceph-deploy repo command
Fixes: #12643
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-08-11 16:14:38 -07:00
Ken Dreyer
63e6d87db4 calamari_setup: handle RHCS 1.2 (missing /mnt/MON)
In RHCS 1.2 we don't have a /mnt/MON directory. The intention of
35c6363a1e was to handle this condition,
but in 1.2, the non-zero return code makes Teuthology fail the whole
test.

We don't want *Teuthology* itself to act on the return code here; we
simply want to know what it was and structure the rest of the test
accordingly.
2015-08-06 07:58:35 -06:00
Alfredo Deza
af973259ef fix indentation error in docstring
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2015-08-06 08:41:17 -04:00
John Spray
9f530092e2 tasks: fix syntax error in ceph.py
From e195f9fa.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-08-06 10:25:03 +01:00
Andrew Schoen
fd39a7e0bf Merge pull request #520 from ceph/wip-logrotate-chcon
Set the SELinux context of the logrotate config
2015-08-05 16:30:57 -05:00
Zack Cerza
e195f9fa1c Set the SELinux context of the logrotate config
Signed-off-by: Zack Cerza <zack@redhat.com>
2015-08-05 10:08:35 -06:00
Sage Weil
c93fe1f1c6 tasks/ceph_manager: be silent about sending SIGHUPs
At the default interval this generates tons of log noise.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-08-04 13:08:04 -04:00
Zack Cerza
657dd9ecf0 Merge pull request #515 from ceph/wip-12476
thrashosds: send a random osd a signal.SIGHUP
2015-07-29 09:03:50 -06:00
Dan Mick
6726f4f1fa calamari_setup: only stop ceph on osd/mon machines
Fixes bogus failure at end of run on calamari server

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-28 16:12:09 -07:00
Dan Mick
30dbe93125 calamari_setup: hack for 1.3.0 on centos: install lttng from EPEL
lttng is not yet part of any private repo; since 1.3.0/CentOS is not
a supported product, just grab it from EPEL for this test.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-28 16:12:09 -07:00
Dan Mick
ac8b0e1abf calamari_setup: pep8 fix
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-28 16:12:09 -07:00
Dan Mick
17c3a94b5d calamari_setup: Add --no-adjust-repos to ceph-deploy install --<type>
Otherwise, ceph-deploy will install an apt source that points to
ceph.com, which will override the local ISO repos.

No --mon/--osd yet until 12147 is fixed

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-28 16:12:09 -07:00
Josh Durgin
0200811fc0 Merge pull request #446 from ceph/wip-krbd-unmap-suite
unmap subsuite for krbd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-07-28 15:49:46 -07:00
Andrew Schoen
a3c9a763b1 ceph_manager: don't add an osd to live_osds until it's been revived
also waits to remove it from dead_osds. this fixes an issue where
do_sighup tries to send a signal to an osd that has not been revived
yet.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-07-28 17:05:31 -05:00
Andrew Schoen
b2187b79f3 thrashosds: adds a sighup_delay option, defaulted to 0.1
This will call Thrasher.do_sighup which picks a random osd and sends a
signal.SIGHUP to it, delaying for the value of sighup_delay between each
time it picks a new osd to signal.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-07-28 14:46:35 -05:00
Andrew Schoen
84d24038aa ceph_manager: adds a do_sighup method
This method runs in a separate greenlet than do_thrash and will pick a
random live osd to send a signal.SIGHUP to. There is a config option,
sighup_delay, which controls how long to delay between sending the
signals.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-07-28 14:46:12 -05:00
Andrew Schoen
ed73f67991 ceph_manager: adds a signal_osd method
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2015-07-28 14:13:30 -05:00
Vasu Kulkarni
c1116a0af8 - Use branch from config for ceph-deploy testing instead of released branch
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-07-28 13:38:47 -04:00
Travis Rhoden
ec1916af6f Merge pull request #509 from ceph/wip-12225
Don't pass host to mon create-initial

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
2015-07-28 10:26:54 -07:00
Gregory Farnum
961701e3ed Merge pull request #512 from ceph/wip-pool-perm-fixes
Fixes to test_pool_perm

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-07-28 14:45:44 +01:00
John Spray
a13064bf21 Merge pull request #489 from dachary/wip-12320-ceph-fuse
tasks/ceph_fuse.py: virtual machines need flexible mount timeout

Reviewed-by: John Spray <john.spray@redhat.com>
2015-07-28 11:20:36 +01:00
John Spray
e33065f3c9 tasks/cephfs: reset auth caps in setUp
Signed-off-by: John Spray <john.spray@redhat.com>
2015-07-28 10:34:58 +01:00
John Spray
6864f882bc tasks/cephfs: don't hardcode data pool name in test_pool_perm
Signed-off-by: John Spray <john.spray@redhat.com>
2015-07-28 10:34:58 +01:00
John Spray
e3434b6d2f tasks/cephfs: test_pool_perm: reinstate proper caps on teardown
Signed-off-by: John Spray <john.spray@redhat.com>
2015-07-28 10:34:58 +01:00
John Spray
a0ccd69041 tasks/cephfs: don't hardcode client ID in test_pool_perm
Our teuthology yamls all happen to use "client.0" but
it's not guaranteed.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-07-28 10:34:58 +01:00
John Spray
36ec6f9e0b tasks/cephfs: test_pool_perm whitespace
PEP8-ize.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-07-28 10:34:57 +01:00
Andrew Schoen
9c6e4f0e3b Merge pull request #511 from ceph/wip-drop-chef
Remove chef task
2015-07-27 12:58:22 -05:00