]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 agoRemove exclusive lock on GenericObjectMap
Haomai Wang [Thu, 20 Mar 2014 06:09:49 +0000 (14:09 +0800)]
Remove exclusive lock on GenericObjectMap

Now most of GenericObjectMap interfaces use header as argument not the union of
coll_t and ghobject_t. So caller should be responsible for maintain the
exclusive header.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd Header cache to KeyValueStore
Haomai Wang [Thu, 20 Mar 2014 06:04:45 +0000 (14:04 +0800)]
Add Header cache to KeyValueStore

In the performance statistic recently, the header lookup becomes the main time
consuming for the read/write operations. Most of time it occur 50% to deal with
header lookup, decode/encode logics.

Now adding header cache using SharedLRU structure which will maintain the header
cache and caller will get the pointer to the real header. It also avoid too much
header copy operations overhead.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #1988 from dachary/wip-warnings
Loic Dachary [Thu, 19 Jun 2014 16:06:49 +0000 (18:06 +0200)]
Merge pull request #1988 from dachary/wip-warnings

test: fix -Wsign-compare warnings

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
11 years agoMerge pull request #1993 from dachary/fix_ut
Loic Dachary [Thu, 19 Jun 2014 15:41:25 +0000 (17:41 +0200)]
Merge pull request #1993 from dachary/fix_ut

autotools: avoid check_SCRIPTS duplication

Reviewed-by: Wei Luo <luowei@yahoo-inc.com>
11 years agoMerge pull request #1995 from sjahl/master
John Wilkins [Thu, 19 Jun 2014 12:32:30 +0000 (05:32 -0700)]
Merge pull request #1995 from sjahl/master

doc: Fixed an incorrect flag in radosgw admin docs.

11 years agodoc: Fixed an incorrect flag in radosgw admin docs. 1995/head
Stephen Jahl [Thu, 19 Jun 2014 11:44:45 +0000 (07:44 -0400)]
doc: Fixed an incorrect flag in radosgw admin docs.

Example use a "--gen-key" flag, which doesn't exist. Changed it to
"--gen-access-key".

Signed-off-by: Stephen Jahl <stephenjahl@gmail.com>
11 years agoautotools: avoid check_SCRIPTS duplication 1993/head
Loic Dachary [Thu, 19 Jun 2014 07:54:32 +0000 (09:54 +0200)]
autotools: avoid check_SCRIPTS duplication

The check_SCRIPTS content must be added to EXTRA_DIST, otherwise it will
not be included by make dist and it won't be possible to run make check
successfully.

One solution would be to add $(check_SCRIPTS) to EXTRA_DIST to avoid
duplication and help with long term maintenance. However, $(srcdir) is
not supported in the content of the check_SCRIPTS variable.

A GNU Make variable substitution (patsubst) is used to prepend $(srcdir)
to each script, only when used in the EXTRA_DIST variable.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1992 from luowei62/fix_ut
Loic Dachary [Thu, 19 Jun 2014 07:38:19 +0000 (09:38 +0200)]
Merge pull request #1992 from luowei62/fix_ut

Fix dist package run unit test failed.

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1989 from dachary/wip-8622-rados-alignment
Loic Dachary [Thu, 19 Jun 2014 06:13:26 +0000 (08:13 +0200)]
Merge pull request #1989 from dachary/wip-8622-rados-alignment

tests: prevent gitbuilder trigger in test-erasure-code.sh

Reviewed-by: Lluis Pamies-Juarez <lluis@pamies.cat>
11 years agoFix dist package run unit test failed. 1992/head
luowei [Thu, 19 Jun 2014 04:00:33 +0000 (04:00 +0000)]
Fix dist package run unit test failed.

Signed-off-by: Wei Luo <luowei@yahoo-inc.com>
11 years agotests: prevent gitbuilder trigger in test-erasure-code.sh 1989/head
Loic Dachary [Wed, 18 Jun 2014 22:09:14 +0000 (00:09 +0200)]
tests: prevent gitbuilder trigger in test-erasure-code.sh

