]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoDetect multi-region test cases
Joe Buck [Thu, 15 Aug 2013 19:51:51 +0000 (12:51 -0700)]
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>
12 years agokernel: fix sha1
Sage Weil [Sat, 17 Aug 2013 05:34:26 +0000 (22:34 -0700)]
kernel: fix sha1

6f8910eca47c3d00643c77fb8a166357637e55eb inadvertantly started
using the ceph sha1 for the kernel.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoradosgw-agent: adding debug logging
Joe Buck [Sat, 17 Aug 2013 01:32:29 +0000 (18:32 -0700)]
radosgw-agent: adding debug logging

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agorename variables and log messages to be more clear
Joe Buck [Sat, 17 Aug 2013 00:34:57 +0000 (17:34 -0700)]
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>
12 years agorgw: fix domain root pool name assignment
Joe Buck [Sat, 17 Aug 2013 00:32:45 +0000 (17:32 -0700)]
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>
12 years agoradosgw-admin: correct white space mistake
Joe Buck [Sat, 17 Aug 2013 00:31:10 +0000 (17:31 -0700)]
radosgw-admin: correct white space mistake

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agoKernel value of - uses doesn't install kernel.
Sandon Van Ness [Sat, 17 Aug 2013 00:08:04 +0000 (17:08 -0700)]
Kernel value of - uses doesn't install kernel.

