]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agomailmap: add .peoplemap 2366/head
Loic Dachary [Sun, 31 Aug 2014 17:14:55 +0000 (19:14 +0200)]
mailmap: add .peoplemap

In .mailmap, an individual may be represented by multiple mails which
may reflect an organization affiliation change that needs to be
preserved to find out which organization sponsored which commit.

The .peoplemap file aggregates these mails to show a single line for
each person

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2358 from dachary/wip-lrc
Loic Dachary [Sun, 31 Aug 2014 10:52:43 +0000 (12:52 +0200)]
Merge pull request #2358 from dachary/wip-lrc

rename LRC to lrc + preload

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: lowercase LRC plugin name 2358/head
Loic Dachary [Fri, 29 Aug 2014 21:58:34 +0000 (23:58 +0200)]
erasure-code: lowercase LRC plugin name

So that all erasure code plugins are lowercase.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocommon/LogEntry: fix warning on x86_64
Sage Weil [Sun, 31 Aug 2014 05:39:04 +0000 (22:39 -0700)]
common/LogEntry: fix warning on x86_64

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/LogEntry: fix warning on i386
Sage Weil [Sun, 31 Aug 2014 04:56:31 +0000 (21:56 -0700)]
common/LogEntry: fix warning on i386

common/LogEntry.cc: In member function 'void LogEntry::log_to_syslog(std::string, std::string)':
warning: common/LogEntry.cc:161:20: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
msg.c_str());
^

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2360 from ceph/wip-9281
Sage Weil [Sat, 30 Aug 2014 00:46:26 +0000 (17:46 -0700)]
Merge pull request #2360 from ceph/wip-9281

tools: use cout instead of cerr in journal tool

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: preload LRC plugin
Loic Dachary [Fri, 29 Aug 2014 21:25:34 +0000 (23:25 +0200)]
erasure-code: preload LRC plugin

Add LRC to the list of erasure code plugins preloaded by default.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2359 from dachary/wip-fix-lrc
Loic Dachary [Sat, 30 Aug 2014 00:10:59 +0000 (02:10 +0200)]
Merge pull request #2359 from dachary/wip-fix-lrc

fix lrc tests and prototype

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2338 from ceph/wip-reweight
Sage Weil [Fri, 29 Aug 2014 23:56:40 +0000 (16:56 -0700)]
Merge pull request #2338 from ceph/wip-reweight

mon/OSDMonitor: make reweight_by_* output less misleading

10 years agoerasure-code: use s/get_str_map/get_json_str_map/ 2359/head
Loic Dachary [Fri, 29 Aug 2014 23:44:02 +0000 (01:44 +0200)]
erasure-code: use s/get_str_map/get_json_str_map/

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: mkfs.sh needs to know the plugin directory
Loic Dachary [Fri, 29 Aug 2014 23:43:03 +0000 (01:43 +0200)]
erasure-code: mkfs.sh needs to know the plugin directory

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge remote-tracking branch 'gh/wip-7988'
Sage Weil [Fri, 29 Aug 2014 23:10:16 +0000 (16:10 -0700)]
Merge remote-tracking branch 'gh/wip-7988'

Conflicts:
src/mds/RecoveryQueue.cc

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: OSDMap: ordered blacklist on non-classic encode function
Joao Eduardo Luis [Fri, 29 Aug 2014 19:21:25 +0000 (20:21 +0100)]
osd: OSDMap: ordered blacklist on non-classic encode function

Fixes: #9211
Backport: firefly

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #1921 from dachary/wip-7238-lrc-plugin
Samuel Just [Fri, 29 Aug 2014 21:08:48 +0000 (14:08 -0700)]
Merge pull request #1921 from dachary/wip-7238-lrc-plugin

erasure-code: locally repairable code plugin

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoerasure-code: ECRecPred must be true if all chunks can be recovered 1921/head
Loic Dachary [Wed, 27 Aug 2014 15:05:02 +0000 (17:05 +0200)]
erasure-code: ECRecPred must be true if all chunks can be recovered

ECRecPred assumes recovering any number of chunk is possible as long as
at least K chunks are available. It builds the want() set accordingly in
the constructor and arbitrarily set the first K chunks. But it would be
the same if it set the last K chunks.

