]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
13 years agomon: limit size of each logm paxos event
Sage Weil [Tue, 5 Jun 2012 20:54:57 +0000 (13:54 -0700)]
mon: limit size of each logm paxos event

Limit the number of log events we cram into a single paxos event.

Fixes: #2518
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: clear osd_stat on osd creation/destruction
Sage Weil [Mon, 4 Jun 2012 03:09:27 +0000 (20:09 -0700)]
mon: clear osd_stat on osd creation/destruction

Reported-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: Added S3 examples to the toctree.
John Wilkins [Tue, 5 Jun 2012 18:09:44 +0000 (11:09 -0700)]
doc: Added S3 examples to the toctree.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: adding code samples for S3 API usage (thanks, DH!)
Emily Popper [Tue, 5 Jun 2012 17:55:08 +0000 (10:55 -0700)]
doc: adding code samples for S3 API usage (thanks, DH!)

Signed-off-by: Ross Turk <ross@inktank.com>
13 years agoMakefile.am: explicitly mention that -Wl,--as-needed is location-sensitive.
Tommi Virtanen [Wed, 9 Mar 2011 18:17:20 +0000 (10:17 -0800)]
Makefile.am: explicitly mention that -Wl,--as-needed is location-sensitive.

13 years agodoc: Added ${lsb_release -sc} based on Sam's feedback.
John Wilkins [Tue, 5 Jun 2012 15:15:47 +0000 (08:15 -0700)]
doc: Added ${lsb_release -sc} based on Sam's feedback.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agorgw: shutdown init_timer
Yehuda Sadeh [Mon, 4 Jun 2012 23:15:11 +0000 (16:15 -0700)]
rgw: shutdown init_timer

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: try to create fcgi socket through open() first
Yehuda Sadeh [Mon, 4 Jun 2012 23:01:07 +0000 (16:01 -0700)]
rgw: try to create fcgi socket through open() first

FCGX_OpenSocket might just exit() without any warning if it fails
to create the socket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoadmin_socket: only init if path is defined
Sage Weil [Sun, 3 Jun 2012 20:51:34 +0000 (13:51 -0700)]
admin_socket: only init if path is defined

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMerge remote branch 'gh/chef-3'
Sage Weil [Sat, 2 Jun 2012 21:49:02 +0000 (14:49 -0700)]
Merge remote branch 'gh/chef-3'

13 years agoupstart: simplify start; allow group stop via an abstract job
Sage Weil [Sat, 2 Jun 2012 22:19:28 +0000 (15:19 -0700)]
upstart: simplify start; allow group stop via an abstract job

Use a 'ceph-mds' or 'ceph-mon' event to start instances instead of
explicitly calling start.  This avoids the ugly is-this-already-running
check.  [Thanks Guilhem Lettron for that!]

Make the -all job abstract (which means it stays started and can be
stopped).  Trigger a helper task (-all-starter) to trigger instance
start.  Make instances stop with the -all task.  This allows you to do

 start ceph-mds-all
 stop ceph-mds-all
 start ceph-mds id=foo
 start ceph-mds-all
 stop ceph-mds id=bar
 stop ceph-mds-all

but not

 start ceph-mds id=foo
 stop ceph-mds-all

because ceph-mds-all isn't running.  Not quite as flexible in sysvinit in
that regard, but good enough for me.

Fixes: #2414
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agopaxos: warn on extreme clock skew
Sage Weil [Sat, 2 Jun 2012 21:29:48 +0000 (14:29 -0700)]
paxos: warn on extreme clock skew

This would have helped us diagnose #2480.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoomapbench: fix warning
Sage Weil [Sat, 2 Jun 2012 21:03:17 +0000 (14:03 -0700)]
omapbench: fix warning

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoomapbench: fix misc warnings
Sage Weil [Sat, 2 Jun 2012 20:18:01 +0000 (13:18 -0700)]
omapbench: fix misc warnings

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoReplicatedPG: fix pgls listing, add max listing size
Samuel Just [Fri, 1 Jun 2012 22:39:41 +0000 (15:39 -0700)]
ReplicatedPG: fix pgls listing, add max listing size

Previously, a client requesting a large pgls could tie up the
osd for an unacceptable amount of time.  Also, it's possible
for the osd to return less than the requested number of
entries anyway, so we now return 1 when we have completed the
listing.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
13 years agoobjecter: fix pgls
Sage Weil [Fri, 1 Jun 2012 22:44:51 +0000 (15:44 -0700)]
objecter: fix pgls

