]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoMerge pull request #2932 from nilamdyuti/wip-doc-documenting-ceph
Loic Dachary [Fri, 14 Nov 2014 16:18:12 +0000 (17:18 +0100)]
Merge pull request #2932 from nilamdyuti/wip-doc-documenting-ceph

doc: Adds build-doc guidelines for Fedora and CentOS/RHEL.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: Adds build-doc guidelines for Fedora and CentOS/RHEL. 2932/head
Nilamdyuti Goswami [Fri, 14 Nov 2014 15:36:15 +0000 (21:06 +0530)]
doc: Adds build-doc guidelines for Fedora and CentOS/RHEL.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
11 years agodoc: Extended discussion for building docs on CentOS / RHEL.
John Wilkins [Tue, 15 Jul 2014 20:42:13 +0000 (13:42 -0700)]
doc: Extended discussion for building docs on CentOS / RHEL.

Fixes: #7722
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added a script to build docs on CentOS / RHEL.
John Wilkins [Tue, 15 Jul 2014 20:40:04 +0000 (13:40 -0700)]
doc: Added a script to build docs on CentOS / RHEL.

Fixes: #7722
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #2098 from ceph/wip-dump-new-crush
João Eduardo Luís [Mon, 14 Jul 2014 22:41:38 +0000 (23:41 +0100)]
Merge pull request #2098 from ceph/wip-dump-new-crush

crush: include CRUSH_V3, v2/v3 rules checks in dump_tunables()

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #2102 from ceph/wip-8823
Sage Weil [Mon, 14 Jul 2014 17:43:35 +0000 (10:43 -0700)]
Merge pull request #2102 from ceph/wip-8823

ceph_test_rados_api_tier: fix [EC] HitSet{Read,Write,Trim} tests

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #2097 from sjahl/master
John Wilkins [Mon, 14 Jul 2014 16:23:05 +0000 (09:23 -0700)]
Merge pull request #2097 from sjahl/master

doc: Fixes a broken link on the rados deploy osd page.

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc/release-notes: some additional warnings and recommendations against adjusting...
Sage Weil [Mon, 14 Jul 2014 16:14:32 +0000 (09:14 -0700)]
doc/release-notes: some additional warnings and recommendations against adjusting tunables

Several users are having troubles related to the overhead of the data
rebalance from adjusting tunables.

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoceph_test_rados_api_tier: fix [EC] HitSet{Read,Write,Trim} tests 2102/head
Sage Weil [Mon, 14 Jul 2014 15:04:16 +0000 (08:04 -0700)]
ceph_test_rados_api_tier: fix [EC] HitSet{Read,Write,Trim} tests

The hit_set_ fields can only be set on tier pools as of
f131dfbaedf6f451572e7aa3a83f653912122953.

Fixes: #8823
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: fix confusing debug output for op_applied
Sage Weil [Mon, 14 Jul 2014 05:19:11 +0000 (22:19 -0700)]
osd: fix confusing debug output for op_applied

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agodoc: Fixes a broken link on the rados deploy osd page. 2097/head
Stephen Jahl [Sat, 12 Jul 2014 13:04:22 +0000 (09:04 -0400)]
doc: Fixes a broken link on the rados deploy osd page.

Signed-off-by: Stephen Jahl <stephenjahl@gmail.com>
11 years agoMerge pull request #1999 from yuyuyu101/keyvaluestore-cache
Samuel Just [Sat, 12 Jul 2014 00:01:12 +0000 (17:01 -0700)]
Merge pull request #1999 from yuyuyu101/keyvaluestore-cache

Keyvaluestore cache

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #2096 from ceph/wip-test-post-file
Gregory Farnum [Fri, 11 Jul 2014 23:39:02 +0000 (16:39 -0700)]
Merge pull request #2096 from ceph/wip-test-post-file

qa/workunits/post-file.sh

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agodoc/release-notes: v0.80.3
Sage Weil [Fri, 11 Jul 2014 23:00:41 +0000 (16:00 -0700)]
doc/release-notes: v0.80.3

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoqa/workunits/post-file.sh 2096/head
Sage Weil [Fri, 11 Jul 2014 22:33:35 +0000 (15:33 -0700)]
qa/workunits/post-file.sh

