]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoMerge pull request #10145 from dillaman/wip-cmake-rbd-python
Kefu Chai [Wed, 6 Jul 2016 13:23:07 +0000 (21:23 +0800)]
Merge pull request #10145 from dillaman/wip-cmake-rbd-python

cmake: fix incorrect dependencies to librados

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10119 from renhwztetecs/renhw-wip-cdentry-dump
John Spray [Wed, 6 Jul 2016 13:16:21 +0000 (14:16 +0100)]
Merge pull request #10119 from renhwztetecs/renhw-wip-cdentry-dump

mds: fixup dump Formatter' type error; add path_ino and is_primary in the CDentry::dump()

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10062 from renhwztetecs/renhw-wip-filer
John Spray [Wed, 6 Jul 2016 13:13:45 +0000 (14:13 +0100)]
Merge pull request #10062 from renhwztetecs/renhw-wip-filer

client/filer: cleanup the redundant judgments of _write&&_fallocate

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10027 from batrick/client-root-lock
John Spray [Wed, 6 Jul 2016 13:12:55 +0000 (14:12 +0100)]
Merge pull request #10027 from batrick/client-root-lock

client: add missing client_lock for get_root

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10100 from fullerdj/wip-djf-16144
John Spray [Wed, 6 Jul 2016 13:12:09 +0000 (14:12 +0100)]
Merge pull request #10100 from fullerdj/wip-djf-16144

tools/cephfs: Remove cephfs-data-scan tmap_upgrade

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9971 from fullerdj/wip-djf-16288
John Spray [Wed, 6 Jul 2016 13:11:21 +0000 (14:11 +0100)]
Merge pull request #9971 from fullerdj/wip-djf-16288

mds: Kill C_SaferCond in evict_sessions()

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agocmake: fix incorrect dependencies to librados 10145/head
Jason Dillaman [Wed, 6 Jul 2016 04:12:03 +0000 (00:12 -0400)]
cmake: fix incorrect dependencies to librados

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10136 from runsisi/sisi-wip-fix-missing-return
Jason Dillaman [Wed, 6 Jul 2016 01:44:32 +0000 (21:44 -0400)]
Merge pull request #10136 from runsisi/sisi-wip-fix-missing-return

librbd: fix missing return statement if failed to get mirror image state

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10094 from athanatos/wip-throttle-test
Samuel Just [Tue, 5 Jul 2016 17:50:50 +0000 (10:50 -0700)]
Merge pull request #10094 from athanatos/wip-throttle-test

test/common/Throttle.cc: fix race in shutdown

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #10088 from pritha-srivastava/wip_s3_signedurl_errors
Casey Bodley [Tue, 5 Jul 2016 17:37:15 +0000 (13:37 -0400)]
Merge pull request #10088 from pritha-srivastava/wip_s3_signedurl_errors

rgw: Fix for using port 443 with pre-signed urls.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #10112 from tchaikov/wip-cmake
Ali Maredia [Tue, 5 Jul 2016 15:29:24 +0000 (11:29 -0400)]
Merge pull request #10112 from tchaikov/wip-cmake

cmake changes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #10134 from trociny/wip-run-rbd-tests-fixup
Jason Dillaman [Tue, 5 Jul 2016 12:27:42 +0000 (08:27 -0400)]
Merge pull request #10134 from trociny/wip-run-rbd-tests-fixup

test: run-rbd-tests test cmake fixup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10133 from tchaikov/wip-fixc-cephtool-test.sh
Kefu Chai [Tue, 5 Jul 2016 09:46:39 +0000 (17:46 +0800)]
Merge pull request #10133 from tchaikov/wip-fixc-cephtool-test.sh

test: cephtool/test.sh: fix expect_false() calls

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #10072 from dillaman/wip-16561
Mykola Golub [Tue, 5 Jul 2016 08:44:45 +0000 (11:44 +0300)]
Merge pull request #10072 from dillaman/wip-16561

librbd: failed assertion after shrinking a clone image twice

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: fix missing return statement if failed to get mirror image state 10136/head
runsisi [Tue, 5 Jul 2016 08:08:40 +0000 (16:08 +0800)]
librbd: fix missing return statement if failed to get mirror image state