First problem: if the osd returns more entries than we ask for, max_entries
was going negative, and we were requesting (u64)(-small number) on the
next iteration, slamming the OSD when the PG was big.  We fix that by
finishing response_size >= max_entries.

Second problem: AFAICS we were not requesting the second chunk on a large
PG at all, here, if the OSD returned less than what we wanted.  Fix this
by asking for more in that case.

That means we detect the end of a PG in two ways:

 * if the OSD sets the return value to 1 (instead of 0)
 * if we get 0 items in the response

Another patch will change the OSD behavior to return 1, and all will be
well.  If we run against an old OSD, we'll send an extra request for each
PG and get nothing back before we realize we've hit the end and move on.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-admin'
Sage Weil [Fri, 1 Jun 2012 20:57:26 +0000 (13:57 -0700)]
Merge remote-tracking branch 'gh/wip-admin'

13 years agomon: fix slurp latest race
Sage Weil [Fri, 1 Jun 2012 20:54:28 +0000 (13:54 -0700)]
mon: fix slurp latest race

It is possible for the latest version to get out in front of the
last_committed version:

 a- start slurping
 a- slurp a bunch of states, through X
 a- get them back, write them out
 b- monitor commits many new states
 a- slurp latest, X+100 say, but only get some of those states due to the
    slurp per-message byte limit
 a- write latest + some (but not all) prior states
 a- call back into slurp(), update_from_paxos(), trigger assert

This fix ensures that we make note of the source's new latest, so that on
the next pass through slurp() we will grab any missing states.

We *also* explicitly require that we get everything up through what we have
stashed, in defense against some future kludging that might only require we
nearly (but not completely) in sync before finishing the slurp.

Fixes: #2379
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
13 years agoMakefile: include ceph-mds upstart bits in dist tarball
Sage Weil [Fri, 1 Jun 2012 20:46:42 +0000 (13:46 -0700)]
Makefile: include ceph-mds upstart bits in dist tarball

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agotest/: Added object map benchmarking tool
Eleanor Cawthon [Tue, 22 May 2012 00:17:51 +0000 (17:17 -0700)]
test/: Added object map benchmarking tool

omap_bench writes configurable objectmaps to a configurable number
of objects and generates latency statistics.

Signed-off-by: Eleanor Cawthon <eleanor.cawthon@inktank.com>
13 years agodoc: fix autobuild debian source line
Sage Weil [Fri, 1 Jun 2012 19:53:13 +0000 (12:53 -0700)]
doc: fix autobuild debian source line

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agomon: throttle client msgr memory
Sage Weil [Fri, 1 Jun 2012 16:44:09 +0000 (09:44 -0700)]
mon: throttle client msgr memory

Limit the amount of memory that can be consumed by client messages, similar
to the OSD.  Do not limit inter-mon messages.

Fixes: #2495
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
13 years agoMerge remote-tracking branch 'origin/wip-2491'
Yehuda Sadeh [Fri, 1 Jun 2012 16:30:31 +0000 (09:30 -0700)]
Merge remote-tracking branch 'origin/wip-2491'

13 years agoObjecter: tone down linger op messages on tick
Samuel Just [Fri, 1 Jun 2012 02:05:25 +0000 (19:05 -0700)]
Objecter: tone down linger op messages on tick

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agotest_stress_watch: exercise watch/unwatch/close from second client
Yehuda Sadeh [Fri, 1 Jun 2012 00:04:00 +0000 (17:04 -0700)]
test_stress_watch: exercise watch/unwatch/close from second client

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoqa: stress_watch.sh workunit runs test_stress_watch
Sage Weil [Thu, 31 May 2012 23:46:25 +0000 (16:46 -0700)]
qa: stress_watch.sh workunit runs test_stress_watch

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-mon-doc'
Sage Weil [Thu, 31 May 2012 23:42:38 +0000 (16:42 -0700)]
Merge remote-tracking branch 'gh/wip-mon-doc'

13 years agodoc: Added preliminary rbd and ko info.
John Wilkins [Thu, 31 May 2012 22:35:33 +0000 (15:35 -0700)]
doc: Added preliminary rbd and ko info.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoosd: Adding const to methods in OSDMap
Adam Crume [Thu, 31 May 2012 19:52:50 +0000 (12:52 -0700)]
osd: Adding const to methods in OSDMap