Test ceph-post-file.

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2090 from ceph/wip-nuke-dlist
Gregory Farnum [Fri, 11 Jul 2014 22:07:54 +0000 (15:07 -0700)]
Merge pull request #2090 from ceph/wip-nuke-dlist

nuke dlist

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #2089 from lpabon/lpabon_readforward
Sage Weil [Fri, 11 Jul 2014 22:06:53 +0000 (15:06 -0700)]
Merge pull request #2089 from lpabon/lpabon_readforward

Support for READFORWARD in the caching tier

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2093 from theanalyst/doc/format-fix
Sage Weil [Fri, 11 Jul 2014 22:06:33 +0000 (15:06 -0700)]
Merge pull request #2093 from theanalyst/doc/format-fix

doc: minor format fix for radosgw admin docs

11 years agoMerge pull request #2042 from ceph/wip-port-fixes
Sage Weil [Fri, 11 Jul 2014 22:02:39 +0000 (15:02 -0700)]
Merge pull request #2042 from ceph/wip-port-fixes

Portability updates

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2086 from ceph/wip-8696
Sage Weil [Fri, 11 Jul 2014 22:00:51 +0000 (15:00 -0700)]
Merge pull request #2086 from ceph/wip-8696

mon: OSDMonitor: limit tier-specific pool set/get on non-tier pools

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2091 from ceph/wip-kinetic-os
Sage Weil [Fri, 11 Jul 2014 21:59:19 +0000 (14:59 -0700)]
Merge pull request #2091 from ceph/wip-kinetic-os

prototype kinetic osd backend

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Fri, 11 Jul 2014 21:56:40 +0000 (14:56 -0700)]
Merge remote-tracking branch 'gh/next'

11 years agoMerge pull request #2071 from somnathr/wip-sd-cpu-optimized
Samuel Just [Fri, 11 Jul 2014 21:42:48 +0000 (14:42 -0700)]
Merge pull request #2071 from somnathr/wip-sd-cpu-optimized

Wip sd cpu optimized

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #2094 from ceph/wip-8815
Gregory Farnum [Fri, 11 Jul 2014 20:13:31 +0000 (13:13 -0700)]
Merge pull request #2094 from ceph/wip-8815

mon: avoid scrub noise due to divering OSDMap encoding versions

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoosd/osd_types: be pedantic about encoding last_force_op_resend without feature bit 2094/head
Sage Weil [Fri, 11 Jul 2014 18:31:22 +0000 (11:31 -0700)]
osd/osd_types: be pedantic about encoding last_force_op_resend without feature bit

