]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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
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>
12 years agotask/restart: Restart task for testing daemon kill
Sam Lang [Mon, 11 Mar 2013 18:22:10 +0000 (13:22 -0500)]
task/restart: Restart task for testing daemon kill

The ceph daemons support being killed at a specific code point
with a config option.  In some cases, we want to test a kill point
only once for a given daemon run (such as replay that only occurs
during daemon startup).  This task allows running a script or executable
and (when the script sends a command to the task) restarting it with
a temporary config that has the appropriate kill point set.  Once
the daemon asserts and gets restarted, the original config is used.

Adds a specific restart_with_args() method to the DaemonState in the
ceph task.

Right now this task follows the workunit task closely, but uses stdout/stdin
to specify when to restart a daemon.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoadded ceph_health check and a few log messages
tamil [Fri, 15 Mar 2013 22:50:52 +0000 (15:50 -0700)]
added ceph_health check and a few log messages

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoFixed 'clock:' on Centos
Warren Usui [Fri, 15 Mar 2013 01:06:17 +0000 (18:06 -0700)]
Fixed 'clock:' on Centos

ntpdc commands were formerly returning -127 on CentOS

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoadded install.upgrade task
tamil [Fri, 15 Mar 2013 01:26:03 +0000 (18:26 -0700)]
added install.upgrade task

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoadded task for ceph.restart
tamil [Fri, 15 Mar 2013 01:18:39 +0000 (18:18 -0700)]
added task for ceph.restart

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoinstall: do debs for 'Debian'
Sage Weil [Thu, 14 Mar 2013 23:27:01 +0000 (16:27 -0700)]
install: do debs for 'Debian'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinstall: el6 -> rpm
Sage Weil [Thu, 14 Mar 2013 23:26:25 +0000 (16:26 -0700)]
install: el6 -> rpm

Slightly more general.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoAdded el6 install functionality for CentOS systems.
Warren Usui [Thu, 14 Mar 2013 21:24:50 +0000 (14:24 -0700)]
Added el6 install functionality for CentOS systems.

install_packages, remove_packages and remove_sources are now the
installation and removal functions used by teuthology.  Debian
references have been removed outside of tasks/install.py.  CentOS
functionality parallel to Debian have been added to tasks/install.py,
and el6 references have been added to nuke.py, task/ceph-fuse.y and
task/install.py.

Some files created by CentOS are removed with rm -fr.  This should
be changed once the installation/removal rpm procedure is implemented.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoUse service instead of initctl to restart rsyslog.
Warren Usui [Wed, 13 Mar 2013 23:42:09 +0000 (16:42 -0700)]
Use service instead of initctl to restart rsyslog.

This change is needed to make sure teuthology works on CentOS when the
-a option is specified.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-powercycle-fixes'
Sage Weil [Thu, 14 Mar 2013 01:09:06 +0000 (18:09 -0700)]
Merge remote-tracking branch 'gh/wip-powercycle-fixes'

12 years agoceph.conf: auth debug = true
Sage Weil [Wed, 13 Mar 2013 20:39:54 +0000 (13:39 -0700)]
ceph.conf: auth debug = true

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-deploy: uninstall even when no archive
Sage Weil [Tue, 12 Mar 2013 00:06:57 +0000 (17:06 -0700)]
ceph-deploy: uninstall even when no archive

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agotask/ceph_manager: Only reconnect if powercycled
Sam Lang [Wed, 13 Mar 2013 16:05:45 +0000 (11:05 -0500)]
task/ceph_manager: Only reconnect if powercycled

We don't need to reconnect for remotes
that haven't been powercycled.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoschedule_suite.sh: crank up mon logs
Sage Weil [Wed, 13 Mar 2013 15:23:59 +0000 (08:23 -0700)]
schedule_suite.sh: crank up mon logs

Until we find #4279.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agotask/thrashosds: Ipmi checking/setup in thrashosds
Sam Lang [Wed, 13 Mar 2013 15:11:06 +0000 (10:11 -0500)]
task/thrashosds: Ipmi checking/setup in thrashosds

We don't need to setup the ipmi console on runs that
don't use powercycling, so delay setup of the RemoteConsole
with ipmi to the thrashosd task and only then if the powercycle
config is set.  This avoids spurious test failures from flaky
ipmi.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agotask/ceph_manager: Check that ipmi is enabled
Sam Lang [Wed, 13 Mar 2013 03:21:12 +0000 (22:21 -0500)]
task/ceph_manager:  Check that ipmi is enabled

If powercycling was requested for the osd thrasher
we should ensure that we are able to reach the
ipmi console.  This helps us avoid weird errors.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agotask/ceph: Recreate /var/run/ceph on powercycle
Sam Lang [Wed, 13 Mar 2013 03:17:16 +0000 (22:17 -0500)]
task/ceph: Recreate /var/run/ceph on powercycle

If a node is powecycled during testing, we need to
recreate /var/run/ceph once the node restarts.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agolock: tolerate description of None
Sage Weil [Tue, 12 Mar 2013 16:49:42 +0000 (09:49 -0700)]
lock: tolerate description of None

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoteuthology: update hadoop task for new code layout
Joe Buck [Tue, 12 Mar 2013 07:51:05 +0000 (00:51 -0700)]
teuthology: update hadoop task for new code layout

Update the teuthology Hadoop task to use
the new code layout.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
12 years agoincreasing the default memory of vm to 4 MB
tamil [Tue, 12 Mar 2013 19:12:58 +0000 (12:12 -0700)]
increasing the default memory of vm to 4 MB

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoceph-deploy: no need to call chef explicitly
Sage Weil [Mon, 11 Mar 2013 23:22:02 +0000 (16:22 -0700)]
ceph-deploy: no need to call chef explicitly

The chef task does this.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-deploy: use ceph.com git mirror
Sage Weil [Mon, 11 Mar 2013 23:21:47 +0000 (16:21 -0700)]
ceph-deploy: use ceph.com git mirror

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph: sudo grep /var/log/ceph/ceph.log
Sage Weil [Mon, 11 Mar 2013 00:08:55 +0000 (17:08 -0700)]
ceph: sudo grep /var/log/ceph/ceph.log

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomds_thrash: requery mds status inside the wait loop
Sage Weil [Sun, 10 Mar 2013 06:17:15 +0000 (22:17 -0800)]
mds_thrash: requery mds status inside the wait loop

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoschedule_suite.sh: check, but do not sync, clock for each run
Sage Weil [Sun, 10 Mar 2013 05:34:24 +0000 (21:34 -0800)]
schedule_suite.sh: check, but do not sync, clock for each run

Trust NTP to actually sync things.  But check the clock skew so we can
verify it if something seems off.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agompi: substitute $TESTDIR
Sage Weil [Sun, 10 Mar 2013 05:20:43 +0000 (21:20 -0800)]
mpi: substitute $TESTDIR

Signed-off-by: Sage Weil <sage@inktank.com>