Signed-off-by: Adam Crume <adamcrume@gmail.com>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agovstart.sh: initialize keyring even if not using cephx
Yehuda Sadeh [Thu, 31 May 2012 18:38:37 +0000 (11:38 -0700)]
vstart.sh: initialize keyring even if not using cephx

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoMerge branch 'master' of ssh://github.com/ceph/ceph
Yehuda Sadeh [Thu, 31 May 2012 18:37:52 +0000 (11:37 -0700)]
Merge branch 'master' of ssh://github.com/ceph/ceph

13 years agoperf_counters: use bufferlist instead of vector<char>
Sage Weil [Thu, 31 May 2012 04:10:08 +0000 (21:10 -0700)]
perf_counters: use bufferlist instead of vector<char>

bufferlist allocates page-sized chunks and avoids realloc, which'll be
more efficient than vector resize doubling just about always.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agomon: fix admin socket lock dependency
Sage Weil [Thu, 31 May 2012 03:37:19 +0000 (20:37 -0700)]
mon: fix admin socket lock dependency

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: fix unit test
Sage Weil [Thu, 31 May 2012 05:22:18 +0000 (22:22 -0700)]
admin_socket: fix unit test

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoosd: ack pending notify when unwatching
Sage Weil [Thu, 31 May 2012 05:16:03 +0000 (22:16 -0700)]
osd: ack pending notify when unwatching

If an unwatch crosses paths with a notify, we currently force the notifier
to keep waiting.  Instead, implicitly ack any notify when we unwatch.

Fixes: #2491
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: pass args separately
Sage Weil [Thu, 31 May 2012 03:28:51 +0000 (20:28 -0700)]
admin_socket: pass args separately

This avoids making the callback parse off the command portion on their own.
It also lets them assert that the command portion is in the set of
registered commands.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: streamline 'version' commands
Sage Weil [Thu, 31 May 2012 03:20:12 +0000 (20:20 -0700)]
admin_socket: streamline 'version' commands

 version     -- ceph version
 git_version -- git sha1
 0           -- proto version (for backward compat)

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: streamline command set
Sage Weil [Thu, 31 May 2012 03:15:34 +0000 (20:15 -0700)]
admin_socket: streamline command set

 log flush
 log dump
 log reopen
 config show
 config set <var> <val>
 perf dump
 perf schema

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: register command prefixes
Sage Weil [Thu, 31 May 2012 03:08:23 +0000 (20:08 -0700)]
admin_socket: register command prefixes

Allow any command prefix to be registered, provided it is separated by a
space.  Previously, we always matched against the first word.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoMerge remote branch 'gh/wip-admin'
Sage Weil [Thu, 31 May 2012 03:38:22 +0000 (20:38 -0700)]
Merge remote branch 'gh/wip-admin'

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agolibrbd: Simplify timing init
Dan Mick [Wed, 30 May 2012 23:48:37 +0000 (16:48 -0700)]
librbd: Simplify timing init

Remove possibility of set_start_time before set_ictx error

Signed-off-by: Dan Mick <dan.mick@inktank.com>
13 years agolibrbd: Add latency (elapsed-time) stats for rbd operations
Dan Mick [Wed, 30 May 2012 23:15:45 +0000 (16:15 -0700)]
librbd: Add latency (elapsed-time) stats for rbd operations

Fixes: #2408
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorgw: put_bucket_info does not override attrs
Yehuda Sadeh [Wed, 30 May 2012 22:40:39 +0000 (15:40 -0700)]
rgw: put_bucket_info does not override attrs

This fixes #2487. When writing bucket info we just
wrote the object content, and were overriding any
attrs that object contained (that is -- corrupted
the ACLs).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agorgw: return default policy if policy attr is broken
Yehuda Sadeh [Wed, 30 May 2012 22:28:19 +0000 (15:28 -0700)]
rgw: return default policy if policy attr is broken

In case the policy attr on object/bucket is broken
return a default policy, in which the owner is set
as the bucket owner.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agolog: add missing .cc file
Sage Weil [Wed, 30 May 2012 22:35:30 +0000 (15:35 -0700)]
log: add missing .cc file

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agolog: uninline SubsystemMap mutators
Sage Weil [Wed, 30 May 2012 22:15:50 +0000 (15:15 -0700)]
log: uninline SubsystemMap mutators

