summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rgw: fix json decoding of rgw_bucketwip-rgw-zoneYehuda Sadeh2013-02-223-15/+23
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: regionmap updateYehuda Sadeh2013-02-226-14/+145
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: get/set region mapYehuda Sadeh2013-02-213-0/+94
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: zone list, setup changesYehuda Sadeh2013-02-213-62/+132
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* common/ceph_parser.cc: cleanupYehuda Sadeh2013-02-211-2/+0
| | | | | | remove extra logging to stdout Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: set region info, default regionYehuda Sadeh2013-02-201-1/+49
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: can list regions, show default region infoYehuda Sadeh2013-02-203-29/+141
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: some region/zone related cleanups/fixesYehuda Sadeh2013-02-193-7/+8
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: admin command to show region infoYehuda Sadeh2013-02-193-14/+56
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: derr -> lderrYehuda Sadeh2013-02-151-2/+4
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: region creationYehuda Sadeh2013-02-146-17/+291
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: region management encoding/decoding changesYehuda Sadeh2013-02-123-110/+96
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: define region/zone data structuresYehuda Sadeh2013-02-122-0/+141
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: s/RadosParams/ZoneParams/gYehuda Sadeh2013-02-127-69/+69
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: zone info is configurableYehuda Sadeh2013-02-123-2/+121
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: s/cluster/zoneYehuda Sadeh2013-02-123-15/+15
| | | | | | Old cluster definition is what we'd call zone from now on. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: generic decode_json for containersYehuda Sadeh2013-02-122-32/+59
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: add encode_jsonYehuda Sadeh2013-02-126-127/+218
| | | | | | | | | | dump() just dumps the internal content of an object, encode_json() create the object inside its own section. Note that there are cases where we don't want an object to be surrounded by a section, e.g., when an object represents an array. In such a case we'd need to override the encode_json() for this object type. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* moved rgw/rgw_json.* common/ceph_json.*Yehuda Sadeh2013-02-117-27/+26
| | | | Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: rgw_jsonparser changesYehuda Sadeh2013-02-111-11/+61
| | | | | | Now testing json_decode functionality. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: decode RGWUserInfo using decode_jsonYehuda Sadeh2013-02-116-385/+527
| | | | | | | RGWUserInfo can be decoded using json_decode, and fix the ->dump() method to match that decoding. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: introduce decode_json to easily decode json structuresYehuda Sadeh2013-02-112-4/+193
| | | | | | | Introducing a new way to define the json structure of an object, similar to what we do with bufferlist encode/decode. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: get bucket_owner from policyYehuda Sadeh2013-02-071-13/+2
| | | | | | | We already read the bucket policy, we can get the bucket owner from there. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* rgw: fix bucket_owner assignmentYehuda Sadeh2013-02-071-1/+1
| | | | | | s->bucket_acl may be null, so reverting to old behavior. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* Feature 3667: Support extra canned acls.caleb miles2013-02-077-21/+70
| | | | | | | | Support the bucket-owner-read and bucket-owner-full canned acls. Signed-off-by caleb miles <caleb.miles@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
* modified the script to run on both argonaut and bobtail.tamil2013-02-072-9/+17
| | | | Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
* mds: rename mds_traceless_replies to mds_inject_traceless_reply_probabilityGreg Farnum2013-02-072-4/+5
| | | | | | | | Sage pointed out we should try for consistent naming on these debug options, and this option is like our other inject_[x] stuff. While we're here, make the config option comment a bit clearer. 08b82b3ef6b43283e35fd4e56eb5c78651345bea
* qa: fix iogen scriptSage Weil2013-02-061-0/+5
| | | | | | Wait 10 minutes and then stop. Signed-off-by: Sage Weil <sage@inktank.com>
* client: trigger the completion in _flush when short-cuttingGreg Farnum2013-02-061-0/+2
| | | | | | | | | | | | We missed a shortcut return from _flush() when doing e9a6694d0151b79c3a3b44cee5df8e3d4dcbfc2c, so _fsync() calls were failing. To fix, if _flush discovers there's nothing to flush, trigger the completion by calling onfinish->finish(). Fixes #4038 Signed-off-by: Greg Farnum <greg@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
* mds: add "mds traceless replies" debug optionGreg Farnum2013-02-063-4/+15
| | | | | | | | | | | | This option specifies (in the range 0-1) the percentage of modifying operations that should be responded to without including a trace for the dentries. In order to implement it, we add a "modify" parameter to set_trace_dist(), and the callers fill that with mdr->req->may_write(). Signed-off-by: Greg Farnum <greg@inktank.com> Reviewed-by: Sam Lang <sam.lang@inktank.com>
* logrotate.conf: Silence rgw logrotate some moreGary Lowell2013-02-061-3/+3
| | | | | | | Apply the same change as commit d02340d90c9d30d44c962bea7171db3fe3bfba8e to the radosgw logrotate.conf. Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
* silence logrotate some moreAlexandre Oliva2013-02-061-3/+3
| | | | | | | | | | | I was getting email with logrotate error output from “which invoke-rc.d” on systems without an invoke-rc.d. This patch silences it. Silence stderr from which when running logrotate From: Alexandre Oliva <oliva@gnu.org> Signed-off-by: Alexandre Oliva <oliva@gnu.org>
* Merge remote-tracking branch 'gh/wip-danny-cleanups'Sage Weil2013-02-069-20/+25
|\ | | | | | | Reviewed-by: Sage Weil <sage@inktank.com>
| * rbd-fuse: fix for loop in open_rbd_image()Danny Al-Gaaf2013-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove uninitialized usage of 'int i' as i++ from 'for' loop. The variale 'i' is never used in this loop and initialized before the next use with 0. Related warning from clang++: rbd_fuse/rbd-fuse.c:141:36: warning: variable 'i' is uninitialized when used here [-Wuninitialized] for (im = rbd_images; im != NULL; i++, im = im->next) { Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * msg/Message.h: fix C-style pointer castingDanny Al-Gaaf2013-02-061-2/+2
| | | | | | | | | | | | Replace C-style pointer casting with correct static_cast<>(). Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * messages/MOSDRepScrub.h: initialize member variable in constructorDanny Al-Gaaf2013-02-061-1/+4
| | | | | | | | | | | | | | Initialize chunky and deep bool member variables in the constructor with false. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * include/xlist.h: fix C-style pointer castingDanny Al-Gaaf2013-02-061-3/+3
| | | | | | | | | | | | Replace C-style pointer casting with correct static_cast<>(). Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * include/types.h: change operator<< function parameterDanny Al-Gaaf2013-02-061-1/+1
| | | | | | | | | | | | | | Fix "Function parameter 'v' should be passed by reference." from cppchecker. Use 'const pair<A,B>& v' similar to the other operator<< in this file. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * include/buffer.h: fix operator=Danny Al-Gaaf2013-02-061-3/+5
| | | | | | | | | | | | | | Fix operator=: return "iterator&" instead of 'iterator'. Check if 'this' equals 'other' before set anything. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * obj_bencher.cc: use vector instead of VLA'sDanny Al-Gaaf2013-02-061-6/+7
| | | | | | | | | | | | Fix "variable length array of non-POD element type" error. (-Wvla) Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * ceph_crypto.cc: remove unused shutdown() outside crypto ifdef'sDanny Al-Gaaf2013-02-061-1/+0
| | | | | | | | | | | | | | | | | | Fix "out-of-line declaration of a member must be a definition [-Wout-of-line-declaration]". Remove ceph::crypto::shutdown() outside the crypto related ifdef's. Without nss or cryptopp configure will fail anyways. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
| * WorkQueue.h: fix castDanny Al-Gaaf2013-02-061-2/+2
| | | | | | | | | | | | Replace C-style pointer casting with correct static_cast<>(). Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* | Merge remote-tracking branch 'gh/wip-3768'Sage Weil2013-02-067-10/+36
|\ \
| * | Makefile: Add rgw/logrotate.conf source tarballGary Lowell2013-02-051-0/+1
| | | | | | | | | | | | Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
| * | logrotate.conf: Remove unneeded loop and update new rgw version.Gary Lowell2013-02-052-7/+15
| | | | | | | | | | | | | | | | | | | | | Remove an unneeded for loop from the ceph logrotate.conf, and update the new rgw logrotate.conf to reload the radosgw serivce. Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
| * | rgw: create a separate logrotate file for radosgwYehuda Sadeh2013-02-054-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #3813 Since radosgw package is separate from the ceph package, it also needs to have a separate logrotate. The default path for radosgw log is changed to /var/log/radosgw, and it now has a different logrotate script. Updating both deb and rpm packaging. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
| * | cli test: add pg deep-scrub option to testGary Lowell2013-02-041-0/+1
| | | | | | | | | | | | Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
| * | install: remove perl dependencyGary Lowell2013-02-043-3/+2
| | | | | | | | | | | | | | | | | | | | | Change the filter in logrotate to use sed instead of perl, and remove the package dependency on perl. Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
* | | test: fix Throttle unit test.Greg Farnum2013-02-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | A bunch of these are slightly racy so they're enclosed in loops. This particular one, though, changes the Throttle state in ways that invalidate the asserts. To fix, reset the state before commencing a rerun. Signed-off-by: Greg Farnum <greg@inktank.com>
* | | osd: do not spam system log on successful read_logSage Weil2013-02-061-1/+2
| |/ |/| | | | | Signed-off-by: Sage Weil <sage@inktank.com>