Use the INFO keywork instead of WARNING so that gitbuilder does not
confuse this with a warning worth fixing.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agotest: fix -Wsign-compare warnings 1988/head
Loic Dachary [Wed, 18 Jun 2014 22:02:21 +0000 (00:02 +0200)]
test: fix -Wsign-compare warnings

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1987 from dachary/wip-8622-rados-alignment
Loic Dachary [Wed, 18 Jun 2014 21:21:20 +0000 (23:21 +0200)]
Merge pull request #1987 from dachary/wip-8622-rados-alignment

erasure-code: verify that rados put enforces alignment

Reviewed-by: Lluis Pamies-Juarez <lluis@pamies.cat>
11 years agoerasure-code: verify that rados put enforces alignment 1987/head
Loic Dachary [Wed, 18 Jun 2014 15:01:54 +0000 (17:01 +0200)]
erasure-code: verify that rados put enforces alignment

http://tracker.ceph.com/issues/8622 refs: #8622

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1983 from dachary/wip-osd-config
Loic Dachary [Wed, 18 Jun 2014 21:12:41 +0000 (23:12 +0200)]
Merge pull request #1983 from dachary/wip-osd-config

tests: remove spurious and harmless find command

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
11 years agoMerge pull request #1984 from llpamies/wip-8622
Loic Dachary [Wed, 18 Jun 2014 21:01:07 +0000 (23:01 +0200)]
Merge pull request #1984 from llpamies/wip-8622

enforce rados put aligment

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1943 from athanatos/wip-8507
Samuel Just [Wed, 18 Jun 2014 18:32:23 +0000 (11:32 -0700)]
Merge pull request #1943 from athanatos/wip-8507

Wip 8507

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1986 from ceph/wip-scrub-sleep
Samuel Just [Wed, 18 Jun 2014 18:16:18 +0000 (11:16 -0700)]
Merge pull request #1986 from ceph/wip-scrub-sleep

osd: introduce simple sleep during scrub

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1985 from concubidated/master
Sage Weil [Wed, 18 Jun 2014 18:09:14 +0000 (11:09 -0700)]
Merge pull request #1985 from concubidated/master

ReplicatedPG: Fix 'ajusted' typo

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoReplicatedPG: 'ajusted' typo 1985/head
Concubidated [Wed, 18 Jun 2014 17:56:25 +0000 (10:56 -0700)]
ReplicatedPG: 'ajusted' typo

Signed-off-by: <Tyler Brekke> tyler.brekke@inktank.com
11 years agorgw-admin: Fix the 'show log' command
Sylvain Munaut [Mon, 1 Jul 2013 11:32:50 +0000 (13:32 +0200)]
rgw-admin: Fix the 'show log' command

Fixes: #8553
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com>
11 years agoenforce rados put aligment 1984/head
Lluis Pamies-Juarez [Wed, 18 Jun 2014 17:00:09 +0000 (10:00 -0700)]
enforce rados put aligment

Signed-off-by: Lluis Pamies-Juarez <lluis.pamies-juarez@hgst.com>
11 years agotests: remove spurious and harmless find command 1983/head
Loic Dachary [Wed, 18 Jun 2014 13:58:28 +0000 (15:58 +0200)]
tests: remove spurious and harmless find command

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoosd: introduce simple sleep during scrub 1986/head
Sage Weil [Tue, 17 Jun 2014 17:47:24 +0000 (10:47 -0700)]
osd: introduce simple sleep during scrub

This option is similar to osd_snap_trim_sleep: simply inject an optional
sleep in the thread that is doing scrub work.  This is a very kludgey and
coarse knob for limiting the impact of scrub on the cluster, but can help
until we have a more robust and elegant solution.

Only sleep if we are in the NEW_CHUNK state to avoid delaying processing of
an in-progress chunk.  In this state nothing is blocked on anything.
Conveniently, chunky_scrub() requeues itself for each new chunk.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1968 from ceph/wip-ceph-isatty
Sage Weil [Tue, 17 Jun 2014 17:39:25 +0000 (10:39 -0700)]
Merge pull request #1968 from ceph/wip-ceph-isatty

ceph: output prompt only if stdin is tty

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1947 from ceph/wip-import-purge
Gregory Farnum [Mon, 16 Jun 2014 22:08:17 +0000 (15:08 -0700)]
Merge pull request #1947 from ceph/wip-import-purge

