]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomove ceph-qa-suite dirs into qa/
Sage Weil [Wed, 14 Dec 2016 17:29:55 +0000 (11:29 -0600)]
move ceph-qa-suite dirs into qa/

8 years agoDrop unnecessary console handling code
Zack Cerza [Wed, 24 Aug 2016 16:56:03 +0000 (10:56 -0600)]
Drop unnecessary console handling code

Remote.console is provided by teuthology now
http://tracker.ceph.com/issues/17124
Fixes: 17124
Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit 821cf2caa63518314e7b03afc834b32e2a8caaa0)

9 years agoMerge pull request #668 from ceph/wip-firefly-workunit
Dan Mick [Thu, 5 Nov 2015 23:37:42 +0000 (15:37 -0800)]
Merge pull request #668 from ceph/wip-firefly-workunit

tasks/workunit: Apply several fixes from master

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agoFixes #10869, added {role} to the dir name.
Yuri Weinstein [Thu, 12 Feb 2015 22:32:39 +0000 (14:32 -0800)]
Fixes #10869, added {role} to the dir name.

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
Fixed typo

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
(cherry picked from commit 9942440ddf9f6847e76de3b49f1ad0d98c62a3d0)
(cherry picked from commit fea2e227746b02519b4ebdee10aeb705027e70b6)

9 years agotasks/workunit: fix log message
John Spray [Wed, 20 Aug 2014 11:30:57 +0000 (12:30 +0100)]
tasks/workunit: fix log message

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 1e7bfb842aae395a6601d6ec387dc3bd88107046)

9 years agotask/workunit: add sudo to dir delete
John Spray [Sat, 26 Jul 2014 20:31:54 +0000 (21:31 +0100)]
task/workunit: add sudo to dir delete

This failure to delete used to be hidden in
a catch-all exception handler that was
removed in 396dc073.

This was causing failures in kcephfs suite
like:
Command failed on plana96 with status 1: 'rm -rf -- /home/ubuntu/cephtest/mnt.0/client.0'

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit cc7c9b2e8bb3b95d9d4bbd3243ed1380a6f128f7)

9 years agotask/workunit: general tidy
John Spray [Fri, 18 Jul 2014 16:15:20 +0000 (17:15 +0100)]
task/workunit: general tidy

* PEP8-ize whitespace
* specialize a catch-all except:
* don't alias 'misc' to 'teuthology'

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 2ed1131fc9702c3540c6e3708eeb570da2f58e91)

9 years agoWhitespace tweaks for the linter
Zack Cerza [Mon, 2 Nov 2015 18:20:49 +0000 (11:20 -0700)]
Whitespace tweaks for the linter

Signed-off-by: Zack Cerza <zack@redhat.com>
9 years agotask/workunit: clean up dir deletion
John Spray [Fri, 18 Jul 2014 13:09:16 +0000 (14:09 +0100)]
task/workunit: clean up dir deletion

This was always trying to remove the mountpoint,
and then swallowing the exception and printing
it to the log.

Instead:
 * Ensure it's only trying to delete mnt if it created it
 * Don't swallow those exceptions: if deleting the dirs
   fails then something has gone wrong and it should bubble
   up.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 396dc073cbea2c6282d2c9dcb6b1a36fd86a044d)

9 years agoMerge pull request #661 from ceph/firefly-samba-fixes
Yuri Weinstein [Tue, 27 Oct 2015 23:48:47 +0000 (16:48 -0700)]
Merge pull request #661 from ceph/firefly-samba-fixes

Firefly samba fixes

9 years agotask/samba: ignore return code of fuser/losf
Yan, Zheng [Tue, 21 Apr 2015 03:30:12 +0000 (11:30 +0800)]
task/samba: ignore return code of fuser/losf

if mount point is not used by anyone, both fuser and losf return 1

Fixes: #10624
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit c049387b7b0832e78a4a1370691798f726985799)

9 years agotask/samba: use SIGTERM to stop samba server
Yan, Zheng [Tue, 14 Apr 2015 09:05:40 +0000 (17:05 +0800)]
task/samba: use SIGTERM to stop samba server

man samba(8) contains sentences:

To shut down a user's smbd process it is recommended that SIGKILL (-9)
NOT be used, except as a last resort, as this may leave the shared
memory area in an inconsistent state. The safe way to terminate an smbd
is to send it a SIGTERM (-15) signal and wait for it to die on its own.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 86bd6bc3771694cd9ee5cd071255f3cf4c40c812)