This lets you do something like

 p g_ceph_context->_conf->subsys.set_log_level(ceph_subsys_mon, 20)

from gdb.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agofilestore: fix my broken ifdef flow
Sage Weil [Wed, 30 May 2012 22:06:07 +0000 (15:06 -0700)]
filestore: fix my broken ifdef flow

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agodoc: ceph.conf cleanup for cephx authentication.
John Wilkins [Wed, 30 May 2012 21:41:42 +0000 (14:41 -0700)]
doc: ceph.conf cleanup for cephx authentication.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: fix broken link.
John Wilkins [Wed, 30 May 2012 21:40:08 +0000 (14:40 -0700)]
doc: fix broken link.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: Added -a to service ceph stop.
John Wilkins [Wed, 30 May 2012 21:29:51 +0000 (14:29 -0700)]
doc: Added -a to service ceph stop.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: Consolidated mkcephfs deployment files.
John Wilkins [Wed, 30 May 2012 21:29:10 +0000 (14:29 -0700)]
doc: Consolidated mkcephfs deployment files.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoosd: fix null dereference
Sage Weil [Wed, 30 May 2012 21:28:46 +0000 (14:28 -0700)]
osd: fix null dereference

The pg arg is optional!

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: Added pools and authentication.
John Wilkins [Wed, 30 May 2012 20:48:04 +0000 (13:48 -0700)]
doc: Added pools and authentication.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agomon: fix reweight_by_utilization waiting
Sage Weil [Wed, 30 May 2012 18:53:18 +0000 (11:53 -0700)]
mon: fix reweight_by_utilization waiting

Propose if we changed something, but not if we don't.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: fix rewewight_by_utilization
Sage Weil [Wed, 30 May 2012 18:53:35 +0000 (11:53 -0700)]
osd: fix rewewight_by_utilization

Update the incremental, not the in-memory OSDMap!

Fixes: #2454
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agofilestore: log about syncfs(2) etc support
Sage Weil [Wed, 30 May 2012 18:14:26 +0000 (11:14 -0700)]
filestore: log about syncfs(2) etc support

Fixes: #2479
Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoMerge remote-tracking branch 'gh/stable'
Sage Weil [Wed, 30 May 2012 18:02:36 +0000 (11:02 -0700)]
Merge remote-tracking branch 'gh/stable'

13 years agodoc: Updated authentication with header canonicalization.
John Wilkins [Wed, 30 May 2012 17:14:30 +0000 (10:14 -0700)]
doc: Updated authentication with header canonicalization.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-2349'
Sage Weil [Wed, 30 May 2012 17:05:01 +0000 (10:05 -0700)]
Merge remote-tracking branch 'gh/wip-2349'

Reviewed-by: Sage Weil <sage@newdream.net>
13 years agoworkloadgen: Fix the statistics output and a bug triggered by coll destruction
Joao Eduardo Luis [Wed, 30 May 2012 01:10:35 +0000 (18:10 -0700)]
workloadgen: Fix the statistics output and a bug triggered by coll destruction

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agofilestore: initialize dummy xattr buffer
Sage Weil [Wed, 30 May 2012 16:13:48 +0000 (09:13 -0700)]
filestore: initialize dummy xattr buffer

Shut up valgrind.

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoosd: fix misdirected op check
Sage Weil [Wed, 30 May 2012 03:41:38 +0000 (20:41 -0700)]
osd: fix misdirected op check