While this is correct for jerasure and isa plugins, it is not true in
general. The predicate should assume that all chunks are going to be
recovered and return true if they can all be recovered. Otherwise, the
following can happen:

  * a PG has chunks 0,1,2,3 for K=2, M=2
  * ECRecPred is initialized a set want to 0,1 because K=2
  * ECRecPred claims the plugin can recover when provided 0,1
  * the plugin is then required to recover 0,1 using 2,3 and fails

This can happen for the LRC plugin with k=4,m=2,l=3 which is

  01234567
  DDc_DDc_
  DDDc____
  ____DDDc

and if chunks 0,1,2,3 are missing there is no way to recover chunks
4,5,6,7.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: LRC plugin documentation
Loic Dachary [Sat, 23 Aug 2014 00:11:34 +0000 (02:11 +0200)]
erasure-code: LRC plugin documentation

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: test LRC pool, profile and crush ruleset
Loic Dachary [Sun, 8 Jun 2014 15:25:41 +0000 (17:25 +0200)]
erasure-code: test LRC pool, profile and crush ruleset

Using the command line to create an LRC pool validates that the plugin
can be loaded and the ruleset created immediately after the crush table
is populated with the default rulesets.

Add a test that takes out the first OSD holding data for an object and
checks the recovery is effective by retrieving the object content and
checking it is as expected.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoerasure-code: high level LRC configuration
Loic Dachary [Fri, 15 Aug 2014 16:33:38 +0000 (18:33 +0200)]
erasure-code: high level LRC configuration

Add a configuration mode to the LRC plugin, suitable for most use cases
and simpler to explain and understand. It uses k,m parameters similar to
the jerasure and isa plugins and adds l for locality. For instance:

   k=4 m=2 l=3
   ruleset_locality=rack
   ruleset_failure_domain=host

Will translate into

   local_group_count = (k+m)/l

   ruleset-steps = "["
    " [\"choose\", \"rack\", " + local_group_count + "], "
    " [\"chooseleaf\", \"host\", " + (l + 1) + "], "
    "]";

   layers = "[ "
      "  [ \"DDc_DDc_\", \"\" ],"
      "  [ \"DDDc____\", \"\" ],"
      "  [ \"____DDDc\", \"\" ],"
      "]";

It is less flexible because k+m must be a multiple of l and other
similar relationships and also because it cannot express recursive
configurations with locality in the datacenter and locality in a rack
within the datacenter.

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoerasure-code: locally repairable code plugin
Loic Dachary [Sun, 8 Jun 2014 12:19:18 +0000 (14:19 +0200)]
erasure-code: locally repairable code plugin

Recursively apply erasure code techniques so that recovering from the
loss of some chunks only require a subset of the available chunks, most
of the time.

http://tracker.ceph.com/issues/7238 Fixes: #7238

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoerasure-code: delegate chunk remapping to the plugin
Loic Dachary [Sun, 24 Aug 2014 18:52:24 +0000 (20:52 +0200)]
erasure-code: delegate chunk remapping to the plugin

Remapping the chunks after they have been encoded by the plugin is fine
if remapping is transparent to the plugin. However, the goal is to
delegate the remapping of the chunks to the plugin, for LRC in
particular. The chunks are therefore reordered according to the
directions found in the mapping array before they are passed to
decode_chunks.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: override the default only if the plugin match
Loic Dachary [Sun, 24 Aug 2014 18:57:16 +0000 (20:57 +0200)]
erasure-code: override the default only if the plugin match

When setting a new erasure coded profile, the key/value of the default
profile are re-used so that ruleset-failure-domain=osd can be overridden
like so:

        ceph osd erasure-code-profile set ruleset-failure-domain=osd

This is however not appropriate if the plugin is different from the
defaut plugin (for instance LRC instead of jerasure) because the
parameters are not the same.

If the plugin is changed, the default profile is not reused.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: relax profile parameter syntax
Loic Dachary [Sun, 8 Jun 2014 15:08:01 +0000 (17:08 +0200)]
erasure-code: relax profile parameter syntax

Do not restrict the character set of the key=value pairs of osd
erasure-code-profile set to allow for things like:

             layers='[
                       [ "_aAA_aAA", "" ],
                       [ "bBBB____", "" ],
                       [ "____cCCC", "" ],
                     ]'

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agoerasure-code: add ErasureCodeInterface::get_coding_chunk_count
Loic Dachary [Wed, 6 Aug 2014 14:50:16 +0000 (16:50 +0200)]
erasure-code: add ErasureCodeInterface::get_coding_chunk_count

