Commit Graph

906 Commits

Author SHA1 Message Date
Josh Durgin
c0a7808164 rgw: use different daemon name and apache module paths
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-07-10 18:00:25 -07:00
Josh Durgin
42b9ea95da misc: move system type checking to a generic location
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-07-09 18:52:00 -07:00
Josh Durgin
7845848c0f s3tests: fix client configurations that aren't dictionaries
They're always used as dictionaries later on.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-07-09 18:51:03 -07:00
tamil
3a1c316aac Add mon create and destroy with an optional argument mon_initial_members
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-07-09 11:12:29 -07:00
Sage Weil
a0457492cc mon_thrasher: add pause/unpause of mons to thrashing
This adds an additional element of laggyness to the cluster which should
cause mons to call new elections.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-08 10:39:39 -07:00
Sage Weil
fdebf40f34 daemon-helper: send arbitrary signals via stdin
Each byte written to stdin will be interpreted as a signal.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-08 10:39:26 -07:00
Sage Weil
121b1b9f38 mon_thrash: optionally scrub after each iteration (default true)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-08 10:39:24 -07:00
Sage Weil
9b22d38883 mon_thrash: fix more naming
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-05 14:30:55 -07:00
Sage Weil
389f65e7a6 mon_thrash: use _ instead of - consistently
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-05 14:30:55 -07:00
Sandon Van Ness
d54932cbc8 Fix VM issues.
Fix of #5494 although bad description. Instead of adding a wait
the code used to detect if the guest was back up is fixed. The
previous code appeared to assume only one machine and broke
when it was waiting for multiple machines if the guests did not
come up within 10 seconds of each other

Make nuke not do the normal stuff if the machine is a VPS as we
just destroy them when they get unlocked.

Instead of getting downburst options from ~/.teuthology.yaml get
it from the yaml given to teuthology for the test/task instead.

Fixed an error that would make all the default downburst values
not take effect if any of them were set via a yaml.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>
2013-07-03 19:07:35 -07:00
Sage Weil
813d96ffdd ceph: don't check leaks on client.* (i.e., radosgw)
...until we fix them.  This way we can see other valgrind issues.
2013-07-03 09:59:21 -07:00
Sage Weil
93ae152384 radosgw-admin: add missing quote 2013-07-01 14:21:55 -07:00
Sage Weil
c0bf24d770 radosgw-admin: test 'bucket list' command (all buckets)
Verifies fix for #5455
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-01 14:21:48 -07:00
Sage Weil
140e63b413 ceph: disable logrotate
This screwed up the log archival step at the end, and generally makes a
mess of automated runs.

Fixe: #5451
2013-06-26 17:48:03 -07:00
Sage Weil
ee03afaa60 dump_stuck: fix test
The mon-osd-report-timeout setting shouldn't be there!  We will set the
other item explicitly, and remove both from the suite yaml.

Fixes: #5440
2013-06-25 12:49:07 -07:00
Sage Weil
a6b65fe81b Merge pull request #15 from ceph/wip-ulimits
Reviewed-by: Warren Usui <warren.usui@inktank.com>
2013-06-24 16:18:36 -07:00
Sage Weil
3142252129 Merge pull request #16 from ceph/wip-5431
Reviewed-by: Warren Usui <warren.usui@inktank.com>
2013-06-24 11:01:48 -07:00
Sage Weil
947eba1a60 rados: fix multiclient tests
Each client (not run) gets its own pool!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-23 20:44:38 -07:00
Sage Weil
e6e1df69ea dump_stuck: fix race with osd start
Occasionally we don't wait long enough for the osd to start and
mark itself up.  Keep trying until flush succeeds.

