]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorbd-mirror: correct race conditions within leader watcher 13737/head
Jason Dillaman [Fri, 3 Mar 2017 21:06:25 +0000 (16:06 -0500)]
rbd-mirror: correct race conditions within leader watcher

It was possible for multiple, concurrent acquire attempts to be
running for a single instance due to notification messages. Now
only a single acquire state machine can be running.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: improve debug log messages for managed lock
Jason Dillaman [Fri, 3 Mar 2017 17:38:18 +0000 (12:38 -0500)]
librbd: improve debug log messages for managed lock

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest: potential shutdown race in TestMockImageReplayer.DecodeError
Jason Dillaman [Thu, 2 Mar 2017 17:04:45 +0000 (12:04 -0500)]
test: potential shutdown race in TestMockImageReplayer.DecodeError

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: avoid duplicating librados IoCtx objects if not needed
Jason Dillaman [Thu, 2 Mar 2017 15:29:36 +0000 (10:29 -0500)]
librbd: avoid duplicating librados IoCtx objects if not needed

This introduces the potential for shutdown race conditions within
the unit tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: support blacklisting of connections
Jason Dillaman [Wed, 1 Mar 2017 23:40:05 +0000 (18:40 -0500)]
test/librados_test_stub: support blacklisting of connections

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: watch/notify should be connection-aware
Jason Dillaman [Wed, 1 Mar 2017 22:27:23 +0000 (17:27 -0500)]
test/librados_test_stub: watch/notify should be connection-aware

Utilize the AIO completion thread of the local connection to best
simulate how librados actually performs when connected a cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest/librados_test_stub: separate mock cluster from connection
Jason Dillaman [Wed, 1 Mar 2017 21:21:20 +0000 (16:21 -0500)]
test/librados_test_stub: separate mock cluster from connection

The plan to support independent connections sharing the same
view of the mocked cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13857 from liupan1111/wip-rename-onack-to-oncommit
Sage Weil [Thu, 9 Mar 2017 21:16:19 +0000 (15:16 -0600)]
Merge pull request #13857 from liupan1111/wip-rename-onack-to-oncommit

librados: replace the var name from onack to complete

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11485 from yehudasa/wip-bucket-cleanup
Yehuda Sadeh [Thu, 9 Mar 2017 18:16:48 +0000 (10:16 -0800)]
Merge pull request #11485 from yehudasa/wip-bucket-cleanup

rgw structures rework

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13758 from dillaman/wip-18748
Mykola Golub [Thu, 9 Mar 2017 18:15:17 +0000 (20:15 +0200)]
Merge pull request #13758 from dillaman/wip-18748

rbd: demote/promote all mirrored images in a pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorgw: fix crash when listing objects via swift 11485/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>
8 years agoqa/tasks/radosgw_admin: adjust test to new bucket structure
Yehuda Sadeh [Wed, 8 Mar 2017 22:27:14 +0000 (14:27 -0800)]
qa/tasks/radosgw_admin: adjust test to new bucket structure

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: more fixes following rebase
Yehuda Sadeh [Sat, 18 Feb 2017 00:37:08 +0000 (16:37 -0800)]
rgw: more fixes following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: new rest api to retrieve object layout
Yehuda Sadeh [Mon, 9 Jan 2017 21:04:43 +0000 (13:04 -0800)]
rgw: new rest api to retrieve object layout

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: get_obj_state() checks for empty oids
Yehuda Sadeh [Thu, 5 Jan 2017 21:15:56 +0000 (13:15 -0800)]
rgw: get_obj_state() checks for empty oids

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: metadata put of bucket instance sets bucket_id
Yehuda Sadeh [Tue, 20 Dec 2016 21:32:57 +0000 (13:32 -0800)]
rgw: metadata put of bucket instance sets bucket_id