Signed-off-by: runsisi <runsisi@zte.com.cn>
9 years agotest: cephtool/test.sh: fix expect_false with pipe 10133/head
Kefu Chai [Tue, 5 Jul 2016 06:15:41 +0000 (14:15 +0800)]
test: cephtool/test.sh: fix expect_false with pipe

this fixes failures like,

/home/jenkins-build/build/workspace/ceph-pull-requests/qa/workunits/cephtool/test.sh:
line 32: ceph osd blacklist ls | grep 192.168.0.1: command not found

where the failure is not the "failure" we are expecting.

in our tests, following command

expect_false "ceph osd blacklist ls | grep 192.168.0.1"

is designed to to verify that "ceph osd blacklist ls | grep 192.168.0.1"
fails with non-zero return code. but expect_false() evaluates the command
line using plain "$@", which will send the arguments direct to the shell,
and $0 is "ceph auth get client.xx | grep caps | grep mon", which does
not exist and is not built-in command. so we need to check the grep
command instead.

for multiple piped command line, use

expect_false sh <<< "echo foo  | grep bar | grep baz"

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agotest: run-rbd-tests test cmake fixup 10134/head
Mykola Golub [Tue, 5 Jul 2016 06:27:00 +0000 (09:27 +0300)]
test: run-rbd-tests test cmake fixup

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #10076 from dillaman/wip-rbd-mirror-cmake
Mykola Golub [Tue, 5 Jul 2016 05:28:43 +0000 (08:28 +0300)]
Merge pull request #10076 from dillaman/wip-rbd-mirror-cmake

test: fix rbd-mirror workunit test cases for cmake

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9731 from badone/wip-doc-ceph-authtool-print-fix
Kefu Chai [Tue, 5 Jul 2016 05:03:46 +0000 (13:03 +0800)]
Merge pull request #9731 from badone/wip-doc-ceph-authtool-print-fix

doc: ceph-authtool man page option is --print-key not --print

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10124 from trociny/wip-cmake-tests
Kefu Chai [Tue, 5 Jul 2016 03:26:46 +0000 (11:26 +0800)]
Merge pull request #10124 from trociny/wip-cmake-tests

test: cmake related fixups for rbd tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: fix run-rbd-tests test for cmake 10124/head
Mykola Golub [Sun, 3 Jul 2016 18:43:17 +0000 (21:43 +0300)]
test: fix run-rbd-tests test for cmake

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest: fix run-rbd-valgrind-unit-tests when built with cmake
Mykola Golub [Mon, 4 Jul 2016 07:02:18 +0000 (10:02 +0300)]
test: fix run-rbd-valgrind-unit-tests when built with cmake

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agotest: ceph_test_librbd does not need rados_test_stub
Mykola Golub [Mon, 4 Jul 2016 06:48:07 +0000 (09:48 +0300)]
test: ceph_test_librbd does not need rados_test_stub

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #10117 from xiexingguo/xxg-wip-bluestore-2016-07-04
Sage Weil [Mon, 4 Jul 2016 14:55:29 +0000 (10:55 -0400)]
Merge pull request #10117 from xiexingguo/xxg-wip-bluestore-2016-07-04

os/bluestore: fix incorrect pool decoding of bnode

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9755 from dx9/wip-ns-name-uncompress
Kefu Chai [Mon, 4 Jul 2016 13:53:20 +0000 (21:53 +0800)]
Merge pull request #9755 from dx9/wip-ns-name-uncompress

common/dns_resolve: use ns_name_uncompress instead of ns_name_ntop

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9766 from dx9/wip-autotools-arch
Kefu Chai [Mon, 4 Jul 2016 13:49:41 +0000 (21:49 +0800)]
Merge pull request #9766 from dx9/wip-autotools-arch

configure.ac: Use uname instead of arch.

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #9772 from tchaikov/wip-close-on-exec
Kefu Chai [Mon, 4 Jul 2016 13:47:42 +0000 (21:47 +0800)]
Merge pull request #9772 from tchaikov/wip-close-on-exec

msgr: set close on exec flag

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #9820 from dx9/wip-fix-res-query-detect
Kefu Chai [Mon, 4 Jul 2016 13:46:55 +0000 (21:46 +0800)]
Merge pull request #9820 from dx9/wip-fix-res-query-detect

configure.ac: fix res_query detection

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9845 from dx9/wip-config-basename
Kefu Chai [Mon, 4 Jul 2016 13:46:14 +0000 (21:46 +0800)]
Merge pull request #9845 from dx9/wip-config-basename

