]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/log
teuthology.git
12 years agomon_thrash: tolerate missing 'scrub' command
Sage Weil [Mon, 8 Jul 2013 17:43:32 +0000 (10:43 -0700)]
mon_thrash: tolerate missing 'scrub' command

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon_thrash: optionally scrub after each iteration (default true)
Sage Weil [Fri, 5 Jul 2013 21:23:56 +0000 (14:23 -0700)]
mon_thrash: optionally scrub after each iteration (default true)

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 121b1b9f385831154b0eb2a037a3d7c4ccfcfdd4)

12 years agomon_thrash: fix more naming
Sage Weil [Fri, 5 Jul 2013 21:23:37 +0000 (14:23 -0700)]
mon_thrash: fix more naming

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 9b22d388835b8074fdcfa51deb019b666e3b186f)

12 years agomon_thrash: use _ instead of - consistently
Sage Weil [Fri, 5 Jul 2013 17:30:25 +0000 (10:30 -0700)]
mon_thrash: use _ instead of - consistently

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 389f65e7a6e4d68694d6ac0f63e61c83aaa2a40b)

12 years agoWipe out existing id_rsa.pub and id_rsa before pushing ssh keys
Sandon Van Ness [Fri, 21 Jun 2013 01:36:58 +0000 (18:36 -0700)]
Wipe out existing id_rsa.pub and id_rsa before pushing ssh keys

A very simple change. Just touch a file first (to create it if it
doesn't yet exist so the delete doesn't error out) and then delete
it before pushing the keys to the file. This should avoid the
id_rsa.pub and id_rsa files from getting messed up due to previous
runs which were interrupted or failed (or if those files exist for
some reason). This appears to be what was causing breaking in the
ceph-deploy nightlies.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agovalgrind: ignore all leaks for now
Sage Weil [Wed, 19 Jun 2013 20:40:30 +0000 (13:40 -0700)]
valgrind: ignore all leaks for now

Most of them are coming from the messenger code paths, and the changes to
fix them have only just reached master, and will likely not be backported
to cuttlefish.  Any substantial (non-shutdown) leak we encounter will need
to be identified and backported manually.

12 years agoUse authorized_keys2 instead of authorized_keys
Sandon Van Ness [Mon, 17 Jun 2013 23:24:37 +0000 (16:24 -0700)]
Use authorized_keys2 instead of authorized_keys

Instead of going through the trouble of adding/removing lines
from authorized_keys which has all our normal keys in it, instead
push keys to the unused authorized_keys2 file which makes the key
management significantly simpler as that file can just be wiped
out each time instead of worrying about preserving contents.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
(cherry picked from commit 32c82347259d51d11dcb489149ce8557c9181e6f)

12 years agoadding a newline to auth key data
tamil [Fri, 14 Jun 2013 00:13:09 +0000 (17:13 -0700)]
adding a newline to auth key data

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit 0e3038650288a1ecdede6dd298e57ed1fd739a31)

12 years agoset permission for config file
tamil [Thu, 16 May 2013 20:14:06 +0000 (13:14 -0700)]
set permission for config file

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit bc9f502c601c15b5a5676a8f07d65a828d3862e5)

12 years agoadded UserKnownHostsfile to ssh config
tamil [Thu, 16 May 2013 16:49:40 +0000 (09:49 -0700)]
added UserKnownHostsfile to ssh config

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit 7cb59d3b8274e61cb610501c24ca1520d09c2d93)

12 years agoteuthology: fix for ssh-keys-task
Joe Buck [Fri, 5 Apr 2013 00:47:29 +0000 (17:47 -0700)]
teuthology: fix for ssh-keys-task

Resolves an issue where we
were not properly escaping the generated
public key when doing matches against it.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewd-by: Sam Lang <sam.lang@inktank.com>
(cherry picked from commit 826ad0d816b1820fb444d33aff0019652cc0ade3)

12 years agoteuthology: remove previous test ssh keys
Joe Buck [Wed, 20 Mar 2013 04:26:16 +0000 (21:26 -0700)]
teuthology: remove previous test ssh keys

Updated the ssh-keys task to cleanup
any left-over keys from previous tasks
(indicated by the user being 'ssh-keys-user').
Also, some of the functions in the ssh_keys task seem
like they could be useful in general.
This patch refactors them into misc.py.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewd-by: Sam Lang <sam.lang@inktank.com>
(cherry picked from commit 4258807bfcedb190155d690ab5e059cd9670e90d)