Need to parse the bucket id off the entry and then set it on the
bucket struct.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw_admin: remove broken check
Yehuda Sadeh [Tue, 20 Dec 2016 21:32:17 +0000 (13:32 -0800)]
rgw_admin: remove broken check

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agomrgw.sh: fix script
Yehuda Sadeh [Mon, 19 Dec 2016 22:33:18 +0000 (14:33 -0800)]
mrgw.sh: fix script

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix async cr operation
Yehuda Sadeh [Mon, 19 Dec 2016 22:15:36 +0000 (14:15 -0800)]
rgw: fix async cr operation

Fix crash due to code cleanup. Changes scope of obj ref.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: modify default pools to use namespaces
Yehuda Sadeh [Fri, 16 Dec 2016 23:41:23 +0000 (15:41 -0800)]
rgw: modify default pools to use namespaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: handle pools namespace
Yehuda Sadeh [Fri, 16 Dec 2016 23:43:40 +0000 (15:43 -0800)]
rgw: handle pools namespace

Use rgw_pool all around, and replace librados::create_ioctx() with
helper that also sets the namespace.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add namespace to rgw_pool
Yehuda Sadeh [Fri, 16 Dec 2016 02:14:58 +0000 (18:14 -0800)]
rgw: add namespace to rgw_pool

add a namespace field to the rgw_pool struct

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: compilation and other fixes following rebase
Yehuda Sadeh [Thu, 15 Dec 2016 00:09:13 +0000 (16:09 -0800)]
rgw: compilation and other fixes following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: move placement rule out of rgw_bucket
Yehuda Sadeh [Mon, 28 Nov 2016 16:27:41 +0000 (08:27 -0800)]
rgw: move placement rule out of rgw_bucket

Bucket's placement rule is in the bucket instance's info. Object's
placement rule is in the manifest

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/version: add more useful logging
Yehuda Sadeh [Tue, 22 Nov 2016 18:36:15 +0000 (10:36 -0800)]
cls/version: add more useful logging

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix ECANCELED handling in rgw_get_system_obj()
Yehuda Sadeh [Tue, 22 Nov 2016 18:33:12 +0000 (10:33 -0800)]
rgw: fix ECANCELED handling in rgw_get_system_obj()

Fixes: http://tracker.ceph.com/issues/17996
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: keep rgw_obj key info in rgw_obj_key field
Yehuda Sadeh [Mon, 21 Nov 2016 22:10:21 +0000 (14:10 -0800)]
rgw: keep rgw_obj key info in rgw_obj_key field

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add rgw_obj_index_key, kill RGWObjEnt
Yehuda Sadeh [Thu, 17 Nov 2016 23:26:35 +0000 (15:26 -0800)]
rgw: add rgw_obj_index_key, kill RGWObjEnt

Use rgw_obj_index_key to represent entries in bucket index (typedef of
cls_rgw_obj_key). Get rid of RGWObjEnt, it was duplicate of rgw_bucket_dir_entry
anyway.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: clean rgw_obj
Yehuda Sadeh [Thu, 17 Nov 2016 00:20:17 +0000 (16:20 -0800)]
rgw: clean rgw_obj

Instead of storing the oid and the name, just store the name
and calculate it when needed (same goes to locator). Also give more
coherent names to the various fields.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix bucket overwrite
Yehuda Sadeh [Wed, 16 Nov 2016 01:14:24 +0000 (17:14 -0800)]
rgw: fix bucket overwrite

got broken through the rgw_bucket cleanup related work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agotest/rgw: extend obj, manifest unitests
Yehuda Sadeh [Mon, 31 Oct 2016 22:55:20 +0000 (15:55 -0700)]
test/rgw: extend obj, manifest unitests

Test rgw_raw_obj and upgrade of old rgw_obj, rgw_bucket and
old manifest.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: implicit rgw_bucket placement, manifest uses rgw_raw_obj
Yehuda Sadeh [Mon, 31 Oct 2016 22:56:26 +0000 (15:56 -0700)]
rgw: implicit rgw_bucket placement, manifest uses rgw_raw_obj