common: remove basename() dependency

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9969 from liewegas/wip-assert
Kefu Chai [Mon, 4 Jul 2016 13:44:17 +0000 (21:44 +0800)]
Merge pull request #9969 from liewegas/wip-assert

include/assert: clean up ceph assertion macros

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #9983 from SUSE/wip-cmake-fix-fcgi-include-dir
Kefu Chai [Mon, 4 Jul 2016 13:43:24 +0000 (21:43 +0800)]
Merge pull request #9983 from SUSE/wip-cmake-fix-fcgi-include-dir

cmake: Fix FCGI include directory

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10093 from tchaikov/wip-16525
Kefu Chai [Mon, 4 Jul 2016 13:42:34 +0000 (21:42 +0800)]
Merge pull request #10093 from tchaikov/wip-16525

crush: reset bucket->h.items[i] when removing tree item

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9330 from dachary/wip-15176-partprobe
Kefu Chai [Mon, 4 Jul 2016 12:29:16 +0000 (20:29 +0800)]
Merge pull request #9330 from dachary/wip-15176-partprobe

ceph-disk: partprobe should block udev induced BLKRRPART

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9394 from xiexingguo/xxg-wip-batchpgstates
Kefu Chai [Mon, 4 Jul 2016 12:19:20 +0000 (20:19 +0800)]
Merge pull request #9394 from xiexingguo/xxg-wip-batchpgstates

mon/PGMonitor: batch filter pg states; add sanity check

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agomds/CDentry: add path_ino and is_primary in the dump() 10119/head
huanwen ren [Mon, 4 Jul 2016 12:04:38 +0000 (20:04 +0800)]
mds/CDentry: add path_ino and is_primary in the dump()

path_ino and is_primary are  main reference information in the dump(),
so add their

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomds: fixup dump Formatter' type error
huanwen ren [Mon, 4 Jul 2016 11:22:21 +0000 (19:22 +0800)]
mds: fixup dump Formatter' type error

fixup dump Formatter' type error,
dump_int->dump_unsigned

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agoos/bluestore: fix incorrect pool decoding of bnode 10117/head
xie xingguo [Mon, 4 Jul 2016 09:08:59 +0000 (17:08 +0800)]
os/bluestore: fix incorrect pool decoding of bnode

"pool" is a pointer, and we shall alter its value instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agocmake: add ceph-{disk,detect-init} to ALL 10112/head
Kefu Chai [Mon, 4 Jul 2016 08:59:56 +0000 (16:59 +0800)]
cmake: add ceph-{disk,detect-init} to ALL

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoceph-disk: partprobe should block udev induced BLKRRPART 9330/head
Loic Dachary [Thu, 26 May 2016 07:38:47 +0000 (09:38 +0200)]
ceph-disk: partprobe should block udev induced BLKRRPART

Wrap partprobe with flock to stop udev from issuing BLKRRPART because
this is racy and frequently fails with a message like:

    Error: Error informing the kernel about modifications to partition
    /dev/vdc1 -- Device or resource busy.  This means Linux won't know about
    any changes you made to /dev/vdc1 until you reboot -- so you shouldn't
    mount it or use it in any way before rebooting.

Opening a device (/dev/vdc for instance) in write mode indirectly
triggers a BLKRRPART ioctl from udev (starting version 214 and up)
when the device is closed (see below for the udev release note).

However, if udev fails to acquire an exclusive lock (with
flock(fd, LOCK_EX|LOCK_NB); ) the BLKRRPART ioctl is not issued.

https://github.com/systemd/systemd/blob/045e00cf16c47bc516c0823d059b7548f3ce9c7c/src/udev/udevd.c#L1042

Acquiring an exclusive lock before running the process that opens the
device in write mode is therefore an effective way to control this
behavior.

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.

Fixes: http://tracker.ceph.com/issues/15176
Signed-off-by: Marius Vollmer <marius.vollmer@redhat com>
Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #10077 from yehudasa/wip-16494 10246/head
Orit Wasserman [Mon, 4 Jul 2016 07:37:34 +0000 (09:37 +0200)]
Merge pull request #10077 from yehudasa/wip-16494

rgw: fix for issue 16494