The addition of the value is completely backward compatible, but if the
mon feature bits don't match it can cause monitor scrub noice (due to the
parallel OSDMap encoding).  Avoid that by only adding the new field if the
feature (which was added 2 patches after the encoding, see
3152faf79f498a723ae0fe44301ccb21b15a96ab and
45e79a17a932192995f8328ae9f6e8a2a6348d10.

Fixes: #8815
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoosd/osd_types: remove useless encode_compat local var for pg_pool_t::encode
Sage Weil [Fri, 11 Jul 2014 18:29:05 +0000 (11:29 -0700)]
osd/osd_types: remove useless encode_compat local var for pg_pool_t::encode

This is left over from db3fd1152a87f8f152facdf141f8367296b371df
when we made the HitSet stuff incompat, but that behavior was reverted by
dc3ce58add130ca5a0a20b097b0ac934a1b486c7, leaving this cruft behind.

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2088 from guangyy/wip-8733
Samuel Just [Fri, 11 Jul 2014 17:20:04 +0000 (10:20 -0700)]
Merge pull request #2088 from guangyy/wip-8733

Fix the PG listing issue which could miss objects for EC pool

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #2092 from onlyjob/rbdmap
Sage Weil [Fri, 11 Jul 2014 16:03:03 +0000 (09:03 -0700)]
Merge pull request #2092 from onlyjob/rbdmap

rbdmap: per-device mount (Closes: #8538)

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoqa/workunits: cephtool: adjust pool name where missing as it has changed 2086/head
Joao Eduardo Luis [Thu, 10 Jul 2014 23:40:47 +0000 (00:40 +0100)]
qa/workunits: cephtool: adjust pool name where missing as it has changed

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agocrush: include CRUSH_V3, v2/v3 rules checks in dump_tunables() 2098/head
Sage Weil [Fri, 11 Jul 2014 13:58:57 +0000 (06:58 -0700)]
crush: include CRUSH_V3, v2/v3 rules checks in dump_tunables()

Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agodoc: minor format fix for radosgw admin docs 2093/head
Abhishek Lekshmanan [Fri, 11 Jul 2014 12:33:54 +0000 (18:03 +0530)]
doc: minor format fix for radosgw admin docs

Missing backtick fixed

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agorbdmap: per-device mount (Closes: #8538) 2092/head
Dmitry Smirnov [Fri, 11 Jul 2014 09:50:24 +0000 (19:50 +1000)]
rbdmap: per-device mount (Closes: #8538)

`/etc/init.d/rbdmap start` was doing `mount -a`. Although (arguably)
`mount -a -O _netdev` could be less disruptive, it's not RBD mapping job to
mount unrelated devices and potentially do it at the wrong time.

Solution is to call `mount {device}` which works as expected and mounts
device even if it given in form `mount /dev/rbd/pool/imagename` while
`/etc/fstab` uses UUID or LABEL notation.

Furthermore this commit

 * fixes global exit code (it was always 0): now it is 0 only when
   all devices were (un)mounted successfully; otherwise non-zero.
 * replaces `mount -a` with per-device post-mapping `mount {dev}`
 * show mapping progress using LSB functions per device instead of for
   {start|stop} invocation.
 * capture output of `(u)mount` (if any) and report it as "info".

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
11 years agorbd.cc: Check io-size avoid floating point exception.
Ma, Jianpeng [Thu, 12 Jun 2014 08:15:17 +0000 (08:15 +0000)]
rbd.cc: Check io-size avoid floating point exception.

In func do_bench_write if io_size is zero,it can cause floating point execption.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoqa/workunits: cephtool: cleanup after pool creation
Joao Eduardo Luis [Thu, 10 Jul 2014 23:41:01 +0000 (00:41 +0100)]
qa/workunits: cephtool: cleanup after pool creation

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoqa/workunits: cephtool: pool needs to be a tier to be used as such
Joao Eduardo Luis [Tue, 8 Jul 2014 18:22:49 +0000 (19:22 +0100)]
qa/workunits: cephtool: pool needs to be a tier to be used as such

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoqa/workunits: cephtool: test erroneous 'tier remove'
Joao Eduardo Luis [Tue, 8 Jul 2014 18:22:01 +0000 (19:22 +0100)]
qa/workunits: cephtool: test erroneous 'tier remove'

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoqa/workunits: cephtool: test get/set on both tier and non-tier pools
Joao Eduardo Luis [Thu, 3 Jul 2014 14:32:46 +0000 (15:32 +0100)]
qa/workunits: cephtool: test get/set on both tier and non-tier pools

Make sure gets and sets of tiering-specific variables succeed on tier
pools and fail on non-tier pools.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoqa/workunits: cephtool: split get/set on tier pools from get/set tests
Joao Eduardo Luis [Thu, 3 Jul 2014 14:24:51 +0000 (15:24 +0100)]
qa/workunits: cephtool: split get/set on tier pools from get/set tests

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: be scary about inconsistent pool tier ids
Joao Eduardo Luis [Wed, 2 Jul 2014 19:19:19 +0000 (20:19 +0100)]
mon: OSDMonitor: be scary about inconsistent pool tier ids

We may not crash your cluster, but you'll know that this is not something
that should have happened.  Big letters makes it obvious.  We'd make them
red too if we bothered to look for the ANSI code.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoosd: pg_pool_t: clear tunables on clear_tier()
Joao Eduardo Luis [Wed, 2 Jul 2014 18:47:52 +0000 (19:47 +0100)]
osd: pg_pool_t: clear tunables on clear_tier()

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: limit tier-specific pool set/get on non-tier pools
Joao Eduardo Luis [Wed, 2 Jul 2014 18:46:48 +0000 (19:46 +0100)]
mon: OSDMonitor: limit tier-specific pool set/get on non-tier pools

Fixes: 8696
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agodoc/changelog/v0.80.2: include tag
Sage Weil [Thu, 10 Jul 2014 20:24:08 +0000 (13:24 -0700)]
doc/changelog/v0.80.2: include tag

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoos: add prototype KineticStore 2091/head
Josh Durgin [Thu, 29 May 2014 19:23:30 +0000 (12:23 -0700)]
os: add prototype KineticStore

Implement the KeyValueDB interface using libkinetic_client,
and allow it to be configured as the backend for the KeyValueStore,
running the entire OSD on it.

This prototype implementation has no transaction safety, and is
only suitable as a proof of concept. Since the libkinetic_client
API does not provide reverse iteration over keys without also reading
the value off disk, it implements iterators in a very slow but correct way.
These are used heavily by the KeyValueDB callers, so this is a bottleneck
in performance.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoPG::op_must_wait_for_map: pass the epoch rather than the map 2071/head
Somnath Roy [Fri, 27 Jun 2014 21:05:53 +0000 (14:05 -0700)]
PG::op_must_wait_for_map: pass the epoch rather than the map

have_same_or_newer_map is also modified to accept epoch instead of
map.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
11 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Thu, 10 Jul 2014 18:30:41 +0000 (11:30 -0700)]
Merge branch 'master' of https://github.com/ceph/ceph

11 years agodoc: Added CentOS/RHEL install for git.
John Wilkins [Thu, 10 Jul 2014 18:30:00 +0000 (11:30 -0700)]
doc: Added CentOS/RHEL install for git.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agorgw: modelines
Sage Weil [Thu, 10 Jul 2014 17:54:51 +0000 (10:54 -0700)]
rgw: modelines

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agorgw: fix RGWObjManifestRule decoder
Sage Weil [Thu, 10 Jul 2014 17:36:16 +0000 (10:36 -0700)]
rgw: fix RGWObjManifestRule decoder

Only decode the new field if it is a new struct.

Fixes: #8804
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agodoc: Added keyring location note to resolve pull abandoned pull request #1946.
John Wilkins [Thu, 10 Jul 2014 15:05:42 +0000 (08:05 -0700)]
doc: Added keyring location note to resolve pull abandoned pull request #1946.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agonuke dlist 2090/head
Sage Weil [Thu, 10 Jul 2014 14:01:44 +0000 (07:01 -0700)]
nuke dlist

No users.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoAdd random_cache.hpp to Makefile.am 1999/head
Haomai Wang [Thu, 10 Jul 2014 02:32:17 +0000 (10:32 +0800)]
Add random_cache.hpp to Makefile.am

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agotest: fix make_pair() for c++11
Josh Durgin [Sat, 31 May 2014 00:30:04 +0000 (17:30 -0700)]
test: fix make_pair() for c++11

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoRemove some not-resolving make_pair() invocations.
Matt Benjamin [Thu, 29 May 2014 14:49:52 +0000 (10:49 -0400)]
Remove some not-resolving make_pair() invocations.

There's nothing wrong with make_pair(), but there is some type
resolution issue in these instances, at least with GCC 4.8.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
11 years agoAdd required spacing after string literals (PRIu64).
Matt Benjamin [Thu, 29 May 2014 14:41:13 +0000 (10:41 -0400)]
Add required spacing after string literals (PRIu64).

The common formatting for these 64bit types is not C++ 2011
clean.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Conflicts:
src/common/perf_counters.cc

11 years agoConvert ConnectionRef explicitly to bool.
Matt Benjamin [Thu, 29 May 2014 14:48:18 +0000 (10:48 -0400)]
Convert ConnectionRef explicitly to bool.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
11 years agoWork around an apparent binding bug (GCC 4.8).
Matt Benjamin [Thu, 29 May 2014 14:34:20 +0000 (10:34 -0400)]
Work around an apparent binding bug (GCC 4.8).

A reference to h->seq passed to std::pair ostensibly could not bind
because the header structure is packed.  At first this looked like
a more general unaligned access problem, but the only location the
compiler rejects is a false positive.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
11 years agoFix the PG listing issue which could miss objects for EC pool (where there is object... 2088/head
Guang Yang [Wed, 9 Jul 2014 11:20:36 +0000 (11:20 +0000)]
Fix the PG listing issue which could miss objects for EC pool (where there is object shard and generation).
Backport: firefly
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
11 years agodoc: Clean up formatting, usage and removed duplicate section.
John Wilkins [Thu, 10 Jul 2014 00:18:03 +0000 (17:18 -0700)]
doc: Clean up formatting, usage and removed duplicate section.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc/release-notes: v0.80.2
Sage Weil [Thu, 10 Jul 2014 00:10:12 +0000 (17:10 -0700)]
doc/release-notes: v0.80.2

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #1905 from leseb/doc-rbd-icehouse
John Wilkins [Wed, 9 Jul 2014 23:27:52 +0000 (16:27 -0700)]
Merge pull request #1905 from leseb/doc-rbd-icehouse

doc: rbd icehouse updated. Need to remove duplicate section.

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #2087 from theanalyst/doc/typo-fix
John Wilkins [Wed, 9 Jul 2014 23:05:57 +0000 (16:05 -0700)]
Merge pull request #2087 from theanalyst/doc/typo-fix

doc: Fixing a few typos in docs

Reviewed-by: John Wilkins <john.wilkins@inktank.com>
11 years agoRevert "qa: add an fsx run which turns on kernel debugging"
Greg Farnum [Wed, 9 Jul 2014 17:49:59 +0000 (10:49 -0700)]
Revert "qa: add an fsx run which turns on kernel debugging"

This reverts commit 29c33f0c057acc4e0f4e5022c97553a2dc095b21.
We don't need the debugging any more, and having two separate fsx runners
already caused one update-in-the-wrong-place issue.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoRevert "qa: add an fsx run which turns on kernel debugging"
Greg Farnum [Wed, 9 Jul 2014 17:49:59 +0000 (10:49 -0700)]
Revert "qa: add an fsx run which turns on kernel debugging"

This reverts commit 29c33f0c057acc4e0f4e5022c97553a2dc095b21.
We don't need the debugging any more, and having two separate fsx runners
already caused one update-in-the-wrong-place issue.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agodoc: fix a typo in quickstart doc 2087/head
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:48:49 +0000 (11:18 +0530)]
doc: fix a typo in quickstart doc

* doc/start/documenting-ceph.rst: s/along side/alongside

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: fix a few typos in radosgw docs
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:48:09 +0000 (11:18 +0530)]
doc: fix a few typos in radosgw docs

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: fix a few typos in rados docs
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:45:08 +0000 (11:15 +0530)]
doc: fix a few typos in rados docs

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: fix a few typos in the dev docs
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:35:46 +0000 (11:05 +0530)]
doc: fix a few typos in the dev docs

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: fix a few typos in rbd docs
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:28:59 +0000 (10:58 +0530)]
doc: fix a few typos in rbd docs

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: Fix a few typos in the install docs
Abhishek Lekshmanan [Wed, 9 Jul 2014 05:17:51 +0000 (10:47 +0530)]
doc: Fix a few typos in the install docs

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: fix a few typos in architecture page
Abhishek Lekshmanan [Wed, 9 Jul 2014 04:50:54 +0000 (10:20 +0530)]
doc: fix a few typos in architecture page

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agodoc: Fix a typo in the rbd man page
Abhishek Lekshmanan [Wed, 9 Jul 2014 04:46:52 +0000 (10:16 +0530)]
doc: Fix a typo in the rbd man page

