]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agocls_user: remove duplicated words 8901/head
Li Peng [Tue, 3 May 2016 07:21:20 +0000 (15:21 +0800)]
cls_user: remove duplicated words

Signed-off-by: Li Peng <lip@dtdream.com>
9 years agoMerge pull request #8891 from tchaikov/wip-fix-test-using-dash
Kefu Chai [Tue, 3 May 2016 05:41:29 +0000 (13:41 +0800)]
Merge pull request #8891 from tchaikov/wip-fix-test-using-dash

test/encoding/readable.sh: use bash instead of sh

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
9 years agoMerge pull request #8889 from linuxbox2/rbd-nbd-cmake
Kefu Chai [Tue, 3 May 2016 05:36:14 +0000 (13:36 +0800)]
Merge pull request #8889 from linuxbox2/rbd-nbd-cmake

cmake: fix rbd-nbd linkage

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest/encoding/readable.sh: use bash instead of sh 8891/head
Kefu Chai [Tue, 3 May 2016 03:56:22 +0000 (11:56 +0800)]
test/encoding/readable.sh: use bash instead of sh

aside from the `source` statement, the readable.sh is POSIX shell
script. we can just "." the referenced helper script. but to be
consistent with other encoding/*.sh scripts, let's just change the
shebang line to "#!/bin/bash".

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
9 years agoMerge pull request #8885 from stiopaa1/osd_removeSendMessageConn 8734/head
Kefu Chai [Tue, 3 May 2016 02:41:55 +0000 (10:41 +0800)]
Merge pull request #8885 from stiopaa1/osd_removeSendMessageConn

osd/OSD.h: remove C_OSD_SendMessageOnConn class

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8072 from yuyuyu101/wip-async-skip-steps
Haomai Wang [Tue, 3 May 2016 02:21:40 +0000 (10:21 +0800)]
Merge pull request #8072 from yuyuyu101/wip-async-skip-steps

async: skip unnecessary steps when parsing simple messages

9 years agocmake: fix rbd-nbd linkage 8889/head
Matt Benjamin [Tue, 3 May 2016 00:52:59 +0000 (20:52 -0400)]
cmake: fix rbd-nbd linkage

Use correct name for librbd, add parse_secret_objs and its
keyutils libdep.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #8883 from dillaman/wip-15685
Josh Durgin [Mon, 2 May 2016 23:17:19 +0000 (16:17 -0700)]
Merge pull request #8883 from dillaman/wip-15685

librbd: clone fails if config overridden to use image format 1 by default

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8882 from liewegas/wip-check-port
Sage Weil [Mon, 2 May 2016 22:06:04 +0000 (18:06 -0400)]
Merge pull request #8882 from liewegas/wip-check-port

test/mon/mon-created-time: put on unique port

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #8884 from ktdreyer/docs-packaging
Sage Weil [Mon, 2 May 2016 22:04:48 +0000 (18:04 -0400)]
Merge pull request #8884 from ktdreyer/docs-packaging

doc: remove references to old EOL releases

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8864 from trociny/fixup-rbd-mirror-test-log
Josh Durgin [Mon, 2 May 2016 21:26:54 +0000 (14:26 -0700)]
Merge pull request #8864 from trociny/fixup-rbd-mirror-test-log

qa/workunits/rbd: fix rbd-mirror log file name

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrbd: default clone operation to image format 2 8883/head
Jason Dillaman [Mon, 2 May 2016 19:06:51 +0000 (15:06 -0400)]
librbd: default clone operation to image format 2

Image format 1 doesn't support clones, so unless the user
overrode the setting, default to format 2.

Fixes: http://tracker.ceph.com/issues/15685
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: add rbd_image_options_is_set helper method to API
Jason Dillaman [Mon, 2 May 2016 18:51:31 +0000 (14:51 -0400)]
librbd: add rbd_image_options_is_set helper method to API

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8877 from dillaman/wip-15664
Josh Durgin [Mon, 2 May 2016 21:06:40 +0000 (14:06 -0700)]
Merge pull request #8877 from dillaman/wip-15664

rbd-mirror: lockdep error during bootstrap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agodoc: remove references to old EOL releases 8884/head
Ken Dreyer [Mon, 2 May 2016 16:50:37 +0000 (10:50 -0600)]
doc: remove references to old EOL releases

There were several references to old releases like "dumpling",
"emperor", and "firefly", throughout the docs. Remove these and update
the examples to use jewel instead.

Remove references to CentOS 6 and RHEL 6, since we only support CentOS 7
now.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoosd/OSD.h: remove C_OSD_SendMessageOnConn class 8885/head
Michal Jarzabek [Mon, 2 May 2016 17:41:07 +0000 (18:41 +0100)]
osd/OSD.h: remove C_OSD_SendMessageOnConn class

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agotest/mon/mon-created-time: put on unique port 8882/head
Sage Weil [Mon, 2 May 2016 18:52:59 +0000 (14:52 -0400)]
test/mon/mon-created-time: put on unique port

7122 is also used by test/osd/osd-reactivate.sh

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8770 from ceph/wip-cmake
Sage Weil [Mon, 2 May 2016 18:10:11 +0000 (14:10 -0400)]
Merge pull request #8770 from ceph/wip-cmake

cmake: build fixes

9 years agoMerge pull request #8844 from stiopaa1/log_removelexical
Sage Weil [Mon, 2 May 2016 18:08:30 +0000 (14:08 -0400)]
Merge pull request #8844 from stiopaa1/log_removelexical

common/Graylog.h: remove lexical cast

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8879 from ktdreyer/doc-rm-up2date
Sage Weil [Mon, 2 May 2016 18:05:02 +0000 (14:05 -0400)]
Merge pull request #8879 from ktdreyer/doc-rm-up2date

doc: drop references to "up2date"

9 years agodoc: drop references to "up2date" 8879/head
Ken Dreyer [Mon, 2 May 2016 16:45:28 +0000 (10:45 -0600)]
doc: drop references to "up2date"

"up2date" has not been used since very old versions of RHEL (rhel4 or
5?). We only support el7 now, which is a yum-based platform.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #8878 from ktdreyer/wip-doc-rbd-dillaman
Josh Durgin [Mon, 2 May 2016 17:01:52 +0000 (10:01 -0700)]
Merge pull request #8878 from ktdreyer/wip-doc-rbd-dillaman

doc: Jason Dillaman is now RBD lead

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agodoc: Jason Dillaman is now RBD lead 8878/head
Ken Dreyer [Mon, 2 May 2016 16:54:18 +0000 (10:54 -0600)]
doc: Jason Dillaman is now RBD lead

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agocmake: Added rbd-nbd target 8770/head
Ali Maredia [Mon, 2 May 2016 16:36:44 +0000 (12:36 -0400)]
cmake: Added rbd-nbd target

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agolibrbd: disable automatic refresh of image upon lock message 8877/head
Jason Dillaman [Mon, 2 May 2016 14:33:50 +0000 (10:33 -0400)]
librbd: disable automatic refresh of image upon lock message

There is no need to refresh the image upon request/release/acquire
of the exclusive lock.  The next IO or maintenance op will kick off
the refresh.  This is interfering with the refresh state machine
unit test case (since two concurrent refreshes shouldn't be possible).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: update_features should release lock if acquired
Jason Dillaman [Mon, 2 May 2016 14:26:29 +0000 (10:26 -0400)]
librbd: update_features should release lock if acquired

There is a small window where requests are unblocked and before
the image is shut down where new requests can be accepted.  These
are correctly canceled during the shut down, but it can lead to
warning messages.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: avoid applying refreshed image config within librados callback
Jason Dillaman [Mon, 2 May 2016 13:27:29 +0000 (09:27 -0400)]
librbd: avoid applying refreshed image config within librados callback

There is a potential that a synchronous API call could deadlock a
image refresh.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd-mirror: don't use temporary string for snap operation
Jason Dillaman [Mon, 2 May 2016 12:42:35 +0000 (08:42 -0400)]
rbd-mirror: don't use temporary string for snap operation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: avoid recursive locking within operation state machine
Jason Dillaman [Mon, 2 May 2016 12:31:54 +0000 (08:31 -0400)]
librbd: avoid recursive locking within operation state machine

Fixes: http://tracker.ceph.com/issues/15664
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocompressor: tests for zlib & snappy changes
Ali Maredia [Fri, 29 Apr 2016 20:28:20 +0000 (16:28 -0400)]
compressor: tests for zlib & snappy changes

plugin_dir and compressor_dir not needed by
test_compression_snappy & test_compression_zlib
because they statically link compressor libraries.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: rbd_mirror updates
Ali Maredia [Fri, 29 Apr 2016 19:57:39 +0000 (15:57 -0400)]
cmake: rbd_mirror updates

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: update env vars for osd-copy-from.sh
Ali Maredia [Wed, 27 Apr 2016 19:27:38 +0000 (15:27 -0400)]
cmake: update env vars for osd-copy-from.sh

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: CEPH_LIB defaults to .libs in cpp unit tests
Ali Maredia [Tue, 26 Apr 2016 21:54:33 +0000 (17:54 -0400)]
cmake: CEPH_LIB defaults to .libs in cpp unit tests

This makes it possible to run applicable unit tests
without setting environment varibles after building
with autotools.

This will be reverted once autotools is deprecated.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: add test_pool_quota.sh to
Ali Maredia [Tue, 26 Apr 2016 18:27:24 +0000 (14:27 -0400)]
cmake: add test_pool_quota.sh to

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agovstart: put missing quotes around cmake env vars
Ali Maredia [Mon, 25 Apr 2016 23:10:41 +0000 (19:10 -0400)]
vstart: put missing quotes around cmake env vars

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agotest: added env var setting to make check scripts
Ali Maredia [Fri, 22 Apr 2016 00:34:38 +0000 (20:34 -0400)]
test: added env var setting to make check scripts

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: script that sets env vars for unit tests
Ali Maredia [Fri, 22 Apr 2016 00:32:47 +0000 (20:32 -0400)]
cmake: script that sets env vars for unit tests

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #8874 from roidayan/xio-remove_unused_mutex
Haomai Wang [Mon, 2 May 2016 13:46:16 +0000 (21:46 +0800)]
Merge pull request #8874 from roidayan/xio-remove_unused_mutex

xio: remove unused mutex

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoxio: remove unused mutex 8874/head
Roi Dayan [Tue, 12 Apr 2016 10:30:46 +0000 (13:30 +0300)]
xio: remove unused mutex

Signed-off-by: Roi Dayan <roid@mellanox.com>
9 years agoMerge pull request #8872 from dachary/wip-make-check
Kefu Chai [Mon, 2 May 2016 10:02:37 +0000 (18:02 +0800)]
Merge pull request #8872 from dachary/wip-make-check

tests: enable make check on ext4 (part 2)

Reviewed-by: Kefu Chai <kefu@redhat.com>
9 years agotests: enable make check on ext4 (part 2) 8872/head
Loic Dachary [Mon, 2 May 2016 08:42:24 +0000 (10:42 +0200)]
tests: enable make check on ext4 (part 2)

Followup of 475cc08c330e639b226f2ab57dedbe4495f63022

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #8851 from liewegas/wip-make-check
Loic Dachary [Mon, 2 May 2016 08:41:48 +0000 (10:41 +0200)]
Merge pull request #8851 from liewegas/wip-make-check

qa/workunits/ceph-helpers.sh: make ceph-osd behave on ext4

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoqa/workunits/rbd: fix rbd-mirror log file name 8864/head
Mykola Golub [Sun, 1 May 2016 19:04:46 +0000 (22:04 +0300)]
qa/workunits/rbd: fix rbd-mirror log file name

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #8859 from liewegas/wip-fix-scrub
Sage Weil [Sun, 1 May 2016 16:14:08 +0000 (12:14 -0400)]
Merge pull request #8859 from liewegas/wip-fix-scrub

include/rados: fix scrub-map definition

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoinclude/rados: fix scrub-map definition 8859/head
Sage Weil [Sun, 1 May 2016 15:07:55 +0000 (11:07 -0400)]
include/rados: fix scrub-map definition

In commit 40add6a63defd09b47c594171c0f72906d218cc6 we
changed the scrub-map op code, breaking compatibility.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8842 from SUSE/wip-msd-typo-fix
Sage Weil [Sun, 1 May 2016 01:11:43 +0000 (21:11 -0400)]
Merge pull request #8842 from SUSE/wip-msd-typo-fix

systemd: fix typo in preset file

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoceph_time: add operator<< for more clock types
Sage Weil [Sat, 30 Apr 2016 23:24:59 +0000 (19:24 -0400)]
ceph_time: add operator<< for more clock types

ceph_time: add operator<< for more clock types

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoRevert "Merge pull request #8346 from yuyuyu101/wip-async-clock"
Sage Weil [Sat, 30 Apr 2016 23:21:02 +0000 (19:21 -0400)]
Revert "Merge pull request #8346 from yuyuyu101/wip-async-clock"

This reverts commit 37117823d108dcd5145421adc0121eea75633851, reversing
changes made to 5ff4988c09ccc2af6ff72f30d053b5864a8c8e14.

This broke the build:

msg/async/Event.cc: In member function 'int EventCenter::process_time_events()':
error: msg/async/Event.cc:280:30: cannot bind 'std::basic_ostream' lvalue to 'std::basic_ostream&&'
ldout(cct, 10) << __func__ << " cur time is " << now << dendl;
^

and elsewhere...

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/ceph-helpers.sh: make ceph-osd behave on ext4 8851/head
Sage Weil [Sat, 30 Apr 2016 21:12:05 +0000 (17:12 -0400)]
qa/workunits/ceph-helpers.sh: make ceph-osd behave on ext4

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_time: add operator<< for more clock types 8850/head
Kefu Chai [Sat, 30 Apr 2016 17:12:59 +0000 (01:12 +0800)]
ceph_time: add operator<< for more clock types

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8838 from cbodley/wip-cmake-rbd-mirror-replay-status
Kefu Chai [Sat, 30 Apr 2016 18:37:03 +0000 (02:37 +0800)]
Merge pull request #8838 from cbodley/wip-cmake-rbd-mirror-replay-status

cmake: add missing source file to rbd_mirror/image_replayer

Reviewed-by: Kefu Chai <kefu@redhat.com>
9 years agocommon/Graylog.h: remove lexical cast 8844/head
Michal Jarzabek [Fri, 29 Apr 2016 17:24:24 +0000 (18:24 +0100)]
common/Graylog.h: remove lexical cast

We can use std::to_string instead of boost's lexical_cast, which saves
us from including lexical_cast header.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agosystemd: fix typo in preset file 8842/head
Nathan Cutler [Sat, 30 Apr 2016 14:21:13 +0000 (16:21 +0200)]
systemd: fix typo in preset file

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #8346 from yuyuyu101/wip-async-clock
Haomai Wang [Sat, 30 Apr 2016 08:09:41 +0000 (16:09 +0800)]
Merge pull request #8346 from yuyuyu101/wip-async-clock

msg/async/Event: replace ceph_clock_now with coarse_mono_clock

Reviewed-by: Kefu Chai <kefu@redhat.com>
9 years agoMerge pull request #8109 from majianpeng/bluestore-cleancode
Sage Weil [Sat, 30 Apr 2016 01:54:30 +0000 (21:54 -0400)]
Merge pull request #8109 from majianpeng/bluestore-cleancode

os/bluestore/BlueStore: cleanup code

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8110 from majianpeng/bluestore-aio-log
Sage Weil [Sat, 30 Apr 2016 01:54:21 +0000 (21:54 -0400)]
Merge pull request #8110 from majianpeng/bluestore-aio-log

os/bluestore/KernelDevice: Fio aio_write, it call _aio_log_finish by …

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8416 from vumrao/wip-vumrao-15308
Sage Weil [Sat, 30 Apr 2016 01:50:42 +0000 (21:50 -0400)]
Merge pull request #8416 from vumrao/wip-vumrao-15308

librados: modify Pipe::connect() to return the error code - part 1

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8532 from xiexingguo/xxg-wip-misc
Sage Weil [Sat, 30 Apr 2016 01:50:01 +0000 (21:50 -0400)]
Merge pull request #8532 from xiexingguo/xxg-wip-misc

osd: miscellaneous fixes

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8599 from yangdongsheng/on_abort
Sage Weil [Sat, 30 Apr 2016 01:49:28 +0000 (21:49 -0400)]
Merge pull request #8599 from yangdongsheng/on_abort

os: fix submit_transaction return codes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #8629 from tchaikov/wip-rados_ping_monitor
Sage Weil [Sat, 30 Apr 2016 01:48:58 +0000 (21:48 -0400)]
Merge pull request #8629 from tchaikov/wip-rados_ping_monitor

librados: always set the outstrlen for rados_ping_monitor()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8677 from tchaikov/wip-graylog-cleanup
Sage Weil [Sat, 30 Apr 2016 01:48:50 +0000 (21:48 -0400)]
Merge pull request #8677 from tchaikov/wip-graylog-cleanup

log: remove unnecessary src/log/Graylog.*

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8693 from cooboos/perf-reset
Sage Weil [Sat, 30 Apr 2016 01:48:28 +0000 (21:48 -0400)]
Merge pull request #8693 from cooboos/perf-reset

common: show success/fail info in json for 'perf reset' command

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #8731 from Yan-waller/yj-wip-fixkqueue
Sage Weil [Sat, 30 Apr 2016 01:48:11 +0000 (21:48 -0400)]
Merge pull request #8731 from Yan-waller/yj-wip-fixkqueue

msg/async: fix some return values and typo.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agocmake: add missing source file to rbd_mirror/image_replayer 8838/head
Casey Bodley [Fri, 29 Apr 2016 21:33:03 +0000 (17:33 -0400)]
cmake: add missing source file to rbd_mirror/image_replayer

fixes an undefined reference when linking librbd_mirror_internal.a

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8454 from jdurgin/wip-mirror-test2
Josh Durgin [Fri, 29 Apr 2016 20:26:22 +0000 (13:26 -0700)]
Merge pull request #8454 from jdurgin/wip-mirror-test2

rbd_mirror.sh: add env vars to allow running under teuthology

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #8836 from athanatos/wip-15655
Sage Weil [Fri, 29 Apr 2016 20:12:47 +0000 (16:12 -0400)]
Merge pull request #8836 from athanatos/wip-15655

mon/OSDMonitor: avoid underflow in reweight-by-utilization if max_change=1

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8648 from ffilz/master
Sage Weil [Fri, 29 Apr 2016 18:41:30 +0000 (14:41 -0400)]
Merge pull request #8648 from ffilz/master

libcephfs: add ceph_ll_mknod wrapper for ll_mknod

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8820 from ceph/wip-cmake-compression
Ali Maredia [Fri, 29 Apr 2016 17:47:00 +0000 (13:47 -0400)]
Merge pull request #8820 from ceph/wip-cmake-compression

cmake: fix linking of compressor and plugins

Reviewed-by: Ali Maredia
9 years agoMerge pull request #8822 from cbodley/wip-cmake-tmp-virtualenv
Ali Maredia [Fri, 29 Apr 2016 17:44:22 +0000 (13:44 -0400)]
Merge pull request #8822 from cbodley/wip-cmake-tmp-virtualenv

cmake: put virtualenv directories under /tmp

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: fix for unittest_async_compressor 8820/head
Casey Bodley [Fri, 29 Apr 2016 17:34:59 +0000 (13:34 -0400)]
cmake: fix for unittest_async_compressor

this test wasn't creating the lib/compressor subdirectory, so it
depended on test_compressor_plugin_zlib or test_compressor_plugin_snappy
being run first

added the same dirty hack to copy libceph_snappy.so into lib/compressor,
and added a dependency on ceph_snappy to make sure it's built

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: fix linking of compressor and plugins
Casey Bodley [Thu, 28 Apr 2016 19:39:28 +0000 (15:39 -0400)]
cmake: fix linking of compressor and plugins

libcommon now includes the compressor objects necessary to load
compressor plugins

also removed extra dependencies on the plugins and their unit tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoqa/workunits/rbd: add env vars to adapt rbd_mirror.sh to teuthology
Josh Durgin [Sat, 2 Apr 2016 01:15:33 +0000 (18:15 -0700)]
qa/workunits/rbd: add env vars to adapt rbd_mirror.sh to teuthology

With these set, this script can work in teuthology, where we want to
control the how daemons run and their log locations, valgrind
settings, etc. The workunit task always sets CEPH_ID, and allows
other env vars to be configured optionally.

The RBD_MIRROR_USE_EXISTING_CLUSTER option can also speed up local testing.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoqa: rbd_mirror.sh: change parameters to cluster rather than daemon name
Josh Durgin [Thu, 7 Apr 2016 23:57:14 +0000 (16:57 -0700)]
qa: rbd_mirror.sh: change parameters to cluster rather than daemon name

Daemon name is only useful to differentiate asok and pid filenames, so
just inline its use there. Everywhere else replace the 'daemon'
parameter with cluster or local_cluster as appropriate.

Remove the CLUSTER{1,2}_DAEMON vars as well, since they are no longer
used.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8817 from dillaman/wip-15572
Josh Durgin [Fri, 29 Apr 2016 16:50:30 +0000 (11:50 -0500)]
Merge pull request #8817 from dillaman/wip-15572

librbd: reduce log level for errors encountered disabling object-map while flatten is in-progress

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8819 from dillaman/wip-14540
Josh Durgin [Fri, 29 Apr 2016 16:49:43 +0000 (11:49 -0500)]
Merge pull request #8819 from dillaman/wip-14540

rbd: disk usage now includes all snapshots by default

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocmake: put virtualenv directories under TMPDIR 8822/head
Casey Bodley [Thu, 28 Apr 2016 20:58:15 +0000 (16:58 -0400)]
cmake: put virtualenv directories under TMPDIR

this was required for cmake-check to find ceph-disk and ceph-detect-init
in the PATH

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8442 from trociny/wip-rbd-mirror-status
Jason Dillaman [Fri, 29 Apr 2016 06:41:46 +0000 (02:41 -0400)]
Merge pull request #8442 from trociny/wip-rbd-mirror-status

rbd-mirror: replay status now available via the rbd api and cli

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoObjectCacher: don't loop the extents of OSDWrite in map_writeReviewed-by
Jason Dillaman [Fri, 29 Apr 2016 14:59:18 +0000 (09:59 -0500)]
ObjectCacher: don't loop the extents of OSDWrite in map_writeReviewed-by

ObjectCacher: don't loop the extents of OSDWrite in map_write

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7830 from yuyuyu101/wip-14907
Jason Dillaman [Fri, 29 Apr 2016 13:39:34 +0000 (08:39 -0500)]
Merge pull request #7830 from yuyuyu101/wip-14907

IoCtxImpl: delete C_WatchCB2 when free LingerOp

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8635 from runsisi/wip-fix-md-list
Jason Dillaman [Fri, 29 Apr 2016 13:38:46 +0000 (08:38 -0500)]
Merge pull request #8635 from runsisi/wip-fix-md-list

cls_rbd: fix loop condition when listing image metadata

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8661 from runsisi/wip-fix-snapc-validation
Jason Dillaman [Fri, 29 Apr 2016 13:38:34 +0000 (08:38 -0500)]
Merge pull request #8661 from runsisi/wip-fix-snapc-validation

librbd: put the validation of image snap context earlier

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7800 from renhwsky/renhw-wip-osdmonitor-have_pending_crush
Sage Weil [Fri, 29 Apr 2016 12:43:05 +0000 (08:43 -0400)]
Merge pull request #7800 from renhwsky/renhw-wip-osdmonitor-have_pending_crush

mon/OSDMonitor: _have_pending_crush of return value should be bool

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoqa/workunits/rbd: test mirror status in pool directory 8442/head
Mykola Golub [Sun, 24 Apr 2016 16:39:40 +0000 (19:39 +0300)]
qa/workunits/rbd: test mirror status in pool directory

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agorbd-mirror: in replay status store number of entries behind master
Mykola Golub [Thu, 21 Apr 2016 06:52:47 +0000 (09:52 +0300)]
rbd-mirror: in replay status store number of entries behind master

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #8305 from tchaikov/wip-fix-vstart
Jason Dillaman [Fri, 29 Apr 2016 04:01:07 +0000 (23:01 -0500)]
Merge pull request #8305 from tchaikov/wip-fix-vstart

vstart: make -k with optional mon_num (part 2)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoosd/osdmonitor: _have_pending_crush of return value should be bool 7800/head
huanwen ren [Fri, 29 Apr 2016 02:53:14 +0000 (10:53 +0800)]
osd/osdmonitor: _have_pending_crush of return value should be bool

have_pending_crush of return value should be bool, fix it

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agoMerge pull request #8823 from aderumier/deb-default-tcmalloc-cache-size
Sage Weil [Fri, 29 Apr 2016 01:47:07 +0000 (21:47 -0400)]
Merge pull request #8823 from aderumier/deb-default-tcmalloc-cache-size

etc/default/ceph: set 128MB tcmalloc cache size

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoset 128MB tcmalloc cache size by bytes 8823/head
Alexandre Derumier [Fri, 29 Apr 2016 01:30:05 +0000 (03:30 +0200)]
set 128MB tcmalloc cache size by bytes

9 years agoOSDMonitor: avoid underflow in reweight-by-utilization if max_change=1 8836/head
Samuel Just [Thu, 28 Apr 2016 20:47:48 +0000 (13:47 -0700)]
OSDMonitor: avoid underflow in reweight-by-utilization if max_change=1

Fixes: http://tracker.ceph.com/issues/15655
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoetc/default/ceph: set 128MB tcmalloc cache size
Alexandre Derumier [Thu, 28 Apr 2016 20:55:37 +0000 (22:55 +0200)]
etc/default/ceph: set 128MB tcmalloc cache size

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agorbd: disk usage now includes all snapshots by default 8819/head
Jason Dillaman [Thu, 28 Apr 2016 19:53:59 +0000 (15:53 -0400)]
rbd: disk usage now includes all snapshots by default

Added a new "--from-snap" optional to restrict the calculation to
specific subsets of snapshots and the HEAD revision.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8568 from ddiss/osd-librados-writesame
Josh Durgin [Thu, 28 Apr 2016 19:57:02 +0000 (14:57 -0500)]
Merge pull request #8568 from ddiss/osd-librados-writesame

OSD and librados writesame support

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #8791 from dillaman/wip-15574
Josh Durgin [Thu, 28 Apr 2016 19:55:20 +0000 (14:55 -0500)]
Merge pull request #8791 from dillaman/wip-15574

librbd: parent image is closed twice if error encountered while opening

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8790 from dillaman/wip-15630
Josh Durgin [Thu, 28 Apr 2016 19:54:57 +0000 (14:54 -0500)]
Merge pull request #8790 from dillaman/wip-15630

rbd-mirror: interrupting image replay startup can cause crash

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8785 from tchaikov/wip-librbd-bad-header
Josh Durgin [Thu, 28 Apr 2016 19:54:30 +0000 (14:54 -0500)]
Merge pull request #8785 from tchaikov/wip-librbd-bad-header

librbd: does not crash if image header is too short

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8813 from trociny/fix-test-librbd-aio_write
Jason Dillaman [Thu, 28 Apr 2016 18:25:28 +0000 (13:25 -0500)]
Merge pull request #8813 from trociny/fix-test-librbd-aio_write

test: librbd: aio write/discard completion should always return 0 on success

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: librbd: aio write/discard completion should always return 0 on success 8813/head
Mykola Golub [Thu, 28 Apr 2016 12:19:48 +0000 (15:19 +0300)]
test: librbd: aio write/discard completion should always return 0 on success

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: block RPC requests while updating features 8817/head
Jason Dillaman [Thu, 28 Apr 2016 16:48:59 +0000 (12:48 -0400)]
librbd: block RPC requests while updating features

Disabling the journal and object map require acquiring the exclusive
lock locally.  We don't want to start executing long-running ops
for this quick process.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: return -ESHUTDOWN when a refresh is requested on a closed image
Jason Dillaman [Thu, 28 Apr 2016 16:43:24 +0000 (12:43 -0400)]
librbd: return -ESHUTDOWN when a refresh is requested on a closed image

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: synchronous block_writes should return possible error result
Jason Dillaman [Thu, 28 Apr 2016 16:42:49 +0000 (12:42 -0400)]
librbd: synchronous block_writes should return possible error result

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