]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agolibrbd: clean up object map update interface, revisited 15460/head
Nathan Cutler [Sat, 26 Aug 2017 08:06:25 +0000 (10:06 +0200)]
librbd: clean up object map update interface, revisited

In master, the "batch update" change [1] was merged before the "order
concurrent updates" [2], while in jewel the latter is already
backported [3]. A backport of [1] to jewel was attempted, and was
necessarily applied on top of [3] - i.e. in the reverse order compared
to how the commits went into master. This reverse ordering caused the
automated cherry-pick to miss some parts of [1] which this commit is
adding manually.

[1] https://github.com/ceph/ceph/pull/11510
[2] https://github.com/ceph/ceph/pull/12420
[3] https://github.com/ceph/ceph/pull/12909

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agolibrbd: batch ObjectMap updations upon trim
Venky Shankar [Sat, 15 Oct 2016 11:48:30 +0000 (17:18 +0530)]
librbd: batch ObjectMap updations upon trim

Shrinking a clone which has snapshots and does not share
majority of objects with its parent (i.e., there are less
objects to be copied up) involves huge number of object
map updates -- two (pre, post) per object. This results
in lots of requests to be send to OSDs especially when
trimming a gigantus image. This situation can be optimized
by sending batch ObjectMap updates for an object range
thereby significantly cutting down OSD traffic resulting
in faster trim times.

Fixes: http://tracker.ceph.com/issues/17356
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 05653b7c512334533b801013f7e426363237301b)

7 years agoqa/workunits/rados/test-upgrade-v11.0.0: skip ListObjectsError
Sage Weil [Thu, 24 Aug 2017 14:27:22 +0000 (10:27 -0400)]
qa/workunits/rados/test-upgrade-v11.0.0: skip ListObjectsError

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/rados/test-upgrade-v11.0.0: skip more tests
Sage Weil [Thu, 24 Aug 2017 14:20:00 +0000 (10:20 -0400)]
qa/workunits/rados/test-upgrade-v11.0.0: skip more tests

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16870 from liewegas/wip-20929-jewel
Sage Weil [Thu, 24 Aug 2017 14:16:19 +0000 (09:16 -0500)]
Merge pull request #16870 from liewegas/wip-20929-jewel

jewel: ceph-disk: dmcrypt cluster must default to ceph

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #14659 from asheplyakov/19473-jewel
Nathan Cutler [Thu, 24 Aug 2017 08:15:57 +0000 (10:15 +0200)]
Merge pull request #14659 from asheplyakov/19473-jewel

jewel: rgw: add the remove-x-delete feature to cancel swift object expiration

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #15322 from gregsfortytwo/jewel-19931-snaptrim-shutdown
Nathan Cutler [Thu, 24 Aug 2017 07:13:23 +0000 (09:13 +0200)]
Merge pull request #15322 from gregsfortytwo/jewel-19931-snaptrim-shutdown

jewel: osd: Reset() snaptrimmer on shutdown and do not default-abort on leaked pg refs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #15236 from asheplyakov/20036-bp-jewel
Nathan Cutler [Thu, 24 Aug 2017 07:11:52 +0000 (09:11 +0200)]
Merge pull request #15236 from asheplyakov/20036-bp-jewel

jewel: mon: factor mon_osd_full_ratio into MAX AVAIL calc

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #14346 from ceph/wip-ceph-disk-fix-jewel
Nathan Cutler [Thu, 24 Aug 2017 07:07:08 +0000 (09:07 +0200)]
Merge pull request #14346 from ceph/wip-ceph-disk-fix-jewel

jewel: build/ops: Add fix subcommand to ceph-disk, fix SELinux denials, and speed up upgrade from non-SELinux enabled ceph to an SELinux enabled one

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15083 from asheplyakov/19926-bp-jewel
Nathan Cutler [Thu, 24 Aug 2017 07:04:49 +0000 (09:04 +0200)]
Merge pull request #15083 from asheplyakov/19926-bp-jewel

jewel: mon: crash on shutdown, lease_ack_timeout event

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #14663 from smithfarm/wip-19228-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:56:38 +0000 (20:56 +0200)]
Merge pull request #14663 from smithfarm/wip-19228-jewel

jewel: rbd: Enabling mirroring for a pool with clones may fail

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #15050 from asheplyakov/19265-bp-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:52:04 +0000 (20:52 +0200)]
Merge pull request #15050 from asheplyakov/19265-bp-jewel

jewel: core: an OSD was seen getting ENOSPC even with osd_failsafe_full_ratio passed

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #15065 from asheplyakov/19915-bp-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:50:01 +0000 (20:50 +0200)]
Merge pull request #15065 from asheplyakov/19915-bp-jewel

jewel: osd: PrimaryLogPG: do not call on_shutdown() if (pg.deleting)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #14943 from shinobu-x/wip-18293-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:48:38 +0000 (20:48 +0200)]
Merge pull request #14943 from shinobu-x/wip-18293-jewel