's/specifially/specifically'

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agoUse submit_transaction_sync to make change durable
Haomai Wang [Sun, 4 May 2014 04:45:58 +0000 (12:45 +0800)]
Use submit_transaction_sync to make change durable

submit_transaction will use asynchronous write operation, there is no journal
for keyvaluestore so we need to make it sync

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd random cache and replace SharedLRU in KeyValueStore
Haomai Wang [Thu, 20 Mar 2014 08:20:39 +0000 (16:20 +0800)]
Add random cache and replace SharedLRU in KeyValueStore

SharedLRU plays pool performance in KeyValueStore with large header cache size,
so a performance optimized RandomCache could improve it.

RandomCache will record the lookup frequency of key. When evictint element,
it will randomly compare several elements's frequency and evict the least
one.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #2029 from ceph/wip-8523
Sage Weil [Wed, 9 Jul 2014 00:56:54 +0000 (17:56 -0700)]
Merge pull request #2029 from ceph/wip-8523

mon: OSDMonitor: add 'osd pool get-quota' command

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2085 from ceph/wip-7891
Sage Weil [Tue, 8 Jul 2014 23:25:56 +0000 (16:25 -0700)]
Merge pull request #2085 from ceph/wip-7891

osd: fix pg ref leaks on shutdown

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoosd: cancel agent_timer events on shutdown 2085/head
Sage Weil [Fri, 9 May 2014 15:41:33 +0000 (08:41 -0700)]
osd: cancel agent_timer events on shutdown

