Commit Graph

69492 Commits

Author SHA1 Message Date
Yehuda Sadeh
50c522ea89 rgw: keep rgw_obj key info in rgw_obj_key field
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:53 -08:00
Yehuda Sadeh
5cf5ab470e 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>
2017-03-09 09:18:53 -08:00
Yehuda Sadeh
bdf53ab3c3 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>
2017-03-09 09:18:53 -08:00
Yehuda Sadeh
2ae6f6cab6 rgw: fix bucket overwrite
got broken through the rgw_bucket cleanup related work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:52 -08:00
Yehuda Sadeh
fc6fa2f402 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>
2017-03-09 09:18:52 -08:00
Yehuda Sadeh
9c1b828e83 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>
2017-03-09 09:18:52 -08:00
Yehuda Sadeh
df534b413c rgw: simple manifest compaction
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:52 -08:00
Yehuda Sadeh
81070d3424 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>
2017-03-09 09:18:51 -08:00
Yehuda Sadeh
3583d67d61 rgw: decode rgw_raw_obj as rgw_obj when it's old object
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:51 -08:00
Yehuda Sadeh
18e8ecca09 rgw: remove unneeded virtual declarations
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:51 -08:00
Yehuda Sadeh
5fff6371d8 rgw: more fixes and adjustments following rgw_pool, rgw_raw_obj
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:51 -08:00
Yehuda Sadeh
10f73588a5 rgw: separate RGWObjState
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:50 -08:00
Yehuda Sadeh
66c2b0c0d6 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>
2017-03-09 09:18:50 -08:00
Sage Weil
f5dfa07975 Merge pull request #13901 from Adirl/default
msg/async/rdma: compile with rdma as default

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-09 09:35:29 -06:00
Casey Bodley
5877780a47 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>
2017-03-09 09:53:27 -05:00
Casey Bodley
2bb96e08ea 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>
2017-03-09 09:47:29 -05:00
Abhishek L
d031c06d3f 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>
2017-03-09 15:17:12 +01:00
DanielBar-On
0aeabb2b51 msg/async/rdma: compile with rdma as default
Issue: 992583
Issue: 992580

Change-Id: I24128b87294d3083c44c934f7d4bed554dd1f8a4
Signed-off-by: DanielBar-On <danielbo@mellanox.com>
2017-03-09 14:20:36 +02:00
Haomai Wang
0574543dbb 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>
2017-03-09 16:21:35 +08:00
optimistyzy
9d1b108c55 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>
2017-03-09 14:37:32 +08:00
Dan Mick
4f78b04c6a Merge pull request #13891 from yehudasa/wip-vstart-not-new
vstart: don't create cluster by default
2017-03-08 20:06:16 -08:00
Zhang Shaowen
a0aa859e62 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>
2017-03-09 11:37:02 +08:00
Haomai Wang
c57ce5cb94 Merge pull request #13556 from tangwenjun3/wip-fix-coredump
os/bluestore: fix coredump in register_ctrlr()

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-09 09:49:02 +08:00
lu.shasha
c412024889 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>
2017-03-09 08:52:16 +08:00
Yuri Weinstein
fa496a9c9c 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>
2017-03-08 16:23:26 -08:00
Dan Mick
edeedf0256 qa/suites/upgrade/kraken-x: do not thrash cluster full during upgrade
Same thing as 39fdc53fe5

Fixes: http://tracker.ceph.com/issues/19232
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-03-08 14:40:36 -08:00
Yehuda Sadeh
cd6f2e04a6 vstart: don't create cluster by default
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-08 14:18:24 -08:00
Nathan Cutler
8a20e201cc doc: mention ENXIO change in the 10.2.6 release notes
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-03-08 22:09:54 +01:00
Yehuda Sadeh
bfa322cdc0 Merge pull request #13880 from cbodley/wip-qa-submodule
build: remove ceph-qa-suite directory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-08 12:57:31 -08:00
Sage Weil
92bacb6823 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>
2017-03-08 13:38:54 -06:00
Casey Bodley
c43edf68e9 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>
2017-03-08 12:30:08 -05:00
Sage Weil
fb5b59fc39 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>
2017-03-08 11:14:08 -06:00
Casey Bodley
5967b9bf4c 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>
2017-03-08 11:55:44 -05:00
Josh Durgin
12c4981087 Merge pull request #13852 from liewegas/wip-19133
qa/suites: fix upgrade tests vs cluster full thrashing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-03-08 07:47:49 -08:00
Sage Weil
deab3e783c Merge pull request #13711 from tmuthamizhan/wip-add-supported-distros
qa: add supported distros for ceph-ansible

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
2017-03-08 09:35:50 -06:00
Sage Weil
ae7d5fd179 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>
2017-03-08 09:08:16 -06:00
Jason Dillaman
a581c6ac00 Merge pull request #13791 from runsisi/wip-rbd-ack-cleanup
librbd: rbd ack cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-08 10:07:29 -05:00
Sage Weil
576f7eecd1 Merge pull request #13775 from Liuchang0812/wip-add-override-librados-headers
librados: add override in headers

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-08 09:06:46 -06:00
Sage Weil
736c77c11e 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>
2017-03-08 09:06:16 -06:00
Sage Weil
0750cd4995 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>
2017-03-08 09:03:20 -06:00
Sage Weil
5eeb721451 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>
2017-03-08 09:02:33 -06:00
Jason Dillaman
8349287ae0 Merge pull request #13782 from vshankar/wip-19034
rbd: use concurrent writes for imports

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-08 08:42:33 -05:00
Jason Dillaman
5c267392d0 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>
2017-03-08 08:41:44 -05:00
Loic Dachary
759032288c 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>
2017-03-08 13:16:49 +01:00
Abhishek L
56feb90951 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>
2017-03-08 13:14:25 +01:00
John Spray
e915e0f501 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>
2017-03-08 11:56:01 +00:00
John Spray
0c5b915d01 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>
2017-03-08 11:48:53 +00:00
John Spray
2a06ea37cd Merge pull request #13691 from Liuchang0812/wip-add-override-in-mds-headers
mds: add override in headers

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-03-08 11:35:25 +00:00
John Spray
82a0f3e0ef Merge pull request #12786 from jcsp/wip-11950
#11950: Persistent purge queue

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-03-08 11:18:39 +00:00
John Spray
1777333aec mds: handle Journaler::recover errors in PurgeQueue
Signed-off-by: John Spray <john.spray@redhat.com>
2017-03-08 10:27:03 +00:00