]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agolibrbd: resize should only update image size within header 6630/head
Jason Dillaman [Mon, 2 Nov 2015 21:50:19 +0000 (16:50 -0500)]
librbd: resize should only update image size within header

Previously, the whole RBD image format 1 header struct was
re-written to disk on a resize operation.

Fixes: #13674
Backport: infernalis, hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d5be20b6d4646284571568ab28cbf45b0729390b)

9 years ago9.2.0 v9.2.0
Jenkins Build Slave User [Tue, 3 Nov 2015 16:58:32 +0000 (16:58 +0000)]
9.2.0

9 years agoMerge pull request #6444 from liewegas/wip-pg-key
Samuel Just [Mon, 2 Nov 2015 16:17:19 +0000 (08:17 -0800)]
Merge pull request #6444 from liewegas/wip-pg-key

osd/PG: tolerate missing epoch key

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoosd/PG: tolerate missing epoch key 6444/head
Sage Weil [Sat, 24 Oct 2015 23:51:15 +0000 (19:51 -0400)]
osd/PG: tolerate missing epoch key

An orphan PG may have an info attr but no epoch key.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6344 from dillaman/wip-13559-infernalis
Jason Dillaman [Sat, 31 Oct 2015 03:41:34 +0000 (23:41 -0400)]
Merge pull request #6344 from dillaman/wip-13559-infernalis

librbd: potential assertion failure during cache read

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6363 from ceph/wip-init-rbdmap
Kefu Chai [Thu, 29 Oct 2015 15:01:17 +0000 (23:01 +0800)]
Merge pull request #6363 from ceph/wip-init-rbdmap

Drop redhat-lsb-core dependency

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6366 from liewegas/wip-osd-fixboot-infernalis
Samuel Just [Mon, 26 Oct 2015 19:23:40 +0000 (12:23 -0700)]
Merge pull request #6366 from liewegas/wip-osd-fixboot-infernalis

osd: fix OSDService vs Objecter init order

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoosd: fix OSDService vs Objecter init order 6366/head
Sage Weil [Fri, 23 Oct 2015 17:27:39 +0000 (13:27 -0400)]
osd: fix OSDService vs Objecter init order

This reverts c7d96a5ed1d2cb844622af29b13705b8f7be6be7, but still keeps
the Objecter init *after* we have authenticated.  This way we don't
crash when we get mon messages like MOSDPGCreate, and we also don't
request maps we aren't prepared to handle.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph.spec.in: We no longer need redhat-lsb-core 6363/head
Boris Ranto [Fri, 23 Oct 2015 14:39:16 +0000 (16:39 +0200)]
ceph.spec.in: We no longer need redhat-lsb-core

Drop the redhat-lsb-core dependency as it is no longer necessary on
fedora/rhel.

The other two init scripts do not use redhat-lsb-core either. The
init-ceph.in conditionally requires /lib/lsb/init-functions and does not
use any of the functions defined in that file (at least not directly).
The init-radosgw file includes /etc/rc.d/init.d/functions on non-debian
platforms instead of /lib/lsb/init-functions file so it does not require
redhat-lsb-core either.

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agoinit-rbdmap: Rewrite to use logger + clean-up
Boris Ranto [Fri, 23 Oct 2015 13:31:27 +0000 (15:31 +0200)]
init-rbdmap: Rewrite to use logger + clean-up

This patch rewrites the init-rbdmap init script so that it uses logger
instead of the log_* functions. The patch also fixes various smaller
bugs like:
* MAP_RV was undefined if mapping already existed
* UMNT_RV and UMAP_RV were almost always empty (if they succeeded) ->
  removed them
* use of continue instead RET_OP in various places (RET_OP was not being
  checked after the switch to logger messages)
* removed use of DESC (used only twice and only one occurrence actually
  made sense)

Signed-off-by: Boris Ranto <branto@redhat.com>
9 years agolibrbd: potential assertion failure during cache read 6344/head
Jason Dillaman [Wed, 21 Oct 2015 17:12:48 +0000 (13:12 -0400)]
librbd: potential assertion failure during cache read

It's possible for a cache read from a clone to trigger a writeback if a
previous read op determined the object doesn't exist in the clone,
followed by a cached write to the non-existent clone object, followed
by another read request to the same object.  This causes the cache to
flush the pending writeback ops while not holding the owner lock.