9 years agoMerge pull request #657 from dachary/wip-13450-openstack-rados-thrash
Yuri Weinstein [Mon, 26 Oct 2015 21:05:02 +0000 (14:05 -0700)]
Merge pull request #657 from dachary/wip-13450-openstack-rados-thrash

openstack: rados/thrash: allocate three disks, always

9 years agoopenstack: rados/thrash: allocate three disks, always
Loic Dachary [Mon, 12 Oct 2015 14:47:58 +0000 (16:47 +0200)]
openstack: rados/thrash: allocate three disks, always

The thrasher needs disk attached to run against xfs, ext4 or btrfs. And
some jobs use more disks and do not fit in 40GB.

http://tracker.ceph.com/issues/13450 Fixes: #13450

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit b4a4136a56f6bfac8d0c1f80069e2a87042a0fc7)

9 years agoMerge pull request #607 from dachary/wip-git-ceph-com-firefly
Loic Dachary [Mon, 5 Oct 2015 12:39:58 +0000 (14:39 +0200)]
Merge pull request #607 from dachary/wip-git-ceph-com-firefly

git ceph com and newdream hostname changes

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
9 years agogit.ceph.com
Sage Weil [Thu, 16 Apr 2015 16:05:30 +0000 (09:05 -0700)]
git.ceph.com

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a14a951640f79fd7ed217c423dcc9f453c830556)

Conflicts:
suites/rbd/qemu/workloads/qemu_bonnie.yaml
suites/rbd/qemu/workloads/qemu_fsstress.yaml
suites/rbd/qemu/workloads/qemu_iozone.yaml.disabled
suites/rbd/qemu/workloads/qemu_xfstests.yaml
suites/rbd/singleton/all/formatted-output.yaml
the conflicts are because https is used in master instead of http,
the rest is otherwise identical.

tasks/chef.py
obsolete, replaced by ansible.

9 years agogit.ceph.com
Sage Weil [Thu, 16 Apr 2015 15:36:12 +0000 (08:36 -0700)]
git.ceph.com

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f062b171f4ab191986cea525c831573109aba2f9)

9 years agoteuthology: some suites still use http://ceph.newdream.net
Armando Segnini [Fri, 23 Jan 2015 10:13:11 +0000 (11:13 +0100)]
teuthology: some suites still use http://ceph.newdream.net

This probably redirects to http://ceph.com but ceph.newdream.net still appears in some places

http://tracker.ceph.com/issues/9922 Fixes: #9922

Signed-off-by: Armando Segnini <armando.segnini@telecom-bretagne.eu>
(cherry picked from commit 9ace238e874b45afbdcef97fe656d9a707e6105a)

9 years agoMerge pull request #588 from ceph/wip-12573
Sage Weil [Tue, 29 Sep 2015 13:45:45 +0000 (09:45 -0400)]
Merge pull request #588 from ceph/wip-12573

Removed cuttlefish from configurations as unsupported

9 years agoRemoved cuttlefish from configurations as unsupported
Yuri Weinstein [Tue, 29 Sep 2015 13:41:34 +0000 (06:41 -0700)]
Removed cuttlefish from configurations as unsupported

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
10 years agoMerge pull request #504 from ceph/wip-firefly2
Josh Durgin [Wed, 22 Jul 2015 21:29:31 +0000 (14:29 -0700)]
Merge pull request #504 from ceph/wip-firefly2

Partly reverted ref to firefly-orginal

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoPartly reverted ref to firefly-orginal
Yuri Weinstein [Wed, 22 Jul 2015 21:05:17 +0000 (14:05 -0700)]
Partly reverted ref to firefly-orginal
See https://github.com/ceph/ceph-qa-suite/pull/495/

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
10 years agoMerge pull request #501 from ceph/wip-12425-firefly
Josh Durgin [Tue, 21 Jul 2015 21:40:12 +0000 (14:40 -0700)]
Merge pull request #501 from ceph/wip-12425-firefly

Fixes #12425, removed versions-steps-x suite

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoFixes #12425, removed versions-steps-x suite
Yuri Weinstein [Tue, 21 Jul 2015 20:59:32 +0000 (13:59 -0700)]
Fixes #12425, removed versions-steps-x suite
from upgrade/firefly

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
10 years agoMerge pull request #495 from ceph/wip-firefly
Yuri Weinstein [Wed, 15 Jul 2015 21:22:35 +0000 (14:22 -0700)]
Merge pull request #495 from ceph/wip-firefly