Fixes: #5431
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-23 16:21:59 -07:00
Sage Weil
13dbe9d1a5 enable-coredump -> adjust-ulimits
and set max_files to be big, too!
2013-06-23 09:15:28 -07:00
Sandon Van Ness
d39d648ead Merge remote-tracking branch 'remotes/origin/wip-sandon-cephdeploy' 2013-06-21 15:53:53 -07:00
Sandon Van Ness
f6270a7fb0 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>
2013-06-21 14:45:36 -07:00
Chris Lee
70b5467122 Clean up nested-if logic 2013-06-20 13:42:33 -07:00
Samuel Just
3d9fa2253b task/peering_speed_test.py: add test which summarizes pg peering speed
Running this regularly may warn us about slow peering.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-06-19 15:16:28 -07:00
Samuel Just
bb2cd9e375 task/: add args.py
The usage doc string for a task is tedious to write and
hard to keep reconciled with the code as defaults are changed.
args.py includes a helper to put it all in one place.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-06-19 15:16:28 -07:00
Warren Usui
778d930d08 Fix to ignore ssh-key checking if running on virtual machines or
if a line that reads 'sshkey: ignore' is in the yaml file.

Fix #5364
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-19 11:12:09 -07:00
Warren Usui
1441707222 Make reset of ssh key code conditional on being a virtual machine.
Add and use is_vm to determine if we are running on a virtual machine.

Fix #5364
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-19 11:12:05 -07:00
Sage Weil
3649e27770 admin_socket: fetch test from correct branch 2013-06-19 10:36:49 -07:00
Sage Weil
4455f75d17 valgrind: give up and ignore all leveldb leaks
Hopefully if it is our fault we will have our own struct wrapping the
leveldb resource that we leak.
2013-06-19 09:08:17 -07:00
Sandon Van Ness
32c8234725 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>
2013-06-18 09:35:55 -07:00
Sandon Van Ness
0ff2e42e7c 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>
2013-06-17 16:24:37 -07:00
Sage Weil
ebd003bc82 valgrind: another leveldb leak 2013-06-17 13:53:10 -07:00
Sage Weil
7177d2e8fc ceph_manager: fix ceph tell mon.*
Need -- to make cli stop parsing (or quote the options).
Otherwise, the options will be parsed/applied to the cli's
librados instance.
2013-06-16 13:11:50 -07:00
Sage Weil
1ec8ba50fc no need for ceph --concise argument 2013-06-16 09:10:38 -07:00
Samuel Just
9cdc60af3f ceph_manager: use new ceph tell mon.* syntax
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-06-14 10:32:43 -07:00
Sage Weil
8730db1907 rados: fix up for parallel work
- use a separate pool for each client
- create pool at start, destroy pool at end
- use all clients, if not explicitly specified

Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-13 22:48:16 -07:00
tamil
0e30386502 adding a newline to auth key data
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-13 17:13:09 -07:00
tamil
662fd9ecd8 Merge branch 'master' of github.com:ceph/teuthology 2013-06-13 16:27:05 -07:00
tamil
e1daa1693e modified ceph-deploy to throw appropriate exceptions
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-13 16:26:42 -07:00
Sage Weil
f005204fd9 stop stripping leading \n from osd commands
leaving them in for mon command, but not for any good reason.
2013-06-13 14:51:21 -07:00
Warren Usui
18f2fcd24f Merge branch 'wip-RhelFix-wusui' 2013-06-12 17:05:51 -07:00
Sage Weil
d396096703 valgrind: make leveldb thread suppression more general
The thread can get created from a range of callers; ignore them all.
2013-06-11 19:34:33 -07:00
Warren Usui
8f29b3f9f1 Use install -d for /var/log/ceph.
Additional fix needed for #4946

Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-11 16:50:09 -07:00
Warren Usui
ae74abda26 Fix capitalization of CentOS
Fixes: #5313
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-11 14:14:07 -07:00
tamil
335185d309 added support for rhel
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-10 15:41:48 -07:00
Sage Weil
0911e5493b ceph: ignore ceph-osd leaks for now :( 2013-06-10 10:45:10 -07:00
Warren Usui
d034e17a11 Merge branch 'wip-teuthVm-wusui' 2013-06-10 09:46:42 -07:00
Sage Weil
c41e6ff5ba valgrind: glibc/boost_thread leak suppressions 2013-06-08 22:26:31 -07:00
Sage Weil
22532cc816 ceph_manager: drop -- before --format=json arg
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-07 21:58:41 -07:00
Sage Weil
028f1c709b valgrind: more leveldb whitelisting 2013-06-07 21:20:08 -07:00
Warren Usui
a4994e3bde Support added for running scheduled tasks on virtual machines.
This included:
    A). changes made so that full path names on some files were used
        (scheduled tasks started in different home directories).
    B.) Changes to insure tasks come up on the beanstalkc queue properly,
    C.) Finding and inserting the libvirt eqivalent code for vm machines
        in order to simulate ipmi actions,
    D.) Fix host key code, report valgrind issue more clearly.
    E.) Some message and downburst call changes.

    Fix #4988
    Fix #5122
    Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-07 19:32:15 -07:00