Fixes: #13559
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotests: reproduce crash during read-induced CoW
Jason Dillaman [Wed, 21 Oct 2015 17:09:54 +0000 (13:09 -0400)]
tests: reproduce crash during read-induced CoW

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6356 from ceph/wip-fix-release-notes
Sage Weil [Thu, 22 Oct 2015 16:44:21 +0000 (12:44 -0400)]
Merge pull request #6356 from ceph/wip-fix-release-notes

doc/release-notes.rst: recovery isn't in the unified queue yet

9 years agodoc/release-notes.rst: recovery isn't in the unified queue yet 6356/head
Samuel Just [Thu, 22 Oct 2015 16:37:19 +0000 (09:37 -0700)]
doc/release-notes.rst: recovery isn't in the unified queue yet

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6313 from ceph/wip-osd-compat
Sage Weil [Mon, 19 Oct 2015 19:34:28 +0000 (15:34 -0400)]
Merge pull request #6313 from ceph/wip-osd-compat

osd: allow firefly -> infernalis+ upgrades

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoosd: init objecter after we authenticate 6313/head
Sage Weil [Mon, 19 Oct 2015 02:22:53 +0000 (22:22 -0400)]
osd: init objecter after we authenticate

Move objecter init until after we authenticate.  We ignore
osdmap messages while initializing anyway so it's pointless to
ask for them.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6248 from rzarzynski/wip-rgw-swift-acctmd-doc-infernalis
Loic Dachary [Fri, 16 Oct 2015 22:48:55 +0000 (00:48 +0200)]
Merge pull request #6248 from rzarzynski/wip-rgw-swift-acctmd-doc-infernalis

rgw, doc: remove remark for lack of custom account metadata of Swift API

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6212 from rzarzynski/wip-rgw-objexp-doc-infernalis
Loic Dachary [Fri, 16 Oct 2015 22:48:11 +0000 (00:48 +0200)]
Merge pull request #6212 from rzarzynski/wip-rgw-objexp-doc-infernalis

rgw, doc: object expiration of Swift API is supported now.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoosd/PG: make upgrade() use sequencer
Sage Weil [Wed, 14 Oct 2015 14:02:55 +0000 (10:02 -0400)]
osd/PG: make upgrade() use sequencer

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoRevert "os/FileStore: require upgrade to hammer before moving beyond"
Sage Weil [Wed, 14 Oct 2015 13:44:06 +0000 (09:44 -0400)]
Revert "os/FileStore: require upgrade to hammer before moving beyond"

This reverts commit 10cb507d9d52464b2fd28b3cc84a92328944e462.

9 years agoRevert "osd: require an upgrade to hammer first"
Sage Weil [Wed, 14 Oct 2015 13:43:53 +0000 (09:43 -0400)]
Revert "osd: require an upgrade to hammer first"

This reverts commit c0f83df412c962a6b3a2f3cdd1d7c8c795ef1146.

9 years agoRevert "ceph-objectstore-tool: require hammer upgrade"
Sage Weil [Wed, 14 Oct 2015 13:43:44 +0000 (09:43 -0400)]
Revert "ceph-objectstore-tool: require hammer upgrade"

This reverts commit b474991df74ab4d31b011bb6c5973fcd3c2e0179.

9 years agoRevert "osd: drop support for pre-hammer pg metadata"
Sage Weil [Wed, 14 Oct 2015 13:43:29 +0000 (09:43 -0400)]
Revert "osd: drop support for pre-hammer pg metadata"

This reverts commit cd4e676e6d45c8166290ef834d73c2a0bda98fa2.

9 years agoRevert "ceph-objectstore-tool: drop support for pre-pgmeta PGs"
Sage Weil [Wed, 14 Oct 2015 13:35:29 +0000 (09:35 -0400)]
Revert "ceph-objectstore-tool: drop support for pre-pgmeta PGs"

This reverts commit b297e6d2b206c0da733ae9d4ac5fb321f113ae5d.

9 years agoRevert "os: drop deprecated collection_* attr methods"
Sage Weil [Wed, 14 Oct 2015 13:33:50 +0000 (09:33 -0400)]
Revert "os: drop deprecated collection_* attr methods"

This reverts part of commit
893e00bc0fd793090a35d275919ca0348e9f05b0.