Signed-off-by: Loic Dachary <loic@dachary.org>
10 years agotools: use cout instead of cerr in journal tool 2360/head
John Spray [Fri, 29 Aug 2014 17:34:39 +0000 (18:34 +0100)]
tools: use cout instead of cerr in journal tool

Aside from being a bit odd to begin with, using stderr
was causing tests to fail because the output was polluted
by log output which is also on stderr.

Fixes: 9281
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2258 from ceph/wip-mds-recover
John Spray [Fri, 29 Aug 2014 16:19:49 +0000 (17:19 +0100)]
Merge pull request #2258 from ceph/wip-mds-recover

mds: make max file recovers tunable

Reviewed-by: Yan, Zheng <ukernel@gmail.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2353 from wonzhq/compile-warn
Sage Weil [Fri, 29 Aug 2014 15:32:59 +0000 (08:32 -0700)]
Merge pull request #2353 from wonzhq/compile-warn

Test: fixing a compile warning in ceph_objectstore_tool.cc

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomds/RecoveryQueue: do not start prioritized items synchronously 2258/head
Sage Weil [Fri, 29 Aug 2014 15:29:35 +0000 (08:29 -0700)]
mds/RecoveryQueue: do not start prioritized items synchronously

When we prioritize an item move it into a second priority list/set, but
do not start immediately, so that we still obey the max.  When we go to
start an item, pull items first off the priority list, then off the regular
list.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2352 from wonzhq/local-mtime
Sage Weil [Fri, 29 Aug 2014 15:18:05 +0000 (08:18 -0700)]
Merge pull request #2352 from wonzhq/local-mtime

Cache tiering: use local_mtime to calculate the age of objects during evicting

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2354 from dachary/wip-9273-mon-preload-erasure-code
Sage Weil [Fri, 29 Aug 2014 15:17:06 +0000 (08:17 -0700)]
Merge pull request #2354 from dachary/wip-9273-mon-preload-erasure-code

erasure-code: preload the default plugins in the mon

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2355 from ceph/wip-hadoop
Sage Weil [Fri, 29 Aug 2014 14:11:39 +0000 (07:11 -0700)]
Merge pull request #2355 from ceph/wip-hadoop

Wip hadoop

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2340 from ceph/wip-blacklist-mds
Sage Weil [Fri, 29 Aug 2014 13:55:16 +0000 (06:55 -0700)]
Merge pull request #2340 from ceph/wip-blacklist-mds

mds: restart on -EBLACKLISTED

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoqa: fix+cleanup hadoop wordcount test 2355/head
John Spray [Fri, 29 Aug 2014 12:29:22 +0000 (13:29 +0100)]
qa: fix+cleanup hadoop wordcount test

The glob for the examples jar was wrong.

Fixes: #9260
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoerasure-code: preload the default plugins in the mon 2354/head
Loic Dachary [Fri, 29 Aug 2014 10:06:49 +0000 (12:06 +0200)]
erasure-code: preload the default plugins in the mon

The commit 9b802701f78288ba4f706c65b853415c69002d27 preloads the
supported plugins in the OSD. They must also be preloaded in the mon for
the same reasons.

http://tracker.ceph.com/issues/9273 Fixes: #9273

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoTest: fixing a compile warning in ceph_objectstore_tool.cc 2353/head
Zhiqiang Wang [Fri, 29 Aug 2014 08:39:40 +0000 (16:39 +0800)]
Test: fixing a compile warning in ceph_objectstore_tool.cc

For the compiler's sake:
tools/ceph_objectstore_tool.cc:2547:15: warning: â€˜r’ may be used
uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Zhiqiang Wang <wonzhq@hotmail.com>
10 years agoCache tiering: use local_mtime to calculate the age of objects during 2352/head
Zhiqiang Wang [Fri, 29 Aug 2014 08:06:30 +0000 (16:06 +0800)]
Cache tiering: use local_mtime to calculate the age of objects during
evicting

Commit 13b9dc70 introduces local_mtime to fix an issue when doing
flushing. Should also use this to calculate the object age when doing
evicting.

