Commit Graph

19922 Commits

Author SHA1 Message Date
Sage Weil
ea1c0698cd mon: fix admin socket lock dependency
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-30 22:22:34 -07:00
Sage Weil
fa2f1deaaa admin_socket: fix unit test
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-30 22:22:34 -07:00
Sage Weil
51de7c1a31 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>
2012-05-30 22:16:03 -07:00
Sage Weil
5adc85bd9b 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>
2012-05-30 21:58:17 -07:00
Sage Weil
895e24d198 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>
2012-05-30 20:38:38 -07:00
Sage Weil
ca8f3ba8e9 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>
2012-05-30 20:38:38 -07:00
Sage Weil
e30e937c89 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>
2012-05-30 20:38:38 -07:00
Sage Weil
640eec9cd0 Merge remote branch 'gh/wip-admin'
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2012-05-30 20:38:22 -07:00
Dan Mick
c80bd9daea librbd: Simplify timing init
Remove possibility of set_start_time before set_ictx error

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-05-30 16:48:37 -07:00
Dan Mick
04e66b4201 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>
2012-05-30 16:18:49 -07:00
Yehuda Sadeh
767664dcb8 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>
2012-05-30 16:22:51 -07:00
Yehuda Sadeh
d8df1e9913 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>
2012-05-30 16:22:51 -07:00
Sage Weil
a24145fcbf log: add missing .cc file
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-30 15:35:30 -07:00
Sage Weil
52187c3eac 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>
2012-05-30 15:15:50 -07:00
Sage Weil
a6f8fe352e filestore: fix my broken ifdef flow
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-30 15:06:19 -07:00
John Wilkins
188d171805 doc: ceph.conf cleanup for cephx authentication.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 14:41:42 -07:00
John Wilkins
695f92d8ee doc: fix broken link.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 14:40:08 -07:00
John Wilkins
d05d98ce80 doc: Added -a to service ceph stop.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 14:29:51 -07:00
John Wilkins
cb5c6b5db6 doc: Consolidated mkcephfs deployment files.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 14:29:10 -07:00
Sage Weil
dd1d388061 osd: fix null dereference
The pg arg is optional!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-30 14:28:46 -07:00
John Wilkins
a3f4d595f1 doc: Added pools and authentication.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 13:48:04 -07:00
Sage Weil
a167213a9e 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>
2012-05-30 11:53:37 -07:00
Sage Weil
519fadbc96 osd: fix rewewight_by_utilization
Update the incremental, not the in-memory OSDMap!

Fixes: #2454
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-30 11:53:35 -07:00
Sage Weil
07498d6623 filestore: log about syncfs(2) etc support
Fixes: #2479
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-30 11:14:26 -07:00
Sage Weil
2b856ace21 Merge remote-tracking branch 'gh/stable' 2012-05-30 11:02:36 -07:00
John Wilkins
6dd93b9a97 doc: Updated authentication with header canonicalization.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-30 10:14:30 -07:00
Sage Weil
e9588f0c82 Merge remote-tracking branch 'gh/wip-2349'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-05-30 10:05:01 -07:00
Joao Eduardo Luis
26ecf608c5 workloadgen: Fix the statistics output and a bug triggered by coll destruction
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-30 09:30:16 -07:00
Sage Weil
f685f4d8df filestore: initialize dummy xattr buffer
Shut up valgrind.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-30 09:13:48 -07:00
Sage Weil
5842dcdadb 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>
2012-05-29 20:41:38 -07:00
Joao Eduardo Luis
504c6ce957 doc: Add Paxos call chain to doc/mon/
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
05469b2ba6 mon: add some info on can_mark_out function
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
15a30d920a mon: Do some aesthetic reformatting on the Elector class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
8c95e8bc38 mon: add doxygen-format comments to the Elector class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
1816856e52 mon: Do some aesthetic reformatting on the Paxos class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
28a64fdbab mon: add doxygen-format comments to the Monitor class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
c5015ef349 mon: add doxygen-format comments to the PaxosService class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:27 -07:00
Joao Eduardo Luis
7064a9c0ad mon: add doxygen-format comments to the Paxos class.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-05-29 18:34:26 -07:00
Sage Weil
b46b815a5d test_filestore_workloadgen: less noise
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-29 16:52:40 -07:00
Sage Weil
92fec42364 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>
2012-05-29 16:52:40 -07:00
Sage Weil
bb0c7c6a44 admin_socket: fix unittest
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 16:31:39 -07:00
Sage Weil
29e6f8c5a4 log: add log flush, dump_recent, reopen admin socket commands
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 16:31:39 -07:00
Sage Weil
4e2846b44c config: add 'set_config <var> <val>' admin socket command
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 16:31:39 -07:00
Eleanor Cawthon
6849f82eca rados.cc: added listomap and getomap commands
Signed-off-by: Eleanor Cawthon <eleanor.cawthon@inktank.com>
2012-05-29 13:33:15 -07:00
Sage Weil
a3f8137631 config: add 'show_config' admin socket command
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 12:07:07 -07:00
Sage Weil
ab8f6b1b6e 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>
2012-05-29 12:07:07 -07:00
Samuel Just
f953c4c0b0 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>
2012-05-29 11:23:20 -07:00
Sage Weil
1277a465b1 cephcontext: generalize admin socket hook
We'll process non-perfcounter commands too.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-29 10:09:31 -07:00
John Wilkins
73e29b658d doc: needed carriage returns between headings, code tag and syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-25 16:15:14 -07:00
John Wilkins
d33f4fb627 doc: removed redundant install.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-05-25 16:03:48 -07:00