summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rgw: call appropriate curl calls for waiting on socketsrgw-next-libcurlYehuda Sadeh2013-07-085-51/+72
| | | | | | | | | If libcurl supports curl_multi_wait() then use it, otherwise use select() and force a timeout, even if it has been disabled. Otherwise we may wait forever for events that we can't wait for as select() only uses fds < 1024. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* configure.ac: detect whether libcurl supports curl_multi_wait()Yehuda Sadeh2013-07-081-0/+5
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* cls_rgw: skip namespaced entries when listing bucketYehuda Sadeh2013-06-201-2/+55
| | | | | | | | | | We added a namespace to the entries, and sadly there can be valid entries beyond it. Previously we assumed that once we encounter the namespace tag we're done. That was wrong. We need to skip the namespace and continue the listing from there. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: handle racing default region creationYehuda Sadeh2013-06-181-3/+9
| | | | | | | | | If region is not specified and there's no default region set we try to create a default region. However, we may race with another process trying to do the same, so we should handle that gracefully. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: move a couple of unitests to a different Makefile ruleYehuda Sadeh2013-06-171-2/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: add 'delete' to signed subresources listYehuda Sadeh2013-06-171-0/+1
| | | | | | | | This fixes a regression that removed 'delete' from the signed subresources list, thus made it impossible to authenticate certain multipart object operations. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* test: update cli testYehuda Sadeh2013-06-171-0/+4
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: set default region as masterYehuda Sadeh2013-06-171-0/+2
| | | | | | | A default region that is automaticall created needs to be set as the master. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: send meta headers with remote PUT requestYehuda Sadeh2013-06-105-9/+28
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: don't busy wait for outgoing rest requestsYehuda Sadeh2013-06-102-25/+26
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: don't send redirect if copy object has a local sourceYehuda Sadeh2013-06-101-1/+31
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: link bucket to owner on metadata updateYehuda Sadeh2013-06-101-0/+4
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix logic related to operations on different regionYehuda Sadeh2013-06-101-2/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: minor logging changeYehuda Sadeh2013-06-101-1/+2
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix json decoding for swift keysYehuda Sadeh2013-06-101-4/+3
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: stream obj into http requestYehuda Sadeh2013-06-107-24/+334
| | | | | | | still need to figure out curl handle polling, handle client errors correctly. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: format put request authYehuda Sadeh2013-06-102-17/+55
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: bucket metadata, ignore ENOENT on putYehuda Sadeh2013-06-101-1/+1
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: skeleton for obj copy across regionsYehuda Sadeh2013-06-108-3/+78
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: metadata lock/unlock implemented with test casesBabu Shanmugam2013-06-1013-151/+409
| | | | | | | | | | | | | | metadata lock/unlock implemented with test cases split Post operations to Lock and Unlock operations, and checking for WRITE permission only for lock and unlock Signed-off-by: Babu Shanmugam <anbu@enovance.com> Conflicts: src/rgw/rgw_rest_log.cc src/rgw/rgw_rest_log.h Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* RESTful APIs for data changes log implemented with test casesBabu Shanmugam2013-06-106-6/+626
| | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
* rgw: some user metadata fixesYehuda Sadeh2013-05-311-5/+17
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw_admin: modify mdlog functionalityYehuda Sadeh2013-05-311-20/+37
| | | | | | | mdlog list, can handle cases where there is and there's no shard id specified. mdlog trim requires shard if. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: set truncated as false if ENOENT when listing mdlog entriesYehuda Sadeh2013-05-311-0/+4
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* Merge branch 'wip-rgw-geo-enovance' into wip-rgw-geo-2Yehuda Sadeh2013-05-3114-64/+1827
|\ | | | | | | | | | | | | | | Conflicts: src/Makefile.am src/rgw/rgw_admin.cc Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * flushed the formatter after closing the primary section in MDLOG, BILOG and ↵Babu Shanmugam2013-05-302-1/+4
| | | | | | | | | | | | GETSHARDINFO :: list() Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * rgw: mdlog, bilog RESTful api cleanupYehuda Sadeh2013-05-282-80/+118
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * With mdlog lock and unlock functionality, listing and trimming base on shard_idBabu Shanmugam2013-05-289-104/+384
| | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * Added send_response implementation for MDLOG and BILOG list APIs so that ↵Babu Shanmugam2013-05-213-9/+44
| | | | | | | | | | | | periodic flushing can happend in execute() Signed-off-by: Babu Shanmugam <anbu@enovance.com>
| * MDLOG and BILOG REST Apis implemented along with some bug fixesBabu Shanmugam2013-05-1811-13/+1419
| | | | | | | | Signed-off-by: Babu Shanmugam <anbu@enovance.com>
* | rgw: Do not assum rest connection to be establishedChristophe Courtaut2013-05-311-0/+4
| | | | | | | | | | | | | | | | Added a check to verify that rest connection is correctly initialized, preventing a segmentation fault. Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: verify bucket location only if existsYehuda Sadeh2013-05-292-10/+9
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: forward delete_bucket to master regionYehuda Sadeh2013-05-297-29/+60
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | Fixed default region creation issueChristophe Courtaut2013-05-291-0/+4
| | | | | | | | | | | | | | | | | | | | If the default region did not exist, it is created, but the previously created RGWDefaultRegionInfo object is not updated. This fix updates this objects after the default region creation. It was also preventing vstart.sh script to start with -r option. Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: user master region's version of bucketYehuda Sadeh2013-05-2912-73/+153
| | | | | | | | | | | | | | When creating a bucket, retrieve the bucket object version from the master region and use it. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: propagate region on bucket creationYehuda Sadeh2013-05-248-7/+24
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: determine owner after effetctive userYehuda Sadeh2013-05-241-4/+5
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: forward request params through upstream RESTYehuda Sadeh2013-05-246-5/+57
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: enable data sending via http clientYehuda Sadeh2013-05-249-24/+83
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: multiple fixes and cleanupsYehuda Sadeh2013-05-2311-24/+75
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | utime: add asctime()Yehuda Sadeh2013-05-231-0/+27
| | | | | | | | | | | | dump time in a useful format Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: rest_client, forward requestsYehuda Sadeh2013-05-237-64/+129
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: some code cleanupYehuda Sadeh2013-05-235-158/+173
| | | | | | | | | | | | move s3 signing code to a different common file. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: separate certain request info into different structureYehuda Sadeh2013-05-2315-195/+204
| | | | | | | | | | | | This is needed for later request forwarding. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: clean up s3 signing codeYehuda Sadeh2013-05-223-59/+107
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: add system usersYehuda Sadeh2013-05-226-1/+53
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: pre-generate bucket object version before creating itYehuda Sadeh2013-05-225-3/+18
| | | | | | | | | | | | | | | | Use this version when creating the bucket instead of letting the objclass auto-generate it, so that we could return it to the slave region when creating its bucket on the master. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: forward bucket creation to master regionYehuda Sadeh2013-05-2112-34/+71
| | | | | | | | | | | | plus many fixes. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: infrastructure to send requests to different regionYehuda Sadeh2013-05-218-2/+234
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | rgw: add access key to zone infoYehuda Sadeh2013-05-203-2/+22
| | | | | | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>