Two main changes here:
1. Newly created rgw_bucket does not have a predetermined placement pools
assigned to it. The placement_id param in the objects themselves points
at where the data is located. This affects object's tail location, head
is located where the bucket instance's placement rule points at.
2. Modify object manifest to use rgw_raw_obj instead of rgw_obj.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: simple manifest compaction
Yehuda Sadeh [Thu, 13 Oct 2016 22:57:46 +0000 (15:57 -0700)]
rgw: simple manifest compaction

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: use rgw_raw_obj in manifest code
Yehuda Sadeh [Thu, 13 Oct 2016 03:22:01 +0000 (20:22 -0700)]
rgw: use rgw_raw_obj in manifest code

This drags in multiple related changes that are needed in order to
support that.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: decode rgw_raw_obj as rgw_obj when it's old object
Yehuda Sadeh [Tue, 11 Oct 2016 22:44:17 +0000 (15:44 -0700)]
rgw: decode rgw_raw_obj as rgw_obj when it's old object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: remove unneeded virtual declarations
Yehuda Sadeh [Tue, 11 Oct 2016 22:06:37 +0000 (15:06 -0700)]
rgw: remove unneeded virtual declarations

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: more fixes and adjustments following rgw_pool, rgw_raw_obj
Yehuda Sadeh [Mon, 10 Oct 2016 22:09:35 +0000 (15:09 -0700)]
rgw: more fixes and adjustments following rgw_pool, rgw_raw_obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: separate RGWObjState
Yehuda Sadeh [Sun, 9 Oct 2016 05:16:18 +0000 (22:16 -0700)]
rgw: separate RGWObjState

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: introduce rgw_pool, rgw_raw_obj
Yehuda Sadeh [Sat, 8 Oct 2016 04:03:32 +0000 (21:03 -0700)]
rgw: introduce rgw_pool, rgw_raw_obj

Pools are represented by rgw_pool (and not rgw_bucket anymore),
and we use rgw_raw_obj to reference rados objs and all 'system'
objects (vs rgw_obj that is used for rgw objects).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agolibrados: replace the var name from onact to oncomplete. 13857/head
Pan Liu [Thu, 9 Mar 2017 12:58:26 +0000 (20:58 +0800)]
librados: replace the var name from onact to oncomplete.

Signed-off-by: Pan Liu <pan.liu@istuary.com>
8 years agoMerge pull request #13901 from Adirl/default
Sage Weil [Thu, 9 Mar 2017 15:35:29 +0000 (09:35 -0600)]
Merge pull request #13901 from Adirl/default

msg/async/rdma: compile with rdma as default

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13760 from zhangsw/fix-rgw-torrent-uri
Casey Bodley [Thu, 9 Mar 2017 14:53:27 +0000 (09:53 -0500)]
Merge pull request #13760 from zhangsw/fix-rgw-torrent-uri

rgw: get torrent request's parameter is not the same as amazon s3.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13660 from shashalu/rgw-read-sync-status
Casey Bodley [Thu, 9 Mar 2017 14:47:29 +0000 (09:47 -0500)]
Merge pull request #13660 from shashalu/rgw-read-sync-status

rgw: use separate http_manager for read_sync_status

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13878 from smithfarm/wip-jewel-release-notes-fixup
Abhishek L [Thu, 9 Mar 2017 14:17:12 +0000 (15:17 +0100)]
Merge pull request #13878 from smithfarm/wip-jewel-release-notes-fixup

doc: mention ENXIO change in the 10.2.6 release notes

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agomsg/async/rdma: compile with rdma as default 13901/head
DanielBar-On [Wed, 1 Mar 2017 14:58:37 +0000 (14:58 +0000)]
msg/async/rdma: compile with rdma as default

Issue: 992583
Issue: 992580

Change-Id: I24128b87294d3083c44c934f7d4bed554dd1f8a4
Signed-off-by: DanielBar-On <danielbo@mellanox.com>
8 years agoMerge pull request #13896 from optimistyzy/39_1
Haomai Wang [Thu, 9 Mar 2017 08:21:35 +0000 (16:21 +0800)]
Merge pull request #13896 from optimistyzy/39_1