Wip import purge

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1970 from dachary/wip-erasure-code-profile-default
Loic Dachary [Mon, 16 Jun 2014 20:04:03 +0000 (22:04 +0200)]
Merge pull request #1970 from dachary/wip-erasure-code-profile-default

Revert "erasure-code: create default profile if necessary"

11 years agoRevert "erasure-code: create default profile if necessary" 1970/head
Loic Dachary [Mon, 16 Jun 2014 19:41:00 +0000 (21:41 +0200)]
Revert "erasure-code: create default profile if necessary"

This reverts commit 360de6adf24ef9a1287d169416d5e9bbb72afbec.

Conflicts:
src/mon/OSDMonitor.cc

11 years agomon/OSDMonitor: fix build error
Sage Weil [Mon, 16 Jun 2014 19:28:07 +0000 (12:28 -0700)]
mon/OSDMonitor: fix build error

This broke with 360de6adf24ef9a1287d169416d5e9bbb72afbec.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd: verify osd config sanity checks
Loic Dachary [Sun, 15 Jun 2014 09:12:15 +0000 (11:12 +0200)]
osd: verify osd config sanity checks

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1951 from sahid/ut-lru
Loic Dachary [Mon, 16 Jun 2014 17:16:13 +0000 (19:16 +0200)]
Merge pull request #1951 from sahid/ut-lru

Adds tests to include/lru.h + fixes small issues

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1954 from dachary/wip-8307-erasure-code-profile-implicit-creation
Sage Weil [Mon, 16 Jun 2014 16:35:05 +0000 (09:35 -0700)]
Merge pull request #1954 from dachary/wip-8307-erasure-code-profile-implicit-creation

erasure code profile implicit creation

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #1964 from ceph/wip-osd-configs
Sage Weil [Mon, 16 Jun 2014 16:30:34 +0000 (09:30 -0700)]
Merge pull request #1964 from ceph/wip-osd-configs

osd: add sanity check/warning on a few key configs

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1966 from dachary/wip-erasure-code-profile-default
Sage Weil [Mon, 16 Jun 2014 16:29:28 +0000 (09:29 -0700)]
Merge pull request #1966 from dachary/wip-erasure-code-profile-default

DNM: erasure-code: create default profile if necessary

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoPendingReleaseNotes: note about keyvaluestore-dev on-disk format change
Sage Weil [Mon, 16 Jun 2014 16:17:36 +0000 (09:17 -0700)]
PendingReleaseNotes: note about keyvaluestore-dev on-disk format change

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1941 from yuyuyu101/wip-8564
Sage Weil [Mon, 16 Jun 2014 16:13:49 +0000 (09:13 -0700)]
Merge pull request #1941 from yuyuyu101/wip-8564

Fix write operation on a deleted object in the same transaction(KeyValueStore)

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agocommon: Enforces the methods lru_pin() and lru_unpin() 1951/head
Sahid Orentino Ferdjaoui [Wed, 11 Jun 2014 13:40:38 +0000 (15:40 +0200)]
common: Enforces the methods lru_pin() and lru_unpin()

If lru_*pin() is called twice, the counter will be incr/decr
incorrectly since it will count more/less pinned objects than
there is and so corrupts the balancing (lru_adjust()).

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
11 years agocommon: Fixes issue with lru_clear() + add new test
Sahid Orentino Ferdjaoui [Wed, 11 Jun 2014 13:37:45 +0000 (15:37 +0200)]
common: Fixes issue with lru_clear() + add new test

The method lru_clear() must set attribute lru_num to zero
after lru_top, lru_bot and lru_mid are reseted. indeed, lru_num
is the total number of elements found in all of them.

Also the test insures the good behavior of the method
lru_adjust() - lru_touch() calls lru_adjust every time
to balance lru_top and lru_bot by the value of lru_midpoint.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
11 years agocommon: Adds simple tests to verify good behavior
Sahid Orentino Ferdjaoui [Wed, 11 Jun 2014 13:33:09 +0000 (15:33 +0200)]
common: Adds simple tests to verify good behavior

Adds new tests to the lib include/lru.h to verify methods
insert_*.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
11 years agoceph: output prompt only if stdin is tty 1968/head
Ilya Dryomov [Fri, 13 Jun 2014 08:08:45 +0000 (12:08 +0400)]
ceph: output prompt only if stdin is tty