12 years agoadmin_socket: fetch test from correct branch
Sage Weil [Wed, 19 Jun 2013 17:36:49 +0000 (10:36 -0700)]
admin_socket: fetch test from correct branch
(cherry picked from commit 3649e2777099054cbfc5bcdb7d0be837d05ebfb3)

12 years agovalgrind: whitelist all of leveldb
Sage Weil [Mon, 17 Jun 2013 23:11:32 +0000 (16:11 -0700)]
valgrind: whitelist all of leveldb

12 years agovalgrind: glibc/boost_thread leak suppressions
Sage Weil [Sun, 9 Jun 2013 05:26:31 +0000 (22:26 -0700)]
valgrind: glibc/boost_thread leak suppressions

12 years agoceph: fix valgrind grep output parsing
Sage Weil [Tue, 4 Jun 2013 16:07:53 +0000 (09:07 -0700)]
ceph: fix valgrind grep output parsing

When you pass a single file to zgrep you don't get the filename prefix,
which confuses the split line a few lines down.

12 years agovalgrind: update suppressions for leveldb, libc leaks from mon
Sage Weil [Thu, 30 May 2013 18:25:32 +0000 (11:25 -0700)]
valgrind: update suppressions for leveldb, libc leaks from mon

These result in clean valgrind leak checks on the mon (at least with my
limited vstart testing).

12 years agoceph: fix valgrind log check
Sage Weil [Wed, 22 May 2013 20:22:21 +0000 (13:22 -0700)]
ceph: fix valgrind log check

- logs are gzipped; use zgrep
- wait for the proc to exit before looking at stdout

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoqemu: load the kvm module before trying to use it
Josh Durgin [Mon, 13 May 2013 21:19:59 +0000 (14:19 -0700)]
qemu: load the kvm module before trying to use it

It should be loaded before this, but in some cases it is not for some reason.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 58836d9db9f7c8f64f9a28c0d7dc7dad8284e3b8)

12 years agothrashosds: sync before doing powercycle testing
Sage Weil [Mon, 20 May 2013 19:26:49 +0000 (12:26 -0700)]
thrashosds: sync before doing powercycle testing

Hopefully fixes #5112
(cherry picked from commit 6c9292c80fc75b3e3f4f2489463e1098abf7d2cd)

12 years agonuke: don't require noipmi in ctx
Josh Durgin [Fri, 10 May 2013 01:20:59 +0000 (18:20 -0700)]
nuke: don't require noipmi in ctx

This is called from run.py too, which won't have ctx.noipmi.
The default of using impmi is fine for now for run.py.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit d7fe5c0a3418355a487d65b96ad26aa181687ff8)

12 years agonuke.py: Allow ipmi power cycling to be skipped
Sam Lang [Tue, 30 Apr 2013 20:10:35 +0000 (15:10 -0500)]
nuke.py: Allow ipmi power cycling to be skipped

Some nodes don't have ipmi setup.  Allow nuke to
skip the ipmi checking if -i (--noipmi) is specified.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoceph_manager: mount_osd_data expects osd as a str
Samuel Just [Wed, 1 May 2013 20:14:53 +0000 (13:14 -0700)]
ceph_manager: mount_osd_data expects osd as a str

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoceph.py: set up ctx.disk_config outside of the loop
Samuel Just [Wed, 1 May 2013 20:14:35 +0000 (13:14 -0700)]
ceph.py: set up ctx.disk_config outside of the loop

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoceph.py: the journal component does not current work with restart
Samuel Just [Wed, 1 May 2013 20:13:52 +0000 (13:13 -0700)]
ceph.py: the journal component does not current work with restart

Removing for the time being.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agofix some errors found by pyflakes
Josh Durgin [Wed, 1 May 2013 00:07:53 +0000 (17:07 -0700)]
fix some errors found by pyflakes

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agos3tests: revert useless portion of 1c50db6a4630d07e72144dafd985c397f8a42dc5
Josh Durgin [Tue, 30 Apr 2013 20:23:22 +0000 (13:23 -0700)]
s3tests: revert useless portion of 1c50db6a4630d07e72144dafd985c397f8a42dc5

