]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agomgr/dashboard: rbd: changed REST API prefix to /block/image
Ricardo Dias [Fri, 13 Apr 2018 10:36:15 +0000 (11:36 +0100)]
mgr/dashboard: rbd: changed REST API prefix to /block/image

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: viewcache: debug log messages
Ricardo Dias [Fri, 13 Apr 2018 10:08:55 +0000 (11:08 +0100)]
mgr/dashboard: viewcache: debug log messages

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: fix disk-usage and free ioctx and image resources
Ricardo Dias [Fri, 13 Apr 2018 10:24:16 +0000 (11:24 +0100)]
mgr/dashboard: rbd: fix disk-usage and free ioctx and image resources

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: image copy test
Ricardo Dias [Thu, 12 Apr 2018 01:11:16 +0000 (02:11 +0100)]
qa/tasks/mgr/dashboard: rbd: image copy test

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: image copy implementation
Ricardo Dias [Thu, 12 Apr 2018 00:34:23 +0000 (01:34 +0100)]
mgr/dashboard: rbd: image copy implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: snapshot clone test
Ricardo Dias [Wed, 11 Apr 2018 23:45:51 +0000 (00:45 +0100)]
qa/tasks/mgr/dashboard: rbd: snapshot clone test

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: snapshot clone implementation
Ricardo Dias [Wed, 11 Apr 2018 23:25:09 +0000 (00:25 +0100)]
mgr/dashboard: rbd: snapshot clone implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: snapshot rollback test
Ricardo Dias [Wed, 11 Apr 2018 22:57:31 +0000 (23:57 +0100)]
qa/tasks/mgr/dashboard: rbd: snapshot rollback test

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: taskmanager: support exception handler
Ricardo Dias [Wed, 11 Apr 2018 22:00:05 +0000 (23:00 +0100)]
mgr/dashboard: taskmanager: support exception handler

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: snapshot rollback implementation
Ricardo Dias [Wed, 11 Apr 2018 23:02:28 +0000 (00:02 +0100)]
mgr/dashboard: rbd: snapshot rollback implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: major refactoring for using the Task decorator
Ricardo Dias [Wed, 11 Apr 2018 15:17:14 +0000 (16:17 +0100)]
mgr/dashboard: rbd: major refactoring for using the Task decorator

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: restcontroller: support for detail methods
Ricardo Dias [Wed, 11 Apr 2018 11:43:22 +0000 (12:43 +0100)]
mgr/dashboard: restcontroller: support for detail methods

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: Task decorator for controller endpoints
Ricardo Dias [Wed, 11 Apr 2018 11:42:41 +0000 (12:42 +0100)]
mgr/dashboard: Task decorator for controller endpoints

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: snapshot edit tests
Ricardo Dias [Tue, 10 Apr 2018 09:42:37 +0000 (10:42 +0100)]
qa/tasks/mgr/dashboard: rbd: snapshot edit tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: snapshot edit implementation
Ricardo Dias [Tue, 10 Apr 2018 09:41:24 +0000 (10:41 +0100)]
mgr/dashboard: rbd: snapshot edit implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: use dashboard pool API for creating pools
Ricardo Dias [Thu, 29 Mar 2018 15:01:08 +0000 (16:01 +0100)]
qa/tasks/mgr/dashboard: rbd: use dashboard pool API for creating pools

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: image edit tests
Ricardo Dias [Thu, 29 Mar 2018 15:00:43 +0000 (16:00 +0100)]
qa/tasks/mgr/dashboard: rbd: image edit tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: image edit implementation
Ricardo Dias [Thu, 29 Mar 2018 14:59:46 +0000 (15:59 +0100)]
mgr/dashboard: rbd: image edit implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: snapshot create/delete tests
Ricardo Dias [Thu, 29 Mar 2018 10:56:52 +0000 (11:56 +0100)]
qa/tasks/mgr/dashboard: rbd: snapshot create/delete tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: snapshot create/delete implementation
Ricardo Dias [Thu, 29 Mar 2018 10:01:39 +0000 (11:01 +0100)]
mgr/dashboard: rbd: snapshot create/delete implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: image deletion test
Ricardo Dias [Thu, 29 Mar 2018 09:30:25 +0000 (10:30 +0100)]
qa/tasks/mgr/dashboard: rbd: image deletion test

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: image delete implementation
Ricardo Dias [Thu, 29 Mar 2018 09:02:03 +0000 (10:02 +0100)]
mgr/dashboard: rbd: image delete implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: restcontroller: allow POST with empty body
Ricardo Dias [Wed, 11 Apr 2018 22:20:11 +0000 (23:20 +0100)]
mgr/dashboard: restcontroller: allow POST with empty body

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: restcontroller: allow DELETE to return JSON body
Ricardo Dias [Thu, 29 Mar 2018 08:59:27 +0000 (09:59 +0100)]
mgr/dashboard: restcontroller: allow DELETE to return JSON body

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: image disk usage implementation
Ricardo Dias [Wed, 28 Mar 2018 16:06:02 +0000 (17:06 +0100)]
mgr/dashboard: rbd: image disk usage implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: asynchronous image create test
Ricardo Dias [Wed, 28 Mar 2018 13:33:39 +0000 (14:33 +0100)]
qa/tasks/mgr/dashboard: rbd: asynchronous image create test

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: asynchronous image create
Ricardo Dias [Wed, 28 Mar 2018 13:33:01 +0000 (14:33 +0100)]
mgr/dashboard: rbd: asynchronous image create

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoqa/tasks/mgr/dashboard: rbd: new image list format
Ricardo Dias [Fri, 16 Mar 2018 13:13:26 +0000 (13:13 +0000)]
qa/tasks/mgr/dashboard: rbd: new image list format

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: rbd: image list implementation
Ricardo Dias [Fri, 16 Mar 2018 13:12:33 +0000 (13:12 +0000)]
mgr/dashboard: rbd: image list implementation

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: added script to execute backend API requests
Ricardo Dias [Mon, 26 Mar 2018 11:02:41 +0000 (12:02 +0100)]
mgr/dashboard: added script to execute backend API requests

