]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agoMerge pull request #2489 from guangyy/wip-9008
Samuel Just [Tue, 7 Oct 2014 17:51:21 +0000 (10:51 -0700)]
Merge pull request #2489 from guangyy/wip-9008

For pgls OP, get/put budget on per list session basis, instead of per OP basis.

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #2654 from dachary/wip-9677-ioprio-class
Sage Weil [Tue, 7 Oct 2014 15:47:44 +0000 (08:47 -0700)]
Merge pull request #2654 from dachary/wip-9677-ioprio-class

common: ceph_ioprio_string_to_class always returns -EINVAL

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2626 from dachary/wip-rados-empty-file
Sage Weil [Tue, 7 Oct 2014 15:13:22 +0000 (08:13 -0700)]
Merge pull request #2626 from dachary/wip-rados-empty-file

tools: rados put /dev/null should write() and not create()

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2652 from ceph/wip-msgr
Gregory Farnum [Tue, 7 Oct 2014 14:23:54 +0000 (07:23 -0700)]
Merge pull request #2652 from ceph/wip-msgr

msgr: fix remaining direct references to "new SimpleMessenger" by replacing with the factory method

Reorganize the src/msg hierarchy to push SimpleMessenger down into a subfolder to make way for organizing new in-tree implementations.

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #2647 from ceph/wip-rm-legacy-cli
Sage Weil [Tue, 7 Oct 2014 13:30:46 +0000 (06:30 -0700)]
Merge pull request #2647 from ceph/wip-rm-legacy-cli

tools: remove old ceph.cc

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #2646 from ceph/wip-osd-op-macro
Sage Weil [Tue, 7 Oct 2014 13:27:09 +0000 (06:27 -0700)]
Merge pull request #2646 from ceph/wip-osd-op-macro

rados.h: use macros to generate osd ops definitons and strings

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoRun configure without liblttng on squeeze as well.
Sandon Van Ness [Tue, 7 Oct 2014 13:03:36 +0000 (06:03 -0700)]
Run configure without liblttng on squeeze as well.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agocommon: ceph_ioprio_string_to_class always returns -EINVAL 2654/head
Loic Dachary [Tue, 7 Oct 2014 12:06:38 +0000 (14:06 +0200)]
common: ceph_ioprio_string_to_class always returns -EINVAL

The l string is always empty because std::transform needs a
pre-allocated string. Replace with the in-place version. Add unit tests.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoosd: log error if set_ioprio fails to parse class
Loic Dachary [Tue, 7 Oct 2014 12:05:08 +0000 (14:05 +0200)]
osd: log error if set_ioprio fails to parse class

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agocommon: set_ioprio debug message including pid
Loic Dachary [Tue, 7 Oct 2014 12:03:39 +0000 (14:03 +0200)]
common: set_ioprio debug message including pid

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agocommon: do not set ioprio if pid is not set
Loic Dachary [Tue, 7 Oct 2014 12:02:09 +0000 (14:02 +0200)]
common: do not set ioprio if pid is not set

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoMerge pull request #2653 from dachary/wip-9676-ioprio-doc
Loic Dachary [Tue, 7 Oct 2014 08:15:20 +0000 (10:15 +0200)]
Merge pull request #2653 from dachary/wip-9676-ioprio-doc

doc: missing osd prefix to ioprio config options

Reviewed-by: Mehdi Abaakouk <sileht@sileht.net>
11 years agodoc: missing osd prefix to ioprio config options 2653/head
Loic Dachary [Tue, 7 Oct 2014 08:09:46 +0000 (10:09 +0200)]
doc: missing osd prefix to ioprio config options

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agomsg: move SimpleMessenger to msg/simple/ 2652/head
Sage Weil [Mon, 6 Oct 2014 15:40:16 +0000 (08:40 -0700)]
msg: move SimpleMessenger to msg/simple/

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agolibrados: use Messenger factory method
Sage Weil [Tue, 7 Oct 2014 04:20:08 +0000 (21:20 -0700)]
librados: use Messenger factory method

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agomsg: use localized cct for derr
Sage Weil [Tue, 7 Oct 2014 04:21:57 +0000 (21:21 -0700)]
msg: use localized cct for derr

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agodoc/release-notes: v0.86
Sage Weil [Tue, 7 Oct 2014 04:15:33 +0000 (21:15 -0700)]
doc/release-notes: v0.86

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2651 from ceph/wip-ostool
Sage Weil [Tue, 7 Oct 2014 04:11:51 +0000 (21:11 -0700)]
Merge pull request #2651 from ceph/wip-ostool

