]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoceph-test.install: updated filelist
Danny Al-Gaaf [Sun, 10 Feb 2013 18:00:40 +0000 (19:00 +0100)]
ceph-test.install: updated filelist

Add some files which are part of the ceph-test package on RPM based
distributions already: ceph_test_mon_workloadgen, ceph_rgw_jsonparser,
ceph_test_objectcacher_stress.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agospec/debian: don't install rest-bench twice
Danny Al-Gaaf [Sun, 10 Feb 2013 17:56:47 +0000 (18:56 +0100)]
spec/debian: don't install rest-bench twice

Don't install rest-bench in ceph.spec.in section for ceph-test and
ceph-test.install twice. This file is already part of the rest-bench
package.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-test: give binaries from ceph-test package useful names
Danny Al-Gaaf [Sun, 10 Feb 2013 17:33:56 +0000 (18:33 +0100)]
ceph-test: give binaries from ceph-test package useful  names

The files from the ceph-test subpackage are installed to /usr/bin,
give them more useful names to make sure that the user know they
belong to ceph. add a 'ceph_' prefix and change some test* binaries
to ceph_test_*.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agojava: make CephMountTest use user.* xattr names
Sage Weil [Sat, 9 Feb 2013 05:36:13 +0000 (21:36 -0800)]
java: make CephMountTest use user.* xattr names

Changes to the xattr code in Ceph require
a few tweaks to existing test cases.
Specifically, there is now a ceph.file.layout
xattr by default and user defined xattrs
are prepended with "user."

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMerge branch 'next'
Sage Weil [Sat, 9 Feb 2013 17:41:02 +0000 (09:41 -0800)]
Merge branch 'next'

12 years agoosd: fix load_pgs collection handling
Sage Weil [Sat, 9 Feb 2013 08:05:33 +0000 (00:05 -0800)]
osd: fix load_pgs collection handling

On a _TEMP pg, is_pg() would succeed, which meant we weren't actually
hitting the cleanup checks.  Instead, restructure this loop as positive
checks and handle each type of collection we understand.

This fixes _TEMP cleanup.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoosd: fix load_pgs handling of pg dirs without a head
Sage Weil [Sat, 9 Feb 2013 08:04:29 +0000 (00:04 -0800)]
osd: fix load_pgs handling of pg dirs without a head

If there is a pgid that passes coll_t::is_pg() but there is no head, we
will populate the pgs map but then fail later when we try to do
read_state.  This is a side-effect of 55f8579.

Take explicit note of _head collections we see, and then warn when we
find stray snap collections.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Sat, 9 Feb 2013 17:40:34 +0000 (09:40 -0800)]
Merge branch 'next'

Conflicts:
src/mon/PGMonitor.h

12 years agoOSD::load_pgs: first scan colls before initing PGs
Samuel Just [Thu, 7 Feb 2013 21:34:47 +0000 (13:34 -0800)]
OSD::load_pgs: first scan colls before initing PGs

Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agotest/crypto: fix narrowing conversion warning
Sage Weil [Sat, 9 Feb 2013 05:47:34 +0000 (21:47 -0800)]
test/crypto: fix narrowing conversion warning

warning: test/crypto.cc:49:3: narrowing conversion of ‘136’ from ‘int’ to ‘char’ inside { } is ill-formed in C++11 [-Wnarrowing]

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: update commands for fetching release PGP keys
Sage Weil [Sat, 9 Feb 2013 05:09:20 +0000 (21:09 -0800)]
doc: update commands for fetching release PGP keys

Use https to ceph.com.  The gitweb URLs aren't as pretty, but our
cert is at least valid!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Removed unnecessary/contradictory options.
John Wilkins [Fri, 8 Feb 2013 21:27:58 +0000 (13:27 -0800)]
doc: Removed unnecessary/contradictory options.

fixes: #4058

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed order of option.
John Wilkins [Fri, 8 Feb 2013 21:18:23 +0000 (13:18 -0800)]
doc: Fixed order of option.

fixes: #4046

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agomon: fix typo in C_Stats
Sage Weil [Fri, 8 Feb 2013 17:59:25 +0000 (09:59 -0800)]
mon: fix typo in C_Stats

Broken by previous commit.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: assert valid context return values
Sage Weil [Fri, 8 Feb 2013 07:13:17 +0000 (23:13 -0800)]
mon: assert valid context return values

We recognized EAGAIN, ECANCELED, and success only.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Fri, 8 Feb 2013 17:18:01 +0000 (09:18 -0800)]
Merge branch 'next'