tamil
4eb8f8984a merged system_value for rpms
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-07 17:40:39 -07:00
tamil
754301bbec support install task for fedora
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-07 17:28:21 -07:00
Warren Usui
ed9af6cd97 Merge branch 'wip-RhelInstall-wusui' 2013-06-07 15:00:39 -07:00
Warren Usui
9d6141dd8e Add RHEL support to teuthology
Fix #4946
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-07 14:58:28 -07:00
Dan Mick
c95698045d task/install.py: extraneous subscript in upgrade() for only some remotes
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 15:42:27 -07:00
Dan Mick
188ae8904d ceph_manager: don't say you have no arguments and then list them
Calling ceph pg dump --format=json works better without -- before pg
(how did this work before?...)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-04 16:11:19 -07:00
Sage Weil
3ec763c420 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.
2013-06-04 09:07:53 -07:00
Sage Weil
bd7292b529 ceph: debug valgrind error
File "/var/lib/teuthworker/teuthology-master/teuthology/task/ceph.py", line 215, in valgrind_post
    (file, kind) = line.split(':')
ValueError: need more than 1 value to unpack
2013-06-03 09:57:17 -07:00
Sage Weil
64eb6df9fe valgrind: add another leveldb suppression 2013-05-30 22:07:30 -07:00
Sage Weil
d029abfa5a 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).
2013-05-30 11:25:32 -07:00
Warren Usui
8f4de687c8 Rhel support added
Fixes: #4946
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-28 17:06:45 -07:00
Sage Weil
4e18587930 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>
2013-05-22 13:22:21 -07:00
Sage Weil
6c9292c80f thrashosds: sync before doing powercycle testing
Hopefully fixes #5112
2013-05-20 12:26:49 -07:00
Sage Weil
d7ec089280 install: make overrides grouped by project
This lets us set different overrides for e.g. ceph vs samba, and makes it
so the schedule_teuthology.sh overrides don't specify a ceph sha1 for
samba installs.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-17 18:53:02 -07:00
tamil
5a274c8eba client config will be done only after the cluster is operational.
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-05-17 12:08:45 -07:00
tamil
bc9f502c60 set permission for config file
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-05-16 13:14:06 -07:00
tamil
7cb59d3b82 added UserKnownHostsfile to ssh config
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-05-16 09:49:40 -07:00
David Zafman
e582e15c81 Fix scrub_test.py permission error
Add description of yaml file including log-whitelist
Add sudo to dd that corrupts data

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Warren Usui <warren.usui@inktank.com>:wq
2013-05-14 16:24:33 -07:00
Josh Durgin
58836d9db9 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>
2013-05-13 14:19:59 -07:00
Sage Weil
63203c6e97 localdir: create/cleanup mnt.foo dir on local fs
This creates and cleans up a local mnt dir that can be consumed
by other tasks (like workunit, samba, etc), just like any
other client (ceph-fuse, kclient), except it is just a dir on
the local fs.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-10 23:01:04 -07:00
Yehuda Sadeh
1b0f241dcb Revert "radosgw-admin: Test bucket list for bucket starting with underscore."
This reverts commit fa70eb8f67.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-05-10 10:18:42 -07:00
tamil
5caa2bdecc default project to ceph and extra_pkgs to none
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-05-08 16:05:34 -07:00
Warren Usui
f1dfcba5ee Merge branch 'wip-teuth4768a-wusui'
Conflicts:
	teuthology/task/install.py