ceph_objectstore_tool: Accept CEPH_ARGS environment arguments

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoceph_objectstore_tool: Accept CEPH_ARGS environment arguments 2651/head
David Zafman [Tue, 7 Oct 2014 01:26:44 +0000 (18:26 -0700)]
ceph_objectstore_tool: Accept CEPH_ARGS environment arguments

Signed-off-by: David Zafman <dzafman@redhat.com>
11 years agoMerge pull request #2639 from ceph/wip-9661
David Zafman [Mon, 6 Oct 2014 22:47:30 +0000 (15:47 -0700)]
Merge pull request #2639 from ceph/wip-9661

Fix 9661: ceph_objectstore_tool doesn't work with memstore

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agotools: remove old ceph.cc 2647/head
John Spray [Fri, 3 Oct 2014 18:12:52 +0000 (19:12 +0100)]
tools: remove old ceph.cc

Signed-off-by: John Spray <john.spray@redhat.com>
11 years agoMerge pull request #2649 from ceph/wip-os-recommend-doc-fix
Sage Weil [Mon, 6 Oct 2014 18:20:10 +0000 (11:20 -0700)]
Merge pull request #2649 from ceph/wip-os-recommend-doc-fix

doc: update kernel recommendations, add tunables link

11 years agodoc: update kernel recommendations, add tunables link 2649/head
Ilya Dryomov [Fri, 3 Oct 2014 15:23:27 +0000 (19:23 +0400)]
doc: update kernel recommendations, add tunables link

No 3.16.[0-2] - same rbd deadlock regression as in 3.15.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
11 years agomsg: make messenger type configurable
Sage Weil [Sat, 4 Oct 2014 00:59:40 +0000 (17:59 -0700)]
msg: make messenger type configurable

Eventaully we may want to override this by passing the type in as an
arg, but let's do that later.

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agomsg/Message: drop unneeded #include
Sage Weil [Mon, 6 Oct 2014 15:50:33 +0000 (08:50 -0700)]
msg/Message: drop unneeded #include

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agomon/MonClient: use generic Messenger factory
Sage Weil [Mon, 6 Oct 2014 15:50:48 +0000 (08:50 -0700)]
mon/MonClient: use generic Messenger factory

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2644 from objoo/master
Loic Dachary [Sun, 5 Oct 2014 21:18:02 +0000 (23:18 +0200)]
Merge pull request #2644 from objoo/master

Add one more case ( "=" ) and test get_str_vec as well.

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
11 years agoAdd one more case ( "=" ) and test get_str_vec as well. 2644/head
Yann Dupont [Sun, 28 Sep 2014 22:14:45 +0000 (00:14 +0200)]
Add one more case ( "=" ) and test get_str_vec as well.
Signed-off-by: Yann Dupont <yann@objoo.org>
11 years agoMerge pull request #2641 from dachary/wip-9655-osd-tell
Sage Weil [Sun, 5 Oct 2014 16:00:01 +0000 (09:00 -0700)]
Merge pull request #2641 from dachary/wip-9655-osd-tell

qa: ceph tell must retry on ENXIO

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agorados.h: use macros to generate osd ops definitons and strings 2646/head
Ilya Dryomov [Wed, 1 Oct 2014 13:02:00 +0000 (17:02 +0400)]
rados.h: use macros to generate osd ops definitons and strings

Eliminate multiple points of maintenance by using macros - no
functional changes apart from adding strings which were missing.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
11 years agoMerge pull request #2599 from johnugeorge/wip-9492-crush-indep
Loic Dachary [Sat, 4 Oct 2014 09:45:09 +0000 (11:45 +0200)]
Merge pull request #2599 from johnugeorge/wip-9492-crush-indep

Crush: Ensuring at most num-rep osds are selected for indep rules

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
11 years agoqa: ceph tell must retry on ENXIO 2641/head
Loic Dachary [Sat, 4 Oct 2014 09:34:27 +0000 (11:34 +0200)]
qa: ceph tell must retry on ENXIO

It is expected for ceph tell to fail with ENXIO if the daemon it is
trying to join is not ready for some reason. This should be handled as a
transient error instead of a fatal error.