jewel: osd: leaked MOSDMap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #14699 from smithfarm/wip-19679-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:12:01 +0000 (20:12 +0200)]
Merge pull request #14699 from smithfarm/wip-19679-jewel

jewel: mds: damage reporting by ino number is useless

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #14673 from smithfarm/wip-19466-jewel
Nathan Cutler [Wed, 23 Aug 2017 18:10:07 +0000 (20:10 +0200)]
Merge pull request #14673 from smithfarm/wip-19466-jewel

jewel: mds: log rotation doesn't work if mds has respawned

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa/workunits/rados/test-upgrade-v11.0.0.sh: more tests skipped
Sage Weil [Wed, 23 Aug 2017 17:53:48 +0000 (13:53 -0400)]
qa/workunits/rados/test-upgrade-v11.0.0.sh: more tests skipped

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #15442 from Vicente-Cheng/wip-20025-jewel
Nathan Cutler [Wed, 23 Aug 2017 06:41:55 +0000 (08:41 +0200)]
Merge pull request #15442 from Vicente-Cheng/wip-20025-jewel

jewel: cephfs: osdc/Filer: truncate large file party by party

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
7 years agoMerge pull request #14691 from smithfarm/wip-19571-jewel
Nathan Cutler [Wed, 23 Aug 2017 06:40:20 +0000 (08:40 +0200)]
Merge pull request #14691 from smithfarm/wip-19571-jewel

jewel: tests: upgrade:client-upgrade/firefly-client-x: drop CentOS

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #15448 from smithfarm/wip-19615-jewel
Nathan Cutler [Tue, 22 Aug 2017 14:25:14 +0000 (16:25 +0200)]
Merge pull request #15448 from smithfarm/wip-19615-jewel

jewel: rgw: multisite: bucket zonegroup redirect not working

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agotests: upgrade:client-upgrade/firefly-client-x: drop CentOS 14691/head
Nathan Cutler [Thu, 20 Apr 2017 17:15:29 +0000 (19:15 +0200)]
tests: upgrade:client-upgrade/firefly-client-x: drop CentOS

The RBD suite needs ceph-cm-ansible to install qemu-kvm on CentOS, but doing
that breaks the firefly install on CentOS because:

1. the qemu-kvm that gets installed is from hammer (0.94.5)
2. qemu-kvm brings in librados2, librbd1 as dependencies

As a result, the hammer librados2 and librbd1 are installed on the test nodes
even before the teuthology install task starts. When it does start and tries
to install firefly, it fails because firefly librados2 and librbd1 cannot be
installed over their hammer versions.

Fixes: http://tracker.ceph.com/issues/19571
Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #15197 from smithfarm/wip-20007-jewel
Nathan Cutler [Tue, 22 Aug 2017 11:47:21 +0000 (13:47 +0200)]
Merge pull request #15197 from smithfarm/wip-20007-jewel

jewel: rgw: remove unnecessary 'error in read_id for object name: default'

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #15051 from asheplyakov/19910-bp-jewel
Nathan Cutler [Tue, 22 Aug 2017 08:00:07 +0000 (10:00 +0200)]
Merge pull request #15051 from asheplyakov/19910-bp-jewel

jewel: build/ops: extended, customizable systemd ceph-disk timeout

Reviewed-by: David Disseldorp <ddiss@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #15428 from smithfarm/wip-20162-jewel
Nathan Cutler [Tue, 22 Aug 2017 07:54:12 +0000 (09:54 +0200)]
Merge pull request #15428 from smithfarm/wip-20162-jewel

jewel: build/ops: deb: Fix logrotate packaging

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15447 from smithfarm/wip-19613-jewel
Nathan Cutler [Tue, 22 Aug 2017 07:52:49 +0000 (09:52 +0200)]
Merge pull request #15447 from smithfarm/wip-19613-jewel

jewel: rgw: multisite: rest api fails to decode large period on "period commit"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agotest: remove hard-coded image name from RBD metadata test 14663/head
Jason Dillaman [Thu, 27 Apr 2017 20:21:33 +0000 (16:21 -0400)]
test: remove hard-coded image name from RBD metadata test

Fixes: http://tracker.ceph.com/issues/19798
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8f72e745e157cc12d76ca6babe956c5698ee297f)

7 years agolibrbd: relax "is parent mirrored" check when enabling mirroring for pool
Mykola Golub [Thu, 2 Mar 2017 16:18:18 +0000 (17:18 +0100)]
librbd: relax "is parent mirrored" check when enabling mirroring for pool

If the parent is in the same pool and has the journaling feature enabled
we can assume the mirroring will eventually be enabled for it.

Fixes: http://tracker.ceph.com/issues/19130
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit fe31bca22f90ce02f461d6421a4f66539db888d3)

7 years agoMerge pull request #15196 from smithfarm/wip-20006-jewel
Nathan Cutler [Tue, 22 Aug 2017 07:31:04 +0000 (09:31 +0200)]
Merge pull request #15196 from smithfarm/wip-20006-jewel