Bluestore, NVMeDevice: fix the core id for rte_remote_launch

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoBluestore, NVMeDevice: fix the core id for rte_remote_launch 13896/head
optimistyzy [Thu, 9 Mar 2017 06:30:33 +0000 (14:30 +0800)]
Bluestore, NVMeDevice: fix the core id for rte_remote_launch

Previously, we use the id. The id value will be 1 always since
we will only support one NVMe device per osd. Also we have
coremask conf , the default is 3, and we will use core 1.
It is correct. However if we specify another core mask, e.g.,
0xC, still passing 1 to start the dpdk_thread is wrong. we
need to pass core id = 4.

Since for each shareddata, we only use one cpu core, so
just passing rte_get_next_lcore(-1, 0, 0), which selects
the first slave core.

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
8 years agoMerge pull request #13891 from yehudasa/wip-vstart-not-new
Dan Mick [Thu, 9 Mar 2017 04:06:16 +0000 (20:06 -0800)]
Merge pull request #13891 from yehudasa/wip-vstart-not-new

vstart: don't create cluster by default

8 years agorgw: get torrent request's parameter is not the same as amazon s3. 13760/head
Zhang Shaowen [Fri, 3 Mar 2017 03:16:22 +0000 (11:16 +0800)]
rgw: get torrent request's parameter is not the same as amazon s3.

Fixes: http://tracker.ceph.com/issues/19136
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
8 years agoMerge pull request #13556 from tangwenjun3/wip-fix-coredump
Haomai Wang [Thu, 9 Mar 2017 01:49:02 +0000 (09:49 +0800)]
Merge pull request #13556 from tangwenjun3/wip-fix-coredump

os/bluestore: fix coredump in register_ctrlr()

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agorgw: use separate http_manager for read_sync_status 13660/head
lu.shasha [Mon, 27 Feb 2017 07:52:43 +0000 (15:52 +0800)]
rgw: use separate http_manager for read_sync_status

concurrent users of read_sync_status() use different cr managers, when get_resource must
use http_manager related to the cr manager.

Fixes: http://tracker.ceph.com/issues/19236
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
8 years agoMerge pull request #13892 from dmick/wip-19232
Yuri Weinstein [Thu, 9 Mar 2017 00:23:26 +0000 (16:23 -0800)]
Merge pull request #13892 from dmick/wip-19232

qa/suites/upgrade/kraken-x: do not thrash cluster full during upgrade

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agoqa/suites/upgrade/kraken-x: do not thrash cluster full during upgrade 13892/head
Dan Mick [Wed, 8 Mar 2017 22:19:40 +0000 (14:19 -0800)]
qa/suites/upgrade/kraken-x: do not thrash cluster full during upgrade

Same thing as 39fdc53fe5f33678fbbd00cf8810b6d523d0040c

Fixes: http://tracker.ceph.com/issues/19232
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agovstart: don't create cluster by default 13891/head
Yehuda Sadeh [Wed, 8 Mar 2017 22:17:00 +0000 (14:17 -0800)]
vstart: don't create cluster by default

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agodoc: mention ENXIO change in the 10.2.6 release notes 13878/head
Nathan Cutler [Wed, 8 Mar 2017 15:29:47 +0000 (16:29 +0100)]
doc: mention ENXIO change in the 10.2.6 release notes

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13880 from cbodley/wip-qa-submodule
Yehuda Sadeh [Wed, 8 Mar 2017 20:57:31 +0000 (12:57 -0800)]
Merge pull request #13880 from cbodley/wip-qa-submodule

build: remove ceph-qa-suite directory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13217 from liewegas/wip-bluestore-prefer-wal-size
Sage Weil [Wed, 8 Mar 2017 19:38:54 +0000 (13:38 -0600)]
Merge pull request #13217 from liewegas/wip-bluestore-prefer-wal-size

os/bluestore: add bluestore_prefer_wal_size option

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agobuild: remove ceph-qa-suite directory 13880/head
Casey Bodley [Wed, 8 Mar 2017 17:30:05 +0000 (12:30 -0500)]
build: remove ceph-qa-suite directory

