Commit Graph

23510 Commits

Author SHA1 Message Date
Sage Weil
3f6837e022 mon/PGMap: report IO rates
This does not appear to be very accurate; probably the stat values we're
displaying are not being calculated correctly.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:50:03 -08:00
Sage Weil
208b02a748 mon/PGMap: report recovery rates
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:50:03 -08:00
Sage Weil
76e9fe5f06 mon/PGMap: include timestamp
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:50:03 -08:00
Sage Weil
a2495f658c osd: track recovery ops in stats
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:50:03 -08:00
Sage Weil
4aea19ee60 osd_types: add recovery counts to object_sum_stats_t
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:50:03 -08:00
Sage Weil
193dbedb91 rbd-fuse: fix warning
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 18:49:20 -08:00
John Wilkins
1e24ce22a9 doc: Removed indep, and clarified explanation.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-28 18:44:07 -08:00
Sage Weil
87d85fa263 Merge remote-tracking branch 'gh/next' 2013-01-28 18:15:35 -08:00
John Wilkins
e58fe51980 Merge branch 'master' of https://github.com/ceph/ceph 2013-01-28 17:51:20 -08:00
John Wilkins
b429a3a3bb doc: Updated to add indep and first n to chooseleaf. Num only used with firstn.
fixes: #3711

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-28 17:50:47 -08:00
Yehuda Sadeh
f41010c44b rgw: fix crash when missing content-type in POST object
Fixes: #3941
This fixes a crash when handling S3 POST request and content type
is not provided.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-28 17:31:10 -08:00
Josh Durgin
c79f7c6c03 Merge branch 'wip-pool-delete'
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-28 16:53:53 -08:00
Sage Weil
26988038e1 Merge branch 'wip-osd-down-out'
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-01-28 17:22:25 -08:00
Yehuda Sadeh
09522e5a62 rgw: fix crash when missing content-type in POST object
Fixes: #3941
This fixes a crash when handling S3 POST request and content type
is not provided.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-01-28 17:14:53 -08:00
Sage Weil
b955a599a6 mon: set limit so that we do not an entire down subtree out
Add new configurable 'mon osd down out subtree limit' so that you can
prevent marking out an entire subtree.  If for example an entire rack is
down, do not mark anything in it out.  If less than the whole rack is down,
everything is fair game.

Set the default to 'rack'.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 17:13:59 -08:00
Sage Weil
2b8ba7ca23 osdmap: implement subtree_is_down() and containing_subtree_is_down()
Implement two methos to see if an entire subtree is down, and if the
containing parent node of type T of a given node is completely down.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 17:13:59 -08:00
Sage Weil
75f6ba56e1 crush: implement get_children(), get_immediate_parent_id()
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-28 17:13:59 -08:00
Sage Weil
428ddb7dff Merge remote-tracking branch 'gh/wip-timecheck
Reviewed-by: Sage Weil <sage@inktank.com>
2013-01-28 17:12:07 -08:00
Josh Durgin
97b789247a doc: update ceph man page link
It's not the wiki anymore, and the man page needed to be regenerated.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-28 16:52:48 -08:00
Josh Durgin
91a0bc891a ceph, rados: update pool delete docs and usage
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-28 16:52:33 -08:00
Josh Durgin
1a6197a75b qa: fix mon pool_ops workunit
Use ! for clarity when commands are supposed to fail.
Check a few other cases that should fail, and correct deleting
non-existent pools.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-28 15:25:13 -08:00
Danny Al-Gaaf
818e9a2cd4 rbd-fuse: fix printf format for off_t and size_t
Fix printf format for off_t and size_t to print the same on 32 and 64bit
systems. Use PRI* macros from inttypes.h.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Danny Al-Gaaf
21673e8b9e rbd-fuse: fix usage of conn->want
Fix usage of conn->want and FUSE_CAP_BIG_WRITES. Both need libfuse
version >= 2.8. Encapsulate the related code line into a check for
the needed FUSE_VERSION as already done in ceph-fuse in some cases.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Danny Al-Gaaf
f74265b08a configure: fix check for fuse_getgroups()
Check for fuse_getgroups() only in case we have found libfuse already.
Moved the check to the check for --with-fuse.

Small fix: fix string for NO_ATOMIC_OPS, don't use "'".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Danny Al-Gaaf
fb85c7f6cf rbd: don't ignore return value of system()
Check for the return value of system() and handle the error if needed

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Danny Al-Gaaf
014fc6d6c1 utime: fix narrowing conversion compiler warning in sleep()
Fix compiler warning:
./include/utime.h: In member function 'void utime_t::sleep()':
./include/utime.h:139:50: warning: narrowing conversion of
 '((utime_t*)this)->utime_t::tv.utime_t::<anonymous struct>::tv_sec' from
 '__u32 {aka unsigned int}' to '__time_t {aka long int}' inside { } is
 ill-formed in C++11 [-Wnarrowing]
./include/utime.h:139:50: warning: narrowing conversion of
 '((utime_t*)this)->utime_t::tv.utime_t::<anonymous struct>::tv_nsec' from
 '__u32 {aka unsigned int}' to 'long int' inside { } is
 ill-formed in C++11 [-Wnarrowing]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-28 13:56:32 -08:00