[we leave KeyValueStore untouched]

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoRevert "os/FileStore: fix version check"
Sage Weil [Wed, 14 Oct 2015 13:27:25 +0000 (09:27 -0400)]
Revert "os/FileStore: fix version check"

This reverts commit 14d3a2b82bea668ee2e9898d0b612812d8f7e8cc.

9 years agoMerge pull request #6249 from dillaman/wip-13274-infernalis
Josh Durgin [Thu, 15 Oct 2015 22:07:09 +0000 (18:07 -0400)]
Merge pull request #6249 from dillaman/wip-13274-infernalis

LTTng-UST tracing should be dynamically enabled

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6284 from dillaman/wip-13483-infernalis
Josh Durgin [Thu, 15 Oct 2015 18:43:11 +0000 (14:43 -0400)]
Merge pull request #6284 from dillaman/wip-13483-infernalis

qa: remove legacy OS support from rbd/qemu-iotests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoqa: remove legacy OS support from rbd/qemu-iotests 6284/head
Jason Dillaman [Thu, 15 Oct 2015 16:44:06 +0000 (12:44 -0400)]
qa: remove legacy OS support from rbd/qemu-iotests

RHEL7 derivatives were failing test 002 since they were using
legacy test cases for now unsupported OSes.

Fixes: #13483
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6273 from jdurgin/wip-13496
Jason Dillaman [Thu, 15 Oct 2015 15:40:59 +0000 (11:40 -0400)]
Merge pull request #6273 from jdurgin/wip-13496

librbd: fix rebuild_object_map() when no object map exists

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: fix rebuild_object_map() when no object map exists 6273/head
Josh Durgin [Thu, 15 Oct 2015 01:28:33 +0000 (18:28 -0700)]
librbd: fix rebuild_object_map() when no object map exists

Enabling the object map feature and then attempting to rebuild it
results in an assert failure, since the number of objects was
accidentally passed to ObjectMap::aio_resize() instead of the size of
the image.

Fixes: #13496
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoceph_context: remove unsafe cast for singletons 6249/head
Jason Dillaman [Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)]
ceph_context: remove unsafe cast for singletons

It was previously assumed that a CephContext singleton would
inherit from CephContext::AssociatedSingletonObject, but it was
not enforced.  This could result in unknown behavior when the
singleton is destroyed due to the implied virtual destructor.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6267 from dillaman/wip-13305-infernalis
Sage Weil [Wed, 14 Oct 2015 20:52:34 +0000 (16:52 -0400)]
Merge pull request #6267 from dillaman/wip-13305-infernalis

ceph.spec.in: only run systemd-tmpfiles on ceph run directory

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoceph.spec.in: only run systemd-tmpfiles on ceph run directory 6267/head
Jason Dillaman [Wed, 14 Oct 2015 20:41:21 +0000 (16:41 -0400)]
ceph.spec.in: only run systemd-tmpfiles on ceph run directory

There is a kmod bug that affects RHEL7 derivatives which will
result in device permissions being reset back to defaults.

Fixes: #13305
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6265 from dillaman/wip-cmake-rbd-replay-infernalis
Sage Weil [Wed, 14 Oct 2015 19:09:25 +0000 (15:09 -0400)]
Merge pull request #6265 from dillaman/wip-cmake-rbd-replay-infernalis

CMake: fix rbd_replay error

9 years agoCMake: fix rbd_replay error 6265/head
Jason Dillaman [Wed, 14 Oct 2015 16:49:17 +0000 (12:49 -0400)]
CMake: fix rbd_replay error

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoosd: conditionally initialize the tracepoint provider
Jason Dillaman [Thu, 1 Oct 2015 02:53:28 +0000 (22:53 -0400)]
osd: conditionally initialize the tracepoint provider

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrados: conditionally initialize the tracepoint provider
Jason Dillaman [Thu, 1 Oct 2015 02:37:05 +0000 (22:37 -0400)]
librados: conditionally initialize the tracepoint provider

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: conditionally initialize the tracepoint provider
Jason Dillaman [Thu, 1 Oct 2015 02:10:10 +0000 (22:10 -0400)]
librbd: conditionally initialize the tracepoint provider

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocommon: new tracing config options
Jason Dillaman [Wed, 30 Sep 2015 23:17:08 +0000 (19:17 -0400)]
common: new tracing config options

