Commit Graph

1261 Commits

Author SHA1 Message Date
Alfredo Deza
ab16813ea9 Merge pull request #44 from ceph/sentry
Add initial support for sentry
2013-08-21 14:28:37 -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
Zack Cerza
df8ae0415f Make client a global variable 2013-08-21 10:27:51 -05:00
Zack Cerza
0af6a8a6f2 Beginnings of support for Sentry. 2013-08-21 10:07:12 -05: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
Zack Cerza
71a77f2908 Add get_test_user(), because hardcoding is bad 2013-08-20 16:25:25 -05:00
Alfredo Deza
0a8a1c98b0 Merge pull request #41 from ceph/wip-3791
Various usability and documentation fixes
2013-08-19 14:10:18 -07:00
Zack Cerza
5bd7f620b8 Add comment about portability to get_testdir_base() 2013-08-19 09:59:54 -05:00
Zack Cerza
657a070bd3 Merge pull request #37 from ceph/wip-fix5957-wusui
Display error message when locking a vpm fails due to downburst errors.
2013-08-19 07:03:02 -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
Sage Weil
e625316d02 kernel: fix sha1
6f8910eca4 inadvertantly started
using the ceph sha1 for the kernel.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-16 22:34:26 -07:00
Joe Buck
bbf7c71183 radosgw-agent: adding debug logging
Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-16 19:26:41 -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
7061e3c6dc rgw: fix domain root pool name assignment
Do not make the domain root pool the same
as the zone root pool. That causes sync issues.
Also, clarify a logging message.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-16 19:26:21 -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
Warren Usui
a899b58095 Display error message when locking a vpm fails due to downburst errors.
When doing a lock-many, do not lock any of the vpms when downburst errors
occur.   Made error messages more accurate, and removed a destroy_if_vm call
because the destroy was alreadly called in unlock.  Changed some print
messages to be log.info displays.

Fix: 5957
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-08-16 16:23:09 -07:00
Warren Usui
694cd67048 Fix ARM releases to be quantal armv7l releases.
Made grub execution conditional and not done when ARM.
Use ctx parameter to change machine type to tala.
Fix kernel assignments when running ARM systems.

Fixes: #5000
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-08-16 15:44:54 -07:00
Warren Usui
47224f2da3 Revert "Fix ARM releases to be quantal armv7l releases."
This reverts commit aabfabc34c.
2013-08-16 15:01:01 -07:00
wusui
666b2a4834 Merge pull request #40 from ceph/wip-teutharm-wusui
Wip teutharm wusui
2013-08-16 14:47:59 -07:00
Warren Usui
aabfabc34c Fix ARM releases to be quantal armv7l releases.
Made grub execution conditional and not done when ARM.
Use ctx parameter to change machine type to tala.
Fix kernel assignments when running ARM systems.