jewel: build/ops: rpm: fix python-Sphinx package name for SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoqa/workunits/rados/test/test-upgrade-v11.0.0: skip Quota test
Sage Weil [Sat, 12 Aug 2017 13:00:22 +0000 (09:00 -0400)]
qa/workunits/rados/test/test-upgrade-v11.0.0: skip Quota test

This makes a pool go full which confounds the wait for healthy check
during restarts.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/rados/test-upgrade-v11.0.0: skip api_io *CmpExt*
Sage Weil [Wed, 9 Aug 2017 13:56:21 +0000 (09:56 -0400)]
qa/workunits/rados/test-upgrade-v11.0.0: skip api_io *CmpExt*

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/rados/test-upgrade-11.0.0: skip RoundTrip3
Sage Weil [Mon, 7 Aug 2017 18:01:58 +0000 (14:01 -0400)]
qa/workunits/rados/test-upgrade-11.0.0: skip RoundTrip3

This does the crc op, which isn't in jewel.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16343 from dillaman/wip-20630-jewel
Jason Dillaman [Mon, 7 Aug 2017 14:07:13 +0000 (10:07 -0400)]
Merge pull request #16343 from dillaman/wip-20630-jewel

jewel: tests: qa/tasks: rbd-mirror daemon not properly run in foreground mode

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoceph-disk: dmcrypt cluster must default to ceph 16870/head
Loic Dachary [Thu, 3 Aug 2017 08:56:24 +0000 (10:56 +0200)]
ceph-disk: dmcrypt cluster must default to ceph

If ceph_fsid is not found, which is the case for legacy dmcrypted OSD,
the cluster must default to ceph, as it was before support for non
standard cluster names was introduced.

Fixes: http://tracker.ceph.com/issues/20893
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit ed22159fdd7071a110e81cd7b63d7e0f2296761b)

7 years agoMerge pull request #13507 from shinobu-x/wip-18468-jewel
Nathan Cutler [Tue, 1 Aug 2017 11:06:54 +0000 (13:06 +0200)]
Merge pull request #13507 from shinobu-x/wip-18468-jewel

jewel: mon: Disallow enabling 'hashpspool' option to a pool without some kind of --i-understand-this-will-remap-all-pgs flag

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosdc/Filer: truncate large file party by party 15442/head
Yan, Zheng [Tue, 25 Apr 2017 08:21:24 +0000 (16:21 +0800)]
osdc/Filer: truncate large file party by party

Fixes: http://tracker.ceph.com/issues/19755
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 5fab215e461e5ecc36c0f9d9ea867f6c45e80263)

Conflicts:
src/osdc/Filer.h
src/osdc/Filer.cc
    - add parameter to fit _modify (need onack parameter)
src/mds/MDCache.cc
    - make truncate() consistency

8 years agojewel: mon: Fix status output warning for mon_warn_osd_usage_min_max_delta 15050/head
David Zafman [Fri, 7 Jul 2017 17:53:41 +0000 (10:53 -0700)]
jewel: mon: Fix status output warning for mon_warn_osd_usage_min_max_delta

Fixes: http://tracker.ceph.com/issues/20544
Caued by: 489e810c37ed6fb9d32d1015634041a577501ee4

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

Conflicts:
apply changes to src/mon/PGMonitor.cc instead of src/mon/PGMap.cc

8 years agoMerge pull request #16289 from cbodley/wip-20513
Matt Benjamin [Thu, 20 Jul 2017 19:00:32 +0000 (15:00 -0400)]
Merge pull request #16289 from cbodley/wip-20513

jewel: rgw: cls: ceph::timespan tag_timeout wrong units

8 years agoqa/tasks: rbd-mirror daemon not properly run in foreground mode 16343/head
Jason Dillaman [Fri, 14 Jul 2017 14:32:28 +0000 (10:32 -0400)]
qa/tasks: rbd-mirror daemon not properly run in foreground mode

Fixes: http://tracker.ceph.com/issues/20630
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4fa1918717b25a5ffafbf649eedcfe7d5ab829c2)

8 years ago10.2.9 v10.2.9
Jenkins Build Slave User [Thu, 13 Jul 2017 13:04:57 +0000 (13:04 +0000)]
10.2.9

8 years agoMerge pull request #16282 from smithfarm/wip-20599-jewel
Nathan Cutler [Thu, 13 Jul 2017 08:31:31 +0000 (10:31 +0200)]
Merge pull request #16282 from smithfarm/wip-20599-jewel

jewel: cephfs: Damaged MDS with 10.2.8

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agorgw: allow larger payload for period commit 15447/head
Casey Bodley [Wed, 5 Apr 2017 18:20:20 +0000 (14:20 -0400)]
rgw: allow larger payload for period commit

testing with 3 zonegroups and 3 zones each, the period json grew larger
than 4k and caused decode failures on period commit

updated to use the new config variable rgw_max_put_param_size