Config options to enable LTTng-UST tracepoint providers for
the OSD, OSD objectstore, librados, and librbd.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotracing: merge tracepoint provider makefiles into main makefile
Jason Dillaman [Wed, 30 Sep 2015 22:49:32 +0000 (18:49 -0400)]
tracing: merge tracepoint provider makefiles into main makefile

This results in the tracepoint provider shared libraries being
placed in the library path for unittests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotracing: dynamic tracepoint provider helper
Jason Dillaman [Wed, 30 Sep 2015 19:13:24 +0000 (15:13 -0400)]
tracing: dynamic tracepoint provider helper

The TracepointProvider class is a configuration observer.  When
tracing is enabled, it will dynamically load the associated
tracepoint provider.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agopackaging: add new tracepoint probe shared libraries
Jason Dillaman [Tue, 29 Sep 2015 18:33:48 +0000 (14:33 -0400)]
packaging: add new tracepoint probe shared libraries

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoceph.spec.in: add new tracepoint probe shared libraries
Jason Dillaman [Tue, 29 Sep 2015 18:30:43 +0000 (14:30 -0400)]
ceph.spec.in: add new tracepoint probe shared libraries

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolttng: move tracepoint probes to dynamic libraries
Jason Dillaman [Tue, 29 Sep 2015 18:13:46 +0000 (14:13 -0400)]
lttng: move tracepoint probes to dynamic libraries

LTTng-UST initializes itself at program load, which means it is
currently always enabled.  This can lead to issues with SElinux
and AppArmor which might restrict access to the necessary device
files.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6261 from tchaikov/wip-12748-infernalis
Kefu Chai [Wed, 14 Oct 2015 13:46:00 +0000 (21:46 +0800)]
Merge pull request #6261 from tchaikov/wip-12748-infernalis

osd: fix the snapshot reads of evicted tiering pool

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoosd: fix the snapshot reads of evicted tiering pool 6261/head
Kefu Chai [Tue, 29 Sep 2015 14:26:48 +0000 (22:26 +0800)]
osd: fix the snapshot reads of evicted tiering pool

reset ssc->exsits in finish_ctx() if the ctx->cache_evict is true, and
the head is removed.

Fixes: #12748
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6215 from dillaman/wip-13429-infernalis
Sage Weil [Wed, 14 Oct 2015 13:19:23 +0000 (09:19 -0400)]
Merge pull request #6215 from dillaman/wip-13429-infernalis

restore pre-infernalis API compatibility

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6221 from athanatos/wip-13434
Sage Weil [Wed, 14 Oct 2015 01:28:25 +0000 (21:28 -0400)]
Merge pull request #6221 from athanatos/wip-13434

Wip 13434

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6217 from dillaman/wip-13380-infernalis
Samuel Just [Tue, 13 Oct 2015 22:31:14 +0000 (15:31 -0700)]
Merge pull request #6217 from dillaman/wip-13380-infernalis

cls: new force-promotion flag for class methods

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6230 from liewegas/wip-crushtool-err
Samuel Just [Tue, 13 Oct 2015 22:30:24 +0000 (15:30 -0700)]
Merge pull request #6230 from liewegas/wip-crushtool-err

mon/OSDMonitor: put crushtool error in log

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6235 from dzafman/wip-13462
Samuel Just [Tue, 13 Oct 2015 22:29:55 +0000 (15:29 -0700)]
Merge pull request #6235 from dzafman/wip-13462

osd: Correct the object_info_t::decode() version

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agodoc/infernalis: hate hate
Sage Weil [Tue, 13 Oct 2015 21:32:43 +0000 (17:32 -0400)]
doc/infernalis: hate hate

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: i hate rst
Sage Weil [Tue, 13 Oct 2015 21:18:36 +0000 (17:18 -0400)]
doc/release-notes: i hate rst

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: final infernalis notes
Sage Weil [Tue, 13 Oct 2015 20:57:14 +0000 (16:57 -0400)]
doc/release-notes: final infernalis notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge branch 'infernalis' of jenkins.front.sepia.ceph.com:ceph/ceph into infernalis
Jenkins [Tue, 13 Oct 2015 20:57:16 +0000 (13:57 -0700)]
Merge branch 'infernalis' of jenkins.front.sepia.ceph.com:ceph/ceph into infernalis