Add two shell functions to help with retry. They may prove useful if
other cases requiring a few retries show up.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoCrush: Ensuring at most num-rep osds are selected 2599/head
Johnu George [Mon, 29 Sep 2014 17:07:44 +0000 (10:07 -0700)]
Crush: Ensuring at most num-rep osds are selected

Crush temporary buffers are allocated as per replica size configured
by the user.When there are more final osds (to be selected as per
rule) than the replicas, buffer overlaps and it causes crash.Now, it
ensures that at most num-rep osds are selected even if more number of
osds are allowed by indep rule. The fix for firstn rules is already
merged as part of bug #9492. Required test files are added.

Fixes: #9492
Signed-off-by: Johnu George johnugeo@cisco.com
11 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Sat, 4 Oct 2014 00:56:31 +0000 (17:56 -0700)]
Merge remote-tracking branch 'gh/giant'

11 years agoMerge pull request #2640 from ceph/wip-9657
Sage Weil [Sat, 4 Oct 2014 00:02:56 +0000 (17:02 -0700)]
Merge pull request #2640 from ceph/wip-9657

messages: provide an explicit COMPAT_VERSION in MMDSBeacon

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agomessages: provide an explicit COMPAT_VERSION in MMDSBeacon 2640/head
Greg Farnum [Fri, 3 Oct 2014 23:06:53 +0000 (16:06 -0700)]
messages: provide an explicit COMPAT_VERSION in MMDSBeacon

We weren't setting an explicit compat version and so the Message
was setting it to the head version, breaking communication with
older daemons.

Fixes: #9657
Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMemStore: Need set/get_allow_sharded_objects() to work for ceph_objectstore_tool 2639/head
David Zafman [Fri, 3 Oct 2014 22:09:30 +0000 (15:09 -0700)]
MemStore: Need set/get_allow_sharded_objects() to work for ceph_objectstore_tool

Keep a bool sharded in memory and use for set/get_allow_sharded_objects()
Create a file "sharded" in the data dir when sharded is true during _save()
Check for file "sharded" during _load()

Fixes: #9661
Signed-off-by: David Zafman <dzafman@redhat.com>
11 years agoceph_objectstore_tool: MemStore needs a CephContext
David Zafman [Fri, 3 Oct 2014 22:12:28 +0000 (15:12 -0700)]
ceph_objectstore_tool: MemStore needs a CephContext

Pass g_ceph_context to ObjectStore::create() needed by MemStore

Fixes: #9661
Signed-off-by: David Zafman <dzafman@redhat.com>
11 years agodebian/control: BuildDepend on lsb-release
Sage Weil [Fri, 3 Oct 2014 20:45:48 +0000 (13:45 -0700)]
debian/control: BuildDepend on lsb-release

debian/rules uses it to make lttng build conditional.

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2635 from dachary/wip-9653-ceph-disk-bootstrap-osd-giant
Sage Weil [Fri, 3 Oct 2014 18:58:54 +0000 (11:58 -0700)]
Merge pull request #2635 from dachary/wip-9653-ceph-disk-bootstrap-osd-giant

ceph-disk: bootstrap-osd keyring ignores --statedir (giant)

11 years agoMerge pull request #2633 from dachary/wip-9653-ceph-disk-bootstrap-osd
Sage Weil [Fri, 3 Oct 2014 18:58:32 +0000 (11:58 -0700)]
Merge pull request #2633 from dachary/wip-9653-ceph-disk-bootstrap-osd

ceph-disk: bootstrap-osd keyring ignores --statedir

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2637 from dachary/wip-9245-test-mon-pending-giant
Sage Weil [Fri, 3 Oct 2014 18:24:44 +0000 (11:24 -0700)]
Merge pull request #2637 from dachary/wip-9245-test-mon-pending-giant

mon: obsolete osdmonitor_prepare_command (giant)

11 years agotests: remove tests requiring osdmonitor_prepare_command 2637/head
Loic Dachary [Fri, 3 Oct 2014 14:12:12 +0000 (16:12 +0200)]
tests: remove tests requiring osdmonitor_prepare_command

Although they have been useful, their maintenance and fragility caused
more trouble than their benefits.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 038de0031bc0892359201012dafb82ac1b1a4d0f)

11 years agomon: obsolete osdmonitor_prepare_command
Loic Dachary [Fri, 3 Oct 2014 14:10:30 +0000 (16:10 +0200)]
mon: obsolete osdmonitor_prepare_command