after commit 3afb889 "qa: add supported distros for ceph-ansible", git
submodule update commands are failing with:

No submodule mapping found in .gitmodules for path 'ceph-qa-suite'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13785 from liewegas/wip-cleanup-features
Sage Weil [Wed, 8 Mar 2017 17:14:08 +0000 (11:14 -0600)]
Merge pull request #13785 from liewegas/wip-cleanup-features

msg: no need to pass supported features to Messenger::Policy ctor

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agodoc: update RBD mirroring instructions for pool demotion/promotion 13758/head
Jason Dillaman [Fri, 3 Mar 2017 00:58:39 +0000 (19:58 -0500)]
doc: update RBD mirroring instructions for pool demotion/promotion

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agorbd: new rbd mirror pool promote/demote actions
Jason Dillaman [Thu, 16 Feb 2017 13:04:40 +0000 (08:04 -0500)]
rbd: new rbd mirror pool promote/demote actions

Fixes: http://tracker.ceph.com/issues/18748
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: add aio_mirror_image_* API methods
Jason Dillaman [Fri, 3 Feb 2017 18:37:43 +0000 (13:37 -0500)]
librbd: add aio_mirror_image_* API methods

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: additional asynchronous mirror state machines
Jason Dillaman [Fri, 3 Feb 2017 16:16:31 +0000 (11:16 -0500)]
librbd: additional asynchronous mirror state machines

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: asynchronous journal demote state machine
Jason Dillaman [Fri, 3 Feb 2017 02:31:54 +0000 (21:31 -0500)]
librbd: asynchronous journal demote state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: move group and diff API functions
Jason Dillaman [Thu, 2 Feb 2017 18:54:13 +0000 (13:54 -0500)]
librbd: move group and diff API functions

The group and diff_iterate API functions are already in separate
units, so it's trivial to move them to the new 'api' namespace.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: move mirror-related API functions
Jason Dillaman [Thu, 2 Feb 2017 18:07:49 +0000 (13:07 -0500)]
librbd: move mirror-related API functions

Also ensure that the API helper methods can be tested via
mock test cases.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13078 from zhangsw/fix-rgw-setacl-bug
Casey Bodley [Wed, 8 Mar 2017 16:55:44 +0000 (11:55 -0500)]
Merge pull request #13078 from zhangsw/fix-rgw-setacl-bug

rgw: put object's acl can't work well on the latest object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agolibrbd: rename parent_spec/parent_info type to match code style specs
Jason Dillaman [Thu, 2 Feb 2017 17:05:47 +0000 (12:05 -0500)]
librbd: rename parent_spec/parent_info type to match code style specs

This also includes a consolidation of SnapInfo, ParentSpec, and ParentInfo
into a single header.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13852 from liewegas/wip-19133
Josh Durgin [Wed, 8 Mar 2017 15:47:49 +0000 (07:47 -0800)]
Merge pull request #13852 from liewegas/wip-19133

qa/suites: fix upgrade tests vs cluster full thrashing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13711 from tmuthamizhan/wip-add-supported-distros
Sage Weil [Wed, 8 Mar 2017 15:35:50 +0000 (09:35 -0600)]
Merge pull request #13711 from tmuthamizhan/wip-add-supported-distros

qa: add supported distros for ceph-ansible

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
8 years agoMerge pull request #13776 from Liuchang0812/wip-add-override-in-tool-headers
Sage Weil [Wed, 8 Mar 2017 15:08:16 +0000 (09:08 -0600)]
Merge pull request #13776 from Liuchang0812/wip-add-override-in-tool-headers

tools: add override in tool submodule

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13791 from runsisi/wip-rbd-ack-cleanup
Jason Dillaman [Wed, 8 Mar 2017 15:07:29 +0000 (10:07 -0500)]
Merge pull request #13791 from runsisi/wip-rbd-ack-cleanup

librbd: rbd ack cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13775 from Liuchang0812/wip-add-override-librados-headers
Sage Weil [Wed, 8 Mar 2017 15:06:47 +0000 (09:06 -0600)]
Merge pull request #13775 from Liuchang0812/wip-add-override-librados-headers