9 years agodoc/release-notes: fix some attributions
Josh Durgin [Tue, 13 Oct 2015 19:33:22 +0000 (12:33 -0700)]
doc/release-notes: fix some attributions

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agodoc/release-notes: infernalis notable changes
Sage Weil [Tue, 13 Oct 2015 18:16:07 +0000 (14:16 -0400)]
doc/release-notes: infernalis notable changes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoRevert "common, global: use lttng ust functions for handling fork-like calls"
Jason Dillaman [Wed, 30 Sep 2015 15:32:36 +0000 (11:32 -0400)]
Revert "common, global: use lttng ust functions for handling fork-like calls"

This reverts commit 811898912f3e43d7312efe5d06c496e1e7e22fa4.

9 years agoMerge pull request #6237 from ceph/wip-13458
Sage Weil [Tue, 13 Oct 2015 15:20:45 +0000 (11:20 -0400)]
Merge pull request #6237 from ceph/wip-13458

rgw: location constraints should return api name

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorgw, doc: remove remark for lack of custom account metadata of Swift. 6248/head
Radoslaw Zarzynski [Tue, 13 Oct 2015 14:38:32 +0000 (16:38 +0200)]
rgw, doc: remove remark for lack of custom account metadata of Swift.

Backport: infernalis
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years ago9.1.0 v9.1.0
Jenkins [Tue, 13 Oct 2015 12:56:36 +0000 (05:56 -0700)]
9.1.0

9 years agoMerge pull request #6245 from liewegas/wip-setuptools
Alfredo Deza [Tue, 13 Oct 2015 12:41:30 +0000 (08:41 -0400)]
Merge pull request #6245 from liewegas/wip-setuptools

debian/control: python-setuptools is a build dependency

Reviewed-by: Alfredo Deza <adeza@redhat.com>
9 years agodebian/control: python-setuptools is a build dependency 6245/head
Sage Weil [Tue, 13 Oct 2015 12:37:40 +0000 (08:37 -0400)]
debian/control: python-setuptools is a build dependency

cd ./ceph-detect-init ; python setup.py build
Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    from setuptools import setup
ImportError: No module named setuptools

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: 9.1.0
Sage Weil [Tue, 13 Oct 2015 12:24:11 +0000 (08:24 -0400)]
doc/release-notes: 9.1.0

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoReplicatedPG::maybe_handle_cache_detail: always populate missing_oid 6221/head
Samuel Just [Tue, 13 Oct 2015 01:10:35 +0000 (18:10 -0700)]
ReplicatedPG::maybe_handle_cache_detail: always populate missing_oid

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoReplicatedPG::_rollback_to: handle block on full correctly
Samuel Just [Tue, 13 Oct 2015 01:09:58 +0000 (18:09 -0700)]
ReplicatedPG::_rollback_to: handle block on full correctly

If we fail to promote the clone due to a full cache tier, we need
to block writes on the head just as if we were waiting on the
promote.  Generally therefore, we block writes on head if we block
an op on a full cache tier.  Add a new blocked set to support this.

Fixes: 13434
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoosd: Correct the object_info_t::decode() version 6234/head 6235/head
David Zafman [Mon, 12 Oct 2015 20:24:31 +0000 (13:24 -0700)]
osd: Correct the object_info_t::decode() version

Caused by: 13b9dc70

Fixes: #13462
Backport: Hammer, Firefly

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agorgw: location constraints should return api name 6237/head
Yehuda Sadeh [Mon, 12 Oct 2015 18:55:40 +0000 (11:55 -0700)]
rgw: location constraints should return api name

Fixes: #13458
The S3 location constraints request should return the api name,
not the region name.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agomon/OSDMonitor: put crushtool error in log 6230/head
Sage Weil [Mon, 12 Oct 2015 14:33:41 +0000 (10:33 -0400)]
mon/OSDMonitor: put crushtool error in log

Putting it in *ss is useless for mkpool callers who don't return
an error string.  Log it to the mon log, too.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoReplicatedPG: allow maybe_handle_cache to return status detailing what happened
Samuel Just [Fri, 9 Oct 2015 23:28:34 +0000 (16:28 -0700)]
ReplicatedPG: allow maybe_handle_cache to return status detailing what happened

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6220 from dreamhost/wip-pybind-rados-omap-binary
Josh Durgin [Sat, 10 Oct 2015 00:02:17 +0000 (20:02 -0400)]
Merge pull request #6220 from dreamhost/wip-pybind-rados-omap-binary