Changed 'firefly-original' ref to 'firefly'

10 years agoChanged 'firefly-original' ref to 'firefly'
Yuri Weinstein [Wed, 15 Jul 2015 21:19:44 +0000 (14:19 -0700)]
Changed 'firefly-original' ref to 'firefly'
same as in https://github.com/ceph/ceph-qa-suite/pull/494

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
10 years agoDrop chef from tgt suite
Zack Cerza [Tue, 14 Jul 2015 22:31:55 +0000 (16:31 -0600)]
Drop chef from tgt suite

Chef has been replaced by ansible, which will be added to jobs at
schedule time.

Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit 5b57b81e90393d42494c7b02fb263f1601421f16)

10 years agoRemoved rhel* configurations with a goal that they will be covered in the Octo lab
Yuri Weinstein [Wed, 8 Jul 2015 17:15:41 +0000 (10:15 -0700)]
Removed rhel* configurations with a goal that they will be covered in the Octo lab
and won't be used by vps runs in Sepia lab

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit adfa1ee393c0ea0a36c0dfb8d7fda1a82f4b29ea)

10 years agoMerge pull request #467 from ceph/wip-12022
Yuri Weinstein [Thu, 18 Jun 2015 21:18:30 +0000 (14:18 -0700)]
Merge pull request #467 from ceph/wip-12022

Added firefly v0.80.10 to the mix

10 years agoAdded firefly v0.80.10 to the mix
Yuri Weinstein [Thu, 18 Jun 2015 18:50:17 +0000 (11:50 -0700)]
Added firefly v0.80.10 to the mix

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
10 years agoMerge pull request #459 from dachary/wip-ceph-manager-log
Zack Cerza [Thu, 11 Jun 2015 16:22:32 +0000 (10:22 -0600)]
Merge pull request #459 from dachary/wip-ceph-manager-log

add the log object to ceph_manager

10 years agoadd the log object to ceph_manager
Alfredo Deza [Thu, 26 Feb 2015 16:33:47 +0000 (11:33 -0500)]
add the log object to ceph_manager

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit f7c1ca4a1e23b03ecf86d5e67d563f95b3a82f99)

Conflicts:
tasks/ceph_manager.py
lines shifted but nothing significant changed

10 years agoMerge pull request #456 from ceph/wip-11937-firefly
Loic Dachary [Wed, 10 Jun 2015 15:48:55 +0000 (17:48 +0200)]
Merge pull request #456 from ceph/wip-11937-firefly

thrasher: Can't test ceph-objectstore-tool if nodes turned off (power…

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agothrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle)
David Zafman [Tue, 9 Jun 2015 21:11:46 +0000 (14:11 -0700)]
thrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle)

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 8a9bcd1eb7e8e7acb132b09574bb5bf6d6d52b10)

Conflicts:
tasks/ceph_manager.py
        Logging message

10 years agoMerge pull request #435 from dachary/wip-11429-firefly
Loic Dachary [Tue, 12 May 2015 22:41:37 +0000 (00:41 +0200)]
Merge pull request #435 from dachary/wip-11429-firefly

suites/rados: add test for 11429 (firefly)

10 years agoinitialize ctx.manager in ceph.py
Loic Dachary [Thu, 14 Aug 2014 22:46:36 +0000 (00:46 +0200)]
initialize ctx.manager in ceph.py

instead of rados.py because ceph.py is only run once where rados.py
could be run multiple time, leading to race conditions

http://tracker.ceph.com/issues/9027 Fixes: #9027

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 9782465c872b25710af278c701e15078a3748d03)

Conflicts:
tasks/rados.py
        because  if not hasattr(ctx, 'manager'): was not at the same place

10 years agosquash: use sleep instead of utility.sleep
Samuel Just [Mon, 4 May 2015 21:27:40 +0000 (14:27 -0700)]
squash: use sleep instead of utility.sleep

(cherry picked from commit cc107525bca02ca44fabe8513203680e0d1e422b)

10 years agosquash: use != not is not in radosbench
Samuel Just [Mon, 4 May 2015 21:22:59 +0000 (14:22 -0700)]
squash: use != not is not in radosbench

(cherry picked from commit 91bc0e91864903f6635879432e6dc7a0b36c76c2)

Conflicts:
tasks/radosbench.py
the prototype of the functions changed but not the logic