We need to cancel all agent timer events on shutdown.  This also needs to
happen early so that any in-progress events will execute before we start
flushing and cleaning up PGs.

Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: s/applying repop/canceling repop/
Sage Weil [Tue, 8 Jul 2014 23:11:44 +0000 (16:11 -0700)]
osd: s/applying repop/canceling repop/

The 'applying' language dates back to when we would wait for acks from
replicas before applying writes locally.  We don't do any of that any more;
now, this loop just cancels the repops with remove_repop() and some other
cleanup.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: clear PGBackend state on shutdown
Sage Weil [Tue, 8 Jul 2014 23:11:27 +0000 (16:11 -0700)]
osd: clear PGBackend state on shutdown

This was leaking state on shutdown whenever there were in-flight repops
that were canceled.

Fixes: #7891
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: separate cleanup from PGBackend::on_change()
Sage Weil [Tue, 8 Jul 2014 23:10:58 +0000 (16:10 -0700)]
osd: separate cleanup from PGBackend::on_change()

The generic portion of on_change() cleaned up temporary on-disk objects
and requires a Transaction.  The rest is clearing out in-memory state and
does not.  Separate the two.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoSupport for READFORWARD in the caching tier 2089/head
Luis Pabón [Tue, 8 Jul 2014 20:00:20 +0000 (16:00 -0400)]
Support for READFORWARD in the caching tier