Perhaps it was attempting to debug something, but it shouldn't have been committed.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw tests: remove users after each test
Josh Durgin [Tue, 30 Apr 2013 23:49:04 +0000 (16:49 -0700)]
rgw tests: remove users after each test

These should all be cleanup up at some point. They're
almost all the same code.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw tests: clean up immediately after the test
Josh Durgin [Tue, 30 Apr 2013 23:47:34 +0000 (16:47 -0700)]
rgw tests: clean up immediately after the test

There's no need for an explicit cleanup function, so move it back
to where it came from (except in s3roundtrip, which did not have it).

Instead, since these use a nested contextmanager, pass through
and yield to the top-level run_tasks after the nested
contextmanager has finished (and thus run all the cleanup steps
in the subtasks for this test).

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoceph: allow restarting radosgw
Josh Durgin [Tue, 30 Apr 2013 23:39:48 +0000 (16:39 -0700)]
ceph: allow restarting radosgw

Only split once, since radosgw will have client.X after it.
Monitors and MDSs may have names with more .s as well.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: add to ctx.daemons so it can be stopped/started dynamically
Josh Durgin [Tue, 30 Apr 2013 23:37:48 +0000 (16:37 -0700)]
rgw: add to ctx.daemons so it can be stopped/started dynamically

Name the daemon after the client it runs on, since only
one per host is supported anyway.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agomisc: move daemon stopping function to a generic place
Josh Durgin [Tue, 30 Apr 2013 23:35:11 +0000 (16:35 -0700)]
misc: move daemon stopping function to a generic place

This will be useful for other daemons, like radosgw, in the future.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoVerbose output on ceph-qa-chef.
Sandon Van Ness [Tue, 30 Apr 2013 20:04:28 +0000 (13:04 -0700)]
Verbose output on ceph-qa-chef.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agomisc: default base_test_dir to /home/ubuntu/cephtest
Sage Weil [Tue, 30 Apr 2013 16:15:37 +0000 (09:15 -0700)]
misc: default base_test_dir to /home/ubuntu/cephtest

This matches what the teuthworker is currently doing.

12 years agoswift, s3readwrite: add missing yield
Yehuda Sadeh [Tue, 30 Apr 2013 14:06:03 +0000 (07:06 -0700)]
swift, s3readwrite: add missing yield

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoDisable quiet mode wget output on wget for ceph-qa-chef
Sandon Van Ness [Tue, 30 Apr 2013 00:11:27 +0000 (17:11 -0700)]
Disable quiet mode wget output on wget for ceph-qa-chef

So maybe I can get a better idea of what is causing it to fail.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agos3tests, s3readwrite, swift: cleanup explicitly
Yehuda Sadeh [Mon, 29 Apr 2013 18:24:04 +0000 (11:24 -0700)]
s3tests, s3readwrite, swift: cleanup explicitly

Cleaning up test dir explicitly after run, so that
consecutive runs don't fail.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoworkunit: use passed refspec rather than checking sha1 again
Samuel Just [Sun, 28 Apr 2013 19:15:42 +0000 (12:15 -0700)]
workunit: use passed refspec rather than checking sha1 again

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoinstall.upgrade: apt-get install instead of upgrade
Sage Weil [Sun, 28 Apr 2013 17:28:52 +0000 (10:28 -0700)]
install.upgrade: apt-get install instead of upgrade

Upgrade does not actually upgrade in some cases; use install!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinstall: prefer 'branch' over 'sha1'
Sage Weil [Sun, 28 Apr 2013 16:35:45 +0000 (09:35 -0700)]
install: prefer 'branch' over 'sha1'

The upgrade tasks specify 'branch' in the job file, but the
schedule_suite.sh script sets a sha1 in the overrides.  Make
the upgrade tests actually test an upgrade by preferring branch
over sha1 when both are specified.

This is fragile, but ought to do the trick for now!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorepair_test.py: Additional test cases
David Zafman [Wed, 24 Apr 2013 22:50:28 +0000 (15:50 -0700)]
repair_test.py: Additional test cases

Test repair with more than 1 damaged object and with different types of damage
Regression test for bug #4778

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'next' of github.com:ceph/teuthology into next
Sandon Van Ness [Tue, 23 Apr 2013 18:23:36 +0000 (11:23 -0700)]
Merge branch 'next' of github.com:ceph/teuthology into next

