Commit Graph

69530 Commits

Author SHA1 Message Date
Nathan Cutler
af9f92ca69 build/ops: extend rpm spec file copyright period to 2017
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-03-10 16:17:11 +01:00
Nathan Cutler
b679b1dee3 build/ops: make package groups comply with openSUSE guidelines
. . . and put all Group: lines in SUSE conditional blocks.

Fixes: http://tracker.ceph.com/issues/19184
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-03-10 16:17:11 +01:00
Mykola Golub
25c2482735 Merge pull request #13737 from dillaman/wip-19104
test: support blacklisting within librados_test_stub

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-10 17:00:43 +02:00
Jason Dillaman
6be6625024 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>
2017-03-09 21:17:07 -05:00
Jason Dillaman
00591653bc librbd: improve debug log messages for managed lock
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-09 20:25:18 -05:00
Jason Dillaman
854a96f1da test: potential shutdown race in TestMockImageReplayer.DecodeError
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-09 20:25:18 -05:00
Jason Dillaman
cc5ac6aa66 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>
2017-03-09 20:25:18 -05:00
Jason Dillaman
5992a69404 test/librados_test_stub: support blacklisting of connections
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-09 20:25:18 -05:00
Jason Dillaman
a97e5db587 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>
2017-03-09 20:25:18 -05:00
Jason Dillaman
25712d33a5 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>
2017-03-09 20:25:18 -05:00
Sage Weil
83d0704d2a 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>
2017-03-09 15:16:19 -06:00
Yehuda Sadeh
3d290128e0 Merge pull request #11485 from yehudasa/wip-bucket-cleanup
rgw structures rework

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-09 10:16:48 -08:00
Mykola Golub
05c56b2cf2 Merge pull request #13758 from dillaman/wip-18748
rbd: demote/promote all mirrored images in a pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-09 20:15:17 +02:00
Yehuda Sadeh
a9ec5e8ce1 rgw: fix crash when listing objects via swift
Fixes: http://tracker.ceph.com/issues/19249

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:56 -08:00
Yehuda Sadeh
515db13970 qa/tasks/radosgw_admin: adjust test to new bucket structure
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:56 -08:00
Yehuda Sadeh
00a2af1ffd rgw: more fixes following rebase
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:56 -08:00
Yehuda Sadeh
803b04e5ba rgw: new rest api to retrieve object layout
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:56 -08:00
Yehuda Sadeh
8310c8f26d rgw: get_obj_state() checks for empty oids
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:56 -08:00
Yehuda Sadeh
29771695a0 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>
2017-03-09 09:18:55 -08:00
Yehuda Sadeh
48dd2ceb65 rgw_admin: remove broken check
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:55 -08:00
Yehuda Sadeh
9fbdd2b983 mrgw.sh: fix script
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:55 -08:00
Yehuda Sadeh
21200e8dbc rgw: fix async cr operation
Fix crash due to code cleanup. Changes scope of obj ref.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:55 -08:00
Yehuda Sadeh
b21d13f1d6 rgw: modify default pools to use namespaces
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:55 -08:00
Yehuda Sadeh
5f46b3c7de 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>
2017-03-09 09:18:54 -08:00
Yehuda Sadeh
b34208f86f rgw: add namespace to rgw_pool
add a namespace field to the rgw_pool struct

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:54 -08:00
Yehuda Sadeh
a3303c9a3d rgw: compilation and other fixes following rebase
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:54 -08:00
Yehuda Sadeh
479e9f7377 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>
2017-03-09 09:18:54 -08:00
Yehuda Sadeh
5f9ab9f116 cls/version: add more useful logging
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:54 -08:00
Yehuda Sadeh
e67a3b5b5c rgw: fix ECANCELED handling in rgw_get_system_obj()
Fixes: http://tracker.ceph.com/issues/17996

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2017-03-09 09:18:53 -08:00
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
Pan Liu
ff8b601ef9 librados: replace the var name from onact to oncomplete.
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-03-10 00:24:32 +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