Fixes: http://tracker.ceph.com/issues/19505
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 7f2871fe59d933b03f37fde40f1781b2320d0d50)

Conflicts:
    src/rgw/rgw_rest_realm.cc - in RGWOp_Period_Post::execute(), set max_size
        explicitly instead of backporting rgw_max_put_param_size

8 years agorgw: cls: ceph::timespan tag_timeout wrong units 16289/head
Matt Benjamin [Thu, 29 Jun 2017 19:19:36 +0000 (15:19 -0400)]
rgw: cls: ceph::timespan tag_timeout wrong units

In rgw_dir_suggest(), the ceph::timespan tag_timeout is intended
to be a value in seconds, but has been taken as something much
smaller (millis?).  The incorrect time scale likely induces a race
condition with object deletes.

Fixes: http://tracker.ceph.com/issues/20380
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e6763ebd6124c1b4736c5c7850077df7644bc8f5)

8 years agoRevert "osdc/Journaler: make header write_pos align to boundary of flushed entry" 16282/head
Nathan Cutler [Wed, 12 Jul 2017 06:40:20 +0000 (08:40 +0200)]
Revert "osdc/Journaler: make header write_pos align to boundary of flushed entry"

This reverts commit 2e299b50de4a297fee2aec21290632336d239857.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoRevert "osdc/Journaler: avoid executing on_safe contexts prematurely"
Nathan Cutler [Wed, 12 Jul 2017 06:40:13 +0000 (08:40 +0200)]
Revert "osdc/Journaler: avoid executing on_safe contexts prematurely"

This reverts commit 06cf9f365033f7913051bdf4060f0bc6fc0444d7.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #16273 from smithfarm/wip-jewel-pending-release-notes
Sage Weil [Tue, 11 Jul 2017 20:58:04 +0000 (15:58 -0500)]
Merge pull request #16273 from smithfarm/wip-jewel-pending-release-notes

jewel: doc: clarify status of jewel PendingReleaseNotes

8 years agodoc: zero PendingReleaseNotes in preparation for v10.2.9 16273/head
Nathan Cutler [Tue, 11 Jul 2017 20:53:56 +0000 (22:53 +0200)]
doc: zero PendingReleaseNotes in preparation for v10.2.9

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agodoc: clarify status of jewel PendingReleaseNotes
Nathan Cutler [Tue, 11 Jul 2017 20:27:33 +0000 (22:27 +0200)]
doc: clarify status of jewel PendingReleaseNotes

Status as of 10.2.8 release

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agorpm: Fix undefined FIRST_ARG 14346/head
Boris Ranto [Fri, 7 Jul 2017 10:37:55 +0000 (12:37 +0200)]
rpm: Fix undefined FIRST_ARG

If FIRST_ARG is undefined, the rpms will show an error on upgrade
because the condition in the postun script gets broken.

This was a regression introduced by commit for issue 20077 that moved
ceph-disk unit files to ceph-base.

Fixes: http://tracker.ceph.com/issues/20077
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 562816914ccca8e4e7d9c31f333db2f0da6f7c99)

8 years agoselinux: Install ceph-base before ceph-selinux
Boris Ranto [Mon, 5 Jun 2017 16:44:18 +0000 (18:44 +0200)]
selinux: Install ceph-base before ceph-selinux

We need to have ceph-base installed before ceph-selinux to use ceph-disk
in %post script. The default ordering is random and so the installation
randomly failed to relabel the files.

Fixes: http://tracker.ceph.com/issues/20184
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit e69086645d3411a2ed781609b670eb5f16ac4810)
Conflicts:
ceph.spec.in: No _epoch_prefix in jewel

8 years ago10.2.8 v10.2.8
Jenkins Build Slave User [Thu, 6 Jul 2017 14:56:18 +0000 (14:56 +0000)]
10.2.8

8 years agoMerge pull request #14710 from smithfarm/wip-start-race
Nathan Cutler [Tue, 4 Jul 2017 15:43:57 +0000 (17:43 +0200)]
Merge pull request #14710 from smithfarm/wip-start-race

tests: rados: sleep before ceph tell osd.0 flush_pg_stats after restart

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #16089 from ceph/wip_fix_point_jewel
Yuri Weinstein [Tue, 4 Jul 2017 14:31:50 +0000 (07:31 -0700)]
Merge pull request #16089 from ceph/wip_fix_point_jewel

qa/Fixed upgrade sequence to 10.2.0 -> 10.2.7 -> latest -x (10.2.8)

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #16088 from smithfarm/wip-fix-client-upgrade-centos
Yuri Weinstein [Tue, 4 Jul 2017 00:23:43 +0000 (17:23 -0700)]
Merge pull request #16088 from smithfarm/wip-fix-client-upgrade-centos