12 years agoIncrease IPMI attempts to try to get around Flakey IPMI.
Sandon Van Ness [Tue, 23 Apr 2013 17:35:37 +0000 (10:35 -0700)]
Increase IPMI attempts to try to get around Flakey IPMI.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
12 years agoceph.conf: enable full debugging on the mon
Sage Weil [Tue, 23 Apr 2013 18:02:27 +0000 (11:02 -0700)]
ceph.conf: enable full debugging on the mon

12 years agoceph-deploy: fix stop command
Sage Weil [Mon, 22 Apr 2013 20:01:02 +0000 (13:01 -0700)]
ceph-deploy: fix stop command

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-deploy: stop daemons, archive, then purge[data]
Sage Weil [Thu, 18 Apr 2013 15:06:52 +0000 (08:06 -0700)]
ceph-deploy: stop daemons, archive, then purge[data]

Purge removes logs, and we want to archive those, so explicitly shut down
all daemons before doing the archiving step.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.conf: lower mon disk avail warning threshold
Sage Weil [Wed, 3 Apr 2013 15:38:52 +0000 (08:38 -0700)]
ceph.conf: lower mon disk avail warning threshold

Only wanr when we hit 90% instead of default 70%

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit cf4bf09b2c4dae034332fb893cf96ed31adb7a4b)

12 years agomisc: Fix for case status['description'] == None
Sam Lang [Wed, 17 Apr 2013 22:38:36 +0000 (17:38 -0500)]
misc: Fix for case status['description'] == None

Skip the machine that has a description, but the
value is None.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>
12 years agoradosgw-admin-rest: Add task for RESTful admin api.
caleb miles [Wed, 17 Apr 2013 15:45:59 +0000 (08:45 -0700)]
radosgw-admin-rest: Add task for RESTful admin api.

Signed-off-by caleb miles <caleb.miles@inktank.com>

12 years agomisc: Check for 'None' string from yaml
Sam Lang [Wed, 17 Apr 2013 00:08:45 +0000 (19:08 -0500)]
misc: Check for 'None' string from yaml

The description attribute from the machines yaml returned by the
locker might be the string 'None'.  Need to explicitly check for
that to avoid using a test dir of /tmp/cephtest/None.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agomisc: Use pythonic 'is not None' for jobid case
Sam Lang [Sat, 13 Apr 2013 15:12:45 +0000 (10:12 -0500)]
misc: Use pythonic 'is not None' for jobid case

The conditional 'if global_jobid:' evaluates to true
in some cases even when global_jobid is None.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agomisc: Fix name parsing
Sam Lang [Fri, 12 Apr 2013 22:02:07 +0000 (17:02 -0500)]
misc: Fix name parsing

Use last two digits of year.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agolock: Fix import cycle breakage
Sam Lang [Fri, 12 Apr 2013 17:55:54 +0000 (12:55 -0500)]
lock: Fix import cycle breakage

fa2049f caused an import cycle between lock.py and misc.py.  Move the
needed functions from lock.py to lockstatus.py so that we can avoid the
import cycle.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Conflicts:
teuthology/lock.py

12 years agomisc: Use job id and make short path for testdir
Sam Lang [Thu, 11 Apr 2013 14:23:10 +0000 (09:23 -0500)]
misc: Use job id and make short path for testdir

Nightlies run on teuthology currently use a testdir of
/home/ubuntu/cephtest, but this causes stale job errors occasionally
from the previous tests not getting properly cleaned up, which prevents
the nightlies from running successfully.

The misc.py get_testdir() function can specify a testdir that is
specific to the job, but previously the path was too long and would
cause separate job failures.

This patch does two things to resolve that.  First, it uses the job id
from the teuthology run if one exists.  This should be a relatively
short number that will identify the job run effectively.  Second,
if the job id isn't available, it creates a shortened form of the
job's name, for example the job name:

teuthology-2013-04-09_23:51:49-rgw-next-testing-basic

becomes:

te1304092351rntb

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoceph-deploy: purge before archiving
Sage Weil [Wed, 17 Apr 2013 03:50:50 +0000 (20:50 -0700)]
ceph-deploy: purge before archiving

Purge will uninstall and (in so doing) stop the daemons. This avoids trying
to tar up the mon data or logs while they are being written to, which
avoids errors like

2013-04-16T20:21:47.103 INFO:teuthology.task.ceph-deploy:Archiving mon data...
2013-04-16T20:21:47.545 INFO:teuthology.orchestra.run.err:tar: ./ceph-mira089/store.db/000009.log: file changed as we read it