10 years agosquash: remove utility, moved to teuthology.git
Samuel Just [Mon, 4 May 2015 21:21:58 +0000 (14:21 -0700)]
squash: remove utility, moved to teuthology.git

(cherry picked from commit 73577f1077dcfb059d7a96d7502a147a943cd261)

10 years agosquash: ceph_manager: add utility_task doc string
Samuel Just [Mon, 4 May 2015 21:21:31 +0000 (14:21 -0700)]
squash: ceph_manager: add utility_task doc string

(cherry picked from commit 2a60852a1d0b0b7980004cf262d4af8ea4011667)

10 years agosuites/rados: add test for 11429
Samuel Just [Fri, 1 May 2015 16:13:27 +0000 (09:13 -0700)]
suites/rados: add test for 11429

This patch also adds some convenience facilities for making
some of the ceph_manager methods into tasks usable from a
yaml file.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 015ed70f8a46a44e35433d1f701e37f68af31cf9)

Conflicts:
tasks/radosbench.py
the pool creation call changed and the conflict is because
they were indented to implement the option to not create
a pool

10 years agokcephfs: remove 'kclient' workunit tests -- there are none left now
Greg Farnum [Fri, 8 May 2015 18:30:03 +0000 (11:30 -0700)]
kcephfs: remove 'kclient' workunit tests -- there are none left now

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #437 from ceph/wip-11180-firefly
Loic Dachary [Fri, 8 May 2015 17:29:23 +0000 (19:29 +0200)]
Merge pull request #437 from ceph/wip-11180-firefly

ensure summary is looked for the user we need (part 2)

10 years agoensure summary is looked for the user we need (part 2)
Loic Dachary [Sun, 22 Mar 2015 16:43:02 +0000 (17:43 +0100)]
ensure summary is looked for the user we need (part 2)

Move the get_user_summary(out, user) logic to util.rgw so that it can be
shared between radosgw_admin_rest.py and radosgw_admin.py and modify
them accordingly.

http://tracker.ceph.com/issues/11180 Fixes: #11180

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 97e6d808f086834f2350084d5de36be285ad2bde)

Conflicts:
tasks/radosgw_admin.py
        the context around def successful_ops(out): changed but is
unrelated to the modification

10 years agoknfs: remove the MDS debugging
Greg Farnum [Mon, 4 May 2015 23:02:24 +0000 (16:02 -0700)]
knfs: remove the MDS debugging

It doesn't fit on the typica boxes with debugging, and we probably don't need
it for any NFS issues which do arise...

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 47fff708f936b7380446a4452a9f69f4d1c93c05)

10 years agoMerge pull request #419 from ceph/wip-11139-firefly
David Zafman [Wed, 22 Apr 2015 04:39:05 +0000 (21:39 -0700)]
Merge pull request #419 from ceph/wip-11139-firefly

ceph_manager: Check for exit status 11 from ceph-objectstore-tool import

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Merged again by David Zafman <dzafman@redhat.com> because firefly branch lost original Apr 3 merge on Apr 16.

10 years agoceph_manager: Check for exit status 11 from ceph-objectstore-tool import
David Zafman [Sat, 21 Mar 2015 02:56:55 +0000 (19:56 -0700)]
ceph_manager: Check for exit status 11 from ceph-objectstore-tool import

Fixes: #11139
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 6c5300552d00232d6ecb2c1aa641d515c9d8cd34)

10 years agoMerge pull request #412 from ceph/wip-firefly-git
Loic Dachary [Thu, 16 Apr 2015 19:35:01 +0000 (21:35 +0200)]
Merge pull request #412 from ceph/wip-firefly-git

git.ceph.com (firefly)

Reviewed-by: Loic Dachary <ldachary@rehdat.com>
10 years agogit.ceph.com (firefly)
Sage Weil [Thu, 16 Apr 2015 18:40:58 +0000 (11:40 -0700)]
git.ceph.com (firefly)

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agofs: fix up dd testing again
Greg Farnum [Sat, 21 Mar 2015 00:09:02 +0000 (17:09 -0700)]
fs: fix up dd testing again

We need to change into the directory during the same shell session as we actually
run the dd...

Fixes: #10861
Backport: hammer, giant, firefly, dumpling

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 8aeacaa59f32b15aa95a529d1040cb73cbd7efcc)

10 years agoensure summary is looked for the user we need
Alfredo Deza [Fri, 20 Mar 2015 13:27:05 +0000 (09:27 -0400)]
ensure summary is looked for the user we need

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit f7ea0a424a53bf68cad4cd4c7c78a07401dd6851)

