Commit Graph

1835 Commits

Author SHA1 Message Date
Sandon Van Ness
c38eeec85f Allow ability to use multi machine type deliminated by ,- \t.
I was originally attempting a more complicated locking mechanism
but I think its almost as good to just have it attempt the other
machine type if one.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-11-21 14:19:44 -08:00
Zack Cerza
d04f3a6ae0 Skip cluster() if use_existing_cluster is True
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-11-21 13:56:41 -06:00
SandonV
bf9434dbe7 Merge pull request #153 from ceph/wip-6790
Reviewed by Warren.
2013-11-20 18:03:04 -08:00
Sandon Van Ness
c5a26b38de Use shortened version in order to avoid revision/arch mishaps.
Sometimes -X is added to package names which does not exist in the
/version file. Simply using the version string does not work on
RHEL (it does on centos). Until version and the packages match
identically we instead will just split the version at the - and
no longer specify the dist for better reliability but slightly
lower accuracy.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-11-20 16:37:31 -08:00
Zack Cerza
f8150d44d0 Add optional 'use_existing_cluster' flag
If this flag is present, skip a few unnecessary steps

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-11-20 16:23:07 -06:00
Sandon Van Ness
39830c613e Fix ceph.repo so it uses URI value.
Basically some weird cases where ceph-releases would be pointing
to the wrong branch/build when two branches had the same sha1.
This fixes that.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-11-14 21:47:41 -08:00
Samuel Just
04322d9fbb ceph_manager: provide unique pool names to avoid collision
Fixes: #6769
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-11-14 15:13:37 -08:00
Alfredo Deza
7cb590dd13 Merge pull request #152 from dachary/master
add git clone to installation instrutions
2013-11-14 05:46:28 -08:00
Loic Dachary
3f62b92507 add git clone to installation instrutions
Signed-off-by: Loic Dachary <loic@dachary.org>
2013-11-14 14:12:35 +01:00
Josh Durgin
07db94ef26 syslog: ignore perf nmi handler timeout
This seems to have started appearing in recent 3.12+ kernels
with perf enabled.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-11-13 15:27:30 -08:00
Zack Cerza
88792d62e1 Make report_job() always return an int 2013-11-12 17:07:15 -06:00
Sandon Van Ness
1fd25f1cee For saya (arm) use arm gitbuilder for ceph sha1.
Since the arm gitbuilder (even using a ton of nodes for distcc) is
much slower than x86 lets grab the sha1 from its own gitbuilder
when machine_type is saya rather than the x86 one.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-11-08 17:00:27 -08:00
Zack Cerza
8d9b86f5d7 Merge pull request #146 from ceph/wip-os-type
Wip os type
2013-11-08 12:24:42 -08:00
Sandon Van Ness
03f31c6caf Consolidate two excepts into one.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-11-08 11:02:48 -08:00
Zack Cerza
b3e730e346 Also catch socket.error in try_push_job_info 2013-11-07 18:39:16 -06:00
Zack Cerza
d8f98201ac Don't re-call logging.basicConfig()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-11-06 16:04:39 -06:00
Zack Cerza
3fd3bd966d Fix hilariously long sentry_event para
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-11-05 15:09:36 -06:00
Alfredo Deza
3f158bec60 Merge pull request #150 from ceph/reporting
Don't use create_run() unless necessary
2013-11-04 13:09:26 -08:00
Zack Cerza
ed81960242 Don't use create_run() unless necessary
Runs are created automatically now.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-11-04 14:56:13 -06:00
Alfredo Deza
cb737a81c2 Merge pull request #149 from ceph/reporting
Transition from sentry_events to sentry_event
2013-11-04 12:20:18 -08:00
Zack Cerza
3bd490f307 Transition from sentry_events to sentry_event 2013-11-04 14:02:45 -06:00
Sage Weil
92c57f17f4 install.upgrade: deepcopy() overrides before we modify it
Since we modify the dict, make sure it is a deep copy.
Otherwise, a sequence like:

- install.upgrade:
    all:
      branch: dumpling
...
- install.upgrade:
    all: null

will delete the overrides keys in the first upgrade call and
then not have them at all in the second.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-11-01 18:00:05 -07:00
Warren Usui
3e72dcb9f4 Added two new tasks. tgt starts up the tgt service. iscsi starts
up the iscsi service and logins to an rbd image using the tgt service
(either locally or remotely).  The iscsi service runs some
simple tests, and then sets up the isci-image to be useable by
rbd test scripts.  Later workunits can perform further testing
on the isci-image interface.

In order to add the new tasks, common_fs_utils.py was formed
from code extracted out of rbd.py.  Rbd.py and iscsi.py both
call the functions in this module.

Fixes: #6433
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Josh Durgin
2013-11-01 13:29:36 -07:00
Zack Cerza
48269b25c2 Merge pull request #148 from ceph/wip-upgrade
install.upgrade: fix overrides of sha1|tag|branch
2013-11-01 11:00:27 -07:00
Sage Weil
d13c29cf50 install.upgrade: fix overrides of sha1|tag|branch
If the upgrade task config has a branch: (or tag or sha1), do
not apply the sha1|branch|tag overrides keys.  This fixes the
breakage from 280f783c2e which
made