Also drop the unnecessary uninstall (it is implied by purge).

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 4befae4fbea2413c9a8848ba195f336293619938)

12 years agoscheduled_suite.sh: check clock skew at start and end of run
Sage Weil [Wed, 3 Apr 2013 21:00:25 +0000 (14:00 -0700)]
scheduled_suite.sh: check clock skew at start and end of run

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 5c80201ec4a4a97367e4d7243cd046a3a8c808fa)

12 years agoRevert "Revert "Install.py: Prevent prompts from breaking apt""
Dan Mick [Mon, 15 Apr 2013 18:24:31 +0000 (11:24 -0700)]
Revert "Revert "Install.py: Prevent prompts from breaking apt""

This reverts commit 67a616a97927efdc4fbcc5edb0d0cf4a724d90e2.

Sigh.  As it turns out, /etc/default/grub being hacked also
causes the same problem.  I think there's a way to fix that cleanly
as well, but until then, replacing the "accept installed version"
hack here so jobs can run.

12 years agoRevert "Install.py: Prevent prompts from breaking apt"
Dan Mick [Fri, 12 Apr 2013 17:56:14 +0000 (10:56 -0700)]
Revert "Install.py: Prevent prompts from breaking apt"

This reverts commit 5995ae7e78dd19f4036f891db9db9fec97d6eab5.

With the changes to ceph-qa-chef and the teuthology kernel task,
we're no longer touching packaged file /etc/grub.d/10_linux, which
was the reason for this apt forcing.  Remove so that we find other
package problems that might be masked by this; we can always
put it back if there are such problems until we can fix those as well.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit c2b0828b19a426c6d73cb2f614333200ae66bac3)

12 years agokernel.py: put submenu name in 01_ceph_kernel if necessary
Dan Mick [Tue, 9 Apr 2013 22:53:49 +0000 (15:53 -0700)]
kernel.py: put submenu name in 01_ceph_kernel if necessary

We had been writing 01_ceph_kernel with the kernel title, and
relying on the fact that grub.cfg would never have submenus in it
(implemented by a hack to /etc/grub.d/10_linux which neutered its
submenu creation).  However, that hack was modifying a package file,
and got in the way of later apt commands.  Rather than doing it
that way, this divines the title of the submenu and sets the
default variable to "submenu>kernel", which works to select the
desired kernel.

It depends on there being only one level of submenu, and on the
format of the menuentry and submenu commands, dictated by grub2.
None of this is likely to work at all outside Ubuntu.

Fixes: #4496
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit 52aec32a7da07ca6e9a22ecedde78dafb4b74dfc)

12 years agoFix: kdb: doesn't work on mira nodes
Sandon Van Ness [Tue, 9 Apr 2013 20:09:39 +0000 (13:09 -0700)]
Fix: kdb: doesn't work on mira nodes

Change kernel.py to use ttyS2 for kdb output instead of ttyS1 when
the node is a mira machine. This is a fix for issue #4677

12 years agoInstall.py: Prevent prompts from breaking apt
Sandon Van Ness [Fri, 5 Apr 2013 02:15:14 +0000 (19:15 -0700)]
Install.py: Prevent prompts from breaking apt

Change apt commands to prevent prompts from coming up (forcing
non-interactive mode) so things like grub or other stuff doesn't
break teuthology runs.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoradosgw-admin: cluster info -> zone info
caleb miles [Tue, 2 Apr 2013 03:46:30 +0000 (20:46 -0700)]
radosgw-admin: cluster info -> zone info

Signed-off-by caleb.miles <caleb.miles@inktank.com>

12 years agorepair_test: add test for repairing read errs and truncations
Samuel Just [Wed, 27 Mar 2013 19:11:04 +0000 (12:11 -0700)]
repair_test: add test for repairing read errs and truncations

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agolocker: try to make up for apache timeouts
Josh Durgin [Fri, 29 Mar 2013 23:33:49 +0000 (16:33 -0700)]
locker: try to make up for apache timeouts

If the lock request succeeds in updating the db, but the client gets a
timeout from apache, they can now try again and get back the machines
they just locked.