9 years agoMerge pull request #10064 from BlaXpirit/brag-py3
Kefu Chai [Mon, 4 Jul 2016 07:00:50 +0000 (15:00 +0800)]
Merge pull request #10064 from BlaXpirit/brag-py3

Port ceph-brag to Python 3 (+ small fixes)

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10115 from runsisi/ss-wip-fix-rpm-spec
Kefu Chai [Mon, 4 Jul 2016 06:08:35 +0000 (14:08 +0800)]
Merge pull request #10115 from runsisi/ss-wip-fix-rpm-spec

ceph.spec.in: fix rpm package building error

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not depend on sse jerasure plugins if not avaiable
Kefu Chai [Mon, 4 Jul 2016 05:55:02 +0000 (13:55 +0800)]
cmake: do not depend on sse jerasure plugins if not avaiable

should not depend on them if SSE3 and/or SSE4 is not around.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not link libglobal with lttng-ust
Kefu Chai [Mon, 4 Jul 2016 05:52:54 +0000 (13:52 +0800)]
cmake: do not link libglobal with lttng-ust

only link tracing libraries with lttng-ust, this fixes selinux denial
errors at run-time:

SELinux denials found on ubuntu@mira054.front.sepia.ceph.com: ['type=AVC
msg=audit(1467543917.770:131781): avc: denied { open } for pid=17511
comm="ceph-mon" path="/dev/shm/lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(1467543914.518:131756): avc: denied { open } for pid=17418
comm="ceph-osd" path="/dev/shm/lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(1467543917.770:131781): avc: denied { read } for pid=17511
comm="ceph-mon" name="lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(1467543914.518:131756): avc: denied { read } for pid=17418
comm="ceph-osd" name="lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file']

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoceph.spec.in: fix rpm package building error as follows: 10115/head
runsisi [Mon, 4 Jul 2016 05:52:03 +0000 (13:52 +0800)]
ceph.spec.in: fix rpm package building error as follows:

      error: Installed (but unpackaged) file(s) found:
      /usr/lib/udev/rules.d/60-ceph-by-parttypeuuid.rules

Signed-off-by: runsisi <runsisi@zte.com.cn>
9 years agocmake: refactor distutils_install_module to follow the pattern of distutils_install_c...
Kefu Chai [Mon, 4 Jul 2016 03:26:28 +0000 (11:26 +0800)]
cmake: refactor distutils_install_module to follow the pattern of distutils_install_cython_module

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install python packages into $CMAKE_INSTALL_PREFIX
Kefu Chai [Mon, 4 Jul 2016 03:10:49 +0000 (11:10 +0800)]
cmake: install python packages into $CMAKE_INSTALL_PREFIX

* Distutils.cmake:
  set --prefix=${CMAKE_INSTALL_PREFIX} for python packages installed using
  setuptools. it was set to --prefix=/user only when $DESTDIR is set. so
  if user installs ceph using -DCMAKE_INSTALL_PREFIX, these python
  packages still go to /usr, which is unexpected.
* ceph-disk/CMakeLists.txt:
  install script into ${CMAKE_INSTALL_SBINDIR} instead of /usr/sbin

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not install unpackaged stuff
Kefu Chai [Sat, 2 Jul 2016 11:20:34 +0000 (19:20 +0800)]
cmake: do not install unpackaged stuff

* doc/start/ceph.conf: it was installed as /etc/ceph.conf.example.
  but it's unexpected, and ceph.spec does not packages it.
* vstart.sh: this is for development usage. no need to package it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9885 from dachary/wip-16351-by-parttypeuuid
Loic Dachary [Sun, 3 Jul 2016 11:31:46 +0000 (13:31 +0200)]
Merge pull request #9885 from dachary/wip-16351-by-parttypeuuid

udev: always populate /dev/disk/by-parttypeuuid

Reviewed-by: Alexandre Derumier <aderumier@odiso.com>
9 years agoMerge pull request #10095 from liewegas/wip-bluestore-trim
Sage Weil [Sat, 2 Jul 2016 22:53:40 +0000 (18:53 -0400)]
Merge pull request #10095 from liewegas/wip-bluestore-trim

os/bluestore: trim cache on reads

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #10080 from xiexingguo/xxg-wip-add-compress-ratio
Sage Weil [Sat, 2 Jul 2016 11:32:38 +0000 (07:32 -0400)]
Merge pull request #10080 from xiexingguo/xxg-wip-add-compress-ratio

os/bluestore: improve required compression threshold

Reviewed-by: Sage Weil <sage@
9 years agocmake: version libcephfs_jni
Kefu Chai [Sat, 2 Jul 2016 10:40:56 +0000 (18:40 +0800)]
cmake: version libcephfs_jni

so we have libcephfs_jni.so.1.0.0 and libcephfs_jni.so.1, which are
expected by ceph.spec

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: do not install intermediate libs
Kefu Chai [Sat, 2 Jul 2016 09:47:21 +0000 (17:47 +0800)]
cmake: do not install intermediate libs

rbd_replay and rbd_replay_ios are convenience libraries, and they are
not supposed to be used by user.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake install ceph-monstore-update-crush.sh into ${CMAKE_INSTALL_LIBDIR}/ceph
Kefu Chai [Sat, 2 Jul 2016 09:05:23 +0000 (17:05 +0800)]
cmake install ceph-monstore-update-crush.sh into ${CMAKE_INSTALL_LIBDIR}/ceph

ceph-monstore-update-crush.sh is a user-facing script, and it is not
used internally. also ceph.spec expects it that way. technically, we
should not install arch-indep files into ${CMAKE_INSTALL_LIBDIR}/ceph.
leave this for another changeset..

this partially reverts 37f53ec

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install lib{rgw,cephfs_jni} into ${CMAKE_INSTALL_LIBDIR} not lib
Kefu Chai [Sat, 2 Jul 2016 07:52:59 +0000 (15:52 +0800)]
cmake: install lib{rgw,cephfs_jni} into ${CMAKE_INSTALL_LIBDIR} not lib

rh and suse distros follows FHS and put amd64 dso libs into lib64 on
amd64 machines. so let's use ${CMAKE_INSTALL_LIBDIR} instead

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install python srcs into platform-independent dir
Kefu Chai [Sat, 2 Jul 2016 07:22:03 +0000 (15:22 +0800)]
cmake: install python srcs into platform-independent dir

otherwise they will be installed into
$PREFIX/lib64/python2.7/site-packages instead of
$PREFIX/lib/python2.7/site-packages on amd64 arch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agomsg/simple: set close on exec on server sockets 9772/head
Kefu Chai [Fri, 17 Jun 2016 05:58:55 +0000 (13:58 +0800)]
msg/simple: set close on exec on server sockets

mds execv() when handling the "respawn" command, to avoid fd leakage,
and enormous CLOSE_WAIT connections after respawning, we need to set
FD_CLOEXEC flag for the socket fds.

Fixes: http://tracker.ceph.com/issues/16390
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agomsg/async: set close on exec on server sockets
Kefu Chai [Thu, 16 Jun 2016 17:17:05 +0000 (01:17 +0800)]
msg/async: set close on exec on server sockets

mds execv() when handling the "respawn" command, to avoid fd leakage,
and enormous CLOSE_WAIT connections after respawning, we need to set
FD_CLOEXEC flag for the socket fds.

Fixes: http://tracker.ceph.com/issues/16390
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoos/bluestore: add compression required ratio to enable/disable compression 10080/head
xie xingguo [Fri, 1 Jul 2016 03:19:13 +0000 (11:19 +0800)]
os/bluestore: add compression required ratio to enable/disable compression

Require the net gain of compression at least to be at a specified ratio,
otherwise we don't compress.

Ask for compressing at least 12.5% off, by default.

This is for the sake of performance because if the compression turns out
to be meaningless(saving little space), we can simply shut it down, as we
know the compression/decompression can be rather CPU-consuming.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agotools/cephfs: Remove cephfs-data-scan tmap_upgrade 10100/head
Douglas Fuller [Fri, 1 Jul 2016 20:02:00 +0000 (13:02 -0700)]
tools/cephfs: Remove cephfs-data-scan tmap_upgrade

tmap_upgrade was only for Jewel, so remove it for Kraken.

Fixes: http://tracker.ceph.com/issues/16144
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
9 years agoMerge pull request #10096 from ceph/wip-dang-cmake
Sage Weil [Fri, 1 Jul 2016 18:46:26 +0000 (14:46 -0400)]
Merge pull request #10096 from ceph/wip-dang-cmake

debian: set libexec dir to correct value as autotools did

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9941 from weiqiaomiao/wqm-wip-fetchobj
Matt Benjamin [Fri, 1 Jul 2016 18:33:40 +0000 (14:33 -0400)]
Merge pull request #9941 from weiqiaomiao/wqm-wip-fetchobj

rgw: fix memory leak in RGWRados::fetch_remote_obj()

lgtm

9 years agodebian - set libexec dir to correct value as autotools did 10096/head
Daniel Gryniewicz [Fri, 1 Jul 2016 18:12:47 +0000 (14:12 -0400)]
debian - set libexec dir to correct value as autotools did

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoos/bluestore: trim cache on reads too 10095/head
Sage Weil [Fri, 1 Jul 2016 18:04:52 +0000 (14:04 -0400)]
os/bluestore: trim cache on reads too

We were only trimming in the write path, which would make memory explode
on a read-only workload.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #10082 from chhabaramesh/bitalloc_warn
Sage Weil [Fri, 1 Jul 2016 17:29:46 +0000 (13:29 -0400)]
Merge pull request #10082 from chhabaramesh/bitalloc_warn

os/bluestore: Remove bit alloc Woverloaded-virtual warnings

9 years agoMerge pull request #10068 from jcsp/wip-cephfs-doc-update
Sage Weil [Fri, 1 Jul 2016 17:28:17 +0000 (13:28 -0400)]
Merge pull request #10068 from jcsp/wip-cephfs-doc-update

doc: update CephFS "early adopters" info

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #9584 from chiehtu/fix-16188
pritha-srivastava [Fri, 1 Jul 2016 16:07:12 +0000 (21:37 +0530)]
Merge pull request #9584 from chiehtu/fix-16188

rgw: fix Swift API returns double space usage

Reviewed by: Pritha Srivastava <prsrivas@redhat.com>

9 years agoMerge pull request #10000 from weiqiaomiao/wqm-wip-add-userlist-cli
Matt Benjamin [Fri, 1 Jul 2016 15:40:08 +0000 (11:40 -0400)]
Merge pull request #10000 from weiqiaomiao/wqm-wip-add-userlist-cli

rgw: add "radosgw-admin user list" cli

verified

9 years agoMerge pull request #9838 from xiexingguo/xxg-wip-fix-synthetic-client
John Spray [Fri, 1 Jul 2016 14:31:22 +0000 (15:31 +0100)]
Merge pull request #9838 from xiexingguo/xxg-wip-fix-synthetic-client

client: misc fixes

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10092 from ceph/wip-dang-cmake
Sage Weil [Fri, 1 Jul 2016 14:05:20 +0000 (10:05 -0400)]
Merge pull request #10092 from ceph/wip-dang-cmake

cmake: fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10028 from ceph/wip-cmake-readme-fixes
Sage Weil [Fri, 1 Jul 2016 13:59:53 +0000 (09:59 -0400)]
Merge pull request #10028 from ceph/wip-cmake-readme-fixes

cmake: Removed README.cmake.md, edited README.md

9 years agomds: Kill C_SaferCond in evict_sessions() 9971/head
Douglas Fuller [Mon, 27 Jun 2016 19:30:11 +0000 (12:30 -0700)]
mds: Kill C_SaferCond in evict_sessions()

MDSRankDispatcher::evict_sessions waits on a C_SaferCond for
kill_session to complete on each of its victims. Change the
command handling flow to pass command messages all the way down
to MDSRankDispatcher. Extract the MDSDaemon's reply path into a
static function callable from a new context in the MDSRankDispatcher.

See: http://tracker.ceph.com/issues/16288
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
9 years agocrush: reset bucket->h.items[i] when removing tree item 10093/head
Kefu Chai [Fri, 1 Jul 2016 12:44:35 +0000 (20:44 +0800)]
crush: reset bucket->h.items[i] when removing tree item

* crush: so we don't see the reference after the removing, this keeps
  check_item_loc() happy, and move_bucket() use check_item_loc() to see if
  the removed bucket disappears after the removal.
* test: also add unittest_crush_wrapper::CrushWrapper.insert_item

Fixes: http://tracker.ceph.com/issues/16525
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoinit-ceph - use sbindir, rather than hard coding sbin 10092/head
Daniel Gryniewicz [Fri, 1 Jul 2016 13:07:43 +0000 (09:07 -0400)]
init-ceph - use sbindir, rather than hard coding sbin

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoCMake - add libexecdir to the replaced variables
Daniel Gryniewicz [Fri, 1 Jul 2016 13:04:17 +0000 (09:04 -0400)]
CMake - add libexecdir to the replaced variables

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoMerge pull request #10081 from tchaikov/wip-16556
John Spray [Fri, 1 Jul 2016 13:02:19 +0000 (14:02 +0100)]
Merge pull request #10081 from tchaikov/wip-16556

cmake: remove unnecessary linked libs from libcephfs

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10083 from trociny/wip-16539
Jason Dillaman [Fri, 1 Jul 2016 12:29:38 +0000 (08:29 -0400)]
Merge pull request #10083 from trociny/wip-16539

rbd-mirror: remove ceph_test_rbd_mirror_image_replay test case

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10065 from dillaman/wip-16558
Mykola Golub [Fri, 1 Jul 2016 11:19:28 +0000 (14:19 +0300)]
Merge pull request #10065 from dillaman/wip-16558

rbd-mirror: gracefully fail if object map is unavailable

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agorgw: Fix for using port 443 with pre-signed urls. 10088/head
Pritha Srivastava [Fri, 1 Jul 2016 08:45:42 +0000 (14:15 +0530)]
rgw: Fix for using port 443 with pre-signed urls.

Fixes http://tracker.ceph.com/issues/16548

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
9 years agocmake: remove unnecessary linked libs from libcephfs 10081/head
Kefu Chai [Fri, 1 Jul 2016 03:09:09 +0000 (11:09 +0800)]
cmake: remove unnecessary linked libs from libcephfs

* some of the libs shares the same .cc which has static C++ variables. if
  we link against the different libs sharing the same static C++
  variables, and the dtor of the C++ variables has side-effects, among
  other things, deallocates a memory chunk. then, we are in the trouble of
  double free. so "osd" lib is removed.
* some of the libs are referenced by the linked lib, so no need to link
  against them again. for example, BLKID_LIBRARIES are linked by
  libcommon, so we can remove it from the linked libs list.
* and lib "os" and "cls_references_objs" are not used by libcephfs at all,
  so remove them.

Fixes: http://tracker.ceph.com/issues/16556
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoRemove bit alloc Woverloaded-virtual warnings 10082/head
Ramesh Chander [Fri, 1 Jul 2016 05:06:12 +0000 (22:06 -0700)]
Remove bit alloc Woverloaded-virtual warnings

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
9 years agorgw: fix double counting in RGWRados::update_containers_stats() 9584/head
Albert Tu [Tue, 28 Jun 2016 02:38:07 +0000 (10:38 +0800)]
rgw: fix double counting in RGWRados::update_containers_stats()

Fixes: http://tracker.ceph.com/issues/16188
Signed-off-by: Albert Tu <albert.t@inwinstack.com>
9 years agorgw: forward input data when forwarding set_bucket_version to master 10077/head
Yehuda Sadeh [Fri, 1 Jul 2016 00:36:16 +0000 (17:36 -0700)]
rgw: forward input data when forwarding set_bucket_version to master

Fixes: http://tracker.ceph.com/issues/16494
Needed to keep input data around to be forwarded correctly. Also, master
does not send any data back, so don't try to parse anything.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set args when rebuilding req_info
Yehuda Sadeh [Fri, 1 Jul 2016 00:34:38 +0000 (17:34 -0700)]
rgw: set args when rebuilding req_info

Was missing args, so it didn't sign requests with subresources
correctly when forwarding.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agodoc/cephfs: rename early-adopters to best-practices 10068/head
John Spray [Thu, 30 Jun 2016 15:20:20 +0000 (16:20 +0100)]
doc/cephfs: rename early-adopters to best-practices

...and give it a link in the TOC (in addition
to where it is referenced from the top of index.rst)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agodoc/cephfs: remove some scary warnings
John Spray [Thu, 30 Jun 2016 15:18:46 +0000 (16:18 +0100)]
doc/cephfs: remove some scary warnings

...and restructure the "early adopters" page
into a "best practices" guide.  Early adopters
are now just adopters :-)

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agocmake: Removed README.cmake.md, edited README.md 10028/head
Ali Maredia [Wed, 29 Jun 2016 20:05:26 +0000 (16:05 -0400)]
cmake: Removed README.cmake.md, edited README.md