Fixes: #5000
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-08-16 14:39:00 -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
Zack Cerza
d74eefd9eb Use the json format for raw_cluster_status(). 2013-08-16 11:24:55 -05: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
Zack Cerza
6115d456f2 Do more than just sleep and raise an exception. 2013-08-16 10:17:18 -05:00
Sandon Van Ness
4a47eedce7 Fixing assumed typo.
Assuming this has to be a typo but its breaking the ceph-deploy
task.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-08-15 19:00:54 -07:00
Zack Cerza
17667301f3 Don't raise an exception if apt-key list fails 2013-08-15 12:42:47 -05:00
Zack Cerza
c17a18efdc Don't assume the ubuntu user when getting the test dir. 2013-08-15 10:58:45 -05:00
Zack Cerza
3afc7d9b41 If get_testdir_base() exists, might as well use it... 2013-08-15 10:17:32 -05:00
Zack Cerza
f41436abd5 Tweak regex to work for non-FQDN hostnames 2013-08-15 09:57:27 -05:00
Zack Cerza
5746efbbc2 Fix some instances where print is being used instead of log 2013-08-15 08:49:35 -05:00
Zack Cerza
ab2d2fad3c Default to log level INFO. 2013-08-15 08:29:09 -05:00
Zack Cerza
63b64e2969 Don't bail if ~/.teuthology.yaml doesn't exist. 2013-08-14 14:48:45 -05:00
Zack Cerza
ebf476d390 Obligatory automatic vim whitespace cleanup commit 2013-08-14 14:46:22 -05:00
Zack Cerza
f1c9125f27 Fix a case where _get_config_value_for_remote could return None mistakenly 2013-08-13 13:30:22 -05:00
Sage Weil
0f3d9eddd9 Merge remote-tracking branch 'gh/next' 2013-08-13 11:03:00 -07:00
Sage Weil
000efc658d samba: wait longer for smbd to start
sleep(1) is occasionally not long enough, it seems!
2013-08-13 11:02:40 -07:00
Zack Cerza
2797d8d82d Merge pull request #27 from dachary/wip-5946
do not check the jobid if check-locks is False
2013-08-13 10:46:30 -07:00
Loic Dachary
9d4104f45b do not check the jobid if check-locks is False
Because it relies on the lock server which is presumably not available
since check-locks was set to False. It matters when using teuthology
on a minimal installation.

http://tracker.ceph.com/issues/5946 fixes #5946

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-08-13 19:32:01 +02:00
Zack Cerza
13edfe6bdf Merge pull request #28 from alfredodeza/5887
Allow a user to define a ceph-deploy branch to use (instead of master)
2013-08-13 09:10:45 -07:00
Alfredo Deza
ac78bc9069 Merge pull request #24 from ceph/wip-5937
Don't hit an AttributeError if ctx.config['overrides'] is set to None
2013-08-13 08:57:18 -07:00
Alfredo Deza
643da65e83 remove fallback of the fallback. so silly
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2013-08-13 11:56:37 -04:00
Zack Cerza
3aa995a62a Remove three characters just for Alfredo 2013-08-13 10:45:53 -05:00
Alfredo Deza
70cd884f42 safer fallback. Updates docstring
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2013-08-13 11:42:22 -04:00
Joe Buck
d4c2576c34 radosgw-agent.py: refactor, enable overrides
Refactored the radosgw-agent.py code so that it
is structured more like existing teuthology
tasks.
Additionally, added code to enable:
using the override field in YAML files,
specifying which radosgw-agent github branch
to use checkout and for the YAML file to
specify one of the following: a full sync,
an incremental sync and the starting of the
test radosgw-agent server (previously the
server was always started by this task).

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-12 23:25:57 -07:00
Joe Buck
1d90d7bc83 rgw.py: fix example config
In the example config, the region root and
zone root where pointing to the same pool,
which is not a best practice. Updated the
example to show them pointing to different pools.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-12 23:25:43 -07:00
Joe Buck
9ee6452404 rgw.py: add a better error message
When pulling region info from the config
structure, if the region info isn't there,
log a more helpful message.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-12 23:25:33 -07:00
Joe Buck
e517cd4cfc s3readwrite.py: make user creation optional
Extend the s3readwrite.py task to enable the
creation and deletion of users for the s3readwrite
tests to be independently specified with the default
assumption to both being true.
This is needed for tests that will create a user and
data in one execution and read it in another.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-12 23:25:24 -07:00
Joe Buck
e3b9add3fb rgw.py: refactor configure
Extend the rados pool configuration options to
specify all pools (if desired).
Also, reordered zone and region configuration
so that they're configure (per client) in
this order: zone, region, set default region

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-12 23:25:16 -07:00
Joe Buck
18e80147f3 rgy.py: make log_(data|metadata) configurable
The log_data and log_metadata are made configurable
via the YAML file and default to false
(meaning neither data nor metadata operations are
logged).

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-12 23:25:06 -07:00