librados: add override in headers

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13774 from Liuchang0812/wip-add-override-in-common-headers
Sage Weil [Wed, 8 Mar 2017 15:06:16 +0000 (09:06 -0600)]
Merge pull request #13774 from Liuchang0812/wip-add-override-in-common-headers

common: add override in header file

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13773 from Liuchang0812/wip-add-override-in-test-headers
Sage Weil [Wed, 8 Mar 2017 15:03:20 +0000 (09:03 -0600)]
Merge pull request #13773 from Liuchang0812/wip-add-override-in-test-headers

test: add override in test submodule

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13771 from Liuchang0812/wip-add-override-in-msg-headers
Sage Weil [Wed, 8 Mar 2017 15:02:33 +0000 (09:02 -0600)]
Merge pull request #13771 from Liuchang0812/wip-add-override-in-msg-headers

common: add override in msg subsystem

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13782 from vshankar/wip-19034
Jason Dillaman [Wed, 8 Mar 2017 13:42:33 +0000 (08:42 -0500)]
Merge pull request #13782 from vshankar/wip-19034

rbd: use concurrent writes for imports

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13752 from trociny/wip-19130
Jason Dillaman [Wed, 8 Mar 2017 13:41:44 +0000 (08:41 -0500)]
Merge pull request #13752 from trociny/wip-19130

librbd: relax "is parent mirrored" check when enabling mirroring for pool

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13444 from dachary/wip-18943-device-class
Loic Dachary [Wed, 8 Mar 2017 12:16:49 +0000 (13:16 +0100)]
Merge pull request #13444 from dachary/wip-18943-device-class

crush: add devices class that rules can use as a filter

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13835 from theanalyst/doc/releases/10.2.6
Abhishek L [Wed, 8 Mar 2017 12:14:25 +0000 (13:14 +0100)]
Merge pull request #13835 from theanalyst/doc/releases/10.2.6

doc: Jewel 10.2.6 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13453 from xiaoxichen/drop_mallinfo
John Spray [Wed, 8 Mar 2017 11:56:01 +0000 (11:56 +0000)]
Merge pull request #13453 from xiaoxichen/drop_mallinfo

common/MemoryModel: Bump int to long and drop mallinfo

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13580 from ukernel/wip-18914
John Spray [Wed, 8 Mar 2017 11:48:53 +0000 (11:48 +0000)]
Merge pull request #13580 from ukernel/wip-18914

client: wait for lastest osdmap when handling set file/dir layout

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13691 from Liuchang0812/wip-add-override-in-mds-headers
John Spray [Wed, 8 Mar 2017 11:35:25 +0000 (11:35 +0000)]
Merge pull request #13691 from Liuchang0812/wip-add-override-in-mds-headers

mds: add override in headers

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #12786 from jcsp/wip-11950
John Spray [Wed, 8 Mar 2017 11:18:39 +0000 (11:18 +0000)]
Merge pull request #12786 from jcsp/wip-11950

#11950: Persistent purge queue

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agomds: handle Journaler::recover errors in PurgeQueue 12786/head
John Spray [Fri, 3 Mar 2017 12:25:05 +0000 (12:25 +0000)]
mds: handle Journaler::recover errors in PurgeQueue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update TestDamage for PurgeQueue
John Spray [Fri, 3 Mar 2017 12:24:41 +0000 (12:24 +0000)]
qa: update TestDamage for PurgeQueue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update TestFlush for changed stray perf counters
John Spray [Fri, 3 Mar 2017 10:00:15 +0000 (10:00 +0000)]
qa: update TestFlush for changed stray perf counters

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: flush PQ even when not consuming
John Spray [Wed, 1 Mar 2017 12:33:05 +0000 (12:33 +0000)]
mds: flush PQ even when not consuming

In normal operation we generate flushes from
_consume when we read from the journaler.  However,
we should also have a fallback flush mechanism for
situations where can_consume() is false fo a long time.