tests: run upgrade/client-upgrade on latest CentOS 7.3

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agoFixed upgrade sequence to 10.2.0 -> 10.2.7 -> latest -x (10.2.8) 16089/head
Yuri Weinstein [Mon, 3 Jul 2017 21:18:14 +0000 (14:18 -0700)]
Fixed upgrade sequence to 10.2.0 -> 10.2.7 -> latest -x (10.2.8)

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
8 years agotests: run upgrade/client-upgrade on latest CentOS 7.3 16088/head
Nathan Cutler [Mon, 3 Jul 2017 20:55:21 +0000 (22:55 +0200)]
tests: run upgrade/client-upgrade on latest CentOS 7.3

Before this patch, all centos jobs were failing because there are no longer any
CentOS 7.2 machines in Sepia.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15504 from Vicente-Cheng/wip-20151-jewel
Nathan Cutler [Fri, 30 Jun 2017 14:43:38 +0000 (16:43 +0200)]
Merge pull request #15504 from Vicente-Cheng/wip-20151-jewel

jewel: ceph-disk: do not setup_statedir on trigger

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15904 from smithfarm/wip-20413-jewel
Nathan Cutler [Wed, 28 Jun 2017 08:20:23 +0000 (10:20 +0200)]
Merge pull request #15904 from smithfarm/wip-20413-jewel

jewel: tests: upgrade:hammer-x/stress-split-erasure-code-x86_64 fails in 10.2.8 integration testing

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14930 from smithfarm/wip-19829-jewel
Nathan Cutler [Wed, 28 Jun 2017 06:16:33 +0000 (08:16 +0200)]
Merge pull request #14930 from smithfarm/wip-19829-jewel

jewel: tests: New upgrade test for #14930

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14392 from asheplyakov/19508-jewel
Nathan Cutler [Wed, 28 Jun 2017 06:16:04 +0000 (08:16 +0200)]
Merge pull request #14392 from asheplyakov/19508-jewel

jewel: osd: pg_pool_t::encode(): be compatible with Hammer <= 0.94.6

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agotests: upgrade/hammer-x/v0-94-6-mon-overload: tweak packages list 14930/head
Nathan Cutler [Sun, 25 Jun 2017 08:32:16 +0000 (10:32 +0200)]
tests: upgrade/hammer-x/v0-94-6-mon-overload: tweak packages list

Include some hammer dependencies that aren't in the jewel default packages
list, and exclude some java packages that may not be in the hammer repo and are
not needed for the upgrade test in any case.

N.B.: This cannot be cherry-picked from master because upgrade/hammer-x was
dropped in master.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: upgrade/hammer-x: new v0-94-6-mon-overload subsuite
Nathan Cutler [Wed, 3 May 2017 09:39:27 +0000 (11:39 +0200)]
tests: upgrade/hammer-x: new v0-94-6-mon-overload subsuite

This is not a cherry-pick from master because direct upgrades
from hammer to kraken+ are not supported.

Fixes: http://tracker.ceph.com/issues/19829
References: http://tracker.ceph.com/issues/19508
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15936 from batrick/i20412
Nathan Cutler [Tue, 27 Jun 2017 10:41:59 +0000 (12:41 +0200)]
Merge pull request #15936 from batrick/i20412

qa: enable quotas for pre-luminous quota tests

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoqa: enable quotas for pre-luminous quota tests 15936/head
Patrick Donnelly [Tue, 27 Jun 2017 02:04:48 +0000 (19:04 -0700)]
qa: enable quotas for pre-luminous quota tests

This cannot be cherry-picked from master because the config option is removed
since 0f250a889dba2100d3afcea0a18e4f6a8d086b86.

Fixes: http://tracker.ceph.com/issues/20412
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15933 from smithfarm/wip-hammer-jewel-x
Sage Weil [Tue, 27 Jun 2017 02:24:11 +0000 (21:24 -0500)]
Merge pull request #15933 from smithfarm/wip-hammer-jewel-x

jewel: tests: drop upgrade/hammer-jewel-x

8 years agotests: drop upgrade/hammer-jewel-x 15933/head
Nathan Cutler [Tue, 27 Jun 2017 00:27:22 +0000 (02:27 +0200)]
tests: drop upgrade/hammer-jewel-x

This suite doesn't have any test logic in it. Its existence in the jewel branch
appears to be an oversight.

This cannot be cherry-picked from master because the upgrade/hammer-jewel-x
suite is present (and justified) in master and is not currently being dropped
there.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15438 from Vicente-Cheng/wip-20027-jewel
John Spray [Mon, 26 Jun 2017 20:25:12 +0000 (16:25 -0400)]
Merge pull request #15438 from Vicente-Cheng/wip-20027-jewel

jewel: mds: issue new caps when sending reply to client

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15000 from jan--f/wip-19846-jewel
John Spray [Mon, 26 Jun 2017 20:23:48 +0000 (16:23 -0400)]
Merge pull request #15000 from jan--f/wip-19846-jewel

jewel: cephfs: normalize file open flags internally used by cephfs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15383 from asheplyakov/20014-bp-jewel
Nathan Cutler [Mon, 26 Jun 2017 16:25:03 +0000 (18:25 +0200)]
Merge pull request #15383 from asheplyakov/20014-bp-jewel