12 years agomon: retry PGStats message on EAGAIN
Sage Weil [Fri, 8 Feb 2013 07:13:11 +0000 (23:13 -0800)]
mon: retry PGStats message on EAGAIN

If we get EAGAIN from a paxos restart/election/whatever, we should
restart the message instead of just blindly acking it.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
12 years agomon: handle -EAGAIN in completion contexts
Sage Weil [Fri, 8 Feb 2013 06:06:14 +0000 (22:06 -0800)]
mon: handle -EAGAIN in completion contexts

We can get ECANCELED, EAGAIN, or success out of the completion contexts,
but in the EAGAIN case (meaning there was an election) we were sending
a success to the client.  This resulted in client hangs and all-around
confusion when the monitor cluster was thrashing.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Fri, 8 Feb 2013 07:20:44 +0000 (23:20 -0800)]
Merge branch 'next'

12 years agoradosgw-admin: fix cli test
Sage Weil [Fri, 8 Feb 2013 06:51:29 +0000 (22:51 -0800)]
radosgw-admin: fix cli test

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agokeys: renew autobuild.asc key
Sage Weil [Fri, 8 Feb 2013 06:31:40 +0000 (22:31 -0800)]
keys: renew autobuild.asc key

This expired today.  Change it to never expire, like the Ubuntu release
keys.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Fri, 8 Feb 2013 06:19:58 +0000 (22:19 -0800)]
Merge remote-tracking branch 'gh/next'

12 years agoMerge remote-tracking branch 'origin/master' into wip-2941-3
Yehuda Sadeh [Fri, 8 Feb 2013 01:16:49 +0000 (17:16 -0800)]
Merge remote-tracking branch 'origin/master' into wip-2941-3

12 years agorgw: stream get_obj operation
Yehuda Sadeh [Sat, 15 Dec 2012 01:29:37 +0000 (17:29 -0800)]
rgw: stream get_obj operation

Fixes: #2941
Instead of iterating through the parts one by one when reading
an object, we can now send multiple requests in parallel. Two new
configurables added to control the max request size, and the total
size of pending requests.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agothrottle: optional non perf counter mode
Yehuda Sadeh [Tue, 18 Dec 2012 06:12:37 +0000 (22:12 -0800)]
throttle: optional non perf counter mode

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoOSD: check pg snap collections on start up
Samuel Just [Fri, 8 Feb 2013 00:04:59 +0000 (16:04 -0800)]
OSD: check pg snap collections on start up

Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoOSD::load_pgs: first scan colls before initing PGs
Samuel Just [Thu, 7 Feb 2013 21:34:47 +0000 (13:34 -0800)]
OSD::load_pgs: first scan colls before initing PGs

Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agorgw: get bucket_owner from policy
Yehuda Sadeh [Thu, 7 Feb 2013 22:41:24 +0000 (14:41 -0800)]
rgw: get bucket_owner from policy

We already read the bucket policy, we can get the bucket
owner from there.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix bucket_owner assignment
Yehuda Sadeh [Thu, 7 Feb 2013 22:40:11 +0000 (14:40 -0800)]
rgw: fix bucket_owner assignment

s->bucket_acl may be null, so reverting to old behavior.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoFeature 3667: Support extra canned acls.
caleb miles [Tue, 5 Feb 2013 19:10:03 +0000 (14:10 -0500)]
Feature 3667: Support extra canned acls.

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>
12 years agoReplicatedPG: check store for temp collection in have_temp_coll
Samuel Just [Thu, 7 Feb 2013 19:53:28 +0000 (11:53 -0800)]
ReplicatedPG: check store for temp collection in have_temp_coll

We may not have "created" the temp collection since OSD restart
before removing the PG.  have_temp_coll must also look at the
OSD store.  Currently, the only user is pg removal, so the
extra work is acceptable.

Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agorgw: a tool to fix clobbered bucket info in user's bucket list
Yehuda Sadeh [Thu, 7 Feb 2013 01:10:00 +0000 (17:10 -0800)]
rgw: a tool to fix clobbered bucket info in user's bucket list

This fixes bad entries in user's bucket list that may have occured
due to issue #4039. Syntax:

 $ radosgw-admin user check --uid=<uid> [--fix]

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 9cb6c33f0e2281b66cc690a28e08459f2e62ca13)

Conflicts:
src/rgw/rgw_admin.cc

12 years agorgw: bucket recreation should not clobber bucket info
Yehuda Sadeh [Thu, 7 Feb 2013 00:43:48 +0000 (16:43 -0800)]
rgw: bucket recreation should not clobber bucket info