Deleted README.cmake.md and put any helpful
information it had into README.md.

Also a added note about which tests get executed
by ctest.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agotest/common/Throttle.cc: fix race in shutdown 10094/head
Samuel Just [Wed, 29 Jun 2016 15:56:29 +0000 (08:56 -0700)]
test/common/Throttle.cc: fix race in shutdown

Previously, putters could stop before getters.  Keep putters running
until getters stop and the queue is empty.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoqa/workunits/rbd: fix issues under cmake build environment 10076/head
Jason Dillaman [Thu, 30 Jun 2016 20:59:19 +0000 (16:59 -0400)]
qa/workunits/rbd: fix issues under cmake build environment

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agovstart: avoid using relative paths when finding cmake directories
Jason Dillaman [Thu, 30 Jun 2016 20:57:16 +0000 (16:57 -0400)]
vstart: avoid using relative paths when finding cmake directories

If the "run" directory is a symbolic link (e.g. to fast storage),
this will fail.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9891 from diluga/rgw_socket_backlog_with_sign
Matt Benjamin [Thu, 30 Jun 2016 20:50:31 +0000 (16:50 -0400)]
Merge pull request #9891 from diluga/rgw_socket_backlog_with_sign

RGW : setting socket backlog for via ceph.conf

9 years agoMerge pull request #9852 from dx9/wip-rgw-ldap-link
Matt Benjamin [Thu, 30 Jun 2016 20:28:05 +0000 (16:28 -0400)]
Merge pull request #9852 from dx9/wip-rgw-ldap-link