In loop mode, output prompt only if stdin is tty, i.e. if we are
interactive.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoerasure-code: create default profile if necessary 1966/head
Loic Dachary [Sun, 15 Jun 2014 14:54:02 +0000 (16:54 +0200)]
erasure-code: create default profile if necessary

http://tracker.ceph.com/issues/8601

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1960 from dachary/wip-test-kill-race
Loic Dachary [Sun, 15 Jun 2014 09:56:54 +0000 (11:56 +0200)]
Merge pull request #1960 from dachary/wip-test-kill-race

tests: prevent kill race condition

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoosd: add sanity check/warning on a few key configs 1964/head
Sage Weil [Sat, 14 Jun 2014 17:30:50 +0000 (10:30 -0700)]
osd: add sanity check/warning on a few key configs

Warn when certain config values are set to bad values.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1949 from ceph/wip-7774-3
Josh Durgin [Sat, 14 Jun 2014 01:24:19 +0000 (18:24 -0700)]
Merge pull request #1949 from ceph/wip-7774-3

Wip 7774 3

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #1915 from ceph/wip-8452-2
Josh Durgin [Fri, 13 Jun 2014 23:30:37 +0000 (16:30 -0700)]
Merge pull request #1915 from ceph/wip-8452-2

rgw: set meta object in extra flag when initializing it

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoosd: remove non const get_erasure_code_profile 1954/head
Loic Dachary [Fri, 13 Jun 2014 11:01:15 +0000 (13:01 +0200)]
osd: remove non const get_erasure_code_profile

It is not used and will unexpectedly create a new entry if selected when
the const version is intended.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agotests: prevent kill race condition 1960/head
Loic Dachary [Fri, 13 Jun 2014 12:41:39 +0000 (14:41 +0200)]
tests: prevent kill race condition

When trying to kill a daemon, keep its pid in a variable instead of
retrieving it from the pidfile multiple times. It prevents the following
race condition:

  * try to kill ceph-mon
  * ceph-mon is in the process of dying and removed its pidfile
  * try to kill ceph-mon fails because the pidfile is not found
  * another ceph-mon is spawned and fails to bind the port
    because the previous ceph-mon is still holding it

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoosd: improve osd pool create error message readability
Loic Dachary [Wed, 11 Jun 2014 20:53:43 +0000 (22:53 +0200)]
osd: improve osd pool create error message readability

Add std::endl to separate independent error messages related to erasure
code.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoerasure-code: consistent argument parsing for profiles
Loic Dachary [Wed, 11 Jun 2014 20:50:43 +0000 (22:50 +0200)]
erasure-code: consistent argument parsing for profiles

Remove the = from the goodchars of the erasure_code_profile argument of
osd pool create so that it is consistent with the goodchars of osd
erasure-code-profile set / rm.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoerasure-code: OSDMonitor::get_erasure_code is a const
Loic Dachary [Wed, 11 Jun 2014 20:47:49 +0000 (22:47 +0200)]
erasure-code: OSDMonitor::get_erasure_code is a const

If it is not, the non const version of OSDMap::get_erasure_code_profile
is called and a profile is created as a side effect, which is not
intended.

http://tracker.ceph.com/issues/8307 refs: #8307

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoerasure-code: pool create must not create profiles
Loic Dachary [Wed, 11 Jun 2014 20:44:57 +0000 (22:44 +0200)]
erasure-code: pool create must not create profiles

If a non existent profile is provided as an argument to osd pool create,
it must exit on error and not create the profile as a side effect.

http://tracker.ceph.com/issues/8307 refs: #8307

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoqa: extend cephfs_journal_tool_smoke 1947/head
John Spray [Thu, 12 Jun 2014 13:44:04 +0000 (14:44 +0100)]
qa: extend cephfs_journal_tool_smoke

To provide coverage for the 'import' command
resulting in the same contents as before an
export/import cycle.

Signed-off-by: John Spray <john.spray@redhat.com>
11 years agoqa: set +x on cephfs_journal_tool_smoke
John Spray [Thu, 12 Jun 2014 11:05:44 +0000 (12:05 +0100)]
qa: set +x on cephfs_journal_tool_smoke