Noah Watkins
4edef48371 Merge branch 'wip-java-api'
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-01-28 12:52:39 -08:00
Joao Eduardo Luis
0ded0fdf58 mon: Monitor: rework timecheck code to clarify logic boundaries
The initial timecheck implementation relied on a cleanup function to
clean the state each time we changed epochs (or we got out of quorum),
and we would have to clean up the state in-between rounds in a potentially
confusing way some time down the line.

This patch creates logic boundaries in the code flow, making it clear
where we set up or clear the state when we start or finish an epoch, and
where we set up or clear the round state in-between rounds.  It also
allowed for some other changes in behavior, such as when we set-up the
timecheck event, or when we cancel it.  Despite the slight increase in
size, the mechanism just got more easily understandable than it was before.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-01-28 19:27:31 +00:00
Josh Durgin
3a08942099 doc: fix rbd create syntax
--dest-pool does not apply to create. Also remove extraneous
whitespace.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-28 10:13:59 -08:00
Joao Eduardo Luis
c547816185 mon: Elector: reset the acked leader when the election finishes and we lost
Failure to do so will mean that we will always ack the same leader during
an election started by another monitor.  This had been working so far
because we were still acking the existing leader if he was supposed to
still be the leader; or we were acking a new potentially leader; or we
would eventually fall behind on an election and start a new election
ourselves, thus resetting the previously acked leader.  While this wasn't
something that mattered much until now, the timechecks code stumbled into
this tiny issue and was failing hard at completing a round because there
wouldn't be a reset before the election started -- timechecks are bound
to election epochs.

Fixes: #3854

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-01-27 18:12:13 +00:00
Joao Eduardo Luis
d74b31b24d mon: Monitor: force timecheck cleanup on finish_election()
Fixes: #3854

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-01-27 14:15:23 +00:00
Danny Al-Gaaf
fa421cf5f5 configure: remove -m4_include(m4/acx_pthread.m4)
Since we use already AC_CONFIG_MACRO_DIR, no need to include m4/acx_pthread.m4
extra.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-26 22:35:15 -08:00
Danny Al-Gaaf
32276e9afb configure: fix RPM_RELEASE
Use git to get RPM_RELEASE only if this is a git repo
clone and if the git command is available on the system.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-01-26 22:34:58 -08:00
Sage Weil
341e676015 osdmaptool: fix clitests
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-26 20:49:47 -08:00
Sage Weil
54c392e00f osd: dump/display pool min_size
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-26 19:33:20 -08:00
Sage Weil
1ba4c80bcf qa/workunits/rbd/copy.sh: use non-deprecated --image-format option
--format is deprecated.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-26 13:46:12 -08:00
Sage Weil
bbb86ec794 mon: safety interlock for pool deletion
Require that the pool name be passed twice along with an force option
before we irreversibly delete an entire pool of objects.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-26 13:45:12 -08:00
Sage Weil
700bcede4d Revert "mon: implement safety interlock for deleting pools"
This reverts commit c993ac9b1f.

This is too hard to test.  Requiring the pool name twice along with
--yes-i-really-really-mean-it should be sufficient.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-26 13:26:27 -08:00
Dan Mick
2a6dcabf7f rbd-fuse: add simple RBD FUSE client
Currently written in C on FUSE hi-level interfaces, so error reporting
could be better.  No serious work done for performance.  But it's
usable as it stands.

Specify -c <conf> and a mountpoint, and images show up as files in
that mountpoint.  You can create new images; they'll be created
with attributes stored in xattrs:

	user.rbdfuse.imagesize: default 1GB
	user.rbdfuse.imageorder: default 22
	user.rbdfuse.imagefeatures: default 1 (layering)

Images may be truncated or extended by rewriting.  Currently
once an image is opened, it's not closed, so it can't be deleted
or changed outside of the fuse path.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-01-25 21:27:53 -08:00
Andreas Bluemle
7daf372488 rbd-fuse: Original code from Andreas Bluemle
Signed-off-by: Andreas Bluemle <andreas.bluemle@itxperts.de>
2013-01-25 21:27:53 -08:00
Dan Mick
aec2a4742c s3/php: update to 1.5? version of API
Something like v1.5 of the Amazon PHP library requires the AmazonS3
constructor to be given an array of parameters rather than using
the globals.  More research needs to happen, and particularly
about the v2 API, but this might solve someone's problem with
v1.5 while we do that research.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-01-25 21:25:45 -08:00
tamil
b2a473be92 workunit for iogen
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-01-25 18:07:22 -08:00
Sage Weil
b98da75a62 Merge branch 'wip-osd-msgr'
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-01-25 17:59:19 -08:00
Joao Eduardo Luis
17cd549aed mon: Monitor: timecheck: only output report to dout once
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-01-25 17:58:29 -08:00
Joao Eduardo Luis
13fb1726dd mon: Monitor: track timecheck round state and report on health
Fixes: #3854

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-01-25 17:56:52 -08:00
John Wilkins
b49440bc6a doc: Added new, more comprehensive OSD/PG monitoring doc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-25 16:16:28 -08:00
John Wilkins
5f2105051c doc: Trimmed some detail and added a x-ref to detailed osd/pg monitoring doc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-25 16:15:52 -08:00
John Wilkins
95cfdd460f doc: Added osd/pg monitoring section to the index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-25 16:14:38 -08:00
John Wilkins
d36a208cf4 doc: Added x-ref links.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-25 16:14:12 -08:00
John Wilkins
89386856ec Merge branch 'master' of https://github.com/ceph/ceph 2013-01-25 14:25:06 -08:00