rgw-ldap: add ldap lib to rgw lib deps based on build config

9 years agoMerge pull request #9931 from Yan-waller/yj-wip-rgwmainccfix
Matt Benjamin [Thu, 30 Jun 2016 20:12:02 +0000 (16:12 -0400)]
Merge pull request #9931 from Yan-waller/yj-wip-rgwmainccfix

rgw: remove uneccessary temporary variable and fix some indents

cosmetic changes only--build verified, f23

9 years agoMerge pull request #9979 from Yan-waller/yj-wip-rgwrests3cc
Matt Benjamin [Thu, 30 Jun 2016 19:53:02 +0000 (15:53 -0400)]
Merge pull request #9979 from Yan-waller/yj-wip-rgwrests3cc

rgw: fix potential memory leaks and remove unnecessary assignment

lgtm--should backport

9 years agoMerge pull request #10031 from yehudasa/wip-16530
Casey Bodley [Thu, 30 Jun 2016 19:02:54 +0000 (15:02 -0400)]
Merge pull request #10031 from yehudasa/wip-16530

rgw: finish error_repo cr in stop_spawned_services()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agolibrbd: failed assertion after shrinking a clone image twice 10072/head
Jason Dillaman [Thu, 30 Jun 2016 19:00:32 +0000 (15:00 -0400)]
librbd: failed assertion after shrinking a clone image twice