READFORWARD caching policy uses writeback for writes
and redirects reads to the back end starage tier.

Signed-off-by: Luis Pabón <lpabon@redhat.com>
11 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 8 Jul 2014 18:45:22 +0000 (11:45 -0700)]
Merge remote-tracking branch 'gh/next'

11 years agoqa/workunits: cephtool: test for 'osd pool {get,set}-quota' 2029/head
Joao Eduardo Luis [Fri, 27 Jun 2014 21:20:51 +0000 (22:20 +0100)]
qa/workunits: cephtool: test for 'osd pool {get,set}-quota'

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: add 'osd pool get-quota' command
Joao Eduardo Luis [Fri, 27 Jun 2014 20:41:18 +0000 (21:41 +0100)]
mon: OSDMonitor: add 'osd pool get-quota' command

Enables us to obtain current quotas for a given pool.

Fixes: #8523
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #2076 from cernceph/wip-wbthrottle-perfcounters
Samuel Just [Tue, 8 Jul 2014 17:25:20 +0000 (10:25 -0700)]
Merge pull request #2076 from cernceph/wip-wbthrottle-perfcounters

decrement WBThrottle perfcounters in clear_object

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #2082 from ceph/wip-8727
Sage Weil [Tue, 8 Jul 2014 17:05:33 +0000 (10:05 -0700)]
Merge pull request #2082 from ceph/wip-8727

messages: MForward: fix compat version

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agomessages: MForward: fix compat version 2082/head
Joao Eduardo Luis [Tue, 8 Jul 2014 15:46:27 +0000 (16:46 +0100)]
messages: MForward: fix compat version

A while ago we bumped the head version and reset the compat version to 0.
Doing this so happens to make the messenger assume that the message does
not support the compat versioning and sets the compat version to the head
version -- thus making compat = 2 when it should have been 1.

The nasty side-effect of this is that upgrading from emperor to firefly
will have emperor-leaders being unable to decode forwarded messages from
firefly-peons.