Signed-off-by: Zhiqiang Wang <wonzhq@hotmail.com>
10 years agodoc: Added rbd-replay-prep and rbd-replay manpages to block device TOC.
John Wilkins [Fri, 29 Aug 2014 01:07:51 +0000 (18:07 -0700)]
doc: Added rbd-replay-prep and rbd-replay manpages to block device TOC.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agodoc: Fixed broken hyperlink.
John Wilkins [Fri, 29 Aug 2014 00:45:51 +0000 (17:45 -0700)]
doc: Fixed broken hyperlink.

Fixes: #9116
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agodoc: Added sysctl max thread count discussion.
John Wilkins [Fri, 29 Aug 2014 00:25:07 +0000 (17:25 -0700)]
doc: Added sysctl max thread count discussion.

Fixes: #6142
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agoMerge pull request #2351 from ceph/wip-9266
Sage Weil [Fri, 29 Aug 2014 00:08:26 +0000 (17:08 -0700)]
Merge pull request #2351 from ceph/wip-9266

client: fix dispatcher ordering (broken fuse)

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoclient: fix dispatcher ordering (broken fuse) 2351/head
John Spray [Thu, 28 Aug 2014 23:53:44 +0000 (00:53 +0100)]
client: fix dispatcher ordering (broken fuse)

Objecter never saw any OSD maps because of 1e1ee480 and
the dispatchers being in the wrong order -- ignoring map
in Client was hiding it from Objecter.

Fixes: #9266
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2332 from ceph/wip-8231-forreview
Samuel Just [Thu, 28 Aug 2014 23:37:37 +0000 (16:37 -0700)]
Merge pull request #2332 from ceph/wip-8231-forreview

Wip 8231 forreview

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoFix ceph_scratchtoolpp to create and delete its own pool 2332/head
David Zafman [Thu, 21 Aug 2014 19:23:49 +0000 (12:23 -0700)]
Fix ceph_scratchtoolpp to create and delete its own pool

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool: Bug fixes and test improvements
David Zafman [Wed, 20 Aug 2014 08:33:45 +0000 (01:33 -0700)]
ceph_objectstore_tool: Bug fixes and test improvements

ceph_objectgstore_tool:
Fix bugs in the way collection_list_partial() was being called
which caused objects to be seen over and over again.

Unit test:
Fix get_objs() to walk pg tree for pg with sub-directories
Create more objects to test object listing code
Limit number of larger objects
Limit number of objects which get attributes and omaps

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoceph_objectstore_tool, test: Implement import-rados feature and unit test code
David Zafman [Wed, 6 Aug 2014 01:26:11 +0000 (18:26 -0700)]
ceph_objectstore_tool, test: Implement import-rados feature and unit test code

Fixes: #8276
Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agotools/rados: Improve trigger for op_size rounding info message
David Zafman [Fri, 8 Aug 2014 01:03:22 +0000 (18:03 -0700)]
tools/rados: Improve trigger for op_size rounding info message

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agotest: ceph_objectstore_tool unit test improvements
David Zafman [Thu, 7 Aug 2014 02:53:43 +0000 (19:53 -0700)]
test: ceph_objectstore_tool unit test improvements

Add namespaces to testing
Increase filesize so export will have multiple chunks
Put json for each object into the db dict

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_objectstore_tool: Add operation "rm-past-intervals" for testing purposes
David Zafman [Thu, 7 Aug 2014 20:31:48 +0000 (13:31 -0700)]
ceph_objectstore_tool: Add operation "rm-past-intervals" for testing purposes

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_objectstore_tool: Add past_intervals to export/import code
David Zafman [Thu, 7 Aug 2014 18:46:08 +0000 (11:46 -0700)]
ceph_objectstore_tool: Add past_intervals to export/import code

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_objectstore_tool: Minor improvements
David Zafman [Thu, 7 Aug 2014 21:11:21 +0000 (14:11 -0700)]
ceph_objectstore_tool: Minor improvements

Make all non-error non-debug output to stdout
Fix a message

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_objectstore_tool, test: Add list-pgs operations and unit test case
David Zafman [Tue, 5 Aug 2014 19:26:42 +0000 (12:26 -0700)]
ceph_objectstore_tool, test: Add list-pgs operations and unit test case

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoComplete replacement of ceph_filestore_tool and ceph_filestore_dump
David Zafman [Wed, 30 Jul 2014 19:39:49 +0000 (12:39 -0700)]
Complete replacement of ceph_filestore_tool and ceph_filestore_dump
with unified ceph_objectstore_tool