Fixes: http://tracker.ceph.com/issues/16561
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd-mirror: remove ceph_test_rbd_mirror_image_replay test case 10083/head
Mykola Golub [Thu, 30 Jun 2016 13:18:56 +0000 (16:18 +0300)]
rbd-mirror: remove ceph_test_rbd_mirror_image_replay test case

Fixes: http://tracker.ceph.com/issues/16539
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9985 from Yan-waller/yj-wiph-rgwopccfixstring
Matt Benjamin [Thu, 30 Jun 2016 18:05:23 +0000 (14:05 -0400)]
Merge pull request #9985 from Yan-waller/yj-wiph-rgwopccfixstring

rgw: use string::npos while 'string::find()' find nothing

lgtm--build verified, f23

9 years agoMerge pull request #9898 from liewegas/wip-bluefs-async-flush
Sage Weil [Thu, 30 Jun 2016 17:50:46 +0000 (13:50 -0400)]
Merge pull request #9898 from liewegas/wip-bluefs-async-flush

os/bluestore/BlueFS: do not hold internal lock while waiting for IO

9 years agoMerge pull request #10002 from Yan-waller/yj-wip-rgwradosccremoveunused
Matt Benjamin [Thu, 30 Jun 2016 17:49:00 +0000 (13:49 -0400)]
Merge pull request #10002 from Yan-waller/yj-wip-rgwradosccremoveunused

rgw: remove uneccessary temporary variable 'r'

lgtm--build verified, f23