The sense of this check was wrong from the get-go, back in a5d99add.  Fix
it.  This may be silencing a lot of misdirected op noise!

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: Add Paxos call chain to doc/mon/
Joao Eduardo Luis [Tue, 29 May 2012 23:42:44 +0000 (16:42 -0700)]
doc: Add Paxos call chain to doc/mon/

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: add some info on can_mark_out function
Joao Eduardo Luis [Tue, 29 May 2012 16:44:08 +0000 (09:44 -0700)]
mon: add some info on can_mark_out function

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: Do some aesthetic reformatting on the Elector class.
Joao Eduardo Luis [Wed, 23 May 2012 05:48:50 +0000 (22:48 -0700)]
mon: Do some aesthetic reformatting on the Elector class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: add doxygen-format comments to the Elector class.
Joao Eduardo Luis [Wed, 23 May 2012 01:32:04 +0000 (18:32 -0700)]
mon: add doxygen-format comments to the Elector class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: Do some aesthetic reformatting on the Paxos class.
Joao Eduardo Luis [Tue, 22 May 2012 22:29:19 +0000 (15:29 -0700)]
mon: Do some aesthetic reformatting on the Paxos class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: add doxygen-format comments to the Monitor class.
Joao Eduardo Luis [Tue, 22 May 2012 01:00:39 +0000 (18:00 -0700)]
mon: add doxygen-format comments to the Monitor class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: add doxygen-format comments to the PaxosService class.
Joao Eduardo Luis [Tue, 22 May 2012 01:00:06 +0000 (18:00 -0700)]
mon: add doxygen-format comments to the PaxosService class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agomon: add doxygen-format comments to the Paxos class.
Joao Eduardo Luis [Tue, 22 May 2012 00:59:41 +0000 (17:59 -0700)]
mon: add doxygen-format comments to the Paxos class.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
13 years agotest_filestore_workloadgen: less noise
Sage Weil [Tue, 29 May 2012 23:43:36 +0000 (16:43 -0700)]
test_filestore_workloadgen: less noise

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agotest_filestore_workloadgen: write zeros, not random bytes
Sage Weil [Tue, 29 May 2012 23:41:42 +0000 (16:41 -0700)]
test_filestore_workloadgen: write zeros, not random bytes

The random byte generation is sufficiently slow that it skews the results.
Zeros are good enough!

Signed-off-by: Sage Weil <sage@newdream.net>
13 years agoadmin_socket: fix unittest
Sage Weil [Tue, 29 May 2012 20:29:49 +0000 (13:29 -0700)]
admin_socket: fix unittest

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agolog: add log flush, dump_recent, reopen admin socket commands
Sage Weil [Tue, 29 May 2012 19:10:22 +0000 (12:10 -0700)]
log: add log flush, dump_recent, reopen admin socket commands

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoconfig: add 'set_config <var> <val>' admin socket command
Sage Weil [Tue, 29 May 2012 19:07:58 +0000 (12:07 -0700)]
config: add 'set_config <var> <val>' admin socket command

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorados.cc: added listomap and getomap commands
Eleanor Cawthon [Tue, 29 May 2012 18:59:15 +0000 (11:59 -0700)]
rados.cc: added listomap and getomap commands

Signed-off-by: Eleanor Cawthon <eleanor.cawthon@inktank.com>
13 years agoconfig: add 'show_config' admin socket command
Sage Weil [Tue, 29 May 2012 17:11:43 +0000 (10:11 -0700)]
config: add 'show_config' admin socket command

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoadmin_socket: initialize explicitly on startup; disallow changes
Sage Weil [Tue, 29 May 2012 18:05:51 +0000 (11:05 -0700)]
admin_socket: initialize explicitly on startup; disallow changes

There is an annoying dependency between the config lock and the admin
socket lock due to the fact that we initialize (or reinitialize) the socket
via a config observer.

Instead, explicitly initialize on startup.  Do not allow the admin socket
location to be changed at runtime.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agolibrados.h: update rados_object_list_next documentation for key/locator
Samuel Just [Tue, 29 May 2012 17:30:51 +0000 (10:30 -0700)]
librados.h: update rados_object_list_next documentation for key/locator

*entry and *key don't need to be freed, and are only valid until the
next call to rados_objects_list_*.

Signed-off-by: Samuel Just <sam.just@inktank.com>
13 years agocephcontext: generalize admin socket hook
Sage Weil [Tue, 29 May 2012 17:09:31 +0000 (10:09 -0700)]
cephcontext: generalize admin socket hook

We'll process non-perfcounter commands too.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: needed carriage returns between headings, code tag and syntax.
John Wilkins [Fri, 25 May 2012 23:15:14 +0000 (16:15 -0700)]
doc: needed carriage returns between headings, code tag and syntax.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: removed redundant install.
John Wilkins [Fri, 25 May 2012 23:03:48 +0000 (16:03 -0700)]
doc: removed redundant install.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: Filled in descriptions for object operations.
John Wilkins [Fri, 25 May 2012 23:03:02 +0000 (16:03 -0700)]
doc: Filled in descriptions for object operations.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoceph.spec.in: buildrequires libuuid-devel
Sage Weil [Fri, 25 May 2012 16:29:08 +0000 (09:29 -0700)]
ceph.spec.in: buildrequires libuuid-devel