And the mon_advanced_debug_mode option that is only used in the context
of osdmonitor_prepare_command.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 2abc8f400f7db256c2a30f1d0886a593e6c194eb)

11 years agotest: minor case fix
Loic Dachary [Sat, 6 Sep 2014 14:06:12 +0000 (16:06 +0200)]
test: minor case fix

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 6f698374562de74806203c7b41072572b59bd256)

11 years agoMerge pull request #2636 from dachary/wip-9245-test-mon-pending
Sage Weil [Fri, 3 Oct 2014 16:27:27 +0000 (09:27 -0700)]
Merge pull request #2636 from dachary/wip-9245-test-mon-pending

mon: obsolete osdmonitor_prepare_command

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agotests: remove tests requiring osdmonitor_prepare_command 2636/head
Loic Dachary [Fri, 3 Oct 2014 14:12:12 +0000 (16:12 +0200)]
tests: remove tests requiring osdmonitor_prepare_command

Although they have been useful, their maintenance and fragility caused
more trouble than their benefits.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agomon: obsolete osdmonitor_prepare_command
Loic Dachary [Fri, 3 Oct 2014 14:10:30 +0000 (16:10 +0200)]
mon: obsolete osdmonitor_prepare_command

And the mon_advanced_debug_mode option that is only used in the context
of osdmonitor_prepare_command.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agotest: minor case fix
Loic Dachary [Sat, 6 Sep 2014 14:06:12 +0000 (16:06 +0200)]
test: minor case fix

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoceph-disk: bootstrap-osd keyring ignores --statedir 2635/head
Loic Dachary [Fri, 3 Oct 2014 12:08:57 +0000 (14:08 +0200)]
ceph-disk: bootstrap-osd keyring ignores --statedir

The STATEDIR variable is used to initialize the bootstrap-osd keyring
before it gets a chance to be overriden by --statedir. Replace it with
{statedir} so that it can be substituted after all options have been
parsed.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit fa0bd06b4657e5b84e237b76033ac3d3478b6a1f)

11 years agoMerge pull request #2577 from dachary/wip-9570-cpp-strerror
Loic Dachary [Fri, 3 Oct 2014 13:25:14 +0000 (15:25 +0200)]
Merge pull request #2577 from dachary/wip-9570-cpp-strerror

os: io_event.res is the size written

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
11 years agoceph-disk: bootstrap-osd keyring ignores --statedir 2633/head
Loic Dachary [Fri, 3 Oct 2014 12:08:57 +0000 (14:08 +0200)]
ceph-disk: bootstrap-osd keyring ignores --statedir

The STATEDIR variable is used to initialize the bootstrap-osd keyring
before it gets a chance to be overriden by --statedir. Replace it with
{statedir} so that it can be substituted after all options have been
parsed.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoMerge pull request #2627 from theanalyst/fix/mailmap
Loic Dachary [Thu, 2 Oct 2014 10:47:00 +0000 (12:47 +0200)]
Merge pull request #2627 from theanalyst/fix/mailmap

mailmap: Yehuda Sadeh name normalization

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
11 years agomailmap: Yehuda Sadeh name normalization 2627/head
Abhishek Lekshmanan [Thu, 2 Oct 2014 10:25:06 +0000 (15:55 +0530)]
mailmap: Yehuda Sadeh name normalization

Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
11 years agotools: rados put /dev/null should write() and not create() 2626/head
Loic Dachary [Thu, 2 Oct 2014 07:23:55 +0000 (09:23 +0200)]
tools: rados put /dev/null should write() and not create()

In the rados.cc special case to handle put an empty objects, use
write_full() instead of create().

A special case was introduced 6843a0b81f10125842c90bc63eccc4fd873b58f2
to create() an object if the rados put file is empty. Prior to this fix
an attempt to rados put an empty file was a noop. The problem with this
fix is that it is not idempotent. rados put an empty file twice would
fail the second time and rados put a file with one byte would succeed as
expected.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoMerge pull request #2625 from ceph/wip-ysw-mailmap
Loic Dachary [Thu, 2 Oct 2014 05:52:43 +0000 (07:52 +0200)]
Merge pull request #2625 from ceph/wip-ysw-mailmap

mailmap: update email address

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
11 years agomailmap: update email address 2625/head
Yehuda Sadeh [Thu, 2 Oct 2014 02:49:33 +0000 (19:49 -0700)]
mailmap: update email address

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agodoc/release-notes: fix attributions for 8702 fix
Sage Weil [Thu, 2 Oct 2014 01:01:51 +0000 (18:01 -0700)]
doc/release-notes: fix attributions for 8702 fix