This comes up in testing when we set throttle to zero to
prevent progress, but would also come up in real life if
we were busy purging a few very large files, or if purging
was stuck due to bad PGs in the data pool -- we don't want
that to stop us completing appends to the PQ.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: add TestStrays.test_purge_queue_op_rate
John Spray [Mon, 13 Feb 2017 17:17:29 +0000 (17:17 +0000)]
qa: add TestStrays.test_purge_queue_op_rate

For ensuring that the PurgeQueue code is not generating
too many extra IOs.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: write_head when reading in PurgeQueue
John Spray [Mon, 13 Feb 2017 12:01:40 +0000 (12:01 +0000)]
mds: write_head when reading in PurgeQueue

Previously write_head calls were only generated
on the write side, so if you had a big queue
and were just working through consuming it, you
wouldn't record your progress, and on a daemon
restart would end up repeating a load of work.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: expose Journaler::write_head_needed
John Spray [Mon, 13 Feb 2017 12:00:42 +0000 (12:00 +0000)]
osdc: expose Journaler::write_head_needed

So that callers on the read side can optionally
do their own write_head calls according to
the same condition that Journaler uses
internally for its write_head during _flush() condition.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: remove unnecessary flush() from PurgeQueue
John Spray [Mon, 13 Feb 2017 00:50:11 +0000 (00:50 +0000)]
mds: remove unnecessary flush() from PurgeQueue

We can drive all flushing from the read side.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update for removing Timer from Journaler
John Spray [Mon, 13 Feb 2017 00:48:51 +0000 (00:48 +0000)]
mds: update for removing Timer from Journaler

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: less aggressive prefetch in read/write Journaler
John Spray [Mon, 13 Feb 2017 00:16:29 +0000 (00:16 +0000)]
osdc: less aggressive prefetch in read/write Journaler

Previously, if doing a write/is_readable/write/is_readable sequence,
you'd end up doing a flush after every write, even though there
was already a flush in flight that would advance the readable-ness
of the journal.

Because this flush-during-read path is only active when using
a read/write journal such as in PurgeQueue, tweak the behaviour
to suit this case.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: remove Journaler "journaler_batch_*" settings
John Spray [Sun, 12 Feb 2017 23:24:41 +0000 (23:24 +0000)]
osdc: remove Journaler "journaler_batch_*" settings

This was an unused code path.  If anyone set a nonzero
value here the MDS would crash because the Timer implementation
has changed since this code was written, and now requires
add_event_after callers to hold the right lock.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: add error handling in PurgeQueue
John Spray [Sat, 11 Feb 2017 14:55:52 +0000 (14:55 +0000)]
mds: add error handling in PurgeQueue

For decode errors, and for Journaler errors.
Both are considered damage to the MDS rank, as
with other per-rank data structures.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: expose progress during PurgeQueue drain
John Spray [Wed, 8 Feb 2017 16:24:24 +0000 (16:24 +0000)]
mds: expose progress during PurgeQueue drain

We don't track an item count, but we do have
a number of bytes left in the Journaler, so
can use that to give an indication of progress
while the MDS rank shutdown is waiting for
the PurgeQueue to do its thing.

Also lift the ops limit on the PurgeQueue
when it goes into the drain phase.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update PurgeQueue for single-ack OSD change
John Spray [Thu, 2 Feb 2017 14:41:49 +0000 (14:41 +0000)]
mds: update PurgeQueue for single-ack OSD change

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: create purge queue if it's not found
John Spray [Sun, 25 Dec 2016 16:45:09 +0000 (16:45 +0000)]
mds: create purge queue if it's not found

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa/cephfs: add TestStrays.test_purge_on_shutdown
John Spray [Sat, 24 Dec 2016 20:11:40 +0000 (20:11 +0000)]
qa/cephfs: add TestStrays.test_purge_on_shutdown

...and change test_migration_on_shutdown to
specifically target non-purgeable strays (i.e.
hardlink-ish things).

Signed-off-by: John Spray <john.spray@redhat.com>