]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoMerge pull request #7001 from dachary/wip-14145-infernalis
Loic Dachary [Thu, 7 Jan 2016 14:06:32 +0000 (15:06 +0100)]
Merge pull request #7001 from dachary/wip-14145-infernalis

infernalis: ceph-disk: use blkid instead of sgdisk -i

On CentOS 7.1 and other operating systems with a version of udev greater or equal to 214,
running ceph-disk prepare triggered unexpected removal and addition of partitions on
the disk being prepared. That created problems ranging from the OSD not being activated
to failures because /dev/sdb1 does not exist although it should.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agotests: ceph-disk cryptsetup close must try harder 7001/head
Loic Dachary [Wed, 6 Jan 2016 22:36:57 +0000 (23:36 +0100)]
tests: ceph-disk cryptsetup close must try harder

Similar to how it's done in dmcrpyt_unmap in master (
132e56615805cba0395898cf165b32b88600d633 ), the infernalis tests helper
that were deprecated by the addition of the deactivate / destroy
ceph-disk subcommand must try cryptsetup close a few times in some
contexts.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: protect deactivate with activate lock
Loic Dachary [Fri, 18 Dec 2015 23:53:03 +0000 (00:53 +0100)]
ceph-disk: protect deactivate with activate lock

When ceph-disk prepares the disk, it triggers udev events and each of
them ceph-disk activate. If systemctl stop ceph-osd@2 happens while
there still are ceph-disk activate in flight, the systemctl stop may be
cancelled by the systemctl enable issued by one of the pending ceph-disk
activate.

This only matters in a test environment where disks are destroyed
shortly after they are activated.

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

Conflicts:

        src/ceph-disk: ceph-disk deactivate does not exist in ceph-disk
            on infernalis. But the same feature is implemented in
            ceph-test-disk.py for test purposes and has the same
            problem. The patch is adapted to ceph-test-disk.py.

9 years agoceph-disk: retry cryptsetup remove
Loic Dachary [Wed, 6 Jan 2016 10:15:19 +0000 (11:15 +0100)]
ceph-disk: retry cryptsetup remove

Retry a cryptsetup remove ten times. After the ceph-osd terminates, the
device is released asyncrhonously and an attempt to cryptsetup remove
will may fail because it is considered busy. Although a few attempts are
made before giving up, the number of attempts / the duration of the
attempts cannot be controlled with a cryptsetup option. The workaround
is to increase this by trying a few times.

If cryptsetup remove fails for a reason that is unrelated to timeout,
the error will be repeated a few times. There is no undesirable side
effect. It will not hide a problem.

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

9 years agoceph-disk: use blkid instead of sgdisk -i
Loic Dachary [Fri, 18 Dec 2015 16:03:21 +0000 (17:03 +0100)]
ceph-disk: use blkid instead of sgdisk -i

sgdisk -i 1 /dev/vdb opens /dev/vdb in write mode which indirectly
triggers a BLKRRPART ioctl from udev (starting version 214 and up) when
the device is closed (see below for the udev release note). The
implementation of this ioctl by the kernel (even old kernels) removes
all partitions and adds them again (similar to what partprobe does
explicitly).

The side effects of partitions disappearing while ceph-disk is running
are devastating.

sgdisk is replaced by blkid which only opens the device in read mode and
will not trigger this unexpected behavior.

The problem does not show on Ubuntu 14.04 because it is running udev <
214 but shows on CentOS 7 which is running udev > 214.

git clone git://anonscm.debian.org/pkg-systemd/systemd.git
systemd/NEWS:
CHANGES WITH 214:

        * As an experimental feature, udev now tries to lock the
          disk device node (flock(LOCK_SH|LOCK_NB)) while it
          executes events for the disk or any of its partitions.
          Applications like partitioning programs can lock the
          disk device node (flock(LOCK_EX)) and claim temporary
          device ownership that way; udev will entirely skip all event
          handling for this disk and its partitions. If the disk
          was opened for writing, the close will trigger a partition
          table rescan in udev's "watch" facility, and if needed
          synthesize "change" events for the disk and all its partitions.
          This is now unconditionally enabled, and if it turns out to
          cause major problems, we might turn it on only for specific
          devices, or might need to disable it entirely. Device Mapper
          devices are excluded from this logic.

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

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 9dce05a8cdfc564c5162885bbb67a04ad7b95c5a)