Fixes: #4039
User's list of buckets is getting modified even if bucket already
exists. This fix removes the newly created directory object, and
makes sure that user info's data points at the correct bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 9d006ec40ced9d97b590ee07ca9171f0c9bec6e9)

Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc

12 years agoMerge branch 'wip-cephtool' into next
Dan Mick [Thu, 7 Feb 2013 21:09:28 +0000 (13:09 -0800)]
Merge branch 'wip-cephtool' into next

Usage/errmsg fixups for the ceph CLI tool

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoceph: fix 'pg' error message to direct user toward better input
Dan Mick [Thu, 7 Feb 2013 00:27:39 +0000 (16:27 -0800)]
ceph: fix 'pg' error message to direct user toward better input

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agomds: error messages for export_dir said 'migrate_dir'
Dan Mick [Wed, 6 Feb 2013 06:17:00 +0000 (22:17 -0800)]
mds: error messages for export_dir said 'migrate_dir'

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: ceph mon delete doesn't exist; ceph mon remove is the command
Dan Mick [Tue, 5 Feb 2013 04:40:12 +0000 (20:40 -0800)]
ceph: ceph mon delete doesn't exist; ceph mon remove is the command
Fix up cli test as well (doc is already correct)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoosd: fix name of setomapval admin-daemon command
Dan Mick [Thu, 31 Jan 2013 23:07:14 +0000 (15:07 -0800)]
osd: fix name of setomapval admin-daemon command

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoceph: use "config set" consistently in help/error msgs
Dan Mick [Thu, 31 Jan 2013 22:26:10 +0000 (14:26 -0800)]
ceph: use "config set" consistently in help/error msgs

apparently it was once known as set_config.  Fix up everything to
refer to the new name.  Also, fix up the help message.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agomodified the script to run on both argonaut and bobtail.
tamil [Thu, 7 Feb 2013 19:47:06 +0000 (11:47 -0800)]
modified the script to run on both argonaut and bobtail.
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoPG: dirty_info on handle_activate_map
Samuel Just [Thu, 7 Feb 2013 18:38:00 +0000 (10:38 -0800)]
PG: dirty_info on handle_activate_map

We need to make sure the pg epoch is persisted during
activate_map.

Backport: bobtail
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agomds: rename mds_traceless_replies to mds_inject_traceless_reply_probability
Greg Farnum [Thu, 7 Feb 2013 18:25:33 +0000 (10:25 -0800)]
mds: rename mds_traceless_replies to mds_inject_traceless_reply_probability

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

12 years agoosd: flush peering queue (consume maps) prior to boot
Sage Weil [Thu, 7 Feb 2013 18:21:49 +0000 (10:21 -0800)]
osd: flush peering queue (consume maps) prior to boot

If the osd itself is behind on many maps during boot, it will get more and
(as part of that) flush the peering wq to ensure the pgs consume them.
However, it is possible for OSD to have latest/recnet maps, but pgs to be
behind, and to jump directly to boot and join.  The OSD is then laggy and
unresponsive because the peering wq is way behind.

To avoid this, call consume_map() (kick the peering wq) at the end of
init and flush it to ensure we are *internally* all caught up before we
consider joining the cluster.

I'm pretty sure this is the root cause of #3905 and possibly #3995.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoqa: fix iogen script
Sage Weil [Thu, 7 Feb 2013 06:01:24 +0000 (22:01 -0800)]
qa: fix iogen script

Wait 10 minutes and then stop.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoclient: trigger the completion in _flush when short-cutting
Greg Farnum [Thu, 7 Feb 2013 00:35:49 +0000 (16:35 -0800)]
client: trigger the completion in _flush when short-cutting

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>
12 years agomds: add "mds traceless replies" debug option
Greg Farnum [Wed, 6 Feb 2013 21:32:53 +0000 (13:32 -0800)]
mds: add "mds traceless replies" debug option

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>
12 years agologrotate.conf: Silence rgw logrotate some more
Gary Lowell [Wed, 6 Feb 2013 19:45:30 +0000 (11:45 -0800)]
logrotate.conf: Silence rgw logrotate some more