Signed-off-by: John Spray <john.spray@redhat.com>
11 years agotools/cephfs: Purge trailing objects during import
John Spray [Wed, 21 May 2014 13:07:45 +0000 (14:07 +0100)]
tools/cephfs: Purge trailing objects during import

Reviewed-by: Gregory Farnum <greg@inktank.com>
Signed-off-by: John Spray <john.spray@inktank.com>
11 years agotools/cephfs: error handling in journal_export
John Spray [Wed, 21 May 2014 12:36:26 +0000 (13:36 +0100)]
tools/cephfs: error handling in journal_export

Was failing on unreadable journal even if
only trying to do an import.

Was calling messenger destructor without init
on early failures due to early instantiation
of Dumper.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agotools/cephfs: Clean up waits in Dumper
John Spray [Wed, 21 May 2014 11:54:31 +0000 (12:54 +0100)]
tools/cephfs: Clean up waits in Dumper

Remove some LOC by using C_SaferCond.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1955 from ceph/wip-8585
Josh Durgin [Fri, 13 Jun 2014 01:02:46 +0000 (18:02 -0700)]
Merge pull request #1955 from ceph/wip-8585

rgw: set a default data extra pool name

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #1933 from ceph/wip-8556
Sage Weil [Thu, 12 Jun 2014 23:45:31 +0000 (16:45 -0700)]
Merge pull request #1933 from ceph/wip-8556

osd: do not require EC feature bit from clients.

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoosd/OSDMap: do not require ERASURE_CODE feature of clients 1933/head
Sage Weil [Fri, 6 Jun 2014 20:31:29 +0000 (13:31 -0700)]
osd/OSDMap: do not require ERASURE_CODE feature of clients

Just because an EC pool exists in the cluster does not mean tha tthe client
has to support the feature:

1) The way client IO is initiated is no different for EC pools than for
   replicated pools.
2) People may add an EC pool to an existing cluster with old clients and
   locking those old clients out is very rude when they are not using the
   new pool.
3) The only direct client user of EC pools right now is rgw, and the new
   versions already need to support various other features like CRUSH_V2
   in order to work.  These features are present in new kernels.

Fixes: #8556
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosd/OSDMap: make get_features() take an entity type
Sage Weil [Thu, 12 Jun 2014 23:44:53 +0000 (16:44 -0700)]
osd/OSDMap: make get_features() take an entity type

Make the helper that returns what features are required of the OSDMap take
an entity type argument, as the required features may vary between
components in the cluster.

Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1957 from ceph/wip-doc-os-recommendations
Josh Durgin [Thu, 12 Jun 2014 20:14:13 +0000 (13:14 -0700)]
Merge pull request #1957 from ceph/wip-doc-os-recommendations

doc: Updated the OS Recommendations for Firefly.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agodoc: Updated the OS Recommendations for Firefly. 1957/head
John Wilkins [Thu, 12 Jun 2014 19:48:29 +0000 (12:48 -0700)]
doc: Updated the OS Recommendations for Firefly.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Updated the example configuration.
John Wilkins [Thu, 12 Jun 2014 18:35:27 +0000 (11:35 -0700)]
doc: Updated the example configuration.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Updated doc for more recent versions.
John Wilkins [Thu, 12 Jun 2014 18:34:41 +0000 (11:34 -0700)]
doc: Updated doc for more recent versions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1939 from ceph/wip-mon
Sage Weil [Thu, 12 Jun 2014 17:37:15 +0000 (10:37 -0700)]
Merge pull request #1939 from ceph/wip-mon

mon: a few basic perfcounter guages

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoMerge pull request #1956 from ceph/wip-fsx-sizeof
Sage Weil [Thu, 12 Jun 2014 16:57:02 +0000 (09:57 -0700)]
Merge pull request #1956 from ceph/wip-fsx-sizeof

test_librbd_fsx: fix sign-compare gcc warning

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1948 from steveftaylor/6700
Alfredo Deza [Thu, 12 Jun 2014 12:23:22 +0000 (08:23 -0400)]
Merge pull request #1948 from steveftaylor/6700

Fix for bug #6700

Reviewed-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agotest_librbd_fsx: fix sign-compare gcc warning 1956/head
Ilya Dryomov [Thu, 12 Jun 2014 10:35:48 +0000 (14:35 +0400)]
test_librbd_fsx: fix sign-compare gcc warning