Move list-lost-objects and fix-lost-objects features from
  ceph_filestore_tool to ceph_objectstore_tool as list-lost, fix-lost
Change --type to --op for info, log, export...operations
Add --type for the ObjectStore type (defaults to filestore)
Change --filestore-path to --data-path
Update installation, Makefile.am, and .gitignore
Fix and rename test case to match
  Add some additional invalid option checks

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoRenames and removal towards a unified ceph_objectstore_tool
David Zafman [Wed, 30 Jul 2014 18:22:29 +0000 (11:22 -0700)]
Renames and removal towards a unified ceph_objectstore_tool

Rename ceph_filestore_dump.cc and ceph_filestore_dump.py
Remove ceph_filestore_tool.cc

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump.py: Replace ceph_filestore_dump.sh with better python version
David Zafman [Thu, 19 Jun 2014 18:00:25 +0000 (11:00 -0700)]
ceph_filestore_dump.py: Replace ceph_filestore_dump.sh with better python version

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agotest: ceph_filestore_dump.sh test improvements
David Zafman [Wed, 21 May 2014 19:45:33 +0000 (12:45 -0700)]
test: ceph_filestore_dump.sh test improvements

Add some usage error tests
Don't use the same var in second for loop
Add xattr/omap to rep pool and xattr to ec pool
Add list, get-bytes and set-bytes testing
Add list-attrs and get-attr

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add set-omaphdr object command
David Zafman [Tue, 20 May 2014 18:19:19 +0000 (11:19 -0700)]
ceph_filestore_dump: Add set-omaphdr object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add get-omaphdr object command
David Zafman [Tue, 20 May 2014 17:44:37 +0000 (10:44 -0700)]
ceph_filestore_dump: Add get-omaphdr object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add rm-omap object command
David Zafman [Tue, 20 May 2014 03:55:47 +0000 (20:55 -0700)]
ceph_filestore_dump: Add rm-omap object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add set-omap object command
David Zafman [Tue, 20 May 2014 03:47:14 +0000 (20:47 -0700)]
ceph_filestore_dump: Add set-omap object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add get-omap object command
David Zafman [Tue, 20 May 2014 03:37:01 +0000 (20:37 -0700)]
ceph_filestore_dump: Add get-omap object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add rm-attr object command
David Zafman [Tue, 20 May 2014 01:33:24 +0000 (18:33 -0700)]
ceph_filestore_dump: Add rm-attr object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add set-attr object command
David Zafman [Tue, 20 May 2014 01:17:27 +0000 (18:17 -0700)]
ceph_filestore_dump: Add set-attr object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add get-attr object command
David Zafman [Thu, 15 May 2014 22:50:48 +0000 (15:50 -0700)]
ceph_filestore_dump: Add get-attr object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add set-bytes object command
David Zafman [Thu, 15 May 2014 00:52:09 +0000 (17:52 -0700)]
ceph_filestore_dump: Add set-bytes object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add get-bytes object command
David Zafman [Thu, 15 May 2014 00:51:29 +0000 (17:51 -0700)]
ceph_filestore_dump: Add get-bytes object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add list-omap object command
David Zafman [Thu, 15 May 2014 00:50:16 +0000 (17:50 -0700)]
ceph_filestore_dump: Add list-omap object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add list-attrs object command
David Zafman [Thu, 15 May 2014 01:32:42 +0000 (18:32 -0700)]
ceph_filestore_dump: Add list-attrs object command

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add --type list to output objects in a pg in json
David Zafman [Thu, 15 May 2014 00:39:17 +0000 (17:39 -0700)]
ceph_filestore_dump: Add --type list to output objects in a pg in json

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add remove object command and usage for new commands
David Zafman [Thu, 15 May 2014 00:44:31 +0000 (17:44 -0700)]
ceph_filestore_dump: Add remove object command and usage for new commands

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add utility function get_fd_data()
David Zafman [Sat, 7 Jun 2014 00:05:53 +0000 (17:05 -0700)]
ceph_filestore_dump: Add utility function get_fd_data()

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Fail import/export with a tty for stdin/stdout
David Zafman [Tue, 20 May 2014 01:16:52 +0000 (18:16 -0700)]
ceph_filestore_dump: Fail import/export with a tty for stdin/stdout

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filstore_dump: Save if stdout is a tty and add routine to clean binary strings
David Zafman [Tue, 20 May 2014 18:56:20 +0000 (11:56 -0700)]
ceph_filstore_dump: Save if stdout is a tty and add routine to clean binary strings

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agocommon: Add missing ghobject_t::decode() for json
David Zafman [Wed, 14 May 2014 22:30:11 +0000 (15:30 -0700)]
common: Add missing ghobject_t::decode() for json

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Add --skip-journal-replay and --skip-mount-omap
David Zafman [Wed, 14 May 2014 22:37:17 +0000 (15:37 -0700)]
ceph_filestore_dump: Add --skip-journal-replay and --skip-mount-omap

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoos: Add optional flags to generic ObjectStore creation (SKIP_JOURNAL_REPLAY
David Zafman [Wed, 14 May 2014 22:41:15 +0000 (15:41 -0700)]
os: Add optional flags to generic ObjectStore creation (SKIP_JOURNAL_REPLAY
and SKIP_MOUNT_OMAP)

Only FileStore cares about these flags, so passed on during create()

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Improve debug output by showing actual offset
David Zafman [Sat, 17 May 2014 01:20:11 +0000 (18:20 -0700)]
ceph_filestore_dump: Improve debug output by showing actual offset

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoceph_filestore_dump: Use cerr now that we aren't closing stderr
David Zafman [Wed, 14 May 2014 19:36:37 +0000 (12:36 -0700)]
ceph_filestore_dump: Use cerr now that we aren't closing stderr

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agocommon,ceph_filestore_dump: Add ability for utilities to suppress library dout output
David Zafman [Wed, 14 May 2014 19:42:21 +0000 (12:42 -0700)]
common,ceph_filestore_dump: Add ability for utilities to suppress library dout output

Suppress dout output with CODE_ENVIRONMENT_UTILITY_NODOUT
ceph_filestore_dump turns on dout output if --debug specified
When used it can still be enable with --log-to-stderr --err-to-stderr

Signed-off-by: David Zafman <david.zafman@inktank.com>
10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Thu, 28 Aug 2014 22:30:24 +0000 (15:30 -0700)]
Merge remote-tracking branch 'gh/next'