Apply the same change as commit d02340d90c9d30d44c962bea7171db3fe3bfba8e to
the radosgw logrotate.conf.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agosilence logrotate some more
Alexandre Oliva [Wed, 6 Feb 2013 17:27:13 +0000 (15:27 -0200)]
silence logrotate some more

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>
12 years agoMerge remote-tracking branch 'gh/wip-danny-cleanups'
Sage Weil [Wed, 6 Feb 2013 18:43:29 +0000 (10:43 -0800)]
Merge remote-tracking branch 'gh/wip-danny-cleanups'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-3768'
Sage Weil [Wed, 6 Feb 2013 18:38:08 +0000 (10:38 -0800)]
Merge remote-tracking branch 'gh/wip-3768'

12 years agotest: fix Throttle unit test.
Greg Farnum [Wed, 6 Feb 2013 18:22:06 +0000 (10:22 -0800)]
test: fix Throttle unit test.

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>
12 years agoosd: do not spam system log on successful read_log
Sage Weil [Wed, 6 Feb 2013 17:02:54 +0000 (09:02 -0800)]
osd: do not spam system log on successful read_log

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd-fuse: fix for loop in open_rbd_image()
Danny Al-Gaaf [Wed, 6 Feb 2013 11:17:02 +0000 (12:17 +0100)]
rbd-fuse: fix for loop in open_rbd_image()

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>
12 years agomsg/Message.h: fix C-style pointer casting
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:51 +0000 (12:02 +0100)]
msg/Message.h: fix C-style pointer casting

Replace C-style pointer casting with correct static_cast<>().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomessages/MOSDRepScrub.h: initialize member variable in constructor
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:50 +0000 (12:02 +0100)]
messages/MOSDRepScrub.h: initialize member variable in constructor

Initialize chunky and deep bool member variables in the constructor
with false.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoinclude/xlist.h: fix C-style pointer casting
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:49 +0000 (12:02 +0100)]
include/xlist.h: fix C-style pointer casting

Replace C-style pointer casting with correct static_cast<>().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoinclude/types.h: change operator<< function parameter
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:48 +0000 (12:02 +0100)]
include/types.h: change operator<< function parameter

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>
12 years agoinclude/buffer.h: fix operator=
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:47 +0000 (12:02 +0100)]
include/buffer.h: fix operator=

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>
12 years agoobj_bencher.cc: use vector instead of VLA's
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:46 +0000 (12:02 +0100)]
obj_bencher.cc: use vector instead of VLA's

Fix "variable length array of non-POD element type" error. (-Wvla)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph_crypto.cc: remove unused shutdown() outside crypto ifdef's
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:45 +0000 (12:02 +0100)]
ceph_crypto.cc: remove unused shutdown() outside crypto ifdef's

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>
12 years agoWorkQueue.h: fix cast
Danny Al-Gaaf [Wed, 6 Feb 2013 11:02:44 +0000 (12:02 +0100)]
WorkQueue.h: fix cast

Replace C-style pointer casting with correct static_cast<>().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agorgw: a tool to fix buckets with leaked multipart references
Yehuda Sadeh [Tue, 5 Feb 2013 22:50:54 +0000 (14:50 -0800)]
rgw: a tool to fix buckets with leaked multipart references

Checks specified bucket for the #4011 symptoms, optionally fix
the issue.

sytax:
  radosgw-admin bucket check --bucket=<bucket> [--fix]

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 2d8faf8e5f15e833e6b556b0f3c4ac92e4a4151e)

Conflicts:
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.h

12 years agorgw: radosgw-admin object unlink
Yehuda Sadeh [Tue, 5 Feb 2013 21:54:11 +0000 (13:54 -0800)]
rgw: radosgw-admin object unlink

Add a radosgw-admin option to remove object from bucket index

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 16235a7acb9543d60470170bb2a09956364626cd)

Conflicts:
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.h
src/test/cli/radosgw-admin/help.t

12 years agoMerge remote-tracking branch 'gh/wip-osd-commands'
Sage Weil [Wed, 6 Feb 2013 01:31:48 +0000 (17:31 -0800)]
Merge remote-tracking branch 'gh/wip-osd-commands'