2013-05-07 19:27:51 -07:00
Sage Weil
783b92fecb install: default to ceph project throughout
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-07 16:00:26 -07:00
Samuel Just
5741228f60 ceph_manager: add timeout option to revive, increase for power_cycle
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-07 15:51:36 -07:00
Sage Weil
f7c8c27c7b Merge branch 'next' 2013-05-06 21:31:36 -07:00
Sage Weil
f1be93f913 install: only remove ceph data of project is ceph
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-06 18:04:00 -07:00
Sam Lang
0b7cd6a890 task/cifs-mount.py: Task for mounting cifs
The cifs-mount task mounts a smb endpoint from the
first available smbd server (the samba.0 role).  This
task is similar to the ceph-fuse task, file system
tests can be run on the resulting mount point.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 18:03:59 -07:00
Sam Lang
4899fa1a02 task/samba.py: Samba task to setup/start smbd
The samba task sets up samba on all 'samba' roles
with ceph as the backend storage module.  The task
creates a smb.conf file that points to ceph, and
starts smbd.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 17:37:25 -07:00
Sam Lang
c0f1ef7373 task/daemon-helper: Add nostdin option
Some daemons (smbd) will try to read from stdin and check if its a
socket, using that for sending/receiving messages.  If /dev/null is
used for stdin, the daemon aborts.  This patch adds a 'nostdin' option
to the daemon-helper so that the daemon can be started without /dev/null
as stdin.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 17:37:25 -07:00
Sam Lang
980973dc55 task/install.py: Allow installation of non-ceph
Generalizes the install task to specify a "project" which defaults to
'ceph', but can be configured to install different project packages,
for example:

install:
  project: samba
  extra_packages: samba

The default install task uses 'ceph' as the project, and relies on an
existing set of defined packages to install.  For other projects, the
packages to be installed must be specified with the extra_packages
field.  Multiple install tasks can be specified:

install:
install:
  project: samba
  extra_packages: samba

Which installs ceph packages and then samba packages.

Also, cleanup in nuke.py so that nuke and install use the same list of
packages when doing the remove steps.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 17:37:25 -07:00
Warren Usui
33c154ce9a Fix teuthology installations on physical Centos machines.
Yum installs of packages specify a pacakge number.  Initial
install of yum source changed to not fail if already done.
Added yum cleans where necessary.