10 years agoMerge pull request #369 from dachary/wip-rgw-acl
Loic Dachary [Mon, 16 Mar 2015 21:01:31 +0000 (22:01 +0100)]
Merge pull request #369 from dachary/wip-rgw-acl

create a new get_acl helper to ensure proper xml is compared

Reviewed-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #368 from dachary/wip-shard-missing
David Zafman [Mon, 16 Mar 2015 16:01:43 +0000 (09:01 -0700)]
Merge pull request #368 from dachary/wip-shard-missing

whitelist shard missing errors

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #361 from ceph/wip-cot-firefly
Loic Dachary [Mon, 16 Mar 2015 14:03:09 +0000 (15:03 +0100)]
Merge pull request #361 from ceph/wip-cot-firefly

Backport ceph-objectstore-tool changes to firefly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agocreate a new get_acl helper to ensure proper xml is compared
Alfredo Deza [Wed, 11 Feb 2015 16:13:28 +0000 (11:13 -0500)]
create a new get_acl helper to ensure proper xml is compared

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 9b6ff638735d03c1f3304198fad51ca701a2c8bd)

Conflicts:
tasks/radosgw_admin.py
        the context changed but the patch seems otherwise good

10 years agowhitelist shard missing errors
Loic Dachary [Mon, 16 Mar 2015 11:15:21 +0000 (12:15 +0100)]
whitelist shard missing errors

If a shard is missing during a radosbench it can safely be
ignored. It will either be recovered and radosbench will complete
successfully. Or there are too many shard missing to recover the object
and radosbench will fail. Either way we can rely on radosbench to
accurately report success or failure.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #365 from ceph/wip-11072
Andrew Schoen [Wed, 11 Mar 2015 21:57:43 +0000 (16:57 -0500)]
Merge pull request #365 from ceph/wip-11072

Added v0.80.9 to upgrade/firefly suite, fixed #11072

10 years agoAdded v0.80.9 to upgrade/firefly suite, fixed #11072
Yuri Weinstein [Tue, 10 Mar 2015 21:23:16 +0000 (14:23 -0700)]
Added v0.80.9 to upgrade/firefly suite, fixed #11072

Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
10 years agoControl the nfs service correctly on rpm-based systems
Andrew Schoen [Wed, 4 Mar 2015 14:57:03 +0000 (08:57 -0600)]
Control the nfs service correctly on rpm-based systems

This fixes issue #11020

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 2e4d884fdaabbeca67b519537a80166d3cc99fa3)

10 years agoFixes #11013, use time.sleep instead of manager.sleep which isn't there.
Andrew Schoen [Tue, 3 Mar 2015 22:38:10 +0000 (16:38 -0600)]
Fixes #11013, use time.sleep instead of manager.sleep which isn't there.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 811c02e3922c4ae29c09bb5f7b48840d0eced951)

10 years agoFormatting changes
David Zafman [Fri, 16 Jan 2015 19:21:49 +0000 (11:21 -0800)]
Formatting changes

(cherry picked from commit e5876126a9a8a474ddffaf60bdfde960e33717da)

10 years agoFix wrapped line
David Zafman [Wed, 14 Jan 2015 22:38:53 +0000 (14:38 -0800)]
Fix wrapped line

(cherry picked from commit 14e27650a62016da8caecbb160fbc5bf77d5515e)

10 years agoceph_manager: Fix Thrasher kill_osd() to ignore pool going away
David Zafman [Mon, 15 Dec 2014 18:06:02 +0000 (10:06 -0800)]
ceph_manager: Fix Thrasher kill_osd() to ignore pool going away

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b239dadc02fc8e09c5bf633a06c479494929e85c)

Conflicts:
tasks/ceph_manager.py

10 years agoceph_manager: Thrasher fixes to run() calls to set check_status = False
David Zafman [Mon, 12 Jan 2015 23:29:31 +0000 (15:29 -0800)]
ceph_manager: Thrasher fixes to run() calls to set check_status = False

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 4eda2967a456d1280a8f081fb80bb274ac60ac0e)

Conflicts:
tasks/ceph_manager.py

10 years agoceph_manager: Re-enable Thrasher ceph-objectstore-tool testing
David Zafman [Fri, 24 Oct 2014 03:28:28 +0000 (20:28 -0700)]
ceph_manager: Re-enable Thrasher ceph-objectstore-tool testing

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit e0b0d41e4cc87c058386bbc00bba444671493838)