Reviewed-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
12 years agomon: move list_rules into CrushWrapper method
Sage Weil [Wed, 6 Feb 2013 00:35:55 +0000 (16:35 -0800)]
mon: move list_rules into CrushWrapper method

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: add list_rules() method
Sage Weil [Wed, 6 Feb 2013 00:35:43 +0000 (16:35 -0800)]
crush: add list_rules() method

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMakefile: Add rgw/logrotate.conf source tarball
Gary Lowell [Wed, 6 Feb 2013 00:14:10 +0000 (16:14 -0800)]
Makefile:  Add rgw/logrotate.conf source tarball

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agologrotate.conf: Remove unneeded loop and update new rgw version.
Gary Lowell [Tue, 5 Feb 2013 23:20:43 +0000 (15:20 -0800)]
logrotate.conf:  Remove unneeded loop and update new rgw version.

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>
12 years agorgw: create a separate logrotate file for radosgw
Yehuda Sadeh [Thu, 17 Jan 2013 21:06:14 +0000 (13:06 -0800)]
rgw: create a separate logrotate file for radosgw

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>
12 years agoqa: add workunits/mon/crush_ops.sh
Sage Weil [Wed, 30 Jan 2013 09:04:54 +0000 (01:04 -0800)]
qa: add workunits/mon/crush_ops.sh

Test creating, listing, removing crush rules via the mon.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: 'osd crush rule rm <name>'
Sage Weil [Wed, 30 Jan 2013 09:00:59 +0000 (01:00 -0800)]
mon: 'osd crush rule rm <name>'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosdmap: method to check if a crush ruleset is in use
Sage Weil [Wed, 30 Jan 2013 08:51:49 +0000 (00:51 -0800)]
osdmap: method to check if a crush ruleset is in use

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: remove_rule() method
Sage Weil [Wed, 30 Jan 2013 08:50:33 +0000 (00:50 -0800)]
crush: remove_rule() method

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: factor out (trivial) crush_destroy_rule()
Sage Weil [Wed, 30 Jan 2013 08:50:21 +0000 (00:50 -0800)]
crush: factor out (trivial) crush_destroy_rule()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: 'osd crush rules list|ls'
Sage Weil [Tue, 5 Feb 2013 22:31:10 +0000 (14:31 -0800)]
mon: 'osd crush rules list|ls'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: 'osd crush dump'
Sage Weil [Wed, 30 Jan 2013 08:29:18 +0000 (00:29 -0800)]
mon: 'osd crush dump'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: factor out dump_rules from dump
Sage Weil [Wed, 30 Jan 2013 08:29:04 +0000 (00:29 -0800)]
crush: factor out dump_rules from dump

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: 'osd crush rule create-simple <name> <root> <failure_domain_type>'
Sage Weil [Tue, 5 Feb 2013 22:30:34 +0000 (14:30 -0800)]
mon: 'osd crush rule create-simple <name> <root> <failure_domain_type>'

Simple command to create simple rules.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: add_simple_rule() command
Sage Weil [Wed, 30 Jan 2013 08:00:47 +0000 (00:00 -0800)]
crush: add_simple_rule() command

Method to create a very generic rule the distributes objects across the
specified failure domain type underneath the given root.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: fix get_rule_id() return value
Sage Weil [Wed, 30 Jan 2013 07:52:28 +0000 (23:52 -0800)]
crush: fix get_rule_id() return value

There are 0 callers, yay!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocrush: add rule_exists()
Sage Weil [Wed, 30 Jan 2013 07:51:15 +0000 (23:51 -0800)]
crush: add rule_exists()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: 'osd find <osd-id>' command
Sage Weil [Tue, 29 Jan 2013 23:55:17 +0000 (15:55 -0800)]
mon: 'osd find <osd-id>' command

Simple command to find the ip, host, rack, etc. for an OSD.  This is better
than 'ceph osd dump | grep ^osd.NNN\ '.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-2753-fsync-errors'
Greg Farnum [Tue, 5 Feb 2013 21:48:49 +0000 (13:48 -0800)]
Merge branch 'wip-2753-fsync-errors'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomon: check correct length of command
Dan Mick [Tue, 5 Feb 2013 21:27:40 +0000 (13:27 -0800)]
mon: check correct length of command

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge pull request #39 from dachary/master
Gregory Farnum [Tue, 5 Feb 2013 19:13:49 +0000 (11:13 -0800)]
Merge pull request #39 from dachary/master

Relax Throttle::_reset_max conditions and associated unit tests

12 years agoRelax Throttle::_reset_max conditions and associated unit tests 39/head
Loic Dachary [Sun, 20 Jan 2013 11:35:10 +0000 (11:35 +0000)]
Relax Throttle::_reset_max conditions and associated unit tests

Removes a condition in Throttle::_reset_max by which the waiting queue is only
Signal()ed if the new maximum is lower than the current maximum.
There is no evidence of a use case where such a restriction would be
useful. In addition waking up a thread when the maximum increases
gives it a chance to immediately continue the suspended process
instead of waiting for the next put().

Create a new test file covering 100% of src/Throttle.{cc,h} lines of code.
The following methods are tested:

