summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* librbd: avoid duplicating librados IoCtx objects if not neededJason Dillaman2017-03-1010-39/+50
| | | | | | | This introduces the potential for shutdown race conditions within the unit tests. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* test/librados_test_stub: support blacklisting of connectionsJason Dillaman2017-03-1014-32/+252
| | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* test/librados_test_stub: watch/notify should be connection-awareJason Dillaman2017-03-102-21/+25
| | | | | | | 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>
* test/librados_test_stub: separate mock cluster from connectionJason Dillaman2017-03-1025-446/+640
| | | | | | | The plan to support independent connections sharing the same view of the mocked cluster. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* Merge pull request #13857 from liupan1111/wip-rename-onack-to-oncommitSage Weil2017-03-091-41/+41
|\ | | | | | | | | librados: replace the var name from onack to complete Reviewed-by: Sage Weil <sage@redhat.com>
| * librados: replace the var name from onact to oncomplete.Pan Liu2017-03-091-41/+41
| | | | | | | | Signed-off-by: Pan Liu <pan.liu@istuary.com>
* | Merge pull request #11485 from yehudasa/wip-bucket-cleanupYehuda Sadeh2017-03-0956-2742/+4119
|\ \ | | | | | | | | | | | | rgw structures rework Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * | rgw: fix crash when listing objects via swiftYehuda Sadeh2017-03-091-3/+6
| | | | | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/19249 Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | qa/tasks/radosgw_admin: adjust test to new bucket structureYehuda Sadeh2017-03-091-6/+0
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: more fixes following rebaseYehuda Sadeh2017-03-096-9/+44
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: new rest api to retrieve object layoutYehuda Sadeh2017-03-093-7/+6
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: get_obj_state() checks for empty oidsYehuda Sadeh2017-03-091-0/+8
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: metadata put of bucket instance sets bucket_idYehuda Sadeh2017-03-092-9/+22
| | | | | | | | | | | | | | | | | | | | | 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>
| * | rgw_admin: remove broken checkYehuda Sadeh2017-03-091-6/+0
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | mrgw.sh: fix scriptYehuda Sadeh2017-03-091-2/+2
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: fix async cr operationYehuda Sadeh2017-03-092-5/+4
| | | | | | | | | | | | | | | | | | Fix crash due to code cleanup. Changes scope of obj ref. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: modify default pools to use namespacesYehuda Sadeh2017-03-091-11/+11
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: handle pools namespaceYehuda Sadeh2017-03-0913-326/+238
| | | | | | | | | | | | | | | | | | | | | 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>
| * | rgw: add namespace to rgw_poolYehuda Sadeh2017-03-092-9/+94
| | | | | | | | | | | | | | | | | | add a namespace field to the rgw_pool struct Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: compilation and other fixes following rebaseYehuda Sadeh2017-03-095-46/+47
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: move placement rule out of rgw_bucketYehuda Sadeh2017-03-0913-254/+286
| | | | | | | | | | | | | | | | | | | | | 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>
| * | cls/version: add more useful loggingYehuda Sadeh2017-03-091-0/+1
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: fix ECANCELED handling in rgw_get_system_obj()Yehuda Sadeh2017-03-094-0/+25
| | | | | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/17996 Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: keep rgw_obj key info in rgw_obj_key fieldYehuda Sadeh2017-03-0912-339/+289
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: add rgw_obj_index_key, kill RGWObjEntYehuda Sadeh2017-03-0921-373/+332
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | rgw: clean rgw_objYehuda Sadeh2017-03-099-164/+143
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | rgw: fix bucket overwriteYehuda Sadeh2017-03-092-8/+7
| | | | | | | | | | | | | | | | | | got broken through the rgw_bucket cleanup related work Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | test/rgw: extend obj, manifest unitestsYehuda Sadeh2017-03-095-48/+925
| | | | | | | | | | | | | | | | | | | | | Test rgw_raw_obj and upgrade of old rgw_obj, rgw_bucket and old manifest. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: implicit rgw_bucket placement, manifest uses rgw_raw_objYehuda Sadeh2017-03-0916-403/+593
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | rgw: simple manifest compactionYehuda Sadeh2017-03-092-12/+38
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: use rgw_raw_obj in manifest codeYehuda Sadeh2017-03-0912-227/+349
| | | | | | | | | | | | | | | | | | | | | This drags in multiple related changes that are needed in order to support that. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: decode rgw_raw_obj as rgw_obj when it's old objectYehuda Sadeh2017-03-093-3/+24
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: remove unneeded virtual declarationsYehuda Sadeh2017-03-091-1/+1
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: more fixes and adjustments following rgw_pool, rgw_raw_objYehuda Sadeh2017-03-0922-489/+569
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: separate RGWObjStateYehuda Sadeh2017-03-094-80/+155
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
| * | rgw: introduce rgw_pool, rgw_raw_objYehuda Sadeh2017-03-099-543/+541
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #13758 from dillaman/wip-18748Mykola Golub2017-03-0979-1644/+3826
|\ \ \ | |/ / |/| | | | | | | | rbd: demote/promote all mirrored images in a pool Reviewed-by: Mykola Golub <mgolub@mirantis.com>
| * | doc: update RBD mirroring instructions for pool demotion/promotionJason Dillaman2017-03-081-4/+22
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | rbd: new rbd mirror pool promote/demote actionsJason Dillaman2017-03-084-40/+490
| | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/18748 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | librbd: add aio_mirror_image_* API methodsJason Dillaman2017-03-089-100/+480
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | librbd: additional asynchronous mirror state machinesJason Dillaman2017-03-0814-145/+984
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | librbd: asynchronous journal demote state machineJason Dillaman2017-03-086-91/+386
| | | | | | | | | | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | librbd: move group and diff API functionsJason Dillaman2017-03-0810-168/+224
| | | | | | | | | | | | | | | | | | | | | 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>
| * | librbd: move mirror-related API functionsJason Dillaman2017-03-0816-1059/+1214
| | | | | | | | | | | | | | | | | | | | | Also ensure that the API helper methods can be tested via mock test cases. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
| * | librbd: rename parent_spec/parent_info type to match code style specsJason Dillaman2017-03-0835-216/+205
| | | | | | | | | | | | | | | | | | | | | This also includes a consolidation of SnapInfo, ParentSpec, and ParentInfo into a single header. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* | | Merge pull request #13901 from Adirl/defaultSage Weil2017-03-093-1/+3
|\ \ \ | | | | | | | | | | | | | | | | msg/async/rdma: compile with rdma as default Reviewed-by: Sage Weil <sage@redhat.com>
| * | | msg/async/rdma: compile with rdma as defaultDanielBar-On2017-03-093-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: 992583 Issue: 992580 Change-Id: I24128b87294d3083c44c934f7d4bed554dd1f8a4 Signed-off-by: DanielBar-On <danielbo@mellanox.com>
* | | | Merge pull request #13760 from zhangsw/fix-rgw-torrent-uriCasey Bodley2017-03-092-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | rgw: get torrent request's parameter is not the same as amazon s3. Reviewed-by: Casey Bodley <cbodley@redhat.com>
| * | | | rgw: get torrent request's parameter is not the same as amazon s3.Zhang Shaowen2017-03-092-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: http://tracker.ceph.com/issues/19136 Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
* | | | | Merge pull request #13660 from shashalu/rgw-read-sync-statusCasey Bodley2017-03-091-2/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rgw: use separate http_manager for read_sync_status Reviewed-by: Casey Bodley <cbodley@redhat.com>