Example of usage:

```
$ ./run-backend-api-request.sh POST /api/rbd '{"name": "myimage2", "pool_name": "rbd", "size": 53687091200, "obj_size": 4194304, "features": ["exclusive-lock", "journaling", "layering"], "stripe_unit": null, "stripe_count": null, "data_pool": null}'

$ ./run-backend-api-request.sh GET /api/rbd
```

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: viewcache: remove VALUE_EXCEPTION
Ricardo Dias [Mon, 26 Mar 2018 11:01:06 +0000 (12:01 +0100)]
mgr/dashboard: viewcache: remove VALUE_EXCEPTION

Instead of returning the exception object as a result of a function
decorated with `@ViewCache()`, raise the exception in the function
caller thread.

Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #21416 from tchaikov/wip-tox-pwd
Kefu Chai [Fri, 13 Apr 2018 14:56:46 +0000 (22:56 +0800)]
Merge pull request #21416 from tchaikov/wip-tox-pwd

test/dashboard: specify workdir using tox.ini

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #18932 from yehudasa/wip-rgw-cloud-sync
Casey Bodley [Fri, 13 Apr 2018 14:42:20 +0000 (10:42 -0400)]
Merge pull request #18932 from yehudasa/wip-rgw-cloud-sync

rgw cloud sync

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21356 from smithfarm/wip-23657
Nathan Cutler [Fri, 13 Apr 2018 13:59:11 +0000 (15:59 +0200)]
Merge pull request #21356 from smithfarm/wip-23657

rpm,debian: Ensure all ceph-disk runtime dependencies are declared for ceph-base

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agotest/dashboard: specify workdir using tox.ini 21416/head
Kefu Chai [Fri, 13 Apr 2018 13:00:42 +0000 (21:00 +0800)]
test/dashboard: specify workdir using tox.ini

--workdir was introduced in tox v2.4.0, but the tox shipped by
ubuntu/xenial is 2.3.1. also because i removed the step to prepare the
tox using "pip install -r requirements.txt", what we have is the tox
v2.3.1 . so, instead of passing workdir in the command line, we specify
this setting in tox.ini.

