Commit Graph

967 Commits

Author SHA1 Message Date
Ricardo Dias
494b623602 buildpackages: fix RPM generation script to support opensuse spec file
Signed-off-by: Ricardo Dias <rdias@suse.com>
(cherry picked from commit 4692f995ba6967796d5dd2f5fd85fde8705a1ccc)
2016-09-01 10:32:10 +02:00
Loic Dachary
b4bb54e5df Merge pull request #1141 from rjfd/wip-test-buildpackages
buildpackages: make make-{deb,rpm}.sh aware of cmake

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
2016-08-26 09:23:14 +02:00
Loic Dachary
b9813e490e workunit: allow parallel git clone
When multiple client run in parallel on the same machine and they
try to get workunits from a repository that is not github, they must
git clone in a directory that is suffixed as srcdir. Otherwise they
will conflict with each other.

Fixes: http://tracker.ceph.com/issues/17116

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-08-25 11:34:46 +02:00
Zack Cerza
bf797f0b1f Update console checking, and DRY
Signed-off-by: Zack Cerza <zack@redhat.com>
2016-08-24 11:13:32 -06:00
Zack Cerza
821cf2caa6 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>
2016-08-24 11:11:25 -06:00
Nathan Cutler
65590aa039
buildpackages: make make-{deb,rpm}.sh aware of cmake
Fixes: http://tracker.ceph.com/issues/16819
Signed-off-by: Ricardo Dias <rdias@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-08-24 14:38:17 +01:00
Samuel Just
6394a9e52f ceph_manager: do not use StringIO instance as default argument
Otherwise, all invokations share the *same* StringIO instance
leading to some very silly bugs.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-08-23 09:53:39 -07:00
Kefu Chai
5c4aeb10c4 ceph_manager: lower mon_reweight_min_bytes_per_osd to 10
otherwise monitor could reject the command:
```
Refusing to reweight: we only used 588084 kb used across all osds!
```
if the average used space is smaller than
`mon_reweight_min_bytes_per_osd`.

Fixes: http://tracker.ceph.com/issues/16805
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-08-23 02:18:35 +08:00
Samuel Just
3052452e64 Merge pull request #1122 from ceph/wip-fixbiglogs
Fix big logs in rados thrash runs

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-08-19 07:52:53 -07:00
David Zafman
9d52d10898 revive_osd: Suppress output used to wait for OSD to be fully started
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-08-18 21:10:54 -07:00
David Zafman
d762fa563e Thrashosds: Turn off output when doing dump_ops testing
Needed to add stdout option to pass down to run()

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-08-18 09:02:14 -07:00
Casey Bodley
171eadd6a3 Merge pull request #1119 from ceph/wip-rgw-17025
rgw: data_extra_pool is unique per zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-08-15 09:38:10 -04:00
Orit Wasserman
c6cdd0905f rgw: data_extra_pool is unique per zone
Fixes: http://tracker.ceph.com/issues/17025
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2016-08-15 14:52:56 +02:00
Douglas Fuller
e01ff2e3c1 cephfs/vstart_runner: add -ww option to ps
vstart_runner can't find arguments to ceph daemons to identify them with
ps -x because commands are cut off at terminal width. Add -ww for wide
output.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-08-09 06:19:14 -07:00
John Spray
05a6c839e0 tasks/cephfs: check cache size health warning
Fortunately we already have a test that creates the condition,
so just tweak it to exceed the 150% threshold for the health warning,
and check that the health message appears.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-07-29 12:42:30 +01:00
Josh Durgin
cee7a24183 cephfs/filesystem: remove unused var
flake8 passes now

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-07-28 14:45:25 -07:00
Josh Durgin
e49218b8ef Merge pull request #1105 from athanatos/wip-ec-pg-log
update diverge priors tests - this is handled by persisting the missing set now

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-07-28 14:40:19 -07:00
Douglas Fuller
c669f1ecd5 cephfs: add test for dump tree admin socket command
Add test_dump_tree to validate the MDS admin socket command
dump tree. Add a parameter for path_to_ino to enable the use of
lstat() instead of stat()

See: http://tracker.ceph.com/issues/11171
See: https://github.com/ceph/ceph/pull/9925
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-07-28 11:35:56 +01:00
Vishal Kanaujia
ce99bcac2c cephfs: Added a inotable repair case to the test 2016-07-28 11:31:55 +01:00
Vasu Kulkarni
597534150b Fix rechecking of health in loop
Use the newer stdout value for checking
ceph health again.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-07-25 15:29:53 -07:00
Josh Durgin
c12b3513a7 Merge pull request #1003 from athanatos/wip-15655
ceph_manager: test [test-]reweight-by-(utilization|pg)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-07-22 14:46:21 -07:00
Samuel Just
e3159dfafb divergent_priors: we no longer track divergent priors explicitely
The rest of the test is still valuable to ensure that we detect missing
items which are not in the log, but now that the missing set is
explicitely persisted, the divergent priors set isn't a special case
and won't have special log lines to check for.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-07-22 14:35:59 -07:00
Josh Durgin
0623a0dee6 Merge pull request #1090 from athanatos/wip-16416
ec_lost_unfound: set min_size to 2

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-07-22 14:28:48 -07:00
Ramana Raja
08e3a49fa5 tasks/cephfs/test_volume_client: test authentication metadata
Test the usecases for the authentication metadata stored
by the volume client:

* Obtain the list of auth IDs having access to a volume.

* Restrict volume access to auth IDs of a single (OpenStack)
  tenant to enforce strong tenant isolation of volumes.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-07-13 16:56:26 +05:30
Samuel Just
19854c095b ec_lost_unfound: set min_size to 2
We changed the default to k+1 instead of k.  Adjust test to compensate.