Reported-by: Guido Winkelmann <guido-ceph@thisisnotatest.de>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agoceph.spec.in: drop unnecessary rmdirs
Sage Weil [Fri, 25 May 2012 16:28:07 +0000 (09:28 -0700)]
ceph.spec.in: drop unnecessary rmdirs

This hunk was inadvertantly included in a330c64.

Reported-by: Guido Winkelmann <guido-ceph@thisisnotatest.de>
Signed-off-by: Sage Weil <sage@inktank.com>
13 years agodoc: Restored install for dev/unstable packages.
John Wilkins [Thu, 24 May 2012 23:54:15 +0000 (16:54 -0700)]
doc: Restored install for dev/unstable packages.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agofilestore: make SNAP_DESTROY ioctl check more informative
Sage Weil [Thu, 24 May 2012 22:01:39 +0000 (15:01 -0700)]
filestore: make SNAP_DESTROY ioctl check more informative

Tell user about user_subvol_rm_allowed mount option.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agofilestore: fix btrfs subvol ioctl tests
Sage Weil [Thu, 24 May 2012 21:53:30 +0000 (14:53 -0700)]
filestore: fix btrfs subvol ioctl tests

Create a temp subvol that *we own* to test snaps against.  Otherwise, we
won't be able to remove them if we weren't the owner of the source subvol
we were snapshotting when we are not root.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agofilestore: verify that op_seq is nonzero
Sage Weil [Thu, 24 May 2012 21:07:36 +0000 (14:07 -0700)]
filestore: verify that op_seq is nonzero

If we get zero from commit_op_seq something is very wrong, and we should
not continue.  Broken mkfs or something deleted commit_op_seq file.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agovstart.sh: wipe out btrfs subvols in osd dirs
Sage Weil [Thu, 24 May 2012 21:05:27 +0000 (14:05 -0700)]
vstart.sh: wipe out btrfs subvols in osd dirs

For testing on btrfs.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agofilestore: fix initial btrfs snap creation (on mkfs)
Sage Weil [Thu, 24 May 2012 21:05:09 +0000 (14:05 -0700)]
filestore: fix initial btrfs snap creation (on mkfs)

Create the snap_1 snap of current *after* we write the op_seq.  Otherwise
we will mistakingly believe the snapshot is of op seq 0.

Signed-off-by: Sage Weil <sage@inktank.com>
13 years agorgw: replace dump_format() with dump_int()
Yehuda Sadeh [Thu, 24 May 2012 20:03:45 +0000 (13:03 -0700)]
rgw: replace dump_format() with dump_int()

Cleanup, fixes issue #2469.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoMerge branch 'stable'
Josh Durgin [Thu, 24 May 2012 16:47:41 +0000 (09:47 -0700)]
Merge branch 'stable'

13 years agolibrados, ObjectCacher: include limits.h for INT_MAX
Josh Durgin [Thu, 24 May 2012 16:43:23 +0000 (09:43 -0700)]
librados, ObjectCacher: include limits.h for INT_MAX

This was required to build on CentOS 6.2. I'm not sure why it worked
without it on Debian.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorbd.py: Fix seemingly-random segfaults
Dan Mick [Thu, 24 May 2012 02:21:30 +0000 (19:21 -0700)]
rbd.py: Fix seemingly-random segfaults

Avoid resetting Image.closed until image is successfully opened.

Fixes: #2475
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
13 years agolibrados: Remove errant sha1
Dan Mick [Thu, 24 May 2012 02:18:48 +0000 (19:18 -0700)]
librados: Remove errant sha1

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
13 years agorbd.py doc: Fix markup on :class: references
Dan Mick [Thu, 24 May 2012 02:18:01 +0000 (19:18 -0700)]
rbd.py doc: Fix markup on :class: references

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
13 years agoMerge branch 'osd-mkfs'
Sage Weil [Wed, 23 May 2012 23:42:49 +0000 (16:42 -0700)]
Merge branch 'osd-mkfs'

Reviewed-by: Sam Just <sam.just@inktank.com>
13 years agoMerge remote-tracking branch 'gh/wip-mon-auth'
Sage Weil [Wed, 23 May 2012 23:41:57 +0000 (16:41 -0700)]
Merge remote-tracking branch 'gh/wip-mon-auth'

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
13 years agoMerge branch 'stable'
Sage Weil [Wed, 23 May 2012 23:41:14 +0000 (16:41 -0700)]
Merge branch 'stable'