Only automatic runs have a description set when locking several
machines, so this does not affect users of teuthology-lock
--lock-many, where no description can be set in the same request.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agodo not archive on pass if 'archive-on-error: True'
Sage Weil [Fri, 29 Mar 2013 19:19:46 +0000 (12:19 -0700)]
do not archive on pass if 'archive-on-error: True'

Optional flag makes us suck down the archive (mostly, the logs, which
might be huge for some debugging tests) unless the test has failed.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolocker: log desc too
Sage Weil [Fri, 29 Mar 2013 21:27:04 +0000 (14:27 -0700)]
locker: log desc too

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorun: clean up machine_type thing
Sage Weil [Fri, 29 Mar 2013 19:16:39 +0000 (12:16 -0700)]
run: clean up machine_type thing

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph_manager: retry set_pool_property on EAGAIN
Sage Weil [Thu, 28 Mar 2013 22:24:33 +0000 (15:24 -0700)]
ceph_manager: retry set_pool_property on EAGAIN

Retry indefinitely, for now.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorun: machine-type: foo, not machine_type: foo
Sage Weil [Thu, 28 Mar 2013 17:50:40 +0000 (10:50 -0700)]
run: machine-type: foo, not machine_type: foo

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #6 from ceph/wip-mds-thrasher-logging
Sage Weil [Wed, 27 Mar 2013 15:56:04 +0000 (08:56 -0700)]
Merge pull request #6 from ceph/wip-mds-thrasher-logging

task/mds_thrash: Log mds dump after long delay

12 years agotask/mds_thrash: Log mds dump after long delay 6/head
Sam Lang [Wed, 27 Mar 2013 13:48:45 +0000 (08:48 -0500)]
task/mds_thrash: Log mds dump after long delay

In cases where the mds thrasher continuously loops
waiting for an mds to be removed from the map, or
for a new mds to become active, we want to start logging
the mds state for debugging.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agolocker: make desc optional
Sage Weil [Tue, 26 Mar 2013 20:27:53 +0000 (13:27 -0700)]
locker: make desc optional

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.conf: osd debug op order = true
Sage Weil [Thu, 7 Mar 2013 05:35:41 +0000 (21:35 -0800)]
ceph.conf: osd debug op order = true

Debug the osd op ordering by default.  Most of the runs have a small number
of clients, which makes the STL maps cheap.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolocker/api: fix DELETE
Sage Weil [Tue, 26 Mar 2013 18:40:13 +0000 (11:40 -0700)]
locker/api: fix DELETE

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-lock'
Sage Weil [Tue, 26 Mar 2013 18:34:33 +0000 (11:34 -0700)]
Merge branch 'wip-lock'

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agolock: pass desc to lock operation; leave on unlock
Sage Weil [Mon, 25 Mar 2013 23:46:48 +0000 (16:46 -0700)]
lock: pass desc to lock operation; leave on unlock

Pass the desc to the lock operation.

The unlock operation now clears desc for us; no need to do it outselves.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolocker: set desc on lock
Sage Weil [Mon, 25 Mar 2013 23:42:59 +0000 (16:42 -0700)]
locker: set desc on lock

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolocker: clear desc on unlock
Sage Weil [Mon, 25 Mar 2013 23:41:15 +0000 (16:41 -0700)]
locker: clear desc on unlock

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agothrashosds: add test_backfill_full
Samuel Just [Thu, 21 Mar 2013 21:37:38 +0000 (14:37 -0700)]
thrashosds: add test_backfill_full

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agothrashosds.py: fix line length
Samuel Just [Thu, 21 Mar 2013 21:10:13 +0000 (14:10 -0700)]
thrashosds.py: fix line length

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agolocker: log updates
Josh Durgin [Mon, 25 Mar 2013 22:01:26 +0000 (15:01 -0700)]
locker: log updates

Note whenever locks are acquired/released, or a machine's description is updated.
Under apache, these will go to error.log.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoceph-deploy: purge /var/lib/ceph data on finish
Sage Weil [Sun, 24 Mar 2013 22:12:59 +0000 (15:12 -0700)]
ceph-deploy: purge /var/lib/ceph data on finish

The install task does this now that the package doesn't; we
need to too.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoverify /var/lib/ceph not present on start
Sage Weil [Sun, 24 Mar 2013 03:58:46 +0000 (20:58 -0700)]
verify /var/lib/ceph not present on start