Fixes: http://tracker.ceph.com/issues/16416
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-07-05 14:05:12 -07:00
Ramana Raja
335872355d vstart_runner: fix misleading log message
Message is logged as, filesystem is mounted,
despite the vstart_runner just trying to mount
at this stage.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:55 +01:00
Ramana Raja
6d074bdb4c tasks/cephfs: rename 'long_running' decorator
Rename 'long_running' decorator as 'for_teuthology',
which is more intuitive.

Signed-off-by: Ramana Raja <rraja@redhat.com>
2016-06-30 23:44:54 +01:00
John Spray
5553e9c943 tasks/cephfs: use "blacklist clear"
... instead of iterating over all blacklist entries.  Fall
back to the old way if the new way doesn't work (i.e. on
old ceph)

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:20 +01:00
John Spray
adfb757c89 tasks/cephfs: fix race while mounting
This could fail if the mount hadn't finished
coming up.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:20 +01:00
John Spray
bb517c6415 tasks/cephfs: fix vstart_runner with cmake
This needed updating for the CLI living in bin/ now

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:19 +01:00
John Spray
9d3eee3461 tasks/cephfs: disable setuid test in vstart environ
``long_running`` needs a better name, it's really just a
marker that says a test is for use in teuthology but not vstart.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-06-30 23:44:19 +01:00
vasukulkarni
68dbf3f84f Merge pull request #1008 from ceph/wip-systemd-tests
Wip systemd tests
2016-06-30 09:42:00 -07:00
John Spray
eee61627f5 Merge pull request #1069 from batrick/i16164
cephfs: test fragment size limit

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-30 12:46:43 +01:00
Vasu Kulkarni
2fe88cdd12 Few comment fixes
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-29 11:30:02 -07:00
Patrick Donnelly
dc165e632a
cephfs: test fragment size limit
The fragment configuration uses 10000 for the fragment max size. The reason for
this is that many tests add 1000 files to a single directory which will hit
this limit without fragmentation catching up.

The test_dirfrag_limit test confirms:

o That the directory fragment size cannot exceed mds_bal_fragment_size_max (using a limit of 50 in all configurations).
o That fragmentation (forced) will allow more entries to be created.
o That unlink fails when the stray directory fragment becomes too large and that unlinking may continue once those strays are purged.

Tests: https://github.com/ceph/ceph/pull/9789
Issue: http://tracker.ceph.com/issues/16164

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
2016-06-29 11:20:26 -04:00
David Zafman
25abf9893a Merge pull request #1063 from ceph/wip-no-fuse
Revert "tasks/scrub_test: use fuse path (do not assume filestore!)"
2016-06-23 18:25:02 -07:00
Zack Cerza
990c4c4ac8 Merge pull request #1059 from ceph/wip-s3roundtrip-wusui
Allow force-branch for s3roundtrip tests.
2016-06-23 15:05:09 -06:00
Samuel Just
d4efcf62d3 Revert "tasks/scrub_test: use fuse path (do not assume filestore!)"
This reverts commit 9e2b455f45.
2016-06-23 10:44:47 -07:00
vasukulkarni
9156943ac5 Merge pull request #970 from ceph/wip-fix-cd-override
Fix for 'branch' overrides to work
2016-06-22 14:54:02 -07:00
Josh Durgin
3d9daf8d1a Merge pull request #1058 from ceph/wip-15016
tasks/ceph-deploy: Run on multiple Python versions (2, 3)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-22 14:03:31 -07:00
Samuel Just
3d27b5802a Merge pull request #1002 from athanatos/wip-osd-recovery
osd_recovery: add delay to ensure maps propogate

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:16:47 -07:00
Samuel Just
0fa12144b2 Merge pull request #1062 from athanatos/wip-resolve-peering
resolve_stuck_peering: reset stats while looping

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:16:36 -07:00
Samuel Just
1df6a3e5af Merge pull request #1060 from athanatos/wip-flush-pg-stats
[ec_]lost_unfound: don't flush_pg_stats at the beginning

Reviewed-by: Sage Weil <sage@redhat.com>
2016-06-22 11:15:52 -07:00
Oleh Prypin
c5dbbfc545 tasks/ceph-deploy: Install appropriate Python version before running
Related to RM-15016

Signed-off-by: Oleh Prypin <oleh@pryp.in>
2016-06-22 19:19:12 +03:00
Warren Usui
45900d81f5 Allow force-branch for s3roundtrip tests.
Fixes tracker bug 15453
Signed-off-by: Warren Usui <wusui@redhat.com>
2016-06-21 18:11:12 -07:00
Kefu Chai
dd235a5253 Merge pull request #1050 from ceph/wip-fix-scrub-test
test: Eliminate racey scrubbing in scrub_test.py

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-21 18:36:28 +08:00
Sage Weil
9e2b455f45 tasks/scrub_test: use fuse path (do not assume filestore!)
Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-20 14:08:49 -04:00
Vasu Kulkarni
a8b336d9e6 Add sleep after stop to avoid checking deactivating state
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2016-06-17 12:38:27 -07:00
Samuel Just
9db7d4c9f9 [ec_]lost_unfound: don't flush_pg_stats at the beginning
The upgrade tests restart the daemons right before that part, and the
restart marks the osds down causing the flush_pg_stats to fail.  It's
not necessary anymore anyway.

Signed-off-by: Samuel Just <sjust@redhat.com>
2016-06-17 08:16:58 -07:00
Josh Durgin
2f753d07ce Merge pull request #1049 from ceph/wip-rbd-nbd
rbd: added rbd-nbd fsx test case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-06-16 14:17:03 -07:00