9 years agoceph-disk: dereference symlinks in destroy and zap
Loic Dachary [Wed, 16 Dec 2015 14:57:03 +0000 (15:57 +0100)]
ceph-disk: dereference symlinks in destroy and zap

The behavior of partprobe or sgdisk may be subtly different if given a
symbolic link to a device instead of an actual device. The debug output
is also more confusing when the symlink shows instead of the device it
points to.

Always dereference the symlink before running destroy and zap.

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

Conflicts:
        src/ceph-disk
          trivial, because destroy is not implemented
          in infernalis

9 years agoceph-disk: increase partprobe / udevadm settle timeouts
Loic Dachary [Wed, 16 Dec 2015 11:33:25 +0000 (12:33 +0100)]
ceph-disk: increase partprobe / udevadm settle timeouts

The default of 120 seconds may be exceeded when the disk is very slow
which can happen in cloud environments. Increase it to 600 seconds
instead.

The partprobe command may fail for the same reason but it does not have
a timeout parameter. Instead, try a few times before failing.

The udevadm settle guarding partprobe are not necessary because
partprobe already does the same. However, partprobe does not provide a
way to control the timeout. Having a udevadm settle after another is
going to be a noop most of the time and not add any delay. It matters
when the udevadm settle run by partprobe fails with a timeout because
partprobe will silentely ignores the failure.

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

9 years agotests: ceph-disk workunit increase verbosity
Loic Dachary [Wed, 16 Dec 2015 11:36:47 +0000 (12:36 +0100)]
tests: ceph-disk workunit increase verbosity

So that reading the teuthology log is enough in most cases to figure out
the cause of the error.

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

Conflicts:
qa/workunits/ceph-disk/ceph-disk-test.py:
          trivial, because destroy/deactivate are not implemented
          in infernalis. The existing destroy_osd function
          has to be modified so the id returned by sh() does
          not have a trailing newline.

9 years agoceph-disk: log parted output
Loic Dachary [Wed, 16 Dec 2015 11:30:20 +0000 (12:30 +0100)]
ceph-disk: log parted output

Should parted output fail to parse, it is useful to get the full output
when running in verbose mode.

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

9 years agoceph-disk: do not discard stderr
Loic Dachary [Wed, 16 Dec 2015 11:29:17 +0000 (12:29 +0100)]
ceph-disk: do not discard stderr

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

Conflicts:
src/ceph-disk : trivial, because destroy/deactivate
        are not implemented in infernalis

9 years agoMerge pull request #7038 from dillaman/wip-14121-infernalis
Josh Durgin [Wed, 23 Dec 2015 18:47:30 +0000 (10:47 -0800)]
Merge pull request #7038 from dillaman/wip-14121-infernalis

tests: rebuild exclusive lock test should acquire exclusive lock

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agotests: rebuild exclusive lock test should acquire exclusive lock 7038/head
Jason Dillaman [Wed, 23 Dec 2015 15:31:07 +0000 (10:31 -0500)]
tests: rebuild exclusive lock test should acquire exclusive lock

Starting with Jewel, the object map will not be loaded until the
exclusive lock is acquired since it might be updated by the
lock owner.

Fixes: #14121
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6395 from SUSE/wip-13593-infernalis
Abhishek Varshney [Wed, 9 Dec 2015 05:52:26 +0000 (11:22 +0530)]
Merge pull request #6395 from SUSE/wip-13593-infernalis