Conflicts:
src/osd/ReplicatedPG.cc

10 years agodoc/install/manual-deployment: move 'done' comment up
Sage Weil [Thu, 28 Aug 2014 21:34:27 +0000 (14:34 -0700)]
doc/install/manual-deployment: move 'done' comment up

It's the same for upstart and sysvinit.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'master' of git://github.com/flaf/ceph
Sage Weil [Thu, 28 Aug 2014 21:27:12 +0000 (14:27 -0700)]
Merge branch 'master' of git://github.com/flaf/ceph

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2248 from theanalyst/wip-8112
Sage Weil [Thu, 28 Aug 2014 21:24:11 +0000 (14:24 -0700)]
Merge pull request #2248 from theanalyst/wip-8112

rgw: move generic server usage after all options

10 years agoMerge pull request #2336 from wonzhq/release-op-ctx-lock
Samuel Just [Thu, 28 Aug 2014 20:37:08 +0000 (13:37 -0700)]
Merge pull request #2336 from wonzhq/release-op-ctx-lock

osd: Remove extra call to release_op_ctx_locks in eval_repop

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agomds/Locker: if a client asks for file caps, prioritize file recovery
Sage Weil [Thu, 14 Aug 2014 22:08:43 +0000 (15:08 -0700)]
mds/Locker: if a client asks for file caps, prioritize file recovery

This normally happens when a process opens the file.  Prioritize in that
case.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/Locker: prioritize file recovery on rd/wr/x lock
Sage Weil [Thu, 14 Aug 2014 22:06:47 +0000 (15:06 -0700)]
mds/Locker: prioritize file recovery on rd/wr/x lock

If someone specifically touches the file lock, prioritize recovery for this
file.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/RecoveryQueue: add method to prioritize a file recovery; fix logging
Sage Weil [Thu, 14 Aug 2014 21:52:40 +0000 (14:52 -0700)]
mds/RecoveryQueue: add method to prioritize a file recovery; fix logging

Add a prioritize() method to make file recovery start immediately for the
given inode.  Note that this doesn't respect the max recovery limit: if
someone stats it, they are blocking, and we start the recovery immediately.