* Throttle::Throttle with and without a maximum
* Throttle::~Throttle when each pending Cond is deleted
* Throttle::take
* Throttle::get when updating the maximum ( lower or higher ),
  when going to sleep waiting for the count to lower under
  the maximum, when going to sleep because another thread is
  already asleep waiting
* Throttle::get_or_fail when there is no maximum,
  when requesting a count that is larger than the maximum, either
  when the current value is under the maximum or above the maximum.
* Throttle::wait when used to reset the maximum and wake up
  another thread asleep waiting

All asserts checking the arguments sanity are exercised ( negative argument
for Throttle::take etc. ).
Adds the LGPLv2+ licensing terms to COPYING along with the others.
Adds a Contributors section to the AUTHORS file.

Notes:
Testing asserts outputs verbose error messages that should be silenced
but it does not seem possible.

Signed-off-by: Loic Dachary <loic@dachary.org>
12 years agoos: default to 'journal aio = true'
Sage Weil [Tue, 5 Feb 2013 18:29:11 +0000 (10:29 -0800)]
os: default to 'journal aio = true'

Hooray, testing indicates this is a win!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #36 from cmello/master
Gregory Farnum [Tue, 5 Feb 2013 18:20:18 +0000 (10:20 -0800)]
Merge pull request #36 from cmello/master

libexpat dependency

12 years agoMerge pull request #38 from alram/master
John Wilkins [Tue, 5 Feb 2013 17:57:32 +0000 (09:57 -0800)]
Merge pull request #38 from alram/master

Fixes in ./docs/radosgw/config.rst

12 years agoEdit endpoint-create in ./doc/radosgw/config.rst 38/head
Alexandre Marangone [Tue, 5 Feb 2013 05:20:07 +0000 (21:20 -0800)]
Edit endpoint-create in ./doc/radosgw/config.rst

internalurl and adminurl are mandatory. Typo in publicurl.

12 years agoEdit rgw keystone url in ./doc/radosgw/config.rst
Alexandre Marangone [Tue, 5 Feb 2013 05:14:54 +0000 (21:14 -0800)]
Edit rgw keystone url in ./doc/radosgw/config.rst

Won't work with the public port, it needs to be the admin port.

12 years agoNote on host in ./doc/radosgw/config.rst
Alexandre Marangone [Tue, 5 Feb 2013 05:09:37 +0000 (21:09 -0800)]
Note on host in ./doc/radosgw/config.rst

Some people have configured host with a FQDN or an IP
which prevents /etc/init.d/radosgw start to launch the daemon.

12 years agodoc: Updated to note bobtail supports RGW + Keystone.
John Wilkins [Tue, 5 Feb 2013 00:42:03 +0000 (16:42 -0800)]
doc: Updated to note bobtail supports RGW + Keystone.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agocli test: add pg deep-scrub option to test
Gary Lowell [Mon, 4 Feb 2013 22:14:45 +0000 (14:14 -0800)]
cli test: add pg deep-scrub option to test

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agocli test: add pg deep-scrub option to test
Gary Lowell [Mon, 4 Feb 2013 22:14:45 +0000 (14:14 -0800)]
cli test: add pg deep-scrub option to test

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoinstall: remove perl dependency
Gary Lowell [Mon, 4 Feb 2013 20:56:01 +0000 (12:56 -0800)]
install:  remove perl dependency

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>
12 years agoAdd "pg deep-scrub..." missing from ceph usage output
David Zafman [Mon, 4 Feb 2013 19:45:49 +0000 (11:45 -0800)]
Add "pg deep-scrub..." missing from ceph usage output

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agorgw: fix setting of NULL to string
Yehuda Sadeh [Fri, 1 Feb 2013 18:56:11 +0000 (10:56 -0800)]
rgw: fix setting of NULL to string

Fixes: #3777
s->env->get() returns char * and not string and can return NULL.
Also, remove some old unused code.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoxattr_bench.cc: remove twice included <time.h>
Danny Al-Gaaf [Mon, 4 Feb 2013 16:54:09 +0000 (17:54 +0100)]
xattr_bench.cc: remove twice included <time.h>

Cleanup includes, remove twice included <time.h>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph-filestore-dump.cc: remove twice included <iostream>
Danny Al-Gaaf [Mon, 4 Feb 2013 16:54:08 +0000 (17:54 +0100)]
ceph-filestore-dump.cc: remove twice included <iostream>

Cleanup includes, remove twice included <iostream>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>