jewel: cls/rgw: list_plain_entries() stops before bi_log entries

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #15870 from smithfarm/wip-swift-task-move-jewel
Zack Cerza [Mon, 26 Jun 2017 16:17:03 +0000 (10:17 -0600)]
Merge pull request #15870 from smithfarm/wip-swift-task-move-jewel

tests: move swift.py task from teuthology to ceph, phase one (jewel)

8 years agoMerge pull request #15842 from smithfarm/wip-sortbitwise-jewel
Nathan Cutler [Mon, 26 Jun 2017 07:24:04 +0000 (09:24 +0200)]
Merge pull request #15842 from smithfarm/wip-sortbitwise-jewel

qa/suites/upgrade/hammer-x: set "sortbitwise" for jewel clusters

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15468 from smithfarm/wip-20140-jewel
John Spray [Sun, 25 Jun 2017 23:59:40 +0000 (19:59 -0400)]
Merge pull request #15468 from smithfarm/wip-20140-jewel

jewel: cephfs: Journaler may execute on_safe contexts prematurely

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agotests: swift.py: tweak imports 15870/head
Nathan Cutler [Sun, 25 Jun 2017 10:42:36 +0000 (12:42 +0200)]
tests: swift.py: tweak imports

The ".." form only works within the teuthology repo. With swift.py now in the
Ceph repo, we have to be explicit.

Error message was: "ValueError: Attempted relative import beyond toplevel
package

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: upgrade/hammer-x/stress-split: tweak packages list 15904/head
Nathan Cutler [Sun, 25 Jun 2017 08:27:58 +0000 (10:27 +0200)]
tests: upgrade/hammer-x/stress-split: tweak packages list

Include some hammer dependencies that aren't in the jewel default packages
list, and exclude some java packages that may not be in the hammer repo and are
not needed for the upgrade test in any case.

N.B.: This cannot be cherry-picked from master because upgrade/hammer-x was
dropped in master.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: swift.py: clone the ceph-jewel branch
Nathan Cutler [Sun, 25 Jun 2017 07:27:47 +0000 (09:27 +0200)]
tests: swift.py: clone the ceph-jewel branch

The master branch of ceph/swift.git contains tests that are incompatible with
Jewel and Hammer. The ceph-jewel branch omits these tests.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15472 from smithfarm/wip-20148-jewel
John Spray [Fri, 23 Jun 2017 12:02:48 +0000 (08:02 -0400)]
Merge pull request #15472 from smithfarm/wip-20148-jewel

jewel: mds: Too many stat ops when trying to probe a large file

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge branch 'master' of /home/smithfarm/src/ceph/upstream/teuthology into wip-swift...
Nathan Cutler [Fri, 23 Jun 2017 06:35:27 +0000 (08:35 +0200)]
Merge branch 'master' of /home/smithfarm/src/ceph/upstream/teuthology into wip-swift-task-move-jewel

8 years agotests: move swift.py task to qa/tasks
Nathan Cutler [Fri, 23 Jun 2017 06:27:42 +0000 (08:27 +0200)]
tests: move swift.py task to qa/tasks

In preparation for moving this task from ceph/teuthology.git into ceph/ceph.git

The move is necessary because jewel-specific changes are needed, yet teuthology
does not maintain a separate branch for jewel. Also, swift.py is a
Ceph-specific task so it makes more sense to have it in Ceph.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15529 from badone/wip-async-sleep-timer-fix-jewel
Nathan Cutler [Thu, 22 Jun 2017 20:07:23 +0000 (22:07 +0200)]
Merge pull request #15529 from badone/wip-async-sleep-timer-fix-jewel

jewel:  osd: Implement asynchronous scrub sleep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoqa/suites/upgrade/hammer-x: set "sortbitwise" for jewel clusters 15842/head
Nathan Cutler [Thu, 22 Jun 2017 09:32:42 +0000 (11:32 +0200)]
qa/suites/upgrade/hammer-x: set "sortbitwise" for jewel clusters

Inspired by 3734280522a913ca8340ebc98b80978f63bade6f

This cannot be cherry-picked from master because master does not have
qa/suites/upgrade/hammer-x

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15824 from tchaikov/jewel
Kefu Chai [Thu, 22 Jun 2017 03:59:51 +0000 (11:59 +0800)]
Merge pull request #15824 from tchaikov/jewel

qa/workunits/rados/test-upgrade-*: whitelist tests the right way

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa/workunits/rados/test-upgrade-*: whitelist tests the right way 15824/head
Kefu Chai [Thu, 22 Jun 2017 00:06:43 +0000 (08:06 +0800)]
qa/workunits/rados/test-upgrade-*: whitelist tests the right way

--gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS], so we cannot add
multiple exclusive patterns using -pattern:-pattern, instead, we should
use: -pattern:pattern

Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
        qa/workunits/rados/test-upgrade-v11.0.0.sh: this change is not
    cherry-picked from master, because the clone-range op was removed
    from master. and only supported in pre-luminous releases.