Oops!

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agodoc/release-notes: v0.80.6
Sage Weil [Thu, 2 Oct 2014 00:48:12 +0000 (17:48 -0700)]
doc/release-notes: v0.80.6

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2623 from ceph/wip-coverity-20141002
Sage Weil [Wed, 1 Oct 2014 23:20:09 +0000 (16:20 -0700)]
Merge pull request #2623 from ceph/wip-coverity-20141002

build and coverity fixes

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2622 from dachary/wip-osd-pool-ls
Sage Weil [Wed, 1 Oct 2014 23:18:36 +0000 (16:18 -0700)]
Merge pull request #2622 from dachary/wip-osd-pool-ls

qa: fix osd pool ls invalid test

11 years agoMerge pull request #2621 from ceph/wip-objecter-shutdown
Sage Weil [Wed, 1 Oct 2014 23:14:07 +0000 (16:14 -0700)]
Merge pull request #2621 from ceph/wip-objecter-shutdown

Fix Objecter shutdown races with message handling

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoqa: fix osd pool ls invalid test 2622/head
Loic Dachary [Wed, 1 Oct 2014 21:39:39 +0000 (23:39 +0200)]
qa: fix osd pool ls invalid test

expect_false does not extend past the pipe and fails because the command
succeeds

introduced in f05c977bbcd310a83e6df03344a72d4cc06e1cc3

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
11 years agoBtrfsFileStoreBackend.cc: fix string overflow 2623/head
Danny Al-Gaaf [Wed, 1 Oct 2014 21:08:15 +0000 (23:08 +0200)]
BtrfsFileStoreBackend.cc: fix string overflow

Use strncpy() instead of strcpy and make sure the result
is '\0' terminated.

Fix for:

CID 1063700 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
 fixed_size_dest: You might overrun the 4088 byte fixed-size string
 vol_args.name by copying the return value of c_str without checking
 the length.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agotest_librbd.cc: fix compiler warning, cast to size_t
Danny Al-Gaaf [Wed, 1 Oct 2014 21:07:36 +0000 (23:07 +0200)]
test_librbd.cc: fix compiler warning, cast to size_t

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoObjecter: check the 'initialized' atomic_t safely 2621/head
Josh Durgin [Tue, 30 Sep 2014 01:17:29 +0000 (18:17 -0700)]
Objecter: check the 'initialized' atomic_t safely

shutdown() resets initialized to 0, but we can still receive messages
after this point, so fix message handlers to skip messages in this
case instead of asserting.

Also read initialized while holding Objecter::rwlock to avoid races
where e.g. handle_osd_map() checks initialized -> 1, continues,
shutdown() is called, sets initialized to 0, then handle_osd_map()
goes about its business and calls op_submit(), which would fail the
assert(initialized.read()) check. Similar races existed in other
message handlers which change Objecter state.

The Objecter is not destroyed until after its Messenger in
the MDS, OSD, and librados, so this should be safe.

Fixes: #9617
Backport: giant
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #2525 from ceph/wip-9487
Samuel Just [Wed, 1 Oct 2014 20:45:27 +0000 (13:45 -0700)]
Merge pull request #2525 from ceph/wip-9487

RFC: initialize purged_snaps on backfill

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2620 from ceph/revert-2604-wip-9113
Sage Weil [Wed, 1 Oct 2014 20:23:21 +0000 (13:23 -0700)]
Merge pull request #2620 from ceph/revert-2604-wip-9113

Revert "ReplicatedPG: clean out completed trimmed objects as we go"

11 years agoRevert "ReplicatedPG: clean out completed trimmed objects as we go" 2620/head
Samuel Just [Wed, 1 Oct 2014 20:18:46 +0000 (13:18 -0700)]
Revert "ReplicatedPG: clean out completed trimmed objects as we go"

11 years agoMerge pull request #2619 from ceph/wip-8187
Josh Durgin [Wed, 1 Oct 2014 19:53:53 +0000 (12:53 -0700)]
Merge pull request #2619 from ceph/wip-8187

librbd: Skip tier pools in list_children and snap_unprotect

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoceph.spec: fix typo
Sage Weil [Wed, 1 Oct 2014 19:33:38 +0000 (12:33 -0700)]
ceph.spec: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2614 from ceph/wip-rpm-epoch
Sage Weil [Wed, 1 Oct 2014 19:23:44 +0000 (12:23 -0700)]
Merge pull request #2614 from ceph/wip-rpm-epoch