pybind/rados: Fix binary omap values.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agopybind/rados, get_omap_vals: Fix pydoc type. 6220/head
Robin H. Johnson [Fri, 9 Oct 2015 22:58:06 +0000 (15:58 -0700)]
pybind/rados, get_omap_vals: Fix pydoc type.

pydoc type for filter_prefix did not match code.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agotest: pybind/test_rados: add binary data.
Robin H. Johnson [Fri, 9 Oct 2015 22:57:03 +0000 (15:57 -0700)]
test: pybind/test_rados: add binary data.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agopybind/rados: Fix binary omap values.
Robin H. Johnson [Fri, 9 Oct 2015 21:59:01 +0000 (14:59 -0700)]
pybind/rados: Fix binary omap values.

The prior code caused binary omap values to be discarded. This fixes
them to use the same model as the xattr iterator, and correctly return
binary data as python strings, eg:
'object_prefix': '\x15\x00\x00\x00rbd_data.449d2ae8944a'

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoMerge pull request #6193 from athanatos/wip-13240
Samuel Just [Fri, 9 Oct 2015 23:16:27 +0000 (16:16 -0700)]
Merge pull request #6193 from athanatos/wip-13240

ReplicatedPG::maybe_handle_cache: do not promote before checking full

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6190 from SUSE/wip-drop-my-conf-opt
Sage Weil [Fri, 9 Oct 2015 20:34:25 +0000 (16:34 -0400)]
Merge pull request #6190 from SUSE/wip-drop-my-conf-opt

ceph.spec.in: drop MY_CONF_OPTS

Reviewed-by: Ken Dreyer, <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agorgw: fix wrong etag calculation during POST on S3 bucket.
Radoslaw Zarzynski [Mon, 21 Sep 2015 18:32:29 +0000 (20:32 +0200)]
rgw: fix wrong etag calculation during POST on S3 bucket.

Fixes: #11241
Backport: infernalis, hammer, firefly
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 742906ab5ee644d5932570bf95342697b673a498)

9 years agoMerge pull request #6183 from ceph/wip-fix-selinux-man-page
Sage Weil [Fri, 9 Oct 2015 20:33:48 +0000 (16:33 -0400)]
Merge pull request #6183 from ceph/wip-fix-selinux-man-page

Fix selinux man page

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #6191 from SUSE/wip-concentrate-buildrequires
Sage Weil [Fri, 9 Oct 2015 20:33:14 +0000 (16:33 -0400)]
Merge pull request #6191 from SUSE/wip-concentrate-buildrequires

ceph.spec.in: move BuildRequires out of subpackages

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #6184 from dillaman/wip-13372-infernalis
Sage Weil [Fri, 9 Oct 2015 20:31:43 +0000 (16:31 -0400)]
Merge pull request #6184 from dillaman/wip-13372-infernalis

librbd: invalidate object map on error even w/o holding lock

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoLibRBD: Adjust correct op latency scope
Haomai Wang [Tue, 22 Sep 2015 09:43:07 +0000 (17:43 +0800)]
LibRBD: Adjust correct op latency scope

Op latency need to cover from queuing to finishing op.

Signed-off-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Jason Dillaman <jdillaman@redhat.com>
9 years agolibrados_test_stub: prevent interleaving of operations
Jason Dillaman [Mon, 5 Oct 2015 17:34:50 +0000 (13:34 -0400)]
librados_test_stub: prevent interleaving of operations

It was possible for unrelated ops to interleave within a different
transaction for a given object.

Fixes: #13313
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocls: new force-promotion flag for class methods 6217/head
Jason Dillaman [Fri, 9 Oct 2015 19:10:38 +0000 (15:10 -0400)]
cls: new force-promotion flag for class methods

Class methods that use the cls_get_request_origin should not be
proxied to a base tier -- otherwise the origin will reflect the
cache tier instead of the client.

Fixes: #13380
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrados: restored pre-infernalis API compatibility 6215/head
Jason Dillaman [Fri, 9 Oct 2015 16:59:39 +0000 (12:59 -0400)]
librados: restored pre-infernalis API compatibility

Fixes: #13429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agobuffer: restored pre-infernalis API compatibility
Jason Dillaman [Fri, 9 Oct 2015 16:58:54 +0000 (12:58 -0400)]
buffer: restored pre-infernalis API compatibility