also drop the tox in requirements.txt, it's just misleading. and we are
not using the tox installed in the venv.

Fixes: http://tracker.ceph.com/issues/23709
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21342 from SUSE/wip-argparse-fix-validate_command-error
Kefu Chai [Fri, 13 Apr 2018 09:50:26 +0000 (17:50 +0800)]
Merge pull request #21342 from SUSE/wip-argparse-fix-validate_command-error

pybind/ceph_argparse: Fix UnboundLocalError if command doesn't validate

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21331 from liewegas/wip-slow-ops
Kefu Chai [Fri, 13 Apr 2018 09:49:30 +0000 (17:49 +0800)]
Merge pull request #21331 from liewegas/wip-slow-ops

qa/suites/rados/monthrash: whitelist SLOW_OPS

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21317 from liewegas/wip-23622
Kefu Chai [Fri, 13 Apr 2018 09:48:34 +0000 (17:48 +0800)]
Merge pull request #21317 from liewegas/wip-23622

common/Formatter: fix string_view usage for {json,xml}_stream_escaper

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21312 from wjwithagen/wjw-PG-public
Kefu Chai [Fri, 13 Apr 2018 09:47:47 +0000 (17:47 +0800)]
Merge pull request #21312 from wjwithagen/wjw-PG-public

osd: make PG::*Force* event structs public

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21293 from tchaikov/wip-no-venv-for-dashboard
Kefu Chai [Fri, 13 Apr 2018 09:45:18 +0000 (17:45 +0800)]
Merge pull request #21293 from tchaikov/wip-no-venv-for-dashboard

test: only test enabled python bindings

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #21287 from yanghonggang/master
Kefu Chai [Fri, 13 Apr 2018 09:43:33 +0000 (17:43 +0800)]
Merge pull request #21287 from yanghonggang/master

os/kstore: fix statfs problem and add vstart.sh support

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21174 from guzhongyan/crush-log-cleanup
Kefu Chai [Fri, 13 Apr 2018 09:42:44 +0000 (17:42 +0800)]
Merge pull request #21174 from guzhongyan/crush-log-cleanup

crush: cleanup update_device_class() log messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21110 from majianpeng/fix-objecter
Kefu Chai [Fri, 13 Apr 2018 09:41:28 +0000 (17:41 +0800)]
Merge pull request #21110 from majianpeng/fix-objecter

osdc: dec num_in_flight for pool_dne case.

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #21029 from rzarzynski/wip-osd-close_op_ctx-nohobjcpy
Kefu Chai [Fri, 13 Apr 2018 09:40:27 +0000 (17:40 +0800)]
Merge pull request #21029 from rzarzynski/wip-osd-close_op_ctx-nohobjcpy

osd: don't memcpy hobject_t in PrimaryLogPG::close_op_ctx().

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21018 from ashitakasam/wip-bug-23440
Kefu Chai [Fri, 13 Apr 2018 09:37:34 +0000 (17:37 +0800)]
Merge pull request #21018 from ashitakasam/wip-bug-23440

osd: remove duplicated "commit_queued_for_journal_write" in OpTracker

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20670 from chardan/jfw-wip-rand_migration-core
Kefu Chai [Fri, 13 Apr 2018 09:36:27 +0000 (17:36 +0800)]
Merge pull request #20670 from chardan/jfw-wip-rand_migration-core

