]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoclient/Client.cc: fix USE_AFTER_FREE
Danny Al-Gaaf [Wed, 10 May 2017 18:42:36 +0000 (20:42 +0200)]
client/Client.cc: fix USE_AFTER_FREE

Don't call put_request() twice, it's already called by
unregister_request()

Fix for:

CID 1405360 (#1 of 1): Use after free (USE_AFTER_FREE)
 deref_arg: Calling put_request dereferences freed pointer request

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agotools/rbd/Utils.cc: yank features_set_specified and related logic
Danny Al-Gaaf [Wed, 10 May 2017 14:52:54 +0000 (16:52 +0200)]
tools/rbd/Utils.cc: yank features_set_specified and related logic

since it isn't used

Fix for:

CID 1394854 (#1 of 1): 'Constant' variable guards dead code (DEADCODE)
 dead_error_line: Execution cannot reach this statement:
 opts->set(RBD_IMAGE_OPTION_....
 Local variable features_set_specified is assigned only once, to a
 constant value, making it effectively constant throughout its scope.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoMerge pull request #17304 from kungf/calc_replicated_acting
Sage Weil [Sat, 2 Sep 2017 02:07:33 +0000 (21:07 -0500)]
Merge pull request #17304 from kungf/calc_replicated_acting

osd/PG: remove unused parameter in calc_ec_acting

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17088 from zmedico/interval_set_intersection_of_optimization
Sage Weil [Sat, 2 Sep 2017 02:06:36 +0000 (21:06 -0500)]
Merge pull request #17088 from zmedico/interval_set_intersection_of_optimization

interval_set: optimize intersection_of

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15816 from chardan/jfw-wip-consolidate-spinlocks
Sage Weil [Fri, 1 Sep 2017 21:28:03 +0000 (16:28 -0500)]
Merge pull request #15816 from chardan/jfw-wip-consolidate-spinlocks

common: consolidate spinlocks

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17265 from zmedico/interval-set-intersection-insert-optimization
Sage Weil [Fri, 1 Sep 2017 21:27:42 +0000 (16:27 -0500)]
Merge pull request #17265 from zmedico/interval-set-intersection-insert-optimization

interval_set: optimize intersect_of insert operations

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17391 from myoungwon/wip-proxywrite-cleanup
Sage Weil [Fri, 1 Sep 2017 21:26:50 +0000 (16:26 -0500)]
Merge pull request #17391 from myoungwon/wip-proxywrite-cleanup

osd: remove unused variable in do_proxy_write

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17394 from Songweibin/wip-common-cleanup
Sage Weil [Fri, 1 Sep 2017 21:26:24 +0000 (16:26 -0500)]
Merge pull request #17394 from Songweibin/wip-common-cleanup

common: drop unused variables "bluestore_csum_*_block" in opts

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17398 from xiexingguo/wip-21175
Sage Weil [Fri, 1 Sep 2017 21:25:53 +0000 (16:25 -0500)]
Merge pull request #17398 from xiexingguo/wip-21175

os/bluestore: don't re-initialize csum-setting for existing blobs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17160 from ceph/wip-luminous-x-master
Josh Durgin [Fri, 1 Sep 2017 21:19:48 +0000 (14:19 -0700)]
Merge pull request #17160 from ceph/wip-luminous-x-master

qa: add upgrade/luminous-x suite

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17405 from tchaikov/wip-remove-boost-submodule
Kefu Chai [Fri, 1 Sep 2017 17:47:18 +0000 (01:47 +0800)]
Merge pull request #17405 from tchaikov/wip-remove-boost-submodule

boost: remove boost submodule

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17425 from ceph/wip-ceph-volume-docs
Alfredo Deza [Fri, 1 Sep 2017 16:55:34 +0000 (12:55 -0400)]
Merge pull request #17425 from ceph/wip-ceph-volume-docs

docs: ceph-volume CLI updates

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #17426 from liewegas/wip-integration
Sage Weil [Fri, 1 Sep 2017 16:33:37 +0000 (11:33 -0500)]
Merge pull request #17426 from liewegas/wip-integration

script/build-integration-branch: print pr url list with titles

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
7 years agoscript/build-integration-branch: print pr url list with titles 17426/head
Sage Weil [Fri, 1 Sep 2017 16:26:39 +0000 (12:26 -0400)]
script/build-integration-branch: print pr url list with titles

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17353 from scienceluo/wip-luo-fix-rgw-memory-leak-branch
Casey Bodley [Fri, 1 Sep 2017 16:23:33 +0000 (12:23 -0400)]
Merge pull request #17353 from scienceluo/wip-luo-fix-rgw-memory-leak-branch

rgw: fix resource leak in rgw_bucket.cc and rgw_user.cc

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agodoc/ceph-volume prepare partitions with PARTUUID 17425/head
Alfredo Deza [Fri, 1 Sep 2017 16:12:43 +0000 (12:12 -0400)]
doc/ceph-volume prepare partitions with PARTUUID

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoInitial check in 17160/head
Yuri Weinstein [Tue, 29 Aug 2017 16:50:51 +0000 (09:50 -0700)]
Initial check in

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agodoc/ceph-volume prepare needs both volume group and lv names
Alfredo Deza [Fri, 1 Sep 2017 15:51:59 +0000 (11:51 -0400)]
doc/ceph-volume prepare needs both volume group and lv names

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume activate re-links the journal always
Alfredo Deza [Fri, 1 Sep 2017 15:29:51 +0000 (11:29 -0400)]
doc/ceph-volume activate re-links the journal always

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume emphasize the danger of calling prepare for an existing OSD
Alfredo Deza [Fri, 1 Sep 2017 15:29:15 +0000 (11:29 -0400)]
doc/ceph-volume emphasize the danger of calling prepare for an existing OSD

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agorgw: fix resource leak in rgw_bucket.cc and rgw_user.cc 17353/head
Luo Kexue [Wed, 30 Aug 2017 01:32:18 +0000 (09:32 +0800)]
rgw: fix resource leak in rgw_bucket.cc and rgw_user.cc

Fixes: http://tracker.ceph.com/issues/21214
Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
7 years agoMerge pull request #17421 from nrdmn/dashboard-colors
Sage Weil [Fri, 1 Sep 2017 14:31:35 +0000 (09:31 -0500)]
Merge pull request #17421 from nrdmn/dashboard-colors

mgr/dashboard: change raw usage chart's color depending on usage

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17424 from theanalyst/release-eol-updates-l
Sage Weil [Fri, 1 Sep 2017 14:18:46 +0000 (09:18 -0500)]
Merge pull request #17424 from theanalyst/release-eol-updates-l

doc/releases: the Kraken sleepeth, faintest sunlights flee

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agodoc/releases: the Kraken sleepeth, faintest sunlights flee 17424/head
Abhishek Lekshmanan [Fri, 1 Sep 2017 14:05:46 +0000 (16:05 +0200)]
doc/releases: the Kraken sleepeth, faintest sunlights flee

updating releases to retire Kraken, Hammer. Also updated to mention
Jewel will be around until at least N is finalized

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agodoc/ceph-volume update intro to mention dm-cache
Alfredo Deza [Fri, 1 Sep 2017 14:00:35 +0000 (10:00 -0400)]
doc/ceph-volume update intro to mention dm-cache

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17364 from theanalyst/release-updates
Sage Weil [Fri, 1 Sep 2017 13:46:52 +0000 (08:46 -0500)]
Merge pull request #17364 from theanalyst/release-updates

doc: update releases to the current state

7 years agomgr/dashboard: change raw usage chart's color depending on usage 17421/head
Nick Erdmann [Fri, 1 Sep 2017 10:27:28 +0000 (10:27 +0000)]
mgr/dashboard: change raw usage chart's color depending on usage

Signed-off-by: Nick Erdmann <n@nirf.de>
7 years agodoc: update releases to the current state 17364/head
Abhishek Lekshmanan [Wed, 30 Aug 2017 11:18:55 +0000 (13:18 +0200)]
doc: update releases to the current state

Adding Luminous release date, and dropping links for dev releases (since
they've been merged to 12.2.0), also rearranged the table so that newer
releases come left

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoos/bluestore: formatting nits 17398/head
xie xingguo [Thu, 31 Aug 2017 04:42:36 +0000 (12:42 +0800)]
os/bluestore: formatting nits

So we don't output anything if csum is currently off:

_do_alloc_write blob Blob(0x7fad7cc25950 blob([0x42a80000~10000] none/0x1)

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore: don't re-initialize csum-setting for existing blobs
xie xingguo [Thu, 31 Aug 2017 03:42:37 +0000 (11:42 +0800)]
os/bluestore: don't re-initialize csum-setting for existing blobs

The global checksum setting may change, e.g., from NONE to CRC32,
which can cause improper re-initialization of the csum-settings of
existing blobs(e.g., partial write/overwrite may turn out to shrink
'csum_data').

We could develop some complicated solutions but for now let's not
bother since the above scenario is rare.

Fixes: http://tracker.ceph.com/issues/21175
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17397 from ZVampirEM77/wip-doc
Jos Collin [Fri, 1 Sep 2017 03:36:42 +0000 (03:36 +0000)]
Merge pull request #17397 from ZVampirEM77/wip-doc

doc: fix doc/radosgw/admin.rst typos

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agomake-dist: download and repackage boost 17405/head
Kefu Chai [Thu, 31 Aug 2017 17:00:04 +0000 (01:00 +0800)]
make-dist: download and repackage boost

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16521 from myoungwon/wip-objecter-finishers
Sage Weil [Thu, 31 Aug 2017 20:46:52 +0000 (15:46 -0500)]
Merge pull request #16521 from myoungwon/wip-objecter-finishers

osd: add multiple objecter finishers

Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16586 from tianshan/fix_logrotate
Sage Weil [Thu, 31 Aug 2017 20:46:20 +0000 (15:46 -0500)]
Merge pull request #16586 from tianshan/fix_logrotate

logrotate: add systemd reload in logrotate in case of centos minimal without killall

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16643 from Aran85/wip-mon-deadlock-on-shutdown
Sage Weil [Thu, 31 Aug 2017 20:45:55 +0000 (15:45 -0500)]
Merge pull request #16643 from Aran85/wip-mon-deadlock-on-shutdown

kv/leveldb: fix deadlock when close db

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16733 from liupan1111/wip-bluefs-fio
Sage Weil [Thu, 31 Aug 2017 20:45:39 +0000 (15:45 -0500)]
Merge pull request #16733 from liupan1111/wip-bluefs-fio

os: add compile option to build libbluefs.so

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17244 from liewegas/wip-21121
Sage Weil [Thu, 31 Aug 2017 20:44:59 +0000 (15:44 -0500)]
Merge pull request #17244 from liewegas/wip-21121

osd: subscribe to new osdmap while waiting_for_healthy

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16925 from gmayyyha/mgr-osd-metadata
Sage Weil [Thu, 31 Aug 2017 18:59:18 +0000 (13:59 -0500)]
Merge pull request #16925 from gmayyyha/mgr-osd-metadata

mgr: implement completion of osd MetadataUpdate

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17036 from majianpeng/add-pmem-submodule
Sage Weil [Thu, 31 Aug 2017 18:58:39 +0000 (13:58 -0500)]
Merge pull request #17036 from majianpeng/add-pmem-submodule

submodule: make libmpem as a submodule.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17354 from liewegas/wip-bluefs-compaction
Sage Weil [Thu, 31 Aug 2017 18:58:06 +0000 (13:58 -0500)]
Merge pull request #17354 from liewegas/wip-bluefs-compaction

os/bluestore/BlueFS: compact log even when sync_metadata sees no work

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@gmail.com>
7 years agoMerge pull request #17357 from Liuchang0812/wip-bluefs-not-assert-eexist
Sage Weil [Thu, 31 Aug 2017 18:57:35 +0000 (13:57 -0500)]
Merge pull request #17357 from Liuchang0812/wip-bluefs-not-assert-eexist

os/bluestore: do not core dump when BlueRocksEnv gets EEXIST error

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17360 from tchaikov/wip-crush-cleanup
Sage Weil [Thu, 31 Aug 2017 18:57:19 +0000 (13:57 -0500)]
Merge pull request #17360 from tchaikov/wip-crush-cleanup

crush: various CrushWrapper cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17379 from liewegas/wip-div-p
Sage Weil [Thu, 31 Aug 2017 18:56:59 +0000 (13:56 -0500)]
Merge pull request #17379 from liewegas/wip-div-p

qa/suites/rados/singleton/diverget_priors*: broaden whitelist

7 years agoboost: remove boost submodule
Kefu Chai [Tue, 30 May 2017 15:58:44 +0000 (23:58 +0800)]
boost: remove boost submodule

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17401 from liewegas/wip-disable-pidfile
Sage Weil [Thu, 31 Aug 2017 15:28:38 +0000 (10:28 -0500)]
Merge pull request #17401 from liewegas/wip-disable-pidfile

test/CMakeLists: disable test-pidfile.sh

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17390 from tchaikov/wip-test-coredump
Kefu Chai [Thu, 31 Aug 2017 14:46:13 +0000 (22:46 +0800)]
Merge pull request #17390 from tchaikov/wip-test-coredump

test: Don't dump core when using EXPECT_DEATH

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agodoc: fix doc/radosgw/admin.rst typos 17397/head
Enming Zhang [Thu, 31 Aug 2017 10:51:25 +0000 (18:51 +0800)]
doc: fix doc/radosgw/admin.rst typos

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agotest/CMakeLists: disable test-pidfile.sh 17401/head
Sage Weil [Thu, 31 Aug 2017 13:11:56 +0000 (09:11 -0400)]
test/CMakeLists: disable test-pidfile.sh

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon: drop unused variables "bluestore_csum_*_block" in opts 17394/head
songweibin [Thu, 31 Aug 2017 10:45:21 +0000 (18:45 +0800)]
common: drop unused variables "bluestore_csum_*_block" in opts

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agotest: Don't dump core when using EXPECT_DEATH 17390/head
Kefu Chai [Thu, 31 Aug 2017 08:48:22 +0000 (16:48 +0800)]
test: Don't dump core when using EXPECT_DEATH

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: remove unused variable in do_proxy_write 17391/head
myoungwon oh [Thu, 31 Aug 2017 08:40:22 +0000 (17:40 +0900)]
osd: remove unused variable in do_proxy_write

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoMerge pull request #17362 from C2python/update_example
Abhishek L [Thu, 31 Aug 2017 08:27:23 +0000 (10:27 +0200)]
Merge pull request #17362 from C2python/update_example

doc: Revise the Example of Bucket Policy

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-By: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17387 from tchaikov/wip-package-kvstoretool-man
Kefu Chai [Thu, 31 Aug 2017 05:49:28 +0000 (13:49 +0800)]
Merge pull request #17387 from tchaikov/wip-package-kvstoretool-man

rpm,deb: package ceph-kvstore-tool man page

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17145 from optimistyzy/822_bl
Haomai Wang [Thu, 31 Aug 2017 05:19:12 +0000 (22:19 -0700)]
Merge pull request #17145 from optimistyzy/822_bl

os/bluestore/NVMEDevice: change write_bl to bl

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoNVMEDevice: change write_bl to bl 17145/head
Ziye Yang [Tue, 22 Aug 2017 12:56:30 +0000 (20:56 +0800)]
NVMEDevice: change write_bl to bl

With this patch, both read and write can use this field in
task.

Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
7 years agointerval_set: optimize intersection_of 17088/head
Zac Medico [Thu, 31 Aug 2017 03:59:32 +0000 (20:59 -0700)]
interval_set: optimize intersection_of

Iterate over all elements of the smaller set, and use find_inc to
locate elements from the larger set in logarithmic time. This greatly
improves performance when one set is much larger than the other:

     2 +-+--+----+----+----+----+----+----+----+----+--+-+
P      +*                                                +
E      |*                                                |
R  1.8 +*                                                +
F      | *                                               |
O      | *                                               |
R  1.6 + *                                               +
M      | *                                               |
A      | *                                               |
N  1.4 + *                                               +
C      |  *                                              |
E      |  *                                              |
   1.2 +   *                                             +
R      |    *                                            |
A      |     *                                           |
T    1 +      ***                                        +
I      |         ******                                  |
O      +               ***********************************
   0.8 +-+--+----+----+----+----+----+----+----+----+--+-+
       0   0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9   1

                          SET SIZE RATIO

The above plot compares performance of the new intersection_size_asym
function to the existing intersection_of function. The performance of
intersection_size_asym gets worse as the set size ratio approaches 1.
For set size ratios where the performance ratio is greater than 1, the
performance of intersection_size_asym is superior. Therefore, this
patch only uses intersection_size_asym when the set size ratio is less
than or equal to 0.1 (code uses the reciprocal which is 10).

The plot was generated using benchmark results produced by the
following program:

#include <iostream>
#include <sys/timeb.h>
#include "include/interval_set.h"

int main()
{
  const int interval_count = 100000;
  const int interval_distance = 4;
  const int interval_size = 2;
  const int sample_count = 8;
  const int max_offset = interval_count * interval_distance;
  interval_set<int> a, b, intersection;

  for (int i = 0; i < max_offset; i+=interval_distance) {
    a.insert(i, interval_size);
  }

  for (int m = 1; m < 100; m++) {
    float ratio = 1 / float(m);

    for (int i = 0; i < max_offset; i+=interval_distance*m) {
      b.insert(i, interval_size);
    }

    struct timeb start, end;
    int ms = 0;
    for (int i = 0; i < sample_count; i++) {
      ftime(&start);
      intersection.intersection_of(a, b);
      ftime(&end);
      ms += (int) (1000.0 * (end.time - start.time)
        + (end.millitm - start.millitm));
      intersection.clear();
    }
    b.clear();

    std::cout << ratio << "\t" << ms << std::endl << std::flush;
  }
}

Signed-off-by: Zac Medico <zmedico@gmail.com>
7 years agorpm,deb: package ceph-kvstore-tool man page 17387/head
Sage Weil [Thu, 31 Aug 2017 02:59:20 +0000 (22:59 -0400)]
rpm,deb: package ceph-kvstore-tool man page

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: rm unused parameter in calc_replicated_acting 17304/head
kungf [Mon, 28 Aug 2017 12:33:07 +0000 (20:33 +0800)]
osd/PG: rm unused parameter in calc_replicated_acting

Signed-off-by: yang.wang <yang.wang@easystack.cn>
7 years agoosd/PG: rm unused parameter in calc_ec_acting
kungf [Mon, 28 Aug 2017 12:31:27 +0000 (20:31 +0800)]
osd/PG: rm unused parameter in calc_ec_acting

Signed-off-by: yang.wang <yang.wang@easystack.cn>
7 years agoMerge pull request #17382 from liewegas/wip-integration
Sage Weil [Thu, 31 Aug 2017 02:53:36 +0000 (21:53 -0500)]
Merge pull request #17382 from liewegas/wip-integration

src/script/build-integration-branch

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agosrc/script/build-integration-branch 17382/head
Sage Weil [Wed, 30 Aug 2017 20:42:19 +0000 (16:42 -0400)]
src/script/build-integration-branch

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17333 from liewegas/wip-luminous-mon-bits
Sage Weil [Thu, 31 Aug 2017 02:31:37 +0000 (21:31 -0500)]
Merge pull request #17333 from liewegas/wip-luminous-mon-bits

mon: final luminous compatset feature and osdmap flag

7 years agoMerge pull request #17376 from dillaman/ritz303-wip-doc-20437
Jason Dillaman [Wed, 30 Aug 2017 20:18:22 +0000 (16:18 -0400)]
Merge pull request #17376 from dillaman/ritz303-wip-doc-20437

doc/rbd: iSCSI Gateway Documentation

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agointerval_set: optimize intersect_of for identical spans 17265/head
Zac Medico [Sun, 27 Aug 2017 12:25:01 +0000 (05:25 -0700)]
interval_set: optimize intersect_of for identical spans

Optimize comparisons for identical spans of intervals.
When this patch is combined with the previous map insert
optimization, a benchmark using 400000 identical
intervals shows a 7 times performance improvement in
comparison to without the patches.

Signed-off-by: Zac Medico <zmedico@gmail.com>
7 years agointerval_set: optimize intersect_of insert operations
Zac Medico [Fri, 25 Aug 2017 16:41:07 +0000 (09:41 -0700)]
interval_set: optimize intersect_of insert operations

Use the std::map insert method with hint iterator to optimize
inserts. This increases performance more than 3.5 times for
large numbers of intervals. This will help performance
especially in the PGPool::update method, where profiling data
has shown that intersection operations are a hot spot. The
following benchmark data is for 400000 intervals:

    4 +-+--+----+----+----+----+----+----+----+----+--+-+
P     +    +    +    +    +    +    +    +  *************
E     |                             ********            |
R 3.5 +-+                       ****                  +-+
F     |                   ******                        |
O     |                 **                              |
R   3 +-+           ****                              +-+
M     |          ***                                    |
A     |        **                                       |
N 2.5 +-+     *                                       +-+
C     |     **                                          |
E     |     *                                           |
    2 +-+ **                                          +-+
R     |  **                                             |
A     | **                                              |
T 1.5 +**                                             +-+
I     |**                                               |
O     +*   +    +    +    +    +    +    +    +    +    +
    1 +*+--+----+----+----+----+----+----+----+----+--+-+
      0   0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9

                        SET SIZE RATIO

The above chart was generated using benchmark results
from the following program:

#include <iostream>
#include <sys/timeb.h>
#include "include/interval_set.h"

int main(int argc, char *argv[])
{
  const int interval_count = std::stoi(argv[1]);
  const int interval_distance = 4;
  const int interval_size = 2;
  const int sample_count = 8;
  const int max_offset = interval_count * interval_distance;
  interval_set<int> a, b, intersection;

  for (int i = 0; i < max_offset; i+=interval_distance) {
    a.insert(i, interval_size);
  }

  for (int m = 1; m < 100; m++) {
    float ratio = 1 / float(m);

    for (int i = 0; i < max_offset; i+=interval_distance*m) {
      b.insert(i, interval_size);
    }

    struct timeb start, end;
    int ms = 0;
    for (int i = 0; i < sample_count; i++) {
      ftime(&start);
      intersection.intersection_of(a, b);
      ftime(&end);
      ms += (int) (1000.0 * (end.time - start.time)
        + (end.millitm - start.millitm));
      intersection.clear();
    }
    b.clear();

    std::cout << ratio << "\t" << ms << std::endl << std::flush;
  }
}

Signed-off-by: Zac Medico <zmedico@gmail.com>
7 years agoMerge pull request #17217 from tchaikov/wip-19605
Sage Weil [Wed, 30 Aug 2017 19:18:13 +0000 (14:18 -0500)]
Merge pull request #17217 from tchaikov/wip-19605

osd/PG: discard msgs from down peers

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17339 from amitkumar50/cov-osd-2
Sage Weil [Wed, 30 Aug 2017 19:17:46 +0000 (14:17 -0500)]
Merge pull request #17339 from amitkumar50/cov-osd-2

osd: Deleting dead code PrimaryLogPG.cc

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agomon: set purged_snapdirs OSDMap flag once snapsets have all converted 17333/head
Sage Weil [Tue, 29 Aug 2017 04:01:19 +0000 (00:01 -0400)]
mon: set purged_snapdirs OSDMap flag once snapsets have all converted

This makes it easier to test whether the upgrade + conversion has
completed.  In particular, mimic+ will be able to simply test for this
flag without waiting for complete PG stats to know whether it is safe to
upgrade beyond luminous.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: CEPH_MON_FEATURE_INCOMPAT_LUMINOUS
Sage Weil [Mon, 28 Aug 2017 19:21:44 +0000 (15:21 -0400)]
mon: CEPH_MON_FEATURE_INCOMPAT_LUMINOUS

- set this once we have a luminous quorum
- require luminous if we have this set locally
- include this on mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17247 from liewegas/wip-post-luminous-cleanup
Sage Weil [Wed, 30 Aug 2017 19:15:23 +0000 (14:15 -0500)]
Merge pull request #17247 from liewegas/wip-post-luminous-cleanup

osd: clean up pre-luminous compat cruft (part 1 of many)

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/suites/rados/singleton/diverget_priors*: broaden whitelist 17379/head
Sage Weil [Wed, 30 Aug 2017 19:13:08 +0000 (15:13 -0400)]
qa/suites/rados/singleton/diverget_priors*: broaden whitelist

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17071 from ivancich/wip-dup-ops-perf-regression
Sage Weil [Wed, 30 Aug 2017 18:35:06 +0000 (13:35 -0500)]
Merge pull request #17071 from ivancich/wip-dup-ops-perf-regression

osd: speed up get_key_name

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17206 from rzarzynski/wip-rgw-21085
Yuri Weinstein [Wed, 30 Aug 2017 15:36:22 +0000 (08:36 -0700)]
Merge pull request #17206 from rzarzynski/wip-rgw-21085

rgw: fix accessing expired memory in PrefixableSignatureHelper.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17250 from shashalu/fix-get-bucket-location
Yuri Weinstein [Wed, 30 Aug 2017 15:35:44 +0000 (08:35 -0700)]
Merge pull request #17250 from shashalu/fix-get-bucket-location

rgw: return bucket's location no matter which zonegroup it located in.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17294 from tchaikov/wip-clang-warnings
Yuri Weinstein [Wed, 30 Aug 2017 15:34:34 +0000 (08:34 -0700)]
Merge pull request #17294 from tchaikov/wip-clang-warnings

rgw,unittest_bit_alloc: silence clang analyzer warning

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17343 from yaozongyou/rgw-admin-check-parameters-for-friendly...
Yuri Weinstein [Wed, 30 Aug 2017 15:33:25 +0000 (08:33 -0700)]
Merge pull request #17343 from yaozongyou/rgw-admin-check-parameters-for-friendly-prompt

rgw-admin: check input parameters for friendly prompt.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agodoc: tweaks for the RBD iSCSI configuration documentation 17376/head
Jason Dillaman [Tue, 8 Aug 2017 23:14:57 +0000 (19:14 -0400)]
doc: tweaks for the RBD iSCSI configuration documentation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #15994 from chuang-he/fix_decrypt
Casey Bodley [Wed, 30 Aug 2017 14:15:41 +0000 (10:15 -0400)]
Merge pull request #15994 from chuang-he/fix_decrypt

rgw: Data encryption is not follow the AWS agreement

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agodoc/rbd: Replaced numbered steps with a # for dynamic numbering
Aron Gunn [Wed, 12 Jul 2017 22:11:25 +0000 (17:11 -0500)]
doc/rbd: Replaced numbered steps with a # for dynamic numbering

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Updated the content based on engineering feedback
Aron Gunn [Thu, 6 Jul 2017 22:22:38 +0000 (17:22 -0500)]
doc/rbd: Updated the content based on engineering feedback

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Updated the content based on engineering feedback
Aron Gunn [Thu, 6 Jul 2017 22:22:02 +0000 (17:22 -0500)]
doc/rbd: Updated the content based on engineering feedback

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Updated the content based on engineering feedback
Aron Gunn [Thu, 6 Jul 2017 22:20:40 +0000 (17:20 -0500)]
doc/rbd: Updated the content based on engineering feedback

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Updated the requirements based on engineering feedback
Aron Gunn [Thu, 6 Jul 2017 22:19:01 +0000 (17:19 -0500)]
doc/rbd: Updated the requirements based on engineering feedback

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the iSCSI gateway requirements content
Aron Gunn [Thu, 6 Jul 2017 17:35:38 +0000 (12:35 -0500)]
doc/rbd: Added the iSCSI gateway requirements content

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the iSCSI gateway overview content
Aron Gunn [Thu, 6 Jul 2017 17:34:49 +0000 (12:34 -0500)]
doc/rbd: Added the iSCSI gateway overview content

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the iSCSI gateway 'gwtop' monitoring content
Aron Gunn [Thu, 6 Jul 2017 17:34:10 +0000 (12:34 -0500)]
doc/rbd: Added the iSCSI gateway 'gwtop' monitoring content

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the iSCSI targets, Ansible and CLI docs
Aron Gunn [Thu, 6 Jul 2017 17:32:53 +0000 (12:32 -0500)]
doc/rbd: Added the iSCSI targets, Ansible and CLI docs

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the iSCSI initiators, RHEL, Windows, and ESX docs
Aron Gunn [Thu, 6 Jul 2017 17:31:39 +0000 (12:31 -0500)]
doc/rbd: Added the iSCSI initiators, RHEL, Windows, and ESX docs

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Updated the "toctree" adding the iSCSI gateway overview doc
Aron Gunn [Thu, 6 Jul 2017 17:28:06 +0000 (12:28 -0500)]
doc/rbd: Updated the "toctree" adding the iSCSI gateway overview doc

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agodoc/rbd: Added the unmodified iSCSI initiator images for ESX and Windows 2016
Aron Gunn [Thu, 6 Jul 2017 17:23:50 +0000 (12:23 -0500)]
doc/rbd: Added the unmodified iSCSI initiator images for ESX and Windows 2016

Fixes: http://tracker.ceph.com/issues/20437
Signed-off-by: Aron Gunn <agunn@redhat.com>
7 years agoosd: add multiple objecter finishers 16521/head
myoungwon oh [Mon, 24 Jul 2017 06:31:52 +0000 (15:31 +0900)]
osd: add multiple objecter finishers
Bluestore and Filestore already adapt multiple finishers to improve IO performance.
But Objecter finisher (for tier approach) is still single thread. This can be a
bottleneck if we generate many IOs as Bluestore and Filestore because most of
completion processes (proxy, writeback) are handled by a objecter finisher.

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agodoc: Revise the Example of Bucket Policy 17362/head
zhangwen [Wed, 30 Aug 2017 08:53:00 +0000 (16:53 +0800)]
doc: Revise the Example of Bucket Policy
Signed-off-by: Wen Zhang zhangwen1@unionpay.com
7 years agocrush: add more constness to CrushWrapper 17360/head
Kefu Chai [Wed, 30 Aug 2017 07:28:49 +0000 (15:28 +0800)]
crush: add more constness to CrushWrapper

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrush: get largest bucket id faster
Kefu Chai [Wed, 30 Aug 2017 07:30:58 +0000 (15:30 +0800)]
crush: get largest bucket id faster

std::map<> is sorted, so we can always get the largest key by reading
it's last element.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17358 from tchaikov/wip-doc-disable-ofp
Haomai Wang [Wed, 30 Aug 2017 06:35:04 +0000 (23:35 -0700)]
Merge pull request #17358 from tchaikov/wip-doc-disable-ofp

doc/dev/perf: add doc on disabling -fomit-frame-pointer

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #16357 from Blackclaws/master
Kefu Chai [Wed, 30 Aug 2017 05:44:50 +0000 (13:44 +0800)]
Merge pull request #16357 from Blackclaws/master

ceph-disk activate unlocks bluestore data partition

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16312 from tchaikov/wip-store-event-if-added
Kefu Chai [Wed, 30 Aug 2017 05:43:16 +0000 (13:43 +0800)]
Merge pull request #16312 from tchaikov/wip-store-event-if-added

common,mds,mgr,mon,osd: store event only if it's added

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/dev/perf: add doc on disabling -fomit-frame-pointer 17358/head
Kefu Chai [Wed, 30 Aug 2017 04:14:37 +0000 (12:14 +0800)]
doc/dev/perf: add doc on disabling -fomit-frame-pointer

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: do not core dump when BlueRocksEnv gets EEXIST error 17357/head
liuchang0812 [Tue, 1 Aug 2017 14:48:10 +0000 (22:48 +0800)]
os/bluestore: do not core dump when BlueRocksEnv gets EEXIST error

in `rocksdb::repairdb`, rocksdb needs create a directory `lost` to archive all files.
we will get a EEXIST error when there is a `lost` directory already.

Fixes: http://tracker.ceph.com/issues/20871
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
7 years agoMerge pull request #15847 from jan--f/doc-fix-multimds-cmds
Sage Weil [Wed, 30 Aug 2017 03:19:59 +0000 (22:19 -0500)]
Merge pull request #15847 from jan--f/doc-fix-multimds-cmds

doc: add allow_multimds and fs_name parameter

Reviewed-by: Yan, Zheng <zyan@redhat.com>