Fixes: #4768
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-06 11:22:38 -07:00
Sage Weil
e3b0e1e820 s3tests: add force-branch with higher precdence than 'branch'
This way we can force a branch despite something in overrides.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-02 13:47:46 -07:00
Samuel Just
b124e8eafa ceph_manager: mount_osd_data expects osd as a str
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-01 13:14:53 -07:00
Samuel Just
b948406a07 ceph.py: set up ctx.disk_config outside of the loop
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-01 13:14:35 -07:00
Samuel Just
0382aa60e9 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>
2013-05-01 13:13:52 -07:00
Josh Durgin
8f76d2ee13 Merge remote branch 'origin/next' 2013-05-01 09:52:02 -07:00
Josh Durgin
52742fb072 fix some errors found by pyflakes
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-30 17:09:19 -07:00
Josh Durgin
7df72f2652 s3tests: revert useless portion of 1c50db6a46
Perhaps it was attempting to debug something, but it shouldn't have been committed.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-30 17:02:28 -07:00
Josh Durgin
5a6e560706 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>
2013-04-30 16:49:04 -07:00
Josh Durgin
6aba6d2cad 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>
2013-04-30 16:47:34 -07:00
Josh Durgin
935e8685e6 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>
2013-04-30 16:39:48 -07:00
Josh Durgin
55b16c790b 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>
2013-04-30 16:37:48 -07:00
Josh Durgin
4979df32c5 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>
2013-04-30 16:35:11 -07:00
Sandon Van Ness
08bf16102a Verbose output on ceph-qa-chef.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-04-30 13:04:28 -07:00
Yehuda Sadeh
57404b6a7b swift, s3readwrite: add missing yield
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-30 07:06:49 -07:00
Sandon Van Ness
70ce4db476 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>
2013-04-29 17:11:27 -07:00
Yehuda Sadeh
c8ec76eed8 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>
2013-04-29 11:24:04 -07:00
Samuel Just
45df0b264e 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>
2013-04-28 12:27:52 -07:00
Sage Weil
de745dba8a 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>
2013-04-28 10:28:52 -07:00
Sage Weil
1e52fb9b81 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>
2013-04-28 09:35:45 -07:00
Warren Usui
2211b1d77f Fix improperly spaced line. 2013-04-26 12:42:41 -07:00
David Zafman
6b8f1c6bce 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>
2013-04-24 17:39:25 -07:00
Warren Usui
fd750da993 Add changes to make teuthology suites work on vms.
Fixes: #4719
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed by: Dan Mick <dan.mick@inktank.com>
2013-04-23 18:10:29 -07:00
Sage Weil
86ad464f3c Merge branch 'next' 2013-04-22 13:01:11 -07:00
Sage Weil
48d89c616a ceph-deploy: fix stop command
Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-22 13:01:02 -07:00
tamil
861ac497e5 added ceph.client.admin.keyring on the client to run rbd and rados tests
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-04-19 18:23:54 -07:00
tamil
2bbac6e482 added extra packages required by ceph-deploy for rbd and rados tests
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-04-19 18:13:01 -07:00
Sage Weil
decdeadfff Merge branch 'next' 2013-04-18 11:11:38 -07:00
Sage Weil
4efed08415 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>
2013-04-18 10:15:44 -07:00
caleb miles
2bcbf1846a radosgw-admin-rest: Add task for RESTful admin api.
Signed-off-by caleb miles <caleb.miles@inktank.com>
2013-04-17 08:49:26 -07:00
caleb miles
8db7b08ee6 radosgw-admin-rest: Add task for RESTful admin api.
Signed-off-by caleb miles <caleb.miles@inktank.com>
2013-04-17 08:48:47 -07:00
Dan Mick
dc457093b7 Revert "Revert "Install.py: Prevent prompts from breaking apt""
This reverts commit 67a616a979.

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.
2013-04-17 10:34:20 -05:00
Dan Mick
1b65b8fe1a Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

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 c2b0828b19)
2013-04-17 10:34:20 -05:00
Sandon Van Ness
df3d70fd62 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>
2013-04-17 10:34:20 -05:00
Sam Lang
b37f43db1b 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
2013-04-17 10:28:55 -05:00
Sage Weil
e8aa0d8bb8 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 4befae4fbe)
2013-04-16 20:51:31 -07:00
Sage Weil
4befae4fbe 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>
2013-04-16 20:51:21 -07:00
Dan Mick
f69ddafde7 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.
2013-04-15 11:24:31 -07:00
Dan Mick
67a616a979 Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

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 c2b0828b19)
2013-04-12 15:49:24 -07:00
Dan Mick
52cdaae683 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 52aec32a7d)
2013-04-12 15:49:15 -07:00
Samuel Just
2c7b1f3d62 peer.py: we can't assume pg query state will match mon pg state
The pg state could easily have changed in the mean time,
for example, from recovery_wait to recovering.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-12 15:02:16 -07:00
Sam Lang
35e6db72a1 Merge pull request #10 from ceph/wip-fix-importcycle
lock: Fix import cycle breakage