Extends random.h: numeric types relaxed to compatible types (with

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #21350 from tspmelo/notifications-improvement
Lenz Grimmer [Fri, 13 Apr 2018 08:57:52 +0000 (10:57 +0200)]
Merge pull request #21350 from tspmelo/notifications-improvement

mgr/dashboard: Notification improvements

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile vtheile@suse.com
7 years agoMerge pull request #20996 from rzarzynski/wip-bs-bug23246
Kefu Chai [Fri, 13 Apr 2018 07:58:08 +0000 (15:58 +0800)]
Merge pull request #20996 from rzarzynski/wip-bs-bug23246

os/bluestore: fix exceeding the max IO queue depth in KernelDevice.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #21345 from ceph/fix_e2fsprogs
Kefu Chai [Fri, 13 Apr 2018 07:51:29 +0000 (15:51 +0800)]
Merge pull request #21345 from ceph/fix_e2fsprogs

specs: require of e2fsprogs

Reviewed-by: Sébastien Han <seb@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Erwan Velu <erwan@redhat.com>
7 years agoMerge pull request #20658 from majianpeng/cmake-link-error
Kefu Chai [Fri, 13 Apr 2018 07:43:09 +0000 (15:43 +0800)]
Merge pull request #20658 from majianpeng/cmake-link-error

os/CMakeLists: fix link errro when enable WITH_PMEM=ON.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21332 from cbodley/wip-cmake-lz4
Kefu Chai [Fri, 13 Apr 2018 07:32:55 +0000 (15:32 +0800)]
Merge pull request #21332 from cbodley/wip-cmake-lz4

cmake: enable LZ4 by default

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agorgw/tests_http_manager: fix initialization 18932/head
Yehuda Sadeh [Fri, 13 Apr 2018 02:58:32 +0000 (19:58 -0700)]
rgw/tests_http_manager: fix initialization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agojson_formattable: fix out of bounds array entity removal
Yehuda Sadeh [Fri, 13 Apr 2018 02:23:19 +0000 (19:23 -0700)]
json_formattable: fix out of bounds array entity removal

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge PR #21181 into master
Patrick Donnelly [Fri, 13 Apr 2018 01:22:31 +0000 (18:22 -0700)]
Merge PR #21181 into master

* refs/pull/21181/head:
fuse: wire up fuse_ll_access

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21276 into master
Patrick Donnelly [Fri, 13 Apr 2018 01:22:27 +0000 (18:22 -0700)]
Merge PR #21276 into master

* refs/pull/21276/head:
MDSMonitor: fix mds health printed in bad format

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge PR #21323 into master
Patrick Donnelly [Fri, 13 Apr 2018 01:22:22 +0000 (18:22 -0700)]
Merge PR #21323 into master

* refs/pull/21323/head:
mds: properly dirty sessions opened by journal replay

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agorgw: force last writer wins on marker writes
Yehuda Sadeh [Sat, 7 Apr 2018 00:41:37 +0000 (17:41 -0700)]
rgw: force last writer wins on marker writes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agodoc/radosgw: cloud sync docs
Yehuda Sadeh [Thu, 5 Apr 2018 23:05:48 +0000 (16:05 -0700)]
doc/radosgw: cloud sync docs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #21362 from dzafman/wip-hex-digest
David Zafman [Thu, 12 Apr 2018 23:07:36 +0000 (16:07 -0700)]
Merge pull request #21362 from dzafman/wip-hex-digest

osd: Change shard digests to hex like object info digests

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agorgw: rename aws tier type to 'cloud'
Yehuda Sadeh [Thu, 5 Apr 2018 00:12:30 +0000 (17:12 -0700)]
rgw: rename aws tier type to 'cloud'

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: etag fixes
Yehuda Sadeh [Thu, 5 Apr 2018 21:31:41 +0000 (14:31 -0700)]
rgw: etag fixes

Use string instead of bufferlist to avoid potential issues.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: fixes following code review
Yehuda Sadeh [Fri, 23 Mar 2018 23:38:51 +0000 (16:38 -0700)]
rgw: fixes following code review

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agotest/rgw/test_multi: fix a few tests to only iterate over rw zones
Yehuda Sadeh [Fri, 23 Mar 2018 00:39:50 +0000 (17:39 -0700)]
test/rgw/test_multi: fix a few tests to only iterate over rw zones

Some of the tests require at least two read-write (regular rgw) zones

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agotest/rgw: zone_cloud: deal with key representation and other fixes
Yehuda Sadeh [Fri, 23 Mar 2018 00:44:48 +0000 (17:44 -0700)]
test/rgw: zone_cloud: deal with key representation and other fixes

Needed to present a key to the tests that reflected its original name
and version_id (and etag), so that the callers don't need to be modified.
However, this can only be achieved if we get the key, which doesn't work
if the caller was just listing the bucket objects. Created a new CloudKey
class to deal with the different issues there.
Also, other test related fixes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: streaming put also stores content_type and other fields
Yehuda Sadeh [Fri, 23 Mar 2018 00:33:29 +0000 (17:33 -0700)]
rgw: streaming put also stores content_type and other fields

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: fix parse_tier_config_param function
Chang Liu [Tue, 27 Feb 2018 08:48:26 +0000 (16:48 +0800)]
rgw: fix parse_tier_config_param function

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agorgw: don't call http data callbacks under lock
Yehuda Sadeh [Tue, 20 Mar 2018 18:52:44 +0000 (11:52 -0700)]
rgw: don't call http data callbacks under lock

There is no need to hold req_data->lock when calling into client
callbacks. This removes an unneeded lock dependency (that is a
problem when cancelliing coroutines stack).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: coroutines: cancel stacks on teardown
Yehuda Sadeh [Tue, 20 Mar 2018 18:47:39 +0000 (11:47 -0700)]
rgw: coroutines: cancel stacks on teardown

If we don't cancel stacks, ops might not be destructed, so ops callbacks
could still be active.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: don't store etag with extra null character at the end
Yehuda Sadeh [Fri, 23 Mar 2018 00:50:40 +0000 (17:50 -0700)]
rgw: don't store etag with extra null character at the end

head objects etag attr doesn't need to store an extra null char.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: cloud sync: store source object info in destination object
Yehuda Sadeh [Fri, 23 Mar 2018 00:49:40 +0000 (17:49 -0700)]
rgw: cloud sync: store source object info in destination object

store extra meta params on target object (original name, version_id, etag,
etc.)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: cloud sync: store versioned epoch in target object
Yehuda Sadeh [Thu, 15 Mar 2018 22:57:24 +0000 (15:57 -0700)]
rgw: cloud sync: store versioned epoch in target object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agotest/rgw: initial work on cloud sync test
Yehuda Sadeh [Mon, 12 Mar 2018 21:34:05 +0000 (14:34 -0700)]
test/rgw: initial work on cloud sync test

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: api adjustment following rebase
Yehuda Sadeh [Mon, 19 Feb 2018 23:32:19 +0000 (15:32 -0800)]
rgw: api adjustment following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: rework cloud sync configuration
Yehuda Sadeh [Fri, 2 Feb 2018 23:51:49 +0000 (15:51 -0800)]
rgw: rework cloud sync configuration

Change the configuration structure to separate between
connections and acl mappings, and other changes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: fixes following rebase
Yehuda Sadeh [Fri, 2 Feb 2018 00:18:38 +0000 (16:18 -0800)]
rgw: fixes following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: use different io id when waking up interval wait
Yehuda Sadeh [Fri, 2 Feb 2018 00:06:22 +0000 (16:06 -0800)]
rgw: use different io id when waking up interval wait

Can't use a zero channel id as a wildcard.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: fix compilation warning
Yehuda Sadeh [Fri, 2 Feb 2018 00:05:14 +0000 (16:05 -0800)]
rgw: fix compilation warning

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agovstart: fixes for mstart
Yehuda Sadeh [Thu, 25 Jan 2018 23:38:54 +0000 (15:38 -0800)]
vstart: fixes for mstart

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: apply acl mappings
Yehuda Sadeh [Mon, 22 Jan 2018 21:10:52 +0000 (13:10 -0800)]
rgw: aws sync: apply acl mappings

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: sync acls
Yehuda Sadeh [Wed, 17 Jan 2018 00:53:31 +0000 (16:53 -0800)]
rgw: aws sync: sync acls

still not transforming acls according to configuration

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: acl_mappings config handling
Yehuda Sadeh [Tue, 16 Jan 2018 22:50:04 +0000 (14:50 -0800)]
rgw: aws sync: acl_mappings config handling

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: remove bucket suffix configurable
Yehuda Sadeh [Tue, 16 Jan 2018 03:05:02 +0000 (19:05 -0800)]
rgw: aws sync: remove bucket suffix configurable

No need to have a special suffix, target path can be used instead.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: use configurable target path
Yehuda Sadeh [Tue, 16 Jan 2018 02:01:48 +0000 (18:01 -0800)]
rgw: aws sync: use configurable target path

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: dump config
Yehuda Sadeh [Mon, 15 Jan 2018 21:59:13 +0000 (13:59 -0800)]
rgw: aws sync: dump config

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoformatter: add two utility classes
Yehuda Sadeh [Mon, 15 Jan 2018 22:22:07 +0000 (14:22 -0800)]
formatter: add two utility classes

For automatic section scoping

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: configure different targets
Yehuda Sadeh [Sat, 13 Jan 2018 00:25:48 +0000 (16:25 -0800)]
rgw: aws sync: configure different targets

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: aws sync: new config structure, support multiple connections
Yehuda Sadeh [Fri, 12 Jan 2018 22:57:24 +0000 (14:57 -0800)]
rgw: aws sync: new config structure, support multiple connections

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoformattable: more fixes
Yehuda Sadeh [Tue, 9 Jan 2018 15:40:11 +0000 (07:40 -0800)]
formattable: more fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: sync module tier config fixes
Yehuda Sadeh [Tue, 9 Jan 2018 09:30:46 +0000 (01:30 -0800)]
rgw: sync module tier config fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoformattable: fixes
Yehuda Sadeh [Tue, 9 Jan 2018 09:30:37 +0000 (01:30 -0800)]
formattable: fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: cloud sync, sync object meta
Yehuda Sadeh [Mon, 8 Jan 2018 15:27:30 +0000 (07:27 -0800)]
rgw: cloud sync, sync object meta

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoformattable: adjust array access interface
Yehuda Sadeh [Mon, 8 Jan 2018 09:44:41 +0000 (01:44 -0800)]
formattable: adjust array access interface

appending new entry by providing empty index, setting existing entries
by providing negative index.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoceph_json: formattable, set, erase, unitest
Yehuda Sadeh [Fri, 5 Jan 2018 10:42:06 +0000 (02:42 -0800)]
ceph_json: formattable, set, erase, unitest

Extend the formattable api to provide a mechanism to set and erase
entities by a string key that references them. E.g., "foo.bar[123].xyz"

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: handle the situation that get a 409 response from S3 correctly
lvshanchun [Wed, 29 Nov 2017 13:04:12 +0000 (21:04 +0800)]
rgw: handle the situation that get a 409 response from S3 correctly
pass the http body and use it when creating a bucket

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: avoid use Chunked transfer encoding in RGW's request
lvshanchun [Wed, 29 Nov 2017 08:49:11 +0000 (16:49 +0800)]
rgw: avoid use Chunked transfer encoding in RGW's request

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: add a bucket-suffix tier-config
lvshanchun [Wed, 29 Nov 2017 08:43:58 +0000 (16:43 +0800)]
rgw: add a bucket-suffix tier-config

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: virtual hosted-style support
lvshanchun [Wed, 29 Nov 2017 08:28:05 +0000 (16:28 +0800)]
rgw: virtual hosted-style support

add host-style field in tier-config to specify the related
zone's hosted-style used in request from RGW, if this config
is not specified, path hosted-style will be used as default.

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: RGWRESTStreamRWRequest::send_prepare(), url encode dest
lvshanchun [Thu, 23 Nov 2017 09:48:41 +0000 (17:48 +0800)]
rgw: RGWRESTStreamRWRequest::send_prepare(), url encode dest

encode the resource in send_prepare(), as a result, all the callers
to do_send_prepare() have do url_encode before calling it.

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: add encode_slash param in url_encode
lvshanchun [Wed, 29 Nov 2017 03:26:44 +0000 (11:26 +0800)]
rgw: add encode_slash param in url_encode

when sent request to S3, we should not encode the forward
slash character('/') in the object key name, so we need add
a encode_slash param in url_encode to decide whether to encode
the slash or not.

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: use GMT time format defined by RFC1123 in http request header
lvshanchun [Thu, 23 Nov 2017 08:41:44 +0000 (16:41 +0800)]
rgw: use GMT time format defined by RFC1123 in http request header

Signed-off-by: lvshanchun <lvshanchun@gmail.com>