Using - as the kernel value (instead of what is usually 'testing'
will not add the kernel install tasks tot he yaml so the machine
will run the tests on its current running kernel (usefull for arm
and others).

Issue #6023.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agoMerge pull request #42 from ceph/wip-arm5000-wusui
Zack Cerza [Fri, 16 Aug 2013 22:48:21 +0000 (15:48 -0700)]
Merge pull request #42 from ceph/wip-arm5000-wusui

Fix ARM releases to be quantal armv7l releases.

12 years agoFix ARM releases to be quantal armv7l releases.
Warren Usui [Fri, 16 Aug 2013 22:21:47 +0000 (15:21 -0700)]
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>
12 years agoRevert "Fix ARM releases to be quantal armv7l releases."
Warren Usui [Fri, 16 Aug 2013 22:01:01 +0000 (15:01 -0700)]
Revert "Fix ARM releases to be quantal armv7l releases."

This reverts commit aabfabc34c101b5104d811eed0f57e262116ad4c.

12 years agoMerge pull request #40 from ceph/wip-teutharm-wusui
wusui [Fri, 16 Aug 2013 21:47:59 +0000 (14:47 -0700)]
Merge pull request #40 from ceph/wip-teutharm-wusui

Wip teutharm wusui

12 years agoFix ARM releases to be quantal armv7l releases.
Warren Usui [Sat, 15 Jun 2013 01:42:00 +0000 (18:42 -0700)]
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>
12 years agoAdding multi-region tests
Joe Buck [Tue, 13 Aug 2013 16:23:56 +0000 (09:23 -0700)]
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>
12 years agoMerge pull request #38 from ceph/fix_nightlies
Sage Weil [Fri, 16 Aug 2013 16:57:21 +0000 (09:57 -0700)]
Merge pull request #38 from ceph/fix_nightlies

Use the json format for raw_cluster_status().

12 years agoUse the json format for raw_cluster_status().
Zack Cerza [Fri, 16 Aug 2013 16:24:55 +0000 (11:24 -0500)]
Use the json format for raw_cluster_status().

12 years agoDetect multi-region test cases
Joe Buck [Thu, 15 Aug 2013 19:51:51 +0000 (12:51 -0700)]
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>
12 years agoFixing assumed typo.
Sandon Van Ness [Fri, 16 Aug 2013 01:39:43 +0000 (18:39 -0700)]
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>
12 years agoMerge pull request #36 from ceph/wip-3791
Alfredo Deza [Thu, 15 Aug 2013 15:10:13 +0000 (08:10 -0700)]
Merge pull request #36 from ceph/wip-3791

Continue to make teuthology easier to use for the first time

12 years agoTweak regex to work for non-FQDN hostnames
Zack Cerza [Thu, 15 Aug 2013 14:57:27 +0000 (09:57 -0500)]
Tweak regex to work for non-FQDN hostnames

12 years agoNote that target hostnames must be resolvable.
Zack Cerza [Thu, 15 Aug 2013 14:34:09 +0000 (09:34 -0500)]
Note that target hostnames must be resolvable.

12 years agoMerge pull request #35 from ceph/logging
Alfredo Deza [Thu, 15 Aug 2013 13:53:07 +0000 (06:53 -0700)]
Merge pull request #35 from ceph/logging

Default log level to INFO; Fix some instances where print is being used instead of log

12 years agoFix some instances where print is being used instead of log
Zack Cerza [Thu, 15 Aug 2013 13:49:35 +0000 (08:49 -0500)]
Fix some instances where print is being used instead of log

12 years agoDefault to log level INFO.
Zack Cerza [Thu, 15 Aug 2013 13:29:09 +0000 (08:29 -0500)]
Default to log level INFO.

12 years agoMerge pull request #34 from ceph/wip-3791
Alfredo Deza [Wed, 14 Aug 2013 20:15:36 +0000 (13:15 -0700)]
Merge pull request #34 from ceph/wip-3791

Don't bail if ~/.teuthology.yaml doesn't exist.

12 years agoDon't bail if ~/.teuthology.yaml doesn't exist.
Zack Cerza [Wed, 14 Aug 2013 19:48:45 +0000 (14:48 -0500)]
Don't bail if ~/.teuthology.yaml doesn't exist.

12 years agoObligatory automatic vim whitespace cleanup commit
Zack Cerza [Wed, 14 Aug 2013 19:46:22 +0000 (14:46 -0500)]
Obligatory automatic vim whitespace cleanup commit

12 years agoRevert "Display error message when locking a vpm fails due to downburst errors."
Warren Usui [Wed, 14 Aug 2013 17:31:21 +0000 (10:31 -0700)]
Revert "Display error message when locking a vpm fails due to downburst errors."

This reverts commit 4681b35016619ece44730a368070220e6c2e56a3.

12 years agoMerge pull request #32 from ceph/wip-fix5957-wusui
wusui [Wed, 14 Aug 2013 17:16:01 +0000 (10:16 -0700)]
Merge pull request #32 from ceph/wip-fix5957-wusui

Display error message when locking a vpm fails due to downburst errors.

12 years agoDisplay error message when locking a vpm fails due to downburst errors.
Warren Usui [Wed, 14 Aug 2013 00:16:00 +0000 (17:16 -0700)]
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.   Do not display message on unlock with downburst error, because
slot is still freed (and can be locked by someone else).

Fix: 5957
Signed-off-by: Warren Usui <warren.usui@inktank.com>
12 years agoMerge pull request #31 from ceph/wip-5941
Zack Cerza [Wed, 14 Aug 2013 16:36:55 +0000 (09:36 -0700)]
Merge pull request #31 from ceph/wip-5941

Instructions for installing teuthology on non-debian-based OSs

12 years agoadd link to homebrew
Alfredo Deza [Wed, 14 Aug 2013 16:36:03 +0000 (12:36 -0400)]
add link to homebrew

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoadd generic instructions for installation
Alfredo Deza [Wed, 14 Aug 2013 16:07:22 +0000 (12:07 -0400)]
add generic instructions for installation

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agocreate instructions to install on OSX
Alfredo Deza [Wed, 14 Aug 2013 16:01:29 +0000 (12:01 -0400)]
create instructions to install on OSX

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agosort the requirements
Alfredo Deza [Wed, 14 Aug 2013 16:01:11 +0000 (12:01 -0400)]
sort the requirements

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoremove install_requires from setup.py
Alfredo Deza [Wed, 14 Aug 2013 16:00:51 +0000 (12:00 -0400)]
remove install_requires from setup.py

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoMerge pull request #29 from ceph/wip-4264
Alfredo Deza [Wed, 14 Aug 2013 15:38:33 +0000 (08:38 -0700)]
Merge pull request #29 from ceph/wip-4264

update to reflect required install task

12 years agoMerge pull request #30 from ceph/wip-5952
Sage Weil [Tue, 13 Aug 2013 18:45:35 +0000 (11:45 -0700)]
Merge pull request #30 from ceph/wip-5952

Fix a case where _get_config_value_for_remote could return None mistakenly

12 years agoFix a case where _get_config_value_for_remote could return None mistakenly
Zack Cerza [Tue, 13 Aug 2013 18:30:22 +0000 (13:30 -0500)]
Fix a case where _get_config_value_for_remote could return None mistakenly

12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 13 Aug 2013 18:03:00 +0000 (11:03 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agosamba: wait longer for smbd to start
Sage Weil [Tue, 13 Aug 2013 18:02:32 +0000 (11:02 -0700)]
samba: wait longer for smbd to start

sleep(1) is occasionally not long enough, it seems!

12 years agoMerge pull request #27 from dachary/wip-5946
Zack Cerza [Tue, 13 Aug 2013 17:46:30 +0000 (10:46 -0700)]
Merge pull request #27 from dachary/wip-5946

do not check the jobid if check-locks is False

12 years agodo not check the jobid if check-locks is False
Loic Dachary [Tue, 13 Aug 2013 10:43:21 +0000 (12:43 +0200)]
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>
12 years agoMerge pull request #28 from alfredodeza/5887
Zack Cerza [Tue, 13 Aug 2013 16:10:45 +0000 (09:10 -0700)]
Merge pull request #28 from alfredodeza/5887

Allow a user to define a ceph-deploy branch to use (instead of master)

12 years agoMerge pull request #24 from ceph/wip-5937
Alfredo Deza [Tue, 13 Aug 2013 15:57:18 +0000 (08:57 -0700)]
Merge pull request #24 from ceph/wip-5937

Don't hit an AttributeError if ctx.config['overrides'] is set to None

12 years agoremove fallback of the fallback. so silly
Alfredo Deza [Tue, 13 Aug 2013 15:56:37 +0000 (11:56 -0400)]
remove fallback of the fallback. so silly

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoRemove three characters just for Alfredo
Zack Cerza [Tue, 13 Aug 2013 15:45:53 +0000 (10:45 -0500)]
Remove three characters just for Alfredo

12 years agosafer fallback. Updates docstring
Alfredo Deza [Tue, 13 Aug 2013 15:32:15 +0000 (11:32 -0400)]
safer fallback. Updates docstring

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoAdd notes about install task precedence
Zack Cerza [Tue, 13 Aug 2013 15:10:22 +0000 (10:10 -0500)]
Add notes about install task precedence

12 years agoradosgw-agent.py: refactor, enable overrides
Joe Buck [Fri, 9 Aug 2013 04:14:56 +0000 (21:14 -0700)]
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>
12 years agorgw.py: fix example config
Joe Buck [Fri, 9 Aug 2013 04:04:42 +0000 (21:04 -0700)]
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>
12 years agorgw.py: add a better error message
Joe Buck [Fri, 9 Aug 2013 04:03:27 +0000 (21:03 -0700)]
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>
12 years agos3readwrite.py: make user creation optional
Joe Buck [Sat, 3 Aug 2013 23:55:19 +0000 (16:55 -0700)]
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>
12 years agorgw.py: refactor configure
Joe Buck [Thu, 1 Aug 2013 06:19:57 +0000 (23:19 -0700)]
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>
12 years agorgy.py: make log_(data|metadata) configurable
Joe Buck [Thu, 1 Aug 2013 21:03:59 +0000 (14:03 -0700)]
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>
12 years agoagent name should also contain port number
Yehuda Sadeh [Mon, 5 Aug 2013 03:57:25 +0000 (20:57 -0700)]
agent name should also contain port number

otherwise multiple agents per machines will have the same id

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoradosgw-admin: various multiregion related fixes and changes
Yehuda Sadeh [Sat, 3 Aug 2013 03:28:46 +0000 (20:28 -0700)]
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>
12 years agoMerge pull request #25 from dmick/master
Zack Cerza [Mon, 12 Aug 2013 23:10:26 +0000 (16:10 -0700)]
Merge pull request #25 from dmick/master

tasks/ceph-deploy: allow configurations with no mds

12 years agoChange "Exception" to "RuntimeError" as advised by zackc
Dan Mick [Mon, 12 Aug 2013 22:43:02 +0000 (15:43 -0700)]
Change "Exception" to "RuntimeError" as advised by zackc

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agotasks/ceph-deploy: allow configurations with no mds
Dan Mick [Mon, 12 Aug 2013 21:55:14 +0000 (14:55 -0700)]
tasks/ceph-deploy: allow configurations with no mds

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoDefault to master and not next.
Zack Cerza [Mon, 12 Aug 2013 21:38:57 +0000 (16:38 -0500)]
Default to master and not next.

12 years agoAdd install task to examples
Zack Cerza [Mon, 12 Aug 2013 21:21:04 +0000 (16:21 -0500)]
Add install task to examples

12 years agoDon't hit an AttributeError if ctx.config['overrides'] is set to None
Zack Cerza [Mon, 12 Aug 2013 21:18:42 +0000 (16:18 -0500)]
Don't hit an AttributeError if ctx.config['overrides'] is set to None

12 years agoMerge pull request #23 from ceph/pep8
Alfredo Deza [Mon, 12 Aug 2013 17:40:58 +0000 (10:40 -0700)]
Merge pull request #23 from ceph/pep8

Make this module pep8-clean.

12 years agoMake this module pep8-clean.
Zack Cerza [Mon, 12 Aug 2013 16:40:04 +0000 (11:40 -0500)]
Make this module pep8-clean.

12 years agoMerge pull request #22 from ceph/rpm-upgrades
Sage Weil [Sat, 10 Aug 2013 18:35:05 +0000 (11:35 -0700)]
Merge pull request #22 from ceph/rpm-upgrades

Fix rpm upgrades for nested branch configs

12 years agoMake _get_baseurlinfo_and_dist() provide the correct uri
Zack Cerza [Sat, 10 Aug 2013 17:45:21 +0000 (12:45 -0500)]
Make _get_baseurlinfo_and_dist() provide the correct uri

12 years agoMerge pull request #21 from ceph/rpm-upgrades
Zack Cerza [Fri, 9 Aug 2013 23:26:39 +0000 (16:26 -0700)]
Merge pull request #21 from ceph/rpm-upgrades

Make install.upgrade work on RPM-based systems.

12 years agoMake install.upgrade work with CentOS/RHEL/Fedora.
Zack Cerza [Fri, 9 Aug 2013 22:01:36 +0000 (17:01 -0500)]
Make install.upgrade work with CentOS/RHEL/Fedora.

12 years agoAdd Remote.system_type property. Also, clean up whitespace.
Zack Cerza [Fri, 9 Aug 2013 18:28:38 +0000 (13:28 -0500)]
Add Remote.system_type property. Also, clean up whitespace.

12 years agoadmin_socket: split command into multiple arguments
Sage Weil [Fri, 9 Aug 2013 16:04:25 +0000 (09:04 -0700)]
admin_socket: split command into multiple arguments

We were passing the command as a single string, but that does not work the
same way it used to.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph.conf: open osd classes on start
Sage Weil [Wed, 7 Aug 2013 21:01:00 +0000 (14:01 -0700)]
ceph.conf: open osd classes on start

This is the default for master, but needs to be explicitly enabled for
cuttlefish.

12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Wed, 7 Aug 2013 16:03:51 +0000 (09:03 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agoadd a key for ceph-deploy-branch detection
Alfredo Deza [Tue, 6 Aug 2013 22:17:51 +0000 (15:17 -0700)]
add a key for ceph-deploy-branch detection

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
12 years agoAdd a useful error message in case of an invalid hostname
Zack Cerza [Mon, 5 Aug 2013 23:48:27 +0000 (18:48 -0500)]
Add a useful error message in case of an invalid hostname

12 years agos3readwrite.py: enable overrides
Joe Buck [Sun, 4 Aug 2013 19:36:04 +0000 (12:36 -0700)]
s3readwrite.py: enable overrides

Enable s3readwrite task to have the branch to
download specified and for overrides to be
incorporated into the config at run-time.
Code based on the s3tests.py task.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Sun, 4 Aug 2013 21:54:26 +0000 (14:54 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agosamba: wait for smbd process to exit
Sage Weil [Sun, 4 Aug 2013 21:54:20 +0000 (14:54 -0700)]
samba: wait for smbd process to exit

I saw

2013-08-03T12:56:26.641 DEBUG:teuthology.orchestra.run:Running [10.214.131.28]: 'sudo killall -9 smbd'
2013-08-03T12:56:26.727 DEBUG:teuthology.orchestra.run:Running [10.214.131.28]: 'sudo lsof /home/ubuntu/cephtest/93695/mnt.0'
2013-08-03T12:56:26.830 INFO:teuthology.orchestra.run.out:[10.214.131.28]: COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
2013-08-03T12:56:26.830 INFO:teuthology.orchestra.run.out:[10.214.131.28]: smbd    12381 root  cwd    DIR    0,0        0    1 /home/ubuntu/cephtest/93695/mnt.0

which makes me think we just need to wait a moment before
attempting the umount?

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorgw.py: add None object check when parsing info
Joe Buck [Sun, 4 Aug 2013 00:16:52 +0000 (17:16 -0700)]
rgw.py: add None object check when parsing info

The rgw task was failing to check for a None object
when parsing user info in the case where there were
config options set for the client that did not include
user info (e.g. valgrind: ).

12 years agorgw: do not ignore leaks
Sage Weil [Fri, 2 Aug 2013 18:57:14 +0000 (11:57 -0700)]
rgw: do not ignore leaks

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorgw.py: adding a safety check
Joe Buck [Fri, 2 Aug 2013 03:54:38 +0000 (20:54 -0700)]
rgw.py: adding a safety check

Correcting a bug where specifying
a rgw server for a client but not specifying
a system user would throw an exception.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: add log settings to example config
Josh Durgin [Fri, 2 Aug 2013 02:11:28 +0000 (19:11 -0700)]
rgw: add log settings to example config

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoradosgw-agent: get verbose logs from the agent
Josh Durgin [Fri, 2 Aug 2013 01:56:48 +0000 (18:56 -0700)]
radosgw-agent: get verbose logs from the agent

This makes it a lot easier to debug.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoradosgw-agent: move zone extraction to helper
Josh Durgin [Fri, 2 Aug 2013 01:56:08 +0000 (18:56 -0700)]
radosgw-agent: move zone extraction to helper

This will be useful for other tasks.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: don't make domain_root pool the same as zone root
Josh Durgin [Fri, 2 Aug 2013 01:54:52 +0000 (18:54 -0700)]
rgw: don't make domain_root pool the same as zone root

These are supposed to be separate pools.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: create system users with the --system flag
Josh Durgin [Fri, 2 Aug 2013 01:50:11 +0000 (18:50 -0700)]
rgw: create system users with the --system flag

without this they have no special permissions

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgy.py: make log_(data|metadata) configurable
Joe Buck [Thu, 1 Aug 2013 21:03:59 +0000 (14:03 -0700)]
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>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoradosgw-agent: rename task to match tool name
Josh Durgin [Fri, 2 Aug 2013 00:23:40 +0000 (17:23 -0700)]
radosgw-agent: rename task to match tool name

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw_sync_agent: fix a bunch of issues
Josh Durgin [Fri, 2 Aug 2013 00:18:00 +0000 (17:18 -0700)]
rgw_sync_agent: fix a bunch of issues

- Read ceph.conf from stored copy that includes overrides
- Get system users and keys from cluster instead of reading other
  tasks' yaml, which may not be complete.
- Put zone info extraction from the cluster into utility functions,
  since it'll be useful for other tests later.
- Work with more than one agent on a single host
- Accept more than one client to run, like almost every other task
- Rename target to dest for consistency with radosgw-agent
- Don't make everything one large function

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: ignore exit status when removing base apache dir
Josh Durgin [Fri, 2 Aug 2013 00:08:01 +0000 (17:08 -0700)]
rgw: ignore exit status when removing base apache dir

subdirs have already been removed, and this only needs to succeed once
per host.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw_sync_agent: add new rgw_sync_agent task
Greg Farnum [Wed, 31 Jul 2013 06:14:32 +0000 (23:14 -0700)]
rgw_sync_agent: add new rgw_sync_agent task

This pulls access data out of the rgw task and off disk,
and then downloads, sets up, and runs an rgw sync agent
in test mode.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoFix for #5836 (--lock-many with vms)
Sandon Van Ness [Fri, 2 Aug 2013 00:04:04 +0000 (17:04 -0700)]
Fix for #5836 (--lock-many with vms)

This makes --lock-many work when --machine-type vps is passed.
Before it wasn't handled correctly and guests were not created.
Now it creates and gives the back the user the list-targets for
said guests.

teuthology-lock --lock-many 4 --machine-type vps --os-type centos

This fixes issue #5836

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Alfredo Deza <alfredo@deza.pe>
12 years agoFix for Debian wheezy (remove vda from block device list)
Sandon Van Ness [Thu, 1 Aug 2013 19:33:11 +0000 (12:33 -0700)]
Fix for Debian wheezy (remove vda from block device list)

On debian wheezy its mount output uses device-by-label and makes
our normal method of checking if a device is mounted not work.
Since vm's will always be vda for their boot device we will just
remove it from devs if its in there so it doesn't attempt to zap
vda.

I also added a strip() to remove the last blank entry that was
always getting added to the devs list on all machines. Example:

devs=['/dev/sda', '/dev/sdb', '/dev/sdc', '/dev/sdd', '']

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Alfredo Deza <alfredo@deza.pe>
12 years agorgw.py: check for empty client config
Joe Buck [Thu, 1 Aug 2013 17:07:56 +0000 (10:07 -0700)]
rgw.py: check for empty client config

Fixes a bug where an rgw client without
a system user specified would cause teuthology
to error out.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw.py: refactoring to separate user creation
Joe Buck [Wed, 31 Jul 2013 22:14:48 +0000 (15:14 -0700)]
rgw.py: refactoring to separate user creation

By separating out the user creation from
generating the region/zone info, we can generate
users for RGW tests that run against the default
pools.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw.py: change --secret-key to --secret
Joe Buck [Wed, 31 Jul 2013 21:05:49 +0000 (14:05 -0700)]
rgw.py: change --secret-key to --secret

A 'user create' call was being passed to radosgw-admin
with '--secret-key' instead of the valid '--secret'
which was causing a random secret to be generated,
which was causing subsequent tests to fail.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
12 years agos3/swift tests: call radosgw-admin as the right client
Josh Durgin [Wed, 31 Jul 2013 20:32:58 +0000 (13:32 -0700)]
s3/swift tests: call radosgw-admin as the right client

This allows the right region and zone info to be read from ceph.conf

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: fix dir creation and keyring
Josh Durgin [Wed, 31 Jul 2013 19:47:48 +0000 (12:47 -0700)]
rgw: fix dir creation and keyring

fastcgi_sock dir needs to exist before radosgw starts, and apache-execed radosgw needs an explicit keyring argument.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoReconnect after running chef task.
Sandon Van Ness [Wed, 31 Jul 2013 00:26:59 +0000 (17:26 -0700)]
Reconnect after running chef task.

Just a simple change to reconnect to SSH after running
ceph-qa-chef to get around things like ulimit changes.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agoFix RHEL/centos ceph-deploy installs.
Sandon Van Ness [Tue, 30 Jul 2013 19:36:12 +0000 (12:36 -0700)]
Fix RHEL/centos ceph-deploy installs.

Use a hiphen as a diliminator instead of a dot.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
12 years agoceph_manager: wait 20s before wait_for_clean in test_map_discontinuity
Samuel Just [Tue, 30 Jul 2013 17:44:53 +0000 (10:44 -0700)]
ceph_manager: wait 20s before wait_for_clean in test_map_discontinuity

Fixes: #5806
Signed-off-by: Samuel Just <sam.just@inktank.com>