10 years agoceph_manager: In Thrasher randomly remove past intervals
David Zafman [Mon, 20 Oct 2014 22:03:54 +0000 (15:03 -0700)]
ceph_manager: In Thrasher randomly remove past intervals

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 4a195c78c1d932ecf03055d3cfc2e5584947b657)

10 years agoceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing...
David Zafman [Thu, 23 Oct 2014 17:45:09 +0000 (10:45 -0700)]
ceph_manager: In Thrasher disable ceph_objectstore_tool tests if old release missing command

Require ceph-objectstore-tool to be available on all OSD nodes
Log a message when tool is not available

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit f9e088fcbcf06adc62c32f370e90591312491906)

10 years agoceph_objectstore_tool: fix pep8 errors
Loic Dachary [Thu, 18 Dec 2014 22:50:12 +0000 (23:50 +0100)]
ceph_objectstore_tool: fix pep8 errors

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 75287f0868c12c462f6758fcb11c60a74c24ced5)

10 years agoceph_objectstore_tool: --op list now prints [pg,object]
Loic Dachary [Thu, 18 Dec 2014 22:12:48 +0000 (23:12 +0100)]
ceph_objectstore_tool: --op list now prints [pg,object]

The format of the output of --op list was changed to include the PG to
which the object belong. It simplifies the loop in
ceph_objectstore_tool.py.

http://tracker.ceph.com/issues/10376 Fixes: #10376

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 3c2aaa9c359ff7f9273d0e0bcc139ee046e9a128)

10 years agoceph_objectstore_tool: Changes for rename of binary ceph-objectstore-tool
David Zafman [Wed, 17 Dec 2014 01:04:09 +0000 (17:04 -0800)]
ceph_objectstore_tool: Changes for rename of binary ceph-objectstore-tool

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit eec179c687664664eda6106d6705305fb16a0e82)

Conflicts:
tasks/ceph_manager.py

10 years agoceph_objectstore_tool: minor fixes
David Zafman [Thu, 20 Nov 2014 00:43:23 +0000 (16:43 -0800)]
ceph_objectstore_tool: minor fixes

Remove development comment
nullfd isn't used anymore
s/log.errors/log.error/

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 6923e68dacd1d0230897b69a40b2005f5867723a)

10 years agoceph_objectstore_tool: fix flake8 issues
David Zafman [Thu, 20 Nov 2014 17:39:50 +0000 (09:39 -0800)]
ceph_objectstore_tool: fix flake8 issues

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a09d3a389dbb3dea8bb337c5b2af7b172ccc66d5)

10 years agoceph_objectstore_tool: add assert so that teuthology knows when this test fails
David Zafman [Thu, 20 Nov 2014 00:40:15 +0000 (16:40 -0800)]
ceph_objectstore_tool: add assert so that teuthology knows when this test fails

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit f10edda4bc60faf8278e6c1a453c07c0ff317877)

10 years agoceph_objectstore_tool: skip unused osds
Loic Dachary [Wed, 19 Nov 2014 18:03:57 +0000 (19:03 +0100)]
ceph_objectstore_tool: skip unused osds

When the number of objects is low, some OSDs may not be used at all.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 9a089ef369174a241098f2c5c28bcb29fe09eb58)

10 years agoceph_objectstore_tool: run tests on erasure coded pools
Loic Dachary [Wed, 19 Nov 2014 18:02:11 +0000 (19:02 +0100)]
ceph_objectstore_tool: run tests on erasure coded pools

Create an erasure coded pool and run tests on it. The list of PGs is
adapted to contain the shard id.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit be39bd5d84613d30eecede78172619bb5339dbe0)

10 years agoceph_objectstore_tool: only run get/set bytes for replicated pools
Loic Dachary [Wed, 19 Nov 2014 18:00:53 +0000 (19:00 +0100)]
ceph_objectstore_tool: only run get/set bytes for replicated pools

It needs to be adapted to run with erasure coded pools.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit fbb33f3577d430ffcd62a4f70b1e0de3ae28af74)

10 years agoceph_objectstore_tool: use CephManager::get_pool_dump
Loic Dachary [Wed, 19 Nov 2014 22:17:03 +0000 (23:17 +0100)]
ceph_objectstore_tool: use CephManager::get_pool_dump

Instead of custom made get_pool_id function.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 2b57f4c59c045b042c779ffe384fdcccf9a6ddb4)

