summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rgw: fix compilationwip-rgw-geo-3Yehuda Sadeh2013-06-291-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* Merge remote-tracking branch 'enovance/wip-rgw-geo-2-replicalog' into ↵Yehuda Sadeh2013-06-296-2/+678
|\ | | | | | | | | | | | | | | | | | | wip-rgw-geo-3 Conflicts: src/Makefile.am src/rgw/rgw_main.cc Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * RESTful implementation to dump regionmap implementationBabu Shanmugam2013-06-284-0/+106
| | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * Used rgw_rest_read_all_input instead of a private functionBabu Shanmugam2013-06-273-57/+13
| | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * RESTful API implementation for replica_logBabu Shanmugam2013-06-265-2/+616
| | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
* | rgw: end-marker serves as last value, not as upperboundYehuda Sadeh2013-06-291-1/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: relax marker requirements for log apisYehuda Sadeh2013-06-291-8/+3
| | | | | | | | | | | | Don't require start-time, start-marker. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: update log APIs to use markersYehuda Sadeh2013-06-2912-29/+66
| | | | | | | | | | | | a few APIs were missing markers, fixed that. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: cls_log_entry has id fieldYehuda Sadeh2013-06-293-5/+9
| | | | | | | | | | | | | | The id field can be used as the marker for log list / trim operations. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | Makefile.am: some more makefile rules fixesYehuda Sadeh2013-06-291-0/+3
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: date string parsing also parses seconds fractionYehuda Sadeh2013-06-295-16/+39
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: fix cli testYehuda Sadeh2013-06-291-8/+6
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | Makefile.am: add missing ruleYehuda Sadeh2013-06-291-0/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: initialize sent_header in RGWOp_Opstate_ListYehuda Sadeh2013-06-281-1/+1
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw-admin: restructure replicalog commandsYehuda Sadeh2013-06-281-117/+117
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | Merge remote-tracking branch 'enovance/wip-rgw-geo-2-opstate' into wip-rgw-geo-2Yehuda Sadeh2013-06-287-4/+1149
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Makefile.am src/rgw/rgw_admin.cc src/rgw/rgw_common.h Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * | changes to accomodate review comments on previous versionBabu Shanmugam2013-06-275-51/+70
| | | | | | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * | opstate RESTful API implementation with unit test applicationBabu Shanmugam2013-06-247-4/+1130
| | | | | | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
* | | rgw: don't remove bucket index when removing a bucketYehuda Sadeh2013-06-271-8/+0
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: bilog list by bucket instance (RESTful api)Yehuda Sadeh2013-06-271-15/+34
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | ceph_json: reset valuesYehuda Sadeh2013-06-271-0/+9
| | | | | | | | | | | | | | | | | | | | | Call the default constructor if entry not found. Also, reset containers before inserting new data. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: user param in access key is not manadatoryYehuda Sadeh2013-06-271-1/+1
| | | | | | | | | | | | | | | | | | for json decoding Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: advance ptr when sending dataYehuda Sadeh2013-06-271-0/+1
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: fix regionmap json decodingYehuda Sadeh2013-06-261-9/+2
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: automatic pool creation for placement poolsYehuda Sadeh2013-06-253-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the new pools configuration, now we auto create the pools when needed (through bucket creation). Also, make sure only to configure default placement in zone structure, if old config hasn't been done yet. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: remove test placement infoYehuda Sadeh2013-06-251-5/+0
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw (test): remove some warningsYehuda Sadeh2013-06-252-6/+6
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: initialize user system flagYehuda Sadeh2013-06-251-0/+1
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: log in the same shard for bucket entry point and instancewip-rgw-geo-bucketinstanceYehuda Sadeh2013-06-253-10/+33
| | | | | | | | | | | | | | | | | | | | | We'd like to have bucket entry point and instance info at the same log shard, so that we can process them in order. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: unlink/link don't always update entry pointYehuda Sadeh2013-06-253-14/+26
| | | | | | | | | | | | | | | | | | | | | Some operations already update the entry point, so no need to do it again. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: tie metadata put to bucket link/unlinkYehuda Sadeh2013-06-2512-122/+113
| | | | | | | | | | | | | | | | | | and lot's of constifying Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | cls_rgw: cleanupYehuda Sadeh2013-06-251-1/+0
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: some more internal api cleanupsYehuda Sadeh2013-06-253-17/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use of rgw_bucket when referring to the bucket instance, use bucket name when referring to the bucket entry point. Also, remove bucket input param where not needed (internally was using the bucket structure from the bucket info). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: unlink bucket from user on metadata rm bucket:< bucket>Yehuda Sadeh2013-06-255-16/+25
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: fixes to object versioning trackingYehuda Sadeh2013-06-253-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a few different cases for setting the object version. Either we need to create a new version, or we need to set the version provided (one metadata put). We also need to make sure that we log the correct previous version of the object. This commit fixes a few cases. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: filter read xattrsYehuda Sadeh2013-06-251-2/+12
| | | | | | | | | | | | | | | | | | | | | We're only interested in object xattrs that have specific rgw.user prefix. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: add str_startswith()Yehuda Sadeh2013-06-251-0/+5
| | | | | | | | | | | | | | | | | | useful util Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | cls_ver: rename version xattr, add some more loggingYehuda Sadeh2013-06-252-1/+8
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: multiple fixes related to metadata, bucket creationYehuda Sadeh2013-06-248-52/+81
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: bucket entry point contains owner, other fixYehuda Sadeh2013-06-243-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | We now keep the owner at the bucket entry point. Also, reading bucket info at RGWCreateBucket::execute(), because previous changes has made it so that we didn't have the required bucket info initialized there. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: add a system request param to select op bucket instanceYehuda Sadeh2013-06-232-1/+9
| | | | | | | | | | | | | | | | | | | | | Added rgwx-bucket-instance request param that selects the actual bucket instance to use for this request. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: data log contains bucket instance info in keyYehuda Sadeh2013-06-231-2/+2
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: format bucket.instance meta entries nicelyYehuda Sadeh2013-06-233-8/+10
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: use new instance handler for bucket operationsYehuda Sadeh2013-06-233-1/+10
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: create meta handler for bucket instanceYehuda Sadeh2013-06-235-42/+256
| | | | | | | | | | | | | | | | | | | | | | | | Create utility functions for reading writing bucket entry point and bucket instance. Add a separate meta handler for bucket instance. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: put_bucket_info() uses objv_tracker in bucket infoYehuda Sadeh2013-06-236-20/+16
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: keep objv_tracker on bucket infoYehuda Sadeh2013-06-236-64/+63
| | | | | | | | | | | | | | | | | | This ties it to the specific object instance info. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: refactor policy readingYehuda Sadeh2013-06-232-45/+52
| | | | | | | | | | | | | | | | | | reuse bucket info, no need to reread it again. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: fix policy readYehuda Sadeh2013-06-231-35/+84
| | | | | | | | | | | | | | | | | | | | | | | | policy reading used to have exact same logic for both buckets and objects, however, we now need to read bucket attributes through get_bucket_info(). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | rgw: init member variableYehuda Sadeh2013-06-231-0/+2
| | | | | | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>