{read,write}bdy are signed, sizeof returns unsigned, gcc complains.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoMerge pull request #1937 from yuyuyu101/keyvaluestore-strip-size
Sage Weil [Thu, 12 Jun 2014 03:24:04 +0000 (20:24 -0700)]
Merge pull request #1937 from yuyuyu101/keyvaluestore-strip-size

Add strip size and set_alloc_hint op support for KeyValueStore

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agorgw: set a default data extra pool name 1955/head
Yehuda Sadeh [Wed, 11 Jun 2014 23:50:41 +0000 (16:50 -0700)]
rgw: set a default data extra pool name

Fixes: #8585
Have a default name for the data extra pool, otherwise it would be empty
which means that it'd default to the data pool name (which is a problem
with ec backends).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agodoc: Made mention of "incomplete" status.
John Wilkins [Wed, 11 Jun 2014 23:11:47 +0000 (16:11 -0700)]
doc: Made mention of "incomplete" status.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1953 from ceph/wip-xattr-spillout
Gregory Farnum [Wed, 11 Jun 2014 21:59:25 +0000 (14:59 -0700)]
Merge pull request #1953 from ceph/wip-xattr-spillout

Enable and fix the existing xattr spillout code.

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1897 from somnathr/wip-sharded-threadpool
Gregory Farnum [Wed, 11 Jun 2014 21:29:55 +0000 (14:29 -0700)]
Merge pull request #1897 from somnathr/wip-sharded-threadpool

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoqa: add an fsx run which turns on kernel debugging
Greg Farnum [Wed, 11 Jun 2014 20:40:48 +0000 (13:40 -0700)]
qa: add an fsx run which turns on kernel debugging

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: remove the user_only param from _fgetattrs 1953/head
Greg Farnum [Tue, 20 May 2014 20:09:26 +0000 (13:09 -0700)]
FileStore: remove the user_only param from _fgetattrs

Nobody sets it to true, so remove it!

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: remove user_only options from getattrs through the ObjectStore stack
Greg Farnum [Tue, 20 May 2014 18:07:45 +0000 (11:07 -0700)]
FileStore: remove user_only options from getattrs through the ObjectStore stack

This sort of awareness belongs at a higher level in the stack -- as
evidenced by nobody using the option at this level. Remove it from the
implementations and the interface

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: do not use user_only in collection_getattrs
Greg Farnum [Tue, 20 May 2014 20:04:02 +0000 (13:04 -0700)]
FileStore: do not use user_only in collection_getattrs

There's no particular reason why any of the callers of collection_getattrs
want to avoid looking at Ceph's internal xattrs.
It looks like this flag (set in 1862ddd88548fd4609f4fa9715dbad42a84d3775) was
set this way by mistake.
And finally, we don't actually set xattrs on collections anymore, anyway.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: remove dead code
Greg Farnum [Thu, 24 Apr 2014 22:38:51 +0000 (15:38 -0700)]
FileStore: remove dead code

This case wasn't reachable when it was introduced, and it's still not.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: set XATTR_NO_SPILL_OUT when creating new files.
Greg Farnum [Thu, 24 Apr 2014 22:34:24 +0000 (15:34 -0700)]
FileStore: set XATTR_NO_SPILL_OUT when creating new files.

Fixes: #8205
Backport: firefly

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoFileStore: make _clone() copy spill out marker
Haomai Wang [Sat, 7 Jun 2014 06:32:23 +0000 (14:32 +0800)]
FileStore: make _clone() copy spill out marker

Previously we were not doing so, and that resulted in unpredictable loss
of xattrs from the client's perspective.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoAdd xattr test to ceph_test_objectstore
Haomai Wang [Fri, 6 Jun 2014 08:44:04 +0000 (16:44 +0800)]
Add xattr test to ceph_test_objectstore

Add xattr synthetic test to test ObjectStore xattr related interfaces.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agorgw: chain to multiple cache entries in one call 1949/head
Yehuda Sadeh [Wed, 11 Jun 2014 06:06:12 +0000 (23:06 -0700)]
rgw: chain to multiple cache entries in one call