Ceph-fuse won't start correctly when the option log_max_new in ceph.conf set to zero

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #6828 from dachary/wip-ceph-disk-augeas
Loic Dachary [Tue, 8 Dec 2015 23:06:33 +0000 (00:06 +0100)]
Merge pull request #6828 from dachary/wip-ceph-disk-augeas

tests: ceph-disk workunit uses configobj

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agotests: ceph-disk workunit uses the ceph task 6828/head
Loic Dachary [Wed, 21 Oct 2015 23:48:31 +0000 (01:48 +0200)]
tests: ceph-disk workunit uses the ceph task

The ceph-disk workunit deploy keys that are not deployed by default by
the ceph teuthology task.

The OSD created by the ceph task are removed from the default
bucket (via osd rm) so they do not interfere with the tests.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 163de5b0f8f46695ab41b3f2288e9b5c1feaedab)

9 years agotests: ceph-disk workunit uses configobj
Loic Dachary [Wed, 21 Oct 2015 22:21:49 +0000 (00:21 +0200)]
tests: ceph-disk workunit uses configobj

Instead of using augtool to modify the configuration file, use
configobj. It is also used by the install teuthology task. The .ini
lens (puppet lens really) is unable to read ini files created by
configobj.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit f4906a124cc194dccd855679a04a5c7ffc125a44)

9 years agoMerge pull request #6845 from dachary/wip-14019-infernalis
Loic Dachary [Tue, 8 Dec 2015 08:34:39 +0000 (09:34 +0100)]
Merge pull request #6845 from dachary/wip-14019-infernalis

infernalis: libunwind package missing on CentOS 7

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
9 years agobuild/ops: enable CR in CentOS 7 6845/head
Loic Dachary [Tue, 8 Dec 2015 07:02:56 +0000 (08:02 +0100)]
build/ops: enable CR in CentOS 7

To get libunwind from the CR repositories until CentOS 7.2.1511 is released.

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

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

9 years agoMerge pull request #6634 from Abhishekvrshny/wip-13761-infernalis
Abhishek Varshney [Tue, 1 Dec 2015 12:14:24 +0000 (17:44 +0530)]
Merge pull request #6634 from Abhishekvrshny/wip-13761-infernalis

unknown argument --quiet in udevadm settle

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6650 from Abhishekvrshny/wip-13830-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:26:40 +0000 (21:56 +0530)]
Merge pull request #6650 from Abhishekvrshny/wip-13830-infernalis

init script reload doesn't work on EL7

Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #6477 from SUSE/wip-13705-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:25:55 +0000 (21:55 +0530)]
Merge pull request #6477 from SUSE/wip-13705-infernalis

rbd : enable feature objectmap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6474 from SUSE/wip-13619-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:25:22 +0000 (21:55 +0530)]
Merge pull request #6474 from SUSE/wip-13619-infernalis

rbd clone issue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6633 from Abhishekvrshny/wip-13759-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:24:44 +0000 (21:54 +0530)]
Merge pull request #6633 from Abhishekvrshny/wip-13759-infernalis

rbd: pure virtual method called

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6632 from Abhishekvrshny/wip-13756-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:24:18 +0000 (21:54 +0530)]
Merge pull request #6632 from Abhishekvrshny/wip-13756-infernalis

QEMU hangs after creating snapshot and stopping VM

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6630 from Abhishekvrshny/wip-13754-infernalis
Abhishek Varshney [Mon, 30 Nov 2015 16:20:40 +0000 (21:50 +0530)]
Merge pull request #6630 from Abhishekvrshny/wip-13754-infernalis

Avoid re-writing old-format image header on resize
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6396 from SUSE/wip-13342-infernalis
Loic Dachary [Mon, 30 Nov 2015 14:01:23 +0000 (15:01 +0100)]
Merge pull request #6396 from SUSE/wip-13342-infernalis

ceph upstart script rbdmap.conf incorrectly processes parameters

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoinit-rbdmap: fix CMDPARAMS 6396/head
Sage Weil [Wed, 30 Sep 2015 12:29:05 +0000 (08:29 -0400)]
init-rbdmap: fix CMDPARAMS