overrides:
  install:
    ceph:
      sha1: f88866fe9c
tasks:
...
- install.upgrade:
    all:
      branch: dumpling

...use the sha1 from the overrides instead of the explicitly
specified branch.  The intention was to only use the overrides
when the version was not specified (whether it was sha1 or
branch or tag).

At some point we should probably make the same change for
install function in install.py, but let's fix this first to
get the upgrade tests working.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-11-01 10:56:42 -07:00
Samuel Just
ed1d11ba9e ceph_manager: remove 6116 workaround
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-30 12:26:42 -07:00
Josh Durgin
b77a7785f2 Merge branch 'next' 2013-10-30 09:58:10 -07:00
Josh Durgin
9ae3fce513 radosgw-agent: add metadata-only option to task config
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-30 09:57:56 -07:00
Josh Durgin
96835e9c94 radosgw-agent: move positional argument last
Other args are treated as positional after the first one.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-30 09:57:54 -07:00
Josh Durgin
7f136578ae internal: fix log for python 2.6
{} was introduced to format strings in 2.7

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-30 09:57:53 -07:00
Josh Durgin
5f01bcba4c rgw: fix whitespace
Replace tabs with spaces and remove trailing spaces.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-30 09:57:52 -07:00
Josh Durgin
db98afe471 rgw: remove unused variables
Region name isn't needed for the new radosgw-agent
command line args.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-30 09:57:50 -07:00
Christophe Courtaut
d65a0b9efa Reflect radosgw-agent option changes in teuthology
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-10-30 09:57:49 -07:00
Zack Cerza
b2af06920e Merge pull request #144 from ceph/wip-doc5939-wusui
Added docstrings, and improved some of the comments on several tasks.
2013-10-28 14:20:44 -07:00
Sandon Van Ness
90161a371e Fixed errors. Tests pass.
Since the default OS version is different for each distro the
argument default is None instead of explicity set to a value
like with get_distro. Fixed some logic around that and the tests
making the arugment always take precidence.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-10-28 11:04:28 -07:00
Sandon Van Ness
d4a632df5f Support --os-version as argument.
You can use --os-type as an argument when not running teuthology
tests but instead just using teuthology-lock. This adds the ability
to also use --os-version so you can specify the version of the
distro without having to run an actual test with a yaml like you
normally would have had to do setting os_version in the yaml.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-10-25 17:48:50 -07:00
wusui
dd3678c657 Merge pull request #145 from ceph/wip-5939
Document install task
2013-10-25 14:51:45 -07:00
Zack Cerza
bcc58eb1aa Fix some PEP-8 issues
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-25 16:04:38 -05:00
Zack Cerza
ad836b1062 Fix param docstring format to be more Sphinx-y
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-25 16:04:34 -05:00
Zack Cerza
2cac388140 Add docstrings to every function. And a few other comments.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-25 16:04:28 -05:00
Sandon Van Ness
6dbb11db9c Use worker httpd instead of prefork (like ubuntu) on rpm distros.
Ubuntu's default apache uses worker instead of prefork like rpm
based distro's. If rpm use httpd.worker instead of httpd so that
the -X behavior will not be blocked by a single request.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-10-25 13:23:10 -07:00
Sandon Van Ness
c9774893a9 Use worker httpd instead of prefork (like ubuntu) on rpm distros.
Ubuntu's default apache uses worker instead of prefork like rpm
based distro's. If rpm use httpd.worker instead of httpd so that
the -X behavior will not be blocked by a single request.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-10-25 13:14:21 -07:00
Josh Durgin
6f27694a63 Merge pull request #143 from ceph/wip-6576
fix rbd fsx on 32-bit

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-10-23 23:22:18 -07:00
Sage Weil
705a77f5d1 rbd_fsx: do not exceed 250GB for fsx image
This breaks on 32-bit architectures because fsx can't allocate the
in-memory buffer or hit some other limit.  500MG also seems to run out of
memory (tho it at least does not segfault).

Fixes: #6576

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-23 19:24:20 -07:00
Samuel Just
625d9b257c ceph_manager: workaround for 6116
This is an annoying race, we really should delay going
clean until the backfill peer has acknoledged the clean
info, but we currently don't.  In order to prevent this
bug from messing up the nightlies, we'll delay killing
the peer for 20s to make it likely that the backfill
peer has gotten the clean info.

Workaround: #6116
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-10-23 10:52:58 -07:00
Sage Weil
6a2dd66d6b rgw: revert to -X for apache2
-DNO_DETACH doesn't seem to work.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-22 14:36:35 -07:00
Sage Weil
c8ec9feca1 valgrind: fix libleveldb suppression on dynamically linked leveldb
(The function names don't show up here)

Signed-off-by: Sage Weil <sage@inktank.com>
2013-10-18 16:26:35 -07:00
SandonV
5579981930 Merge pull request #142 from ceph/wip-6342
More robust machine_type and pid detection
2013-10-17 12:03:13 -07:00
Zack Cerza
26930c9396 More robust machine_type and pid detection
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-17 13:22:15 -05:00
Alfredo Deza
341f1c9ce6 Merge pull request #139 from ceph/wip-6342
Add teuthology-kill
2013-10-17 09:43:12 -07:00