Also fix up the dout logging a bit so that everything is prefixed
consistently.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: change mds_max_file_recover from 5 -> 32
Sage Weil [Thu, 14 Aug 2014 21:39:29 +0000 (14:39 -0700)]
mds: change mds_max_file_recover from 5 -> 32

These are reasonably cheap operations (stat) and we should be too worried
about queueing up a bunch of them.

Ideally this sort of thing would magically tune to the throughput we can
get from the cluster, but until then, let's choose a default that works for
more users.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: make max file recovers configurable
Sage Weil [Thu, 14 Aug 2014 21:38:08 +0000 (14:38 -0700)]
mds: make max file recovers configurable

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2350 from ceph/wip-8718
Sage Weil [Thu, 28 Aug 2014 19:42:00 +0000 (12:42 -0700)]
Merge pull request #2350 from ceph/wip-8718

rgw: don't try to authenticate a CORS preflight request

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2348 from athanatos/wip-9054
Sage Weil [Thu, 28 Aug 2014 19:40:16 +0000 (12:40 -0700)]
Merge pull request #2348 from athanatos/wip-9054

Wip 9054

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2294 from rootfs/wip-java-pom
Gregory Farnum [Thu, 28 Aug 2014 18:55:41 +0000 (11:55 -0700)]
Merge pull request #2294 from rootfs/wip-java-pom

add pom.xml so to deploy the libcephfs to maven repository.

Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2341 from dachary/wip-osd-crush
Sage Weil [Thu, 28 Aug 2014 18:52:12 +0000 (11:52 -0700)]
Merge pull request #2341 from dachary/wip-osd-crush

tests: reduce osd-crush.sh execution time

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2342 from ceph/wip-mds-namespace
Sage Weil [Thu, 28 Aug 2014 18:51:16 +0000 (11:51 -0700)]
Merge pull request #2342 from ceph/wip-mds-namespace

Wip mds namespace

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2349 from athanatos/wip-9240
Sage Weil [Thu, 28 Aug 2014 18:49:08 +0000 (11:49 -0700)]
Merge pull request #2349 from athanatos/wip-9240

Wip 9240

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: don't try to authenticate a CORS preflight request 2350/head
Yehuda Sadeh [Thu, 28 Aug 2014 00:44:18 +0000 (17:44 -0700)]
rgw: don't try to authenticate a CORS preflight request

Fixes: #8718
Backport: firefly

CORS preflight requests don't need to be authenticated. Treat them as
coming from anonymous user.

Reported-by: Robert Hubbard <bobby.hubbard@garmin.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2335 from ceph/wip-9218 6495f898acd71e1432f49940c63bd6925bf9b1d8
Samuel Just [Thu, 28 Aug 2014 18:30:31 +0000 (11:30 -0700)]
Merge pull request #2335 from ceph/wip-9218

osd: fix osd_tp shutdown

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2347 from athanatos/wip-9205
Sage Weil [Thu, 28 Aug 2014 18:19:54 +0000 (11:19 -0700)]
Merge pull request #2347 from athanatos/wip-9205

OSD::session_notify_pg_create: requeue at the start of the queue

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2346 from athanatos/wip-8777
Sage Weil [Thu, 28 Aug 2014 18:19:09 +0000 (11:19 -0700)]
Merge pull request #2346 from athanatos/wip-8777

PG: mark_log_for_rewrite on resurrection

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2345 from athanatos/wip-9259
Sage Weil [Thu, 28 Aug 2014 18:18:52 +0000 (11:18 -0700)]
Merge pull request #2345 from athanatos/wip-9259

PG::can_discard_op: do discard old subopreplies

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'wip-8639'
Sage Weil [Thu, 28 Aug 2014 17:59:40 +0000 (10:59 -0700)]
Merge branch 'wip-8639'

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
10 years agotest/mon/*: prime mon with initial command before injection
Sage Weil [Thu, 28 Aug 2014 17:59:18 +0000 (10:59 -0700)]
test/mon/*: prime mon with initial command before injection

The osdmonitor_prepare_command is very fragile.  Send an initial command
to the mon beforehand.  This seems to prevent the initial command from
getting combined into an early mon proposal with some other stuff.

Alternatively, we could remove these tests and this mechanism entirely as
it is likely to great in the future when the next set of mon changes are
made, but they have shown themselves to be useful it catching other
regressions, so we'll patch them up for a bit longer.

Signed-off-by: Sage Weil <sage@redhat.com>