rpm: set epoch 1 to match fedora

Reviewed-by: Boris Ranto <branto@redhat.com>
11 years agolibrbd: Skip tier pools in list_children and snap_unprotect 2619/head
Adam Crume [Tue, 23 Sep 2014 22:41:26 +0000 (15:41 -0700)]
librbd: Skip tier pools in list_children and snap_unprotect

Fixes: #8187
Signed-off-by: Adam Crume <adamcrume@gmail.com>
11 years agoMerge branch 'wip-9013' into giant
Yehuda Sadeh [Wed, 1 Oct 2014 17:28:38 +0000 (10:28 -0700)]
Merge branch 'wip-9013' into giant

11 years agorgw: add civetweb as a default frontend 2381/head
Yehuda Sadeh [Tue, 2 Sep 2014 16:18:47 +0000 (09:18 -0700)]
rgw: add civetweb as a default frontend

Fixes: #9013
Originally the configurable was empty, now setting explicitly both
fastcgi and civetweb (on port 7480).

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
11 years agoMerge pull request #2552 from ceph/wip-8188
Sage Weil [Wed, 1 Oct 2014 16:52:47 +0000 (09:52 -0700)]
Merge pull request #2552 from ceph/wip-8188

librados: Add rados_pool_get_tiers call

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agolibrados: Add rados_pool_get_base_tier call 2552/head
Adam Crume [Mon, 22 Sep 2014 18:10:48 +0000 (11:10 -0700)]
librados: Add rados_pool_get_base_tier call

Fixes: #8188
Signed-off-by: Adam Crume <adamcrume@gmail.com>
11 years agoMerge pull request #2618 from ceph/wip-coverity-20141001
Sage Weil [Wed, 1 Oct 2014 16:23:01 +0000 (09:23 -0700)]
Merge pull request #2618 from ceph/wip-coverity-20141001

Fixes for Coverity issues

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2452 from ceph/wip-pool-ls
João Eduardo Luís [Wed, 1 Oct 2014 16:22:42 +0000 (16:22 +0000)]
Merge pull request #2452 from ceph/wip-pool-ls

mon: add 'osd pool ls [detail]' command

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
11 years agotest_librbd.cc: fix compiler warning 2618/head
Danny Al-Gaaf [Wed, 1 Oct 2014 15:05:32 +0000 (17:05 +0200)]
test_librbd.cc: fix compiler warning

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoclient/SyntheticClient.cc: remove dead code
Danny Al-Gaaf [Wed, 1 Oct 2014 15:01:17 +0000 (17:01 +0200)]
client/SyntheticClient.cc: remove dead code

Fix for:

const: At condition do_sync, the value of do_sync must be equal to 0.
dead_error_condition: The condition do_sync cannot be true.
CID 716893 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement op.OSDOp()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agodoc: A couple of fixes to the CloudStack documentation
Wido den Hollander [Wed, 1 Oct 2014 15:01:07 +0000 (17:01 +0200)]
doc: A couple of fixes to the CloudStack documentation

11 years agoSyntheticClient.cc: remove dead code
Danny Al-Gaaf [Wed, 1 Oct 2014 13:49:17 +0000 (15:49 +0200)]
SyntheticClient.cc: remove dead code

Fix for coverity issue:

const: At condition unsafe > 0, the value of unsafe must be equal to 0.
dead_error_condition: The condition unsafe > 0 cannot be true.