Fixes: #13429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6044 from ceph/wip-12958
Casey Bodley [Fri, 9 Oct 2015 16:32:51 +0000 (12:32 -0400)]
Merge pull request #6044 from ceph/wip-12958

rgw: orphan tool shouldn't clean up head objects

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: orphan tool shouldn't clean up head objects
Yehuda Sadeh [Tue, 22 Sep 2015 22:49:27 +0000 (15:49 -0700)]
rgw: orphan tool shouldn't clean up head objects

Fixes: #12958
Head objects are mutable, so removing them can race with object removal
and a later recreation, so we might end up cleaning them up when we don't
need to.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw, doc: mention that Swift objexp is supported now. 6212/head
Radoslaw Zarzynski [Fri, 9 Oct 2015 00:58:05 +0000 (02:58 +0200)]
rgw, doc: mention that Swift objexp is supported now.

Backport: infernalis
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #6187 from SUSE/wip-13317-infernalis
Kefu Chai [Fri, 9 Oct 2015 07:48:49 +0000 (15:48 +0800)]
Merge pull request #6187 from SUSE/wip-13317-infernalis

doc: remove mention of --lazy-remove from radosgw-admin manpage

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6211 from SUSE/wip-dead-bool
Kefu Chai [Fri, 9 Oct 2015 06:47:40 +0000 (14:47 +0800)]
Merge pull request #6211 from SUSE/wip-dead-bool

CephxServiceHandler.cc: fix get_auth conditional

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoCephxServiceHandler.cc: fix get_auth conditional 6211/head
Nathan Cutler [Sun, 27 Sep 2015 19:55:00 +0000 (21:55 +0200)]
CephxServiceHandler.cc: fix get_auth conditional

The KeyServer class has a public method get_auth() that returns a boolean
value. This value is being checked here - fix the conditional so it triggers
when get_auth() returns false.

http://tracker.ceph.com/issues/9756 References: #9756

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #6194 from dillaman/wip-13220-infernalis
Josh Durgin [Thu, 8 Oct 2015 20:20:05 +0000 (16:20 -0400)]
Merge pull request #6194 from dillaman/wip-13220-infernalis

rbd-replay-prep and rbd-replay improvements

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoReplicatedPG::maybe_handle_cache: do not promote before checking full 6193/head
Samuel Just [Thu, 8 Oct 2015 18:16:33 +0000 (11:16 -0700)]
ReplicatedPG::maybe_handle_cache: do not promote before checking full

Otherwise, ops with need_promote() can order past ops without it
causing an rgw write sequence like:

writefull 0~0
writefull 0~512kb
write 512kb~512kb

to reorder to

writefull 0~0 -- delayed: full
writefull 0~512kb -- delayed: full
write 512kb~512kb -- promote and execute
writefull 0~0 -- execute
writefull 0~512kb -- execute

Fixes: 13240
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agotests: removed obsolete rbd_replay test cases 6194/head
Jason Dillaman [Thu, 8 Oct 2015 17:28:04 +0000 (13:28 -0400)]
tests: removed obsolete rbd_replay test cases

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoceph-dencoder: new rbd_replay trace file types
Jason Dillaman [Thu, 8 Oct 2015 17:26:42 +0000 (13:26 -0400)]
ceph-dencoder: new rbd_replay trace file types

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd-replay: added version control to trace output file
Jason Dillaman [Thu, 8 Oct 2015 17:21:29 +0000 (13:21 -0400)]
rbd-replay: added version control to trace output file

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6116 from jcsp/wip-cephfs-direntry
John Spray [Thu, 8 Oct 2015 11:08:31 +0000 (12:08 +0100)]
Merge pull request #6116 from jcsp/wip-cephfs-direntry

pybind/cephfs: fix DirEntry helpers

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6188 from liewegas/wip-13395
Sage Weil [Thu, 8 Oct 2015 04:07:43 +0000 (00:07 -0400)]
Merge pull request #6188 from liewegas/wip-13395

os/FileStore: kludge sloppy hammer temp objects into temp collection

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agorbd-replay-prep: added --verbose command line option
Jason Dillaman [Wed, 7 Oct 2015 19:39:18 +0000 (15:39 -0400)]
rbd-replay-prep: added --verbose command line option

This new command-line will dump all the processed events as they
are extracted from the trace file.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>