This ensures that chained cache entries that depend on more than one raw
cache entry (bucket info cache depends on both the bucket entry point
and on the bucket info object), are chained and created atomically.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: chain binfo_cache to multiple cache entries
Yehuda Sadeh [Fri, 23 May 2014 23:50:41 +0000 (16:50 -0700)]
rgw: chain binfo_cache to multiple cache entries

Need to chain it to both the entry point and to the instance.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: bucket info uses cache chaining
Yehuda Sadeh [Fri, 21 Mar 2014 22:09:26 +0000 (15:09 -0700)]
rgw: bucket info uses cache chaining

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: user info uses cache chaining
Yehuda Sadeh [Wed, 19 Mar 2014 23:35:51 +0000 (16:35 -0700)]
rgw: user info uses cache chaining

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: an infrastructure for hooking into the raw cache
Yehuda Sadeh [Wed, 19 Mar 2014 23:34:21 +0000 (16:34 -0700)]
rgw: an infrastructure for hooking into the raw cache

Extend the RGWCache so that we can chain other caches to it so that when
data is invalidated it notifies them.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: cache bucket info
Yehuda Sadeh [Fri, 21 Feb 2014 00:25:21 +0000 (16:25 -0800)]
rgw: cache bucket info

This is really a partial implementation, so should only be used for
testing.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: cache decoded user info
Yehuda Sadeh [Thu, 20 Feb 2014 23:03:18 +0000 (15:03 -0800)]
rgw: cache decoded user info

Instead of accessing the raw user info data, cache the decoded
structure.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoPG: Added a const spg_t member to the PG class 1897/head
Somnath Roy [Wed, 11 Jun 2014 01:10:30 +0000 (18:10 -0700)]
PG: Added a const spg_t member to the PG class
The const spg_t member is been insantiated from constructor
and now get_pgid() can reference this to return a spg_t instance
without the need of pg_info (thus not requiring to acquire pg_lock).

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
11 years agodoc: Added a tip to install NTP when running multiple monitors.
John Wilkins [Wed, 11 Jun 2014 00:45:18 +0000 (17:45 -0700)]
doc: Added a tip to install NTP when running multiple monitors.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added additional background to address additional states.
John Wilkins [Wed, 11 Jun 2014 00:44:02 +0000 (17:44 -0700)]
doc: Added additional background to address additional states.

Covers 1-node cluster issues, fewer OSDs than replicas, and
active + clean + inconsistent states in greater detail.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added background discussion to clock settings.
John Wilkins [Wed, 11 Jun 2014 00:42:21 +0000 (17:42 -0700)]
doc: Added background discussion to clock settings.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoOSD: The thread pool variable name changed
Somnath Roy [Tue, 10 Jun 2014 23:43:26 +0000 (16:43 -0700)]
OSD: The thread pool variable name changed
The variable names are more meaningful now. op_tp -> osd_tp and
op_sharded_tp -> osd_op_tp

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
11 years agoShardedTP: The config option changed
Somnath Roy [Tue, 10 Jun 2014 23:02:52 +0000 (16:02 -0700)]
ShardedTP: The config option changed
The config option for sharded threadpool is changed to
osd_op_num_threads_per_shard instead of osd_op_num_sharded_pool_threads.
Along with osd_op_num_shards this will be much more user friendly while
configuring the number of op threads for the osd.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
11 years agoShardedTP: Changes related to conforming to Ceph coding guidelines
Somnath Roy [Tue, 10 Jun 2014 22:24:47 +0000 (15:24 -0700)]
ShardedTP: Changes related to conforming to Ceph coding guidelines

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
11 years agodoc: Fixed typo.
John Wilkins [Tue, 10 Jun 2014 19:20:43 +0000 (12:20 -0700)]
doc: Fixed typo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoFix for bug #6700 1948/head
Steve Taylor [Tue, 10 Jun 2014 18:42:55 +0000 (12:42 -0600)]
Fix for bug #6700

When preparing OSD disks with colocated journals, the intialization process
fails when using dmcrypt. The kernel fails to re-read the partition table after
the storage partition is created because the journal partition is already in use
by dmcrypt. This fix unmaps the journal partition from dmcrypt and allows the
partition table to be read.

Signed-off-by: Stephen F Taylor <steveftaylor@gmail.com>