10 years agoceph_objectstore_tool: add pgnum option
Loic Dachary [Wed, 19 Nov 2014 17:54:02 +0000 (18:54 +0100)]
ceph_objectstore_tool: add pgnum option

Instead of hardcoding 12 use a configuration option that defaults to
12. It is handy during development to lower the number to 4 and speed up
the test cycle.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit d0caf5cdffe26f27b0a25ebdb96d9b0fd37ffffc)

10 years agoceph_objectstore_tool: encapsulate into a function
Loic Dachary [Wed, 19 Nov 2014 12:44:38 +0000 (13:44 +0100)]
ceph_objectstore_tool: encapsulate into a function

Move code out of the task into function. Also remove the "REP" specifics
from helper functions that could also be used for erasure coded pools.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit c9e6edebd95377f7dec2a34f390f250c0e1a026d)

10 years agoceph_objectstore_tool: add hinfo_key tests for erasure coded objects
Loic Dachary [Mon, 17 Nov 2014 16:33:56 +0000 (17:33 +0100)]
ceph_objectstore_tool: add hinfo_key tests for erasure coded objects

When an hinfo_key attribute is found, assume an erasure coded object and
verify set-attr/get-attr works as expected by removing its content and
restoring it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit d5912263731e79877a0ea459d3b7453a925402e3)

10 years agoceph_objectstore_tool: keep all json object representation
Loic Dachary [Mon, 17 Nov 2014 16:31:13 +0000 (17:31 +0100)]
ceph_objectstore_tool: keep all json object representation

For erasure coded pools to be tested, the json object representation
must be preserved for all PG because they are all different. The
internal representation is changed from

   db[name]["pgid"] = pg
   db[name]["json"] = objjson

to a per pg map:

   db[name].setdefault("pg2json", {})[pg] = objjson

and the rest of the code is modified to adapt accordingly.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 9ef8887a3b219021296f18eb5b317e3134f1281e)

10 years agoceph_manager: add pool type constants
Loic Dachary [Wed, 19 Nov 2014 17:14:52 +0000 (18:14 +0100)]
ceph_manager: add pool type constants

The osd dump command displays pool types using numerics instead of
symbolic names. Create constants in the CephManager class to use instead
of numbers.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit b925be13bc1183b2a8f68fd59d7fcb59330d1404)

10 years agoceph_manager: fix typo in get_pgid docstring
Loic Dachary [Wed, 19 Nov 2014 17:14:25 +0000 (18:14 +0100)]
ceph_manager: fix typo in get_pgid docstring

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit fd1ec39d3835e95cbe0a6853a63689e217d6567e)

10 years agoceph_manager: add get_pool_dump to return the json pool dump
Loic Dachary [Wed, 19 Nov 2014 17:10:38 +0000 (18:10 +0100)]
ceph_manager: add get_pool_dump to return the json pool dump

Get the part of ceph osd dump specific to the pool given in argument.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 5fc42b98ab22a9b2edad4336677270b11a42d776)

10 years agoceph_manager: add get_osd_dump_json to get the full output
Loic Dachary [Wed, 19 Nov 2014 17:08:46 +0000 (18:08 +0100)]
ceph_manager: add get_osd_dump_json to get the full output

Converts ceph osd dump_json into a python object.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit f353c150a8234644a25d7eeb073f4d3dd4af7c07)

10 years agoThrasher: Disable ceph_objectstore_tool tests if old release missing command
David Zafman [Wed, 22 Oct 2014 22:54:44 +0000 (15:54 -0700)]
Thrasher: Disable ceph_objectstore_tool tests if old release missing command

Don't need to explicitly turn off the test during some upgrades
Leaving disabled until merge of import/export fixes

Fixes: #9805
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a295c18a808033dfbdacf8801c26fed137ccab35)

Conflicts:
suites/upgrade/dumpling-firefly-x/stress-split/13-thrash/default.yaml (not in firefly)
suites/upgrade/dumpling/fs/4-final/osdthrash.yaml
suites/upgrade/dumpling/rbd/4-final/osdthrash.yaml
suites/upgrade/dumpling/rgw/4-final/osdthrash.yaml

10 years agoceph_manager: ceph_objectstore_tool testing off by default
David Zafman [Wed, 22 Oct 2014 17:32:46 +0000 (10:32 -0700)]
ceph_manager: ceph_objectstore_tool testing off by default

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit bdbcf760d9060b3b8b940a52ce2fcd8406c8b95a)