Fixes: #8727
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #2081 from ceph/wip-osd-leaks
Sage Weil [Tue, 8 Jul 2014 04:08:21 +0000 (21:08 -0700)]
Merge pull request #2081 from ceph/wip-osd-leaks

osd: fix several memory leaks from fast dispatch

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoosd: clear sessions_waiting_on_map on shutdown 2081/head
Sage Weil [Mon, 7 Jul 2014 23:06:49 +0000 (16:06 -0700)]
osd: clear sessions_waiting_on_map on shutdown

Wake up these ops and drop the Session refs on shutdown.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: fix session leak when waiting on map
Sage Weil [Mon, 7 Jul 2014 23:06:21 +0000 (16:06 -0700)]
osd: fix session leak when waiting on map

We don't want to leak the Session if this Session is already waiting on
a map.

Introduced by eb30f88c942d80cbc951d4d0f375479069d15624.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #2037 from ceph/wip-async-log
Gregory Farnum [Mon, 7 Jul 2014 22:37:13 +0000 (15:37 -0700)]
Merge pull request #2037 from ceph/wip-async-log

MDS: Encode log events in a separate thread from main execution.

This is a first small step in multi-threading the MDS daemon.

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoosd: clear Sessions for loopback Connections on shutdown
Sage Weil [Tue, 1 Jul 2014 21:31:11 +0000 (14:31 -0700)]
osd: clear Sessions for loopback Connections on shutdown

Starting with the fast dispatch patches, we are calling the handle_connect
on loopback.  Make sure we zap them on shutdown to break the Session <->
Connection ref cycle.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoRevert "OSD: move waiting_for_pg into Session"
Sage Weil [Mon, 7 Jul 2014 22:01:50 +0000 (15:01 -0700)]
Revert "OSD: move waiting_for_pg into Session"

This reverts commit ecda2fef8ce982df3581a3b47ba74ae581d82479.

This leaves Session* refs indefinitely in the map.

This was one source of #7995.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #2080 from ceph/wip-8306-rebase
Sage Weil [Mon, 7 Jul 2014 21:52:17 +0000 (14:52 -0700)]
Merge pull request #2080 from ceph/wip-8306-rebase

Wip 8306 rebase

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
11 years agoOSD: fix debug logging output
Greg Farnum [Mon, 7 Jul 2014 19:46:16 +0000 (12:46 -0700)]
OSD: fix debug logging output

The snapmapper and infos statements were backwards. Now they aren't.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #2078 from ceph/wip-8751
Sage Weil [Mon, 7 Jul 2014 20:23:25 +0000 (13:23 -0700)]
Merge pull request #2078 from ceph/wip-8751

test: generalise default_pools in test_rados

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoceph.spec.in: add bash completion file for radosgw-admin 2080/head
Dan Mick [Thu, 3 Jul 2014 23:11:24 +0000 (16:11 -0700)]
ceph.spec.in: add bash completion file for radosgw-admin

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agoceph.spec.in: rhel7-related changes:
Dan Mick [Thu, 3 Jul 2014 23:10:55 +0000 (16:10 -0700)]
ceph.spec.in: rhel7-related changes:

udev rules: /lib -> /usr/lib
/sbin binaries move to /usr/sbin or %{_sbindir}

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agoFix/add missing dependencies:
Dan Mick [Thu, 3 Jul 2014 23:08:44 +0000 (16:08 -0700)]
Fix/add missing dependencies:

- rbd-fuse depends on librados2/librbd1
- ceph-devel depends on specific releases of libs and libcephfs_jni1
- librbd1 depends on librados2
- python-ceph does not depend on libcephfs1

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agoceph.spec.in: whitespace fixes
Dan Mick [Thu, 3 Jul 2014 23:05:00 +0000 (16:05 -0700)]
ceph.spec.in: whitespace fixes

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agoceph.spec.in: split out ceph-common as in Debian
Dan Mick [Thu, 3 Jul 2014 23:04:10 +0000 (16:04 -0700)]
ceph.spec.in: split out ceph-common as in Debian

Move files, postun scriptlet, and add dependencies on ceph-common
where appropriate

Signed-off-by: Sandon Van Ness <sandon@inktank.com>