Fixes: #13214
Reported-by: Wyllys Ingersoll <wyllys.ingersoll@keepertech.com>
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 02113ac449cd7631f1c9a3840c94bbf253c052bd)

9 years agorgw: fix reload on non Debian systems. 6650/head
Herve Rousseau [Fri, 6 Nov 2015 08:52:28 +0000 (09:52 +0100)]
rgw: fix reload on non Debian systems.

When using reload in non-debian systems, /bin/sh's kill is used to send the HUP signal to the radosgw process.
This kill version doesn't understand -SIGHUP as a valid signal, using -HUP does work.

Fix: #13709
Backport: hammer
Signed-off-by: Hervé Rousseau <hroussea@cern.ch>
(cherry picked from commit 1b000abac3a02d1e788bf25eead4b6873133f5d2)

9 years agokrbd: remove deprecated --quiet param from udevadm 6634/head
Jason Dillaman [Tue, 27 Oct 2015 14:13:27 +0000 (10:13 -0400)]
krbd: remove deprecated --quiet param from udevadm

This parameter has been removed since systemd 213, so this
effects Fedora 21+, Debian Jessie, and potentially future
releases of RHEL 7.

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

9 years agorun_cmd: close parent process console file descriptors
Jason Dillaman [Tue, 27 Oct 2015 14:12:34 +0000 (10:12 -0400)]
run_cmd: close parent process console file descriptors

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f46f7dc94139c0bafe10361622416d7dc343d31f)

9 years agoWorkQueue: new PointerWQ base class for ContextWQ 6633/head
Jason Dillaman [Tue, 7 Jul 2015 16:11:13 +0000 (12:11 -0400)]
WorkQueue: new PointerWQ base class for ContextWQ

The existing work queues do not properly function if added to a running
thread pool.  librbd uses a singleton thread pool which requires
dynamically adding/removing work queues as images are opened and closed.

Fixes: #13636
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3e78b18b09d75626ca2599bac3b9f9c9889507a5)

9 years agolibrbd: fixed deadlock while attempting to flush AIO requests 6632/head
Jason Dillaman [Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)]
librbd: fixed deadlock while attempting to flush AIO requests

In-flight AIO requests might force a flush if a snapshot was created
out-of-band.  The flush completion was previously invoked asynchronously,
potentially via the same thread worker handling the AIO request. This
resulted in the flush operation deadlocking since it can't complete.

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

9 years agotests: new test case to catch deadlock on RBD image refresh
Jason Dillaman [Mon, 9 Nov 2015 15:48:10 +0000 (10:48 -0500)]
tests: new test case to catch deadlock on RBD image refresh

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit a9729d9553e7fb925509cad8d388cf52a9fede9c)

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 agolibrbd : fix enable objectmap feature issue 6477/head
xinxin shu [Wed, 21 Oct 2015 11:01:21 +0000 (19:01 +0800)]
librbd : fix enable objectmap feature issue

Fixes: #13558
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
(cherry picked from commit b0536ebab4e1f34e1ed87fe5efbb00d0f7b48abb)

9 years agorbd: fix clone issue when we specify image feature 6474/head
xinxin shu [Wed, 21 Oct 2015 06:56:17 +0000 (14:56 +0800)]
rbd: fix clone issue when we specify image feature

Fixes: #13553
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
(cherry picked from commit da48dbb8f8c9417343d2ca7819c58b7c46ef7ad0)

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 agoceph-fuse.cc: While starting ceph-fuse, start the log thread first 6395/head
wenjunhuang [Sat, 10 Oct 2015 06:30:56 +0000 (14:30 +0800)]
ceph-fuse.cc: While starting ceph-fuse, start the log thread first

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

Signed-off-by: Wenjun Huang <wenjunhuang@tencent.com>
(cherry picked from commit f2763085754462610730a23bb5652237714abc2a)

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>