10 years agodocument 'command' requirements on admin_socket method
Greg Farnum [Mon, 13 Oct 2014 19:37:52 +0000 (12:37 -0700)]
document 'command' requirements on admin_socket method

Signed-off-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 4db95170e605b3c602a8e4749278943860623c9d)

10 years agotasks/ceph_manager: enable log for ceph_objectstore_tool
Sage Weil [Fri, 3 Oct 2014 15:32:35 +0000 (08:32 -0700)]
tasks/ceph_manager: enable log for ceph_objectstore_tool

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 7ba50e0c89eead17e7fc37232f8c9a91855ebd8c)

Conflicts:
tasks/ceph_manager.py

10 years agoincluded an option to ceph_objectstore_tool, whenever we have keyvaluestore_backend...
tamil [Tue, 23 Sep 2014 14:50:49 +0000 (07:50 -0700)]
included an option to ceph_objectstore_tool, whenever we have keyvaluestore_backend as a configurable parameter

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
(cherry picked from commit a5a1cce3c768df18436fec795b19f5b4e7899cac)

10 years agoceph_manager: Add test code to use export/import to move a pg
David Zafman [Thu, 14 Aug 2014 18:46:29 +0000 (11:46 -0700)]
ceph_manager: Add test code to use export/import to move a pg

Check for more than 1 osd down and randomize on chance_move_pg (100%)
For now only export from older down osd to newly down osd to avoid missing map

Signed-off-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit 05eee9fa79ef4cb432cb28e3a2eb0e66fd686a7b)

Conflicts:
tasks/ceph_manager.py

10 years agoceph_manager: Implement export/import when thrasher kills an osd
David Zafman [Mon, 4 Aug 2014 20:07:19 +0000 (13:07 -0700)]
ceph_manager: Implement export/import when thrasher kills an osd

Use list-pgs to avoid races by seeing actual pgs present

Signed-off-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit 0cdf6e813db6bddd4dd2b97b8722ed32a4cf56a8)

10 years agoceph_objectstore_tool: Add task for testing of tool of the same name
David Zafman [Mon, 21 Jul 2014 22:08:08 +0000 (15:08 -0700)]
ceph_objectstore_tool: Add task for testing of tool of the same name

Based on ceph/src/test/ceph_objectstore_tool.py but only does
replicated pool testing and doesn't test argument validation.

Signed-off-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit 9ade22dd3458f15eec03ad42b599beef10b0bf20)

10 years agomove functions from ceph to ceph_manager
Loic Dachary [Thu, 14 Aug 2014 22:44:35 +0000 (00:44 +0200)]
move functions from ceph to ceph_manager

mount_osd_data and make_admin_daemon_dir are only used by
ceph_manager.py although they are defined in ceph.py

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit f53ea258a4c86603f0982448b191488abb4e73f3)

Conflicts:
tasks/ceph.py

10 years agoworkunit: include /usr/sbin in the PATH for all commands
Greg Farnum [Tue, 24 Feb 2015 05:04:16 +0000 (21:04 -0800)]
workunit: include /usr/sbin in the PATH for all commands

Fixes: #10600
Backport: hammer, giant, firefly, dumpling

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 0e53f5f38b0cb06a6f4989e622a279c8ba9104eb)

10 years agoMerge pull request #355 from dachary/wip-cram-firefly
Josh Durgin [Sat, 28 Feb 2015 21:08:08 +0000 (13:08 -0800)]
Merge pull request #355 from dachary/wip-cram-firefly

all tests must end with .t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agopull fsstress.sh tests from the firelfy branch
Loic Dachary [Sat, 28 Feb 2015 00:04:12 +0000 (01:04 +0100)]
pull fsstress.sh tests from the firelfy branch

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoall tests must end with .t
Loic Dachary [Sat, 28 Feb 2015 18:04:13 +0000 (19:04 +0100)]
all tests must end with .t

The hb=firelfy cannot end the URL because of this constraint.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agorbd: fix typo in url
Josh Durgin [Sat, 28 Feb 2015 00:26:23 +0000 (16:26 -0800)]
rbd: fix typo in url

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #351 from dachary/wip-cram-firefly
Josh Durgin [Sat, 28 Feb 2015 00:16:11 +0000 (16:16 -0800)]
Merge pull request #351 from dachary/wip-cram-firefly

pull cram tests from the firelfy branch

Reviewed-by: Josh Durgin <jdurgin@redhat.com>