Commit Graph

436 Commits

Author SHA1 Message Date
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
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
Zack Cerza
4dbc05276d Remove chef task
It is obsoleted by teuthology.task.ansible.cephlab

Signed-off-by: Zack Cerza <zack@redhat.com>
2015-07-27 11:47:47 -06:00
Vasu Kulkarni
71fec93fd8 - Fix for wip-12225, Extra argument to mon create-initial was never required
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2015-07-24 13:56:30 -04:00
Dan Mick
2006b77340 calamari_setup: disable epel again after ceph-deploy
ceph-deploy enables EPEL on Centos; this caused problems for
Calamari.  Undo it after ceph-deploy has installed Ceph.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-22 17:28:55 -07:00
Ken Dreyer
8b693d4d31 Merge pull request #487 from dmick/master
calamari_setup: handle new structure in 1.3.0 (MON and OSD repos)
2015-07-14 09:43:59 -06:00
Loic Dachary
ec12f21a7e tasks/ceph_fuse.py: virtual machines need flexible mount timeout
1) add a wait time before the mount attempt to let the cluster get set up.
By default this should be skipped, but for VMs and known-slow systems we
can give them 60 seconds.
2) Make the timeout configurable, with a 30-second default, but override it
for VM tests.

http://tracker.ceph.com/issues/12320 Fixes: #12320

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-07-14 13:03:01 +02:00
Gregory Farnum
ba6e8e6d94 Merge pull request #464 from ceph/wip-offline-backward
Tests for damage handling and cephfs-data-scan

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-07-14 11:43:02 +01:00
Dan Mick
35c6363a1e calamari_setup: handle new structure in 1.3.0 (MON and OSD repos)
Also, clean up the command handling; failure will throw an exception,
so no need to accumulate the errors in an int

Fixes: #12228
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-13 20:53:26 -07:00
Yan, Zheng
44dc0320fa Merge pull request #470 from ceph/wip-4161
Add cephfs TestBacktrace
2015-07-13 17:22:58 +08:00
Yan, Zheng
78a62d41b8 Merge pull request #466 from ceph/wip-damaged-fixes
Tests for wip-damaged-fixes
2015-07-13 17:03:14 +08:00
Andrew Schoen
1d5f368c9a Merge pull request #481 from dmick/master
calamari_nosetests: verify that calamari_branch exists
2015-07-08 14:47:13 -05:00
Sage Weil
c0b2e31680 tasks/rados: make {write,append}_excl conditional
For upgrade tests we don't want to pass these args to (old)
ceph_test_rados.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-07-08 10:43:22 -04:00
Dan Mick
ad8058e612 calamari_nosetests: verify that calamari_branch exists
Fixes: #12206
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2015-07-07 11:03:18 -07:00
Andrew Schoen
e037797bc5 rgw: do not enable both tcp and uds for fastcgi
This fixes a bug where we were setting up mod_fastcgi to use both tcp
and uds.
2015-07-01 16:44:32 -05:00
Warren Usui
1a29801dfe tasks/calamari_setup.py cal_svr.run arg list is missing args keyword.
Fixes #12185

Signed-off-by: Warren Usui <warren.usui@inktank.com>
2015-06-29 13:33:49 -07:00
Yan, Zheng
835ad8b8f3 cephfs/test_auto_repair.py: flush journal after umount
When client capabilities get released, MDS may update corresponding
inodes' client writable range and mark those inodes dirty. The auto
repair test expects MDS to trim inodes from its cache, but MDS can't
trim dirty inodes. So we should flush journal after umount.

Fixes: #12172
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2015-06-29 17:52:44 +08:00
John Spray
21abe9d928 tasks/cephfs: add test_backtrace
This is for verifying the new layout-writing behaviour.  While
we're at it, test that the pre-existing backtrace behaviours
are really happening (updating old_pools)

Signed-off-by: John Spray <john.spray@redhat.com>
2015-06-25 17:19:03 +01:00