Reviewed-by: Warren Usui <warren.usui@inktank.com>
2013-04-12 13:06:55 -07:00
Dan Mick
c2b0828b19 Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

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>
2013-04-12 10:57:41 -07:00
Sam Lang
a6b84a5613 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>
2013-04-12 12:57:33 -05:00
Dan Mick
52aec32a7d 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>
2013-04-11 13:41:45 -07:00
Sandon Van Ness
e2938f4026 Fix for kdb: doesn't work on mira nodes
This is a fix for issue #4677 which was caused by kdb output being
hard-coded to ttyS1 which is fine for all our hardware except mira
machines. This change just checks to see if mira is in the host's
name and uses ttyS2 instead (simple fix).
2013-04-09 13:12:58 -07:00
Sandon Van Ness
9c9baef680 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
2013-04-09 13:09:39 -07:00
Joe Buck
826ad0d816 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>
2013-04-08 11:54:55 -07:00
caleb miles
fa70eb8f67 radosgw-admin: Test bucket list for bucket starting with underscore.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-04-05 10:18:49 -07:00
Sandon Van Ness
41028847f8 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>
2013-04-04 19:40:21 -07:00
Sandon Van Ness
5995ae7e78 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>
2013-04-04 19:15:14 -07:00
Joe Buck
4824dafb3c teuthology: extend Hadoop task to support branches
Modify the Hadoop task to support branches
being specified for both the Apache and Inktank
Hadoop branches.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewd-by: Sam Lang <sam.lang@inktank.com>
2013-04-04 15:57:31 -07:00
Joe Buck
4258807bfc 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>
2013-04-04 15:55:54 -07:00
Sage Weil
939223aa4f workunit: sudo rm -rf ...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-03 22:01:01 -07:00
Warren Usui
ba536a8353 Merge branch 'wip-teuthologyvminstall-wusui' 2013-04-03 12:34:01 -07:00
Warren Usui
8129bffb17 Implement full reinstallation of a VM system.
Downburst create is used to reinstall a VM when it is locked.
Downburst destroy is used to remove a VM when it is unlocked.
Host keys are regenerated on each vm instantiation, so the keys
need to be checked prior to use.
If needed, qa-ceph-chef is run on newly installed systems to insure that
they are fully functional.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-04-03 12:29:47 -07:00
caleb miles
982e1ed18f radosgw-admin: Add test of duplicate user email specification.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-04-03 08:12:56 -07:00
caleb miles
fb34c38332 radosgw-admin: Test subuser mask durability when creating new key.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-04-03 06:04:01 -07:00
caleb miles
7b3973fff2 radosgw-admin: cluster info -> zone info
Signed-off-by caleb.miles <caleb.miles@inktank.com>
2013-04-01 20:46:30 -07:00
Samuel Just
d81babffe5 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>
2013-04-01 16:38:33 -07:00
Sage Weil
aeb1bbe414 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>
2013-03-29 14:27:20 -07:00
Sage Weil
e8afa454d8 ceph_manager: retry set_pool_property on EAGAIN
Retry indefinitely, for now.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-28 15:25:10 -07:00
Sam Lang
6fd7ebd44d 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>
2013-03-27 08:48:45 -05:00
Samuel Just
c50b143e92 thrashosds: add test_backfill_full
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-03-25 15:39:12 -07:00
Samuel Just
97a5c05141 thrashosds.py: fix line length
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-03-25 15:39:11 -07:00
Sage Weil
5d3fed47f7 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>
2013-03-24 15:12:59 -07:00
Sage Weil
4e68c2033c 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>
2013-03-23 20:58:46 -07:00
Sage Weil
466fede77b install: need sudo when purging /var/lib/ceph
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-23 20:53:51 -07:00