CID 716892 (#1 of 1): Logically dead code (DEADCODE)
dead_error_begin: Execution cannot reach this statement

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoLogEntry.h: init LogEntry::prio in constructor
Danny Al-Gaaf [Thu, 25 Sep 2014 11:34:47 +0000 (13:34 +0200)]
LogEntry.h: init LogEntry::prio in constructor

CID 1240202 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member prio is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoosd: fix need_journal call
Sage Weil [Wed, 1 Oct 2014 13:34:20 +0000 (06:34 -0700)]
osd: fix need_journal call

From 2955b3da4e2c472c18b45e81eba791f8ccd58061

Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2607 from yuyuyu101/wip-9580
Sage Weil [Wed, 1 Oct 2014 13:11:10 +0000 (06:11 -0700)]
Merge pull request #2607 from yuyuyu101/wip-9580

ObjectStore: Add "need_journal" interface to make aware of journal devic...

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2608 from yuyuyu101/pipe-iovec
Sage Weil [Wed, 1 Oct 2014 13:10:24 +0000 (06:10 -0700)]
Merge pull request #2608 from yuyuyu101/pipe-iovec

Pipe: avoid redundancy new/delete for struct iovec

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agoceph.spec.: add epoch 2614/head
Sage Weil [Wed, 1 Oct 2014 13:02:02 +0000 (06:02 -0700)]
ceph.spec.: add epoch

This is done in fedora packaging.  Do it here too so that you can move
between upstream packages (from ceph.com) and fedora and other derivatives
will builds.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2615 from ceph/wip-fsls-json
Sage Weil [Wed, 1 Oct 2014 12:54:45 +0000 (05:54 -0700)]
Merge pull request #2615 from ceph/wip-fsls-json

mon: fix JSON `fs ls` output

Reviewed-by: Sage Weil <sage@redhat.com>
11 years agomon: fix JSON `fs ls` output 2615/head
John Spray [Wed, 1 Oct 2014 11:08:00 +0000 (12:08 +0100)]
mon: fix JSON `fs ls` output

A missing list terminator was causing unparseable output.

Signed-off-by: John Spray <john.spray@redhat.com>
11 years agoObjectStore: Add "need_journal" interface to make aware of journal device 2607/head
Haomai Wang [Tue, 30 Sep 2014 05:45:10 +0000 (13:45 +0800)]
ObjectStore: Add "need_journal" interface to make aware of journal device

Impl feature #9580

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoPipe: avoid redundancy new/delete for struct iovec 2608/head
Haomai Wang [Tue, 30 Sep 2014 05:44:02 +0000 (13:44 +0800)]
Pipe: avoid redundancy new/delete for struct iovec

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #2564 from ceph/wip-8587
Josh Durgin [Wed, 1 Oct 2014 00:24:02 +0000 (17:24 -0700)]
Merge pull request #2564 from ceph/wip-8587

rgw: subuser creation fixes

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #2613 from ceph/wip-8822
Sage Weil [Tue, 30 Sep 2014 21:45:27 +0000 (14:45 -0700)]
Merge pull request #2613 from ceph/wip-8822

osd: swap state spinlock for atomic_t

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoosd: swap state spinlock for atomic_t 2613/head
Sage Weil [Tue, 30 Sep 2014 18:56:30 +0000 (11:56 -0700)]
osd: swap state spinlock for atomic_t

We are hitting a strange issue with valgrind and pthread spinlocks. Avoid
the issue by using an atomic_t here (which is simpler anyway).

Avoids: #8822
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
11 years agoMerge pull request #2612 from ceph/wip-9562-backport
Gregory Farnum [Tue, 30 Sep 2014 17:49:05 +0000 (10:49 -0700)]
Merge pull request #2612 from ceph/wip-9562-backport

osdc/Filer: drop probe/purge locks before calling objecter

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoosdc/Filer: drop probe/purge locks before calling objecter 2612/head
John Spray [Wed, 24 Sep 2014 13:19:32 +0000 (14:19 +0100)]
osdc/Filer: drop probe/purge locks before calling objecter

Fixes: #9562
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 8dc94a2d8ce3364c0d8d52f634e5fc967e43d819)

11 years agoLocker: accept ctime updates from clients without dirty write caps 2606/head
Greg Farnum [Mon, 29 Sep 2014 23:10:36 +0000 (16:10 -0700)]
Locker: accept ctime updates from clients without dirty write caps

The ctime changes any time the inode does. That can happen even without
the file itself having changed, so we'd better accept the update whenever
the auth caps have dirtied, without worrying about the file caps!

Fixes: #9514
Backport: firefly

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
11 years agoMerge pull request #2605 from ceph/wip-osd-objecter
Gregory Farnum [Tue, 30 Sep 2014 17:14:38 +0000 (10:14 -0700)]
Merge pull request #2605 from ceph/wip-osd-objecter

osd: do not bind ms_objecter messenger

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #2597 from cchengleo/wip-test-shared-cache
Loic Dachary [Tue, 30 Sep 2014 14:59:05 +0000 (16:59 +0200)]
Merge pull request #2597 from cchengleo/wip-test-shared-cache

test shared cache

Reviewed-by: Loic Dachary <loic-201408@dachary.org>