Verify there is no /var/lib/ceph, just like we do with the cephtest
directory.  We will need to change this (or make it optional) when we
allow runs against an existing cluster, but then a whole bunch of other
things will need to change then as well.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinstall: need sudo when purging /var/lib/ceph
Sage Weil [Sun, 24 Mar 2013 03:53:51 +0000 (20:53 -0700)]
install: need sudo when purging /var/lib/ceph

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinstall, nuke: explicitly purge /var/lib/ceph
Sage Weil [Thu, 21 Mar 2013 05:51:24 +0000 (22:51 -0700)]
install, nuke: explicitly purge /var/lib/ceph

The packages won't do this anymore.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoteuthology: cleanup client dirs for workunit task
Joe Buck [Fri, 22 Mar 2013 18:56:50 +0000 (11:56 -0700)]
teuthology: cleanup client dirs for workunit task

This patch corrects an issue where a workunit task is
not cleaning up generated directories
if the 'all' key is used to specify clients.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
12 years agostop ignoring osd leaks
Sage Weil [Fri, 22 Mar 2013 03:40:48 +0000 (20:40 -0700)]
stop ignoring osd leaks

Note that the mds is the only one left that we are ignoring.

12 years agomoving client.keyring creation out of ceph task
tamil [Thu, 21 Mar 2013 23:14:54 +0000 (16:14 -0700)]
moving client.keyring creation out of ceph task

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agolock: make do_summary() respect --machine-type
Dan Mick [Thu, 21 Mar 2013 01:30:29 +0000 (18:30 -0700)]
lock: make do_summary() respect --machine-type

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agostop and restart daemons as restart only starts.
tamil [Thu, 21 Mar 2013 00:40:46 +0000 (17:40 -0700)]
stop and restart daemons as restart only starts.

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agotask/ceph: Revert extra check for running status
Sam Lang [Tue, 19 Mar 2013 20:42:51 +0000 (15:42 -0500)]
task/ceph:  Revert extra check for running status

Don't use exit status info to track daemon state.  We need to find
a better way to do this for the restart task.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agosuite: shorten subject a bit
Sage Weil [Tue, 19 Mar 2013 19:02:14 +0000 (12:02 -0700)]
suite: shorten subject a bit

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-4197'
David Zafman [Tue, 19 Mar 2013 18:30:41 +0000 (11:30 -0700)]
Merge branch 'wip-4197'

12 years agoosd: data loss: low space handling
David Zafman [Fri, 15 Mar 2013 04:53:44 +0000 (21:53 -0700)]
osd: data loss: low space handling

Automated test cases for feature #4197

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reported-by: Sam Just <sam.just@inktank.com>
12 years agoFixed so that installation works on a brand new CentOS system.
Warren Usui [Mon, 18 Mar 2013 22:25:59 +0000 (15:25 -0700)]
Fixed so that installation works on a brand new CentOS system.

Do yum install rather than yum reinstall for CentOS.
When exiting CentOS, yum erase the ceph-release rpm.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
12 years agotask/restart: Handle error from script correctly
Sam Lang [Tue, 19 Mar 2013 13:08:05 +0000 (08:08 -0500)]
task/restart:  Handle error from script correctly

The exitstatus on the process is a gevent.AsyncResult
(not an int).  Use the try/except pattern for handling
errors instead.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agos/dist-upgrade/upgrade
tamil [Mon, 18 Mar 2013 23:29:18 +0000 (16:29 -0700)]
s/dist-upgrade/upgrade

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoFixed ceph-fuse mount point cleanup bug
Warren Usui [Sat, 16 Mar 2013 01:18:56 +0000 (18:18 -0700)]
Fixed ceph-fuse mount point cleanup bug

Tested for the existence of /sys/fs/fuse/connections/*/abort
before clobbering it.  This problem was generated when all
the machines were virtual CentOS machines.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
12 years agotask/restart: Cleanup in finally
Sam Lang [Mon, 18 Mar 2013 16:28:51 +0000 (11:28 -0500)]
task/restart:  Cleanup in finally

Need to cleanup the files created for this test from
the testdir.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agotask/restart: Fix check for done
Sam Lang [Mon, 18 Mar 2013 16:27:11 +0000 (11:27 -0500)]
task/restart: Fix check for done

The last command a restart script outputs is 'done'
indicating the script does not require being restarted
further.  Handle this case properly.

Signed-off-by: Sam Lang <sam.lang@inktank.com>