Commit Graph

47 Commits

Author SHA1 Message Date
Zack Cerza
3981a8f1af Never use 'except:' without specifying an Exception. 2013-08-30 11:10:05 -05:00
Joe Buck
6c5a7af1b4 move multi_region_enabled() into util class
Moving a helper function into a more general
location so that it can be used by other
classes.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-28 08:59:15 -07:00
Joe Buck
520a9384c5 radosgw-admin: use check_status for task success
Alter the code to use the 'check_status=True'
option in rgwadmin() rather than following the
call with 'assert not err'. Should make the
tests a bit more clear and result in a more
useful error (throw the call stack rather than
just 'assert new err failed').

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-21 12:38:53 -07:00
Joe Buck
ff2a209f8d radosgw-admin: adding radosgw-admin tests
Adding tests for syncing buckets between
RGWs. Fulfills ticket #5605.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-21 12:38:44 -07:00
Joe Buck
549bac3ede radosgw-admin: use dynamic ports for testing
The rgw.py task was extended to  dynamically
assign port numbers to radosgateways.
This patch extends the radosgw-admin task
to use those ports rather than making out-dated
assumptions of port numbering.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-20 21:21:17 -07:00
Joe Buck
558237e5f5 Detect multi-region test cases
Enable multi-region calls and tests only if
the configuration has specified a
radosgw-agent tastk.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-17 08:47:58 -07:00
Joe Buck
8a47230d82 rename variables and log messages to be more clear
A few edits to make logging and variable names
more clear.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-16 19:26:33 -07:00
Joe Buck
b883e338cd radosgw-admin: correct white space mistake
Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-16 19:26:09 -07:00
Joe Buck
a39e7f1b09 Adding multi-region tests
Adding tests for ticket #5604 to test
user propagation via the radosgw-agent.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-16 10:38:12 -07:00
Joe Buck
2c9ac3e0ee Detect multi-region test cases
Enable multi-region calls and tests only if
the configuration has specified a
radosgw-agent tastk.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-16 09:09:46 -07:00
Yehuda Sadeh
4adc1da58a radosgw-admin: various multiregion related fixes and changes
Go to the master zone in the master region for radosgw-admin
operations. Trigger metadata sync. Other fixes.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-08-12 23:24:04 -07:00
Josh Durgin
73adf33346 radosgw-admin: fix typo in import
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-07-27 12:30:52 -07:00
Josh Durgin
6d2434b48f rgw: move common rgwadmin function to a new utility file
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-07-24 09:59:50 -07:00
Yehuda Sadeh
c395687fd9 radosgw-admin: adapt task to recent changes
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-07-17 14:05:26 -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
13dbe9d1a5 enable-coredump -> adjust-ulimits
and set max_files to be big, too!
2013-06-23 09:15:28 -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
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
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
caleb miles
b744f42361 radosgw-admin: Bug fixes for issue 4251.
Fixes errors introduced by d44fb14762.

Signed-off-by caleb.miles <caleb.miles@inktank.com>
2013-02-25 19:14:21 -08:00
Josh Durgin
23669be9af radosgw-admin: fix errors found by pyflakes
Using the wrong variable, and true/false are capitalized in python.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-21 14:37:46 -08:00
Sage Weil
c64cd20103 radosgw-admin: fix sleep syntax error
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:02:16 -08:00
Yehuda Sadeh
6c2f4a2bbe Merge remote-tracking branch 'origin/wip-3634' 2013-02-20 14:10:50 -08:00
Sander Pool
c525e1061b Install ceph debs and use installed debs
The ceph task installs ceph using the debian
packages now, and all invocations of binaries installed
in {tmpdir}/binary/usr/local/bin/ are replace with
the use of the binaries installed in standard locations
by the debs.

Author:    Sander Pool <sander.pool@inktank.com>
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-02-18 13:39:03 -08:00
Sam Lang
ace4cb07b2 Replace /tmp/cephtest/ with configurable path
Teuthology uses /tmp/cephtest/ as the scratch test directory for
a run.  This patch replaces /tmp/cephtest/ everywhere with a
per-run directory: {basedir}/{rundir} where {basedir} is a directory
configured in .teuthology.yaml (/tmp/cephtest if not specified),
and {rundir} is the name of the run, as given in --name.  If no name
is specified, {user}-{timestamp} is used.

To get the old behavior (/tmp/cephtest), set test_path: /tmp/cephtest
in .teuthology.yaml.

This change was modivated by #3782, which requires a test dir that
survives across reboots, but also resolves #3767.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-31 08:23:31 -06:00
caleb miles
d44fb14762 radosgw-admin.py: Increase test coverage to current admin feature set.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2013-01-08 10:25:13 -05:00
caleb miles
0de0772e59 radosgw-admin.py: add test of deleting user with data.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2012-10-26 17:50:25 -04:00
caleb miles
818ea4e806 radosgw-admin.py: add test of deleting bucket with objects.
Signed-off-by: caleb miles <caleb.miles@inktank.com>
2012-10-26 17:49:57 -04:00
Yehuda Sadeh
7c9dc932e1 radosgw-admin: usage should time out after 20 minutes
Not 45 seconds.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-10-01 17:17:14 -07:00
Josh Durgin
57bb434def Fix errors found by pyflakes
A bunch of unused imports and variables.
2012-09-21 16:46:24 -07:00
Yehuda Sadeh
d6c2ded087 radosgw-admin: update task for new usage reporting
Usage reporting output has been modified, also use the new
--categories input param.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-09-10 11:24:25 -07:00
Sage Weil
51148b81e6 radosgw-admin: use --bucket instead of old --bucket-id
The --bucket-id support was removed.
2012-07-12 08:33:29 -07:00
Yehuda Sadeh
ab42b8dd5b add usage log tests to radosgw-admin tasks
tests 'usage show' and 'usage trim'

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-06-19 14:30:00 -07:00
Sage Weil
3bd387f9e8 radosgw-admin: fix for non-numeric bucket ids 2012-06-14 14:04:21 -07:00
Sage Weil
697c3b94c6 radosgw-admin: test max buckets limit 2012-06-14 14:04:21 -07:00
Sage Weil
474f8da41c radosgw-admin: remove buckets before user
Otherwise user delete will fail.
2012-06-14 14:04:21 -07:00
Sage Weil
83f8f3d1e6 radosgw-admin: fix swift subuser/key tests
Need to do 'subuser (add|rm)', not 'key (add|rm)'.
2012-06-14 14:04:21 -07:00
Mark Kampe
f04e29557e teuthology rgw-admin: annotated test cases for inventory
this is not a nose suite, so I simply added test case
   descriptions in csv format, and put a file to extract
   them at the top of the file.
Signed-off-by: Mark Kampe <mark.kampe@dreamhost.com>
2011-12-29 13:09:08 -08:00
Josh Durgin
006a0dd423 Remove unused imports and variable. 2011-11-08 16:09:21 -08:00
Yehuda Sadeh
10c3508741 rgw: add user suspend/enable test 2011-10-27 12:11:28 -07:00
Yehuda Sadeh
86aa940ffb rgw: log-to-stderr is now a binary flag 2011-10-27 11:32:12 -07:00
Yehuda Sadeh
493596a7fd radosgw-admin: test swift keys creation/removal 2011-10-12 15:37:33 -07:00
Sage Weil
2b601a32d0 radosgw-admin: test additional keys, log list/show/rm
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-03 09:45:11 -07:00
Sage Weil
b93a00771f tasks/radosgw-admin: test radosgw-admin tool
Not yet complete...
2011-10-03 09:45:11 -07:00