8 years agoMerge pull request #14661 from smithfarm/wip-19575-jewel
Nathan Cutler [Tue, 20 Jun 2017 20:54:00 +0000 (22:54 +0200)]
Merge pull request #14661 from smithfarm/wip-19575-jewel

jewel: rgw: unsafe access in RGWListBucket_ObjStore_SWIFT::send_response()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15778 from tchaikov/wip-upgrade-without-clone-range-jewel
Kefu Chai [Tue, 20 Jun 2017 14:42:47 +0000 (22:42 +0800)]
Merge pull request #15778 from tchaikov/wip-upgrade-without-clone-range-jewel

qa/workunits/rados/test-upgrade-*: whitelist tests for master

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agojewel: osd: pg_pool_t::encode(): be compatible with Hammer <= 0.94.6 14392/head
Alexey Sheplyakov [Fri, 7 Apr 2017 08:34:20 +0000 (12:34 +0400)]
jewel: osd: pg_pool_t::encode(): be compatible with Hammer <= 0.94.6

This patch is necessary for Jewel only since direct upgrades from Hammer
to Kraken and newer are not supported.

Fixes: http://tracker.ceph.com/issues/19508
Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
8 years agoqa/workunits/rados/test-upgrade-*: whitelist tests for master 15778/head
Kefu Chai [Tue, 20 Jun 2017 11:49:14 +0000 (19:49 +0800)]
qa/workunits/rados/test-upgrade-*: whitelist tests for master

The jewel-x upgrade test now runs this script against a mixed cluster on
a machine with code from master installed.  That means we have to
skip any new tests that will fail on a mixed cluster. CloneRange was
removed in 0d7b0b7.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
    qa/workunits/rados/test-upgrade-v11.0.0.sh: this change is not
cherry-picked from master, because the clone-range op was removed from
master. and only supported in pre-luminous releases.

8 years agomds: issue new caps when sending reply to client 15438/head
Yan, Zheng [Sat, 22 Apr 2017 04:27:12 +0000 (12:27 +0800)]
mds: issue new caps when sending reply to client

After Locker::issue_new_caps() adds new Capability data struct,
do not issue caps immediately. Let CInode::encode_inodestate()
do the job instead. This can avoid various races that early reply
is not allowed, caps that haven't been sent to client gets revoked.

Fixes: http://tracker.ceph.com/issues/19635
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 799703a4acb49db0b6cc99a23e4326767e694c3a)

8 years agoceph-disk: do not setup_statedir on trigger 15504/head
Loic Dachary [Thu, 1 Jun 2017 09:37:20 +0000 (11:37 +0200)]
ceph-disk: do not setup_statedir on trigger

trigger may run when statedir is unavailable and does not use it.

Fixes: http://tracker.ceph.com/issues/19941
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 16bfbdd3d9988523bba31aace516c303057daa58)

8 years agotests: rados: sleep before ceph tell osd.0 flush_pg_stats after restart 14710/head
Nathan Cutler [Fri, 21 Apr 2017 09:05:05 +0000 (11:05 +0200)]
tests: rados: sleep before ceph tell osd.0 flush_pg_stats after restart

Even though we wait for HEALTH_OK after restarting the daemons, they are not
ready to respond to flush_pg_stats.

The reason why the osd is not ready for "tell" command after "ceph health"
shows that the cluster is "HEALTH_OK" is that the monitor fails to be notified
that the osd in question is not up in "heatbeat_interval". Because infernalis
does not have the osd_fast_fail_on_connection_refused support, the monitor
needs longer to detect that an osd is down, and osd_heartbeat_grace is used to
determine if an osd is down.

References: http://tracker.ceph.com/issues/16239
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: fix crash when listing objects via swift 14661/head
Yehuda Sadeh [Wed, 8 Mar 2017 22:52:34 +0000 (14:52 -0800)]
rgw: fix crash when listing objects via swift

Fixes: http://tracker.ceph.com/issues/19249
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit a9ec5e8ce184e19c009863db4d3519f9d8af91bd)

Conflicts:
        src/rgw/rgw_rest_swift.cc ("key" element of RGWObjEnt struct
           is not a reference; fix)

(cherry picked from commit 92b35155ff7b7492f3c50bf4f2ff0ffef2ca1c55)

8 years agomds: set ceph-mds name uncond for external tools 14673/head
Patrick Donnelly [Fri, 17 Mar 2017 01:45:46 +0000 (21:45 -0400)]
mds: set ceph-mds name uncond for external tools

External tools like logrotate which use killall rely on the "ceph-mds" name to
find it in /proc/*/comm. This is normally the case but when ceph-mds respawns
using /proc/self/exe (on Linux), its name will change to "exe". This makes
logrotate fail to signal ceph-mds the log needs to be reopened and will lead to
the log growing until the disk is full.

This patch unconditionally sets the name so on respawn the name is correct (and
in any other possible scenario, such as a misnamed executable).  Note, there is
still a very small race between execve and ceph_pthread_setname where the
process name is wrong.

Problem was introduced by 66a122025f6cf023cf7b2f3d8fbe4964fb7568a7.

Fixes: http://tracker.ceph.com/issues/19291
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 4f177bb6b72cf9c8eb363051b27496c026b345f0)

Conflicts:
    src/ceph_mds.cc - use pthread_setname_np() instead of
        ceph_pthread_setname(), drop compat.h include

8 years agosuites: update log whitelist for scrub msg 14699/head
John Spray [Thu, 29 Sep 2016 16:14:54 +0000 (17:14 +0100)]
suites: update log whitelist for scrub msg

Fixes: http://tracker.ceph.com/issues/16016
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 795094628b65eb9c3f5d51c6c895fe1443c5f4cf)

Conflicts:
suites/fs/recovery/tasks/forward-scrub.yaml (file does not exist in jewel)

8 years agomds: include advisory `path` field in damage
John Spray [Thu, 23 Mar 2017 13:07:32 +0000 (09:07 -0400)]
mds: include advisory `path` field in damage

This will just be whatever path we were looking
at at the point that damage was notified -- no
intention whatsoever of providing any up to date
path or resolution when there are multiple paths
to an inode.

Fixes: http://tracker.ceph.com/issues/18509
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit c0bff51ef409eb6e4b2fc248e06e5a7e43faf51e)

Conflicts:
    src/mds/CDir.cc - omit dout(10) because jewel does not have cb86740a
    src/mds/ScrubStack.cc - jewel does not have 7b456109 which changed
       in->make_path_string_projected() call to in->make_path_string() but
       it's moot because that line is dropped

8 years agomds: populate DamageTable from scrub and log more quietly
John Spray [Mon, 19 Sep 2016 19:25:58 +0000 (20:25 +0100)]
mds: populate DamageTable from scrub and log more quietly

Fixes: http://tracker.ceph.com/issues/16016
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 9c82040b1a762a3498c6794a29a43b3866f30dab)

8 years agomds: tidy up ScrubHeader
John Spray [Mon, 19 Sep 2016 17:26:42 +0000 (18:26 +0100)]
mds: tidy up ScrubHeader

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

Conflicts:
src/mds/CInode.cc (jewel does not have 5259683e7819c22c14b21b1dd678a33e14574f21)

8 years agomds: remove redundant checks for null ScrubHeader
John Spray [Mon, 19 Sep 2016 16:35:54 +0000 (17:35 +0100)]
mds: remove redundant checks for null ScrubHeader

This was originally optional but now all the paths
that kick off a scrub should be going through
enqueue_scrub and thereby getting a header set.

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

Conflicts:
src/mds/CInode.cc (jewel does not have 5259683e7819c22c14b21b1dd678a33e14574f21)

8 years agomds/DamageTable: move classes to .cc file
Michal Jarzabek [Tue, 11 Oct 2016 20:23:57 +0000 (21:23 +0100)]
mds/DamageTable: move classes to .cc file

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
(cherry picked from commit 96018b0a85d0bc7eec285398dd596ee01d16fae7)

8 years agoMerge pull request #14752 from cbodley/wip-19474
Nathan Cutler [Mon, 19 Jun 2017 20:46:47 +0000 (22:46 +0200)]
Merge pull request #14752 from cbodley/wip-19474

jewel: rgw: allow system users to read SLO parts

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agobuild/ops: rpm: fix python-Sphinx package name for SUSE 15196/head
Nathan Cutler [Tue, 9 May 2017 09:42:58 +0000 (11:42 +0200)]
build/ops: rpm: fix python-Sphinx package name for SUSE

This commit moves "BuildRequires: python-sphinx" down to the RH/CentOS/Fedora
distro conditional and adds a "BuildRequires: python-Sphinx" to the SUSE
conditional.

Signed-off-by: Jan Matejek <jmatejek@suse.com>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 0688f57d1c35692cdddf219d9ac3571d03dbb8e0)

8 years agorgw: remove unnecessary output 15197/head
weiqiaomiao [Tue, 14 Jun 2016 07:34:08 +0000 (15:34 +0800)]
rgw: remove unnecessary output

a lot of radosgw-admin command will output
"error in read_id for object name: default : (2) No such file or directory"
when the zone named 'default' is not exist:

Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
(cherry picked from commit 4e9c7be08b9828db2795536ce170a675d25bc1ed)

8 years agorgw: fix for zonegroup redirect url 15448/head
Casey Bodley [Tue, 4 Apr 2017 14:42:44 +0000 (10:42 -0400)]
rgw: fix for zonegroup redirect url

local dest_url variable was shadowing the one in the enclosing scope, so
the changes were not applied and no Location header was written on redirect

Fixes: http://tracker.ceph.com/issues/19488
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 542e188a40f0495720b48308372366951ae41e62)