]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agolibrados/snap_set_diff: don't assert on empty snapset 20648/head
Mykola Golub [Mon, 19 Feb 2018 11:17:29 +0000 (13:17 +0200)]
librados/snap_set_diff: don't assert on empty snapset

Instead treat the diff as a full-object delta.

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19015 from hansbogert/master
Yuri Weinstein [Wed, 28 Feb 2018 14:25:31 +0000 (06:25 -0800)]
Merge pull request #19015 from hansbogert/master

mon: Add `ceph osd get-require-min-compat-client` command

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #20607 from shangfufei/test_stack
Kefu Chai [Wed, 28 Feb 2018 14:02:02 +0000 (22:02 +0800)]
Merge pull request #20607 from shangfufei/test_stack

msg/async:fix the incoming parameter type of EventCenter::process_events()

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20509 from liewegas/wip-less-filestore-idempotent
Kefu Chai [Wed, 28 Feb 2018 13:59:24 +0000 (21:59 +0800)]
Merge pull request #20509 from liewegas/wip-less-filestore-idempotent

qa/tasks/filestore_idempotent: shorter test

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20498 from liewegas/wip-22616
Kefu Chai [Wed, 28 Feb 2018 13:58:14 +0000 (21:58 +0800)]
Merge pull request #20498 from liewegas/wip-22616

os/bluestore: trim cache every 50ms (instead of 200ms)

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20616 from tchaikov/wip-cmake
Kefu Chai [Wed, 28 Feb 2018 13:53:23 +0000 (21:53 +0800)]
Merge pull request #20616 from tchaikov/wip-cmake

cmake/BuildBoost: fixes to ready seastar

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20636 from tchaikov/wip-23169
Kefu Chai [Wed, 28 Feb 2018 13:50:46 +0000 (21:50 +0800)]
Merge pull request #20636 from tchaikov/wip-23169

Revert "core: hint the dout()'s message crafting as a cold code."

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agoMerge pull request #20631 from tchaikov/wip-cmake-systemd
Kefu Chai [Wed, 28 Feb 2018 13:49:36 +0000 (21:49 +0800)]
Merge pull request #20631 from tchaikov/wip-cmake-systemd

cmake: s/sysconf/sysconfig/

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Reviewed-by: Lenz Grimmer <lenz@grimmer.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agoMerge pull request #15849 from theanalyst/wip-doc-es
Abhishek L [Wed, 28 Feb 2018 09:44:43 +0000 (10:44 +0100)]
Merge pull request #15849 from theanalyst/wip-doc-es

doc: rgw add some basic documentation for sync plugins & ES

Reviewed-By: Yehuda Sadeh <yehuda@redhat.com>
7 years agoRevert "core: hint the dout()'s message crafting as a cold code." 20636/head
Kefu Chai [Wed, 28 Feb 2018 08:24:16 +0000 (16:24 +0800)]
Revert "core: hint the dout()'s message crafting as a cold code."

This reverts commit b265ed2955570c17b954270e6a1449637790e9b8.

with b265ed29, we cannot use `dout(10) << __func__ << ...` anymore for
logging the name of the inner most function. what we will have is
always `operator()`, because the lambda closure will be the inner most
function with the the hinting change.

Fixes: http://tracker.ceph.com/issues/23169
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20411 from majianpeng/sync-nvml-submodule
Kefu Chai [Wed, 28 Feb 2018 07:19:09 +0000 (15:19 +0800)]
Merge pull request #20411 from majianpeng/sync-nvml-submodule

cmake: sync nvml submodule to latest code.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: make PMEMDevice work based on latest pmdk. 20411/head
Jianpeng Ma [Wed, 28 Feb 2018 09:58:16 +0000 (17:58 +0800)]
os/bluestore: make PMEMDevice work based on latest pmdk.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agocmake: sync nvml submodule
Jianpeng Ma [Tue, 27 Feb 2018 11:49:59 +0000 (19:49 +0800)]
cmake: sync nvml submodule

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agocmake: s/sysconf/sysconfig/ 20631/head
Kefu Chai [Wed, 28 Feb 2018 06:49:43 +0000 (14:49 +0800)]
cmake: s/sysconf/sysconfig/

it's a regression caused by 638aadf

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20618 from tchaikov/wip-systemd-deb-env
Kefu Chai [Wed, 28 Feb 2018 06:42:34 +0000 (14:42 +0800)]
Merge pull request #20618 from tchaikov/wip-systemd-deb-env

cmake,deb: install system units using cmake

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20602 from gregsfortytwo/wip-23141-rotational
Kefu Chai [Wed, 28 Feb 2018 01:35:17 +0000 (09:35 +0800)]
Merge pull request #20602 from gregsfortytwo/wip-23141-rotational

os/bluestore: correctly check all block devices to decide if journal is_rotational

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20595 from jcsp/wip-23037
Kefu Chai [Wed, 28 Feb 2018 01:33:33 +0000 (09:33 +0800)]
Merge pull request #20595 from jcsp/wip-23037

mgr: die on bind() failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20593 from tchaikov/wip-23121
Kefu Chai [Wed, 28 Feb 2018 01:31:07 +0000 (09:31 +0800)]
Merge pull request #20593 from tchaikov/wip-23121

ceph-objectstore-tool: don't destroy SnapMapper until the txn is completed

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20540 from ovh/bp-optracker-cleanup
Kefu Chai [Wed, 28 Feb 2018 01:29:10 +0000 (09:29 +0800)]
Merge pull request #20540 from ovh/bp-optracker-cleanup

common/OpHistory: move insert/cleanup into separate thread

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20539 from zeichenanonym/mgr-prometheus-fix-metadata-does-not...
Kefu Chai [Wed, 28 Feb 2018 01:27:53 +0000 (09:27 +0800)]
Merge pull request #20539 from zeichenanonym/mgr-prometheus-fix-metadata-does-not-exist

mgr: prometheus: Don't crash on OSDs without metadata

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20530 from wido/issue-23078
Kefu Chai [Wed, 28 Feb 2018 01:25:16 +0000 (09:25 +0800)]
Merge pull request #20530 from wido/issue-23078

common/dns_resolv.cc: Query for AAAA-record if ms_bind_ipv6 is True

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20394 from liewegas/wip-pg-log-size
Kefu Chai [Wed, 28 Feb 2018 01:24:08 +0000 (09:24 +0800)]
Merge pull request #20394 from liewegas/wip-pg-log-size

osd: min_pg_log_entries == max == pg_log_dups_tracked

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20290 from rzarzynski/wip-common-subsystemmap
Kefu Chai [Wed, 28 Feb 2018 01:23:01 +0000 (09:23 +0800)]
Merge pull request #20290 from rzarzynski/wip-common-subsystemmap

core: make the main dout() paths faster and more maintanable

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20273 from adamemerson/wip-any-singleton-will-do
Kefu Chai [Wed, 28 Feb 2018 01:21:41 +0000 (09:21 +0800)]
Merge pull request #20273 from adamemerson/wip-any-singleton-will-do

common: Switch singletons to use immobile_any and cleanups

Reviewed-by: Jesse Williamson <jwilliamson@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20528 from tchaikov/wip-22462
Kefu Chai [Wed, 28 Feb 2018 01:18:36 +0000 (09:18 +0800)]
Merge pull request #20528 from tchaikov/wip-22462

mon: add MMonHealth back

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20415 from wumingqiao/wip-fallocate
Kefu Chai [Wed, 28 Feb 2018 01:17:36 +0000 (09:17 +0800)]
Merge pull request #20415 from wumingqiao/wip-fallocate

filestore: include <linux/falloc.h>

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20620 from ceph/wip-rm23140
Alfredo Deza [Tue, 27 Feb 2018 21:42:47 +0000 (16:42 -0500)]
Merge pull request #20620 from ceph/wip-rm23140

ceph-volume: adds raw device support to 'lvm list'

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20599 from dillaman/wip-librbd-devstack-tempest
Mykola Golub [Tue, 27 Feb 2018 18:43:36 +0000 (20:43 +0200)]
Merge pull request #20599 from dillaman/wip-librbd-devstack-tempest

qa/workunits/rbd: switch devstack tempest to 17.2.0 tag

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20612 from fangyuxiangGL/com
Casey Bodley [Tue, 27 Feb 2018 18:32:01 +0000 (13:32 -0500)]
Merge pull request #20612 from fangyuxiangGL/com

rgw: download object might fail for local invariable uninitialized

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #19845 from fangyuxiangGL/escape
Yuri Weinstein [Tue, 27 Feb 2018 17:49:12 +0000 (09:49 -0800)]
Merge pull request #19845 from fangyuxiangGL/escape

rgw: rework json/xml escape usage follow #19806

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20352 from yehudasa/wip-22928
Yuri Weinstein [Tue, 27 Feb 2018 17:48:16 +0000 (09:48 -0800)]
Merge pull request #20352 from yehudasa/wip-22928

rgw: use explicit index pool placement

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20440 from cbodley/wip-qa-rgw-beast
Yuri Weinstein [Tue, 27 Feb 2018 17:47:05 +0000 (09:47 -0800)]
Merge pull request #20440 from cbodley/wip-qa-rgw-beast

qa/rgw: remove some civetweb overrides for beast testing

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #20471 from mdw-at-linuxbox/wip-master-swacldel
Yuri Weinstein [Tue, 27 Feb 2018 17:46:30 +0000 (09:46 -0800)]
Merge pull request #20471 from mdw-at-linuxbox/wip-master-swacldel

rgw: Allow swift acls to be deleted.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agorgw: download object might fail for local invariable uninitialized 20612/head
fang yuxiang [Tue, 27 Feb 2018 17:05:22 +0000 (01:05 +0800)]
rgw: download object might fail for local invariable uninitialized

This is an omission in #20226

Fixes: http://tracker.ceph.com/issues/23146
Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
7 years agoMerge pull request #20234 from smithfarm/wip-run-make-check
Nathan Cutler [Tue, 27 Feb 2018 16:33:14 +0000 (17:33 +0100)]
Merge pull request #20234 from smithfarm/wip-run-make-check

build/ops: run-make-check.sh: fix SUSE support

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake,deb: set EnvironmentFile using cmake 20618/head
Kefu Chai [Tue, 27 Feb 2018 08:42:48 +0000 (16:42 +0800)]
cmake,deb: set EnvironmentFile using cmake

this change also fix the EnvironmentFile specified in rbdmap.service.
without this change EnvironmentFile in rbdmap.service is always
/etc/sysconfig/ceph even on debian derived distros. after this change,
this variable is /etc/default/ceph in rbdmap.service shipped by the deb
packages.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodebian: install system units using cmake
Kefu Chai [Tue, 27 Feb 2018 07:27:18 +0000 (15:27 +0800)]
debian: install system units using cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-volume: if using lvm list on a device with many lvs, show them all 20620/head
Andrew Schoen [Tue, 27 Feb 2018 15:02:12 +0000 (09:02 -0600)]
ceph-volume: if using lvm list on a device with many lvs, show them all

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20436 from smithfarm/wip-22999
Nathan Cutler [Tue, 27 Feb 2018 15:19:36 +0000 (16:19 +0100)]
Merge pull request #20436 from smithfarm/wip-22999

install-deps.sh: set python2 %bcond by environment

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #20611 from Leeshine/wip-rgw-22080-1
Casey Bodley [Tue, 27 Feb 2018 14:23:09 +0000 (09:23 -0500)]
Merge pull request #20611 from Leeshine/wip-rgw-22080-1

rgw: create sync-module instance when radosgw-admin sync run

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20397 from tdb/fix/perms-ocf-rbd
Nathan Cutler [Tue, 27 Feb 2018 13:59:46 +0000 (14:59 +0100)]
Merge pull request #20397 from tdb/fix/perms-ocf-rbd

rbd: resource agent needs to be executable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20577 from Songweibin/wip-group-rename
Jason Dillaman [Tue, 27 Feb 2018 13:25:33 +0000 (08:25 -0500)]
Merge pull request #20577 from Songweibin/wip-group-rename

rbd: add group rename methods

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agocmake: add implicit dependencies between boost libs 20616/head
Kefu Chai [Tue, 27 Feb 2018 13:11:10 +0000 (21:11 +0800)]
cmake: add implicit dependencies between boost libs

so the dependencies can be included when linking against the one which
depends on them. for example, libboost_filesystem depends on
libboost_system, if we don't link against the latter, linker will bail
out when linking an executable using Boost::filesystem.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: add an alias for unit_test_framework
Kefu Chai [Fri, 23 Feb 2018 06:43:00 +0000 (14:43 +0800)]
cmake: add an alias for unit_test_framework

should pass --with-test for building Boost::unit_test_framework

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: skip boost dependency on ALIAS targets
Casey Bodley [Sat, 27 Jan 2018 17:24:12 +0000 (12:24 -0500)]
cmake: skip boost dependency on ALIAS targets

the boost override for add_library() does not work for ALIAS targets:

CMake Error at cmake/modules/BuildBoost.cmake:227 (add_dependencies):
  Cannot add target-level dependencies to alias target "Seastar::seastar".

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoinstall-deps.sh: set python2 %bcond by environment 20436/head
Nathan Cutler [Wed, 14 Feb 2018 11:51:09 +0000 (12:51 +0100)]
install-deps.sh: set python2 %bcond by environment

If there is no /usr/bin/python2 we need to set %bcond_with python2.

Fixes: http://tracker.ceph.com/issues/22999
Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20434 from smithfarm/wip-22998
Nathan Cutler [Tue, 27 Feb 2018 13:09:33 +0000 (14:09 +0100)]
Merge pull request #20434 from smithfarm/wip-22998

build/ops: install-deps.sh: pass --no-recommends to zypper

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #20404 from smithfarm/wip-cmake-with-systemd
Nathan Cutler [Tue, 27 Feb 2018 13:03:30 +0000 (14:03 +0100)]
Merge pull request #20404 from smithfarm/wip-cmake-with-systemd

build/ops: change WITH_SYSTEMD default to ON

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agobuild/ops: run-make-check.sh: fix SUSE support 20234/head
Nathan Cutler [Thu, 1 Feb 2018 14:53:15 +0000 (15:53 +0100)]
build/ops: run-make-check.sh: fix SUSE support

Get /usr/bin/which from the right RPM.

Fixes: http://tracker.ceph.com/issues/22875
Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #20245 from smithfarm/wip-p2p-ripout
Nathan Cutler [Tue, 27 Feb 2018 12:53:17 +0000 (13:53 +0100)]
Merge pull request #20245 from smithfarm/wip-p2p-ripout

tests: cleanup: drop upgrade/jewel-x/point-to-point-x

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20138 from smithfarm/wip-recommend-chrony
Nathan Cutler [Tue, 27 Feb 2018 12:48:52 +0000 (13:48 +0100)]
Merge pull request #20138 from smithfarm/wip-recommend-chrony

build/ops: rpm: recommend chrony instead of ntp-daemon

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
7 years agoMerge pull request #20551 from shun-s/wip-add-notify-name-print
Jason Dillaman [Tue, 27 Feb 2018 12:47:05 +0000 (07:47 -0500)]
Merge pull request #20551 from shun-s/wip-add-notify-name-print

rbd: output notifyOp request name when watching

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agolog: prohibit negative values for debug_* configurables. 20290/head
Radoslaw Zarzynski [Tue, 13 Feb 2018 15:09:55 +0000 (16:09 +0100)]
log: prohibit negative values for debug_* configurables.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agolog: remove SubsystemMap::m_max_name_len.
Radoslaw Zarzynski [Tue, 13 Feb 2018 14:26:24 +0000 (15:26 +0100)]
log: remove SubsystemMap::m_max_name_len.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoceph: switch to SubsystemMap::should_gather<SubV, LvlV>().
Radoslaw Zarzynski [Mon, 12 Feb 2018 19:17:14 +0000 (20:17 +0100)]
ceph: switch to SubsystemMap::should_gather<SubV, LvlV>().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocore: resurrect the old check on dout's levels where possible.
Radoslaw Zarzynski [Mon, 12 Feb 2018 18:58:51 +0000 (19:58 +0100)]
core: resurrect the old check on dout's levels where possible.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocore: hint the dout()'s message crafting as a cold code.
Radoslaw Zarzynski [Fri, 9 Feb 2018 15:19:10 +0000 (16:19 +0100)]
core: hint the dout()'s message crafting as a cold code.

The idea is to:
  1. Do not put the dout()'s crafting stuff on the hot, fall-through
     path. Cheapest branches are those that are forward and never taken.
  2. Move it to separated sections placed far away from the main path
     to be more friendly to ICache and ITLB. That is, dout_impl constructs
     a function now.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocore: make SubsystemMap more statical and optimize should_gather().
Radoslaw Zarzynski [Sat, 3 Feb 2018 18:13:13 +0000 (19:13 +0100)]
core: make SubsystemMap more statical and optimize should_gather().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoosd: remove the PGLog::prefix_provider as it's always nullptr.
Radoslaw Zarzynski [Sat, 3 Feb 2018 16:12:48 +0000 (17:12 +0100)]
osd: remove the PGLog::prefix_provider as it's always nullptr.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocommon: move subsys-dependant types to a dedicated header.
Radoslaw Zarzynski [Sat, 3 Feb 2018 16:08:54 +0000 (17:08 +0100)]
common: move subsys-dependant types to a dedicated header.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocore: dout checks ceph_subsys_* in compile time if possible.
Radoslaw Zarzynski [Sat, 3 Feb 2018 03:37:55 +0000 (04:37 +0100)]
core: dout checks ceph_subsys_* in compile time if possible.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge PR #19471 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:45 +0000 (02:22 -0800)]
Merge PR #19471 into master

* refs/pull/19471/head:
cephfs-journal-tool: support purge queue

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20412 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:38 +0000 (02:22 -0800)]
Merge PR #20412 into master

* refs/pull/20412/head:
mds/CDir: cleanup in the lookup_exact_snap()
mds/cdir: add CDir missing state

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20468 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:31 +0000 (02:22 -0800)]
Merge PR #20468 into master

* refs/pull/20468/head:
mds: fix check of underwater dentries

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20489 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:25 +0000 (02:22 -0800)]
Merge PR #20489 into master

* refs/pull/20489/head:
common: omit short option for id in help for clients

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge PR #20547 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:19 +0000 (02:22 -0800)]
Merge PR #20547 into master

* refs/pull/20547/head:
mds: add uptime to MDS status

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge PR #20553 into master
Patrick Donnelly [Tue, 27 Feb 2018 10:22:08 +0000 (02:22 -0800)]
Merge PR #20553 into master

* refs/pull/20553/head:
mds: always handle SESSION_REQUEST_RENEWCAPS messages
mds: don't cleanup request that has pending remote authpin/wrlock/xlock

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agorgw: create sync-module instance when radosgw-admin sync run 20611/head
lvshanchun [Tue, 27 Feb 2018 08:14:08 +0000 (16:14 +0800)]
rgw: create sync-module instance when radosgw-admin sync run

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agomsg/async:change EventCenter::process_events(int timeout_microseconds) to EventCenter... 20607/head
shangfufei [Tue, 27 Feb 2018 03:23:37 +0000 (11:23 +0800)]
msg/async:change EventCenter::process_events(int timeout_microseconds) to EventCenter::process_events(unsigned timeout_microseconds)

Signed-off-by: shangfufei <shangfufei@inspur.com>
7 years agoMerge pull request #20532 from Songweibin/wip-du-user
Jason Dillaman [Tue, 27 Feb 2018 04:21:21 +0000 (23:21 -0500)]
Merge pull request #20532 from Songweibin/wip-du-user

rbd: filter out UserSnapshotNamespace in do_disk_usage

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20529 from Songweibin/wip-fix-nbd-map
Jason Dillaman [Tue, 27 Feb 2018 04:20:59 +0000 (23:20 -0500)]
Merge pull request #20529 from Songweibin/wip-fix-nbd-map

 rbd: set a default value for options in `nbd map`

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20507 from trociny/wip-remote-rename
Jason Dillaman [Tue, 27 Feb 2018 04:20:24 +0000 (23:20 -0500)]
Merge pull request #20507 from trociny/wip-remote-rename

 librbd: make rename request complete with filtered code

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20600 from liewegas/wip-msgr-level
Haomai Wang [Tue, 27 Feb 2018 02:05:29 +0000 (10:05 +0800)]
Merge pull request #20600 from liewegas/wip-msgr-level

msg/async/AsyncConnection: less noisy debug

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #20572 from batrick/erasure-code-cephfs-doc
Gregory Farnum [Mon, 26 Feb 2018 22:59:59 +0000 (14:59 -0800)]
Merge pull request #20572 from batrick/erasure-code-cephfs-doc

doc: cleanup erasure coded pool doc on cephfs use

7 years agobluestore: correctly check all block devices to decide if journal is_rotational 20602/head
Greg Farnum [Mon, 26 Feb 2018 21:33:45 +0000 (13:33 -0800)]
bluestore: correctly check all block devices to decide if journal is_rotational

Fixes: http://tracker.ceph.com/issues/23141
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
7 years agomsg/async/AsyncConnection: less noisy debug 20600/head
Sage Weil [Mon, 26 Feb 2018 21:17:54 +0000 (15:17 -0600)]
msg/async/AsyncConnection: less noisy debug

This spams logs of healthy OSDs.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-volume: lvm list now works with raw devices
Andrew Schoen [Mon, 26 Feb 2018 20:43:40 +0000 (14:43 -0600)]
ceph-volume: lvm list now works with raw devices

If you used a raw device with --data to create an OSD
you can now use 'lvm list' to get information about that OSD
using the raw device name like:

ceph-volume lvm list /dev/sda

fixes http://tracker.ceph.com/issues/23140

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20571 from dzafman/wip-21833-2
David Zafman [Mon, 26 Feb 2018 19:53:15 +0000 (11:53 -0800)]
Merge pull request #20571 from dzafman/wip-21833-2

Fix asserts caused by DNE pgs left behind after lots of OSD restarts

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20594 from ceph/wip-rm23004
Alfredo Deza [Mon, 26 Feb 2018 19:24:38 +0000 (14:24 -0500)]
Merge pull request #20594 from ceph/wip-rm23004

ceph-volume: log the current running command for easier debugging

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/workunits/rbd: switch devstack tempest to 17.2.0 tag 20599/head
Jason Dillaman [Mon, 26 Feb 2018 16:22:43 +0000 (11:22 -0500)]
qa/workunits/rbd: switch devstack tempest to 17.2.0 tag

Fixes: http://tracker.ceph.com/issues/22961
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20560 from dillaman/wip-22960-1
Mykola Golub [Mon, 26 Feb 2018 18:51:36 +0000 (20:51 +0200)]
Merge pull request #20560 from dillaman/wip-22960-1

librbd: minor cleanup of the IO pathway

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agolibrbd: moved write same buffer assembler to common location 20560/head
Jason Dillaman [Fri, 16 Feb 2018 03:23:03 +0000 (22:23 -0500)]
librbd: moved write same buffer assembler to common location

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: decoupled object read requests from result assembler
Jason Dillaman [Thu, 15 Feb 2018 21:37:48 +0000 (16:37 -0500)]
librbd: decoupled object read requests from result assembler

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: use move-semantics for object IO data payloads
Jason Dillaman [Thu, 15 Feb 2018 17:19:28 +0000 (12:19 -0500)]
librbd: use move-semantics for object IO data payloads

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: track the originating source of a flush request
Jason Dillaman [Mon, 19 Feb 2018 21:09:51 +0000 (16:09 -0500)]
librbd: track the originating source of a flush request

This will be used in a later cleanup to remove the IO flush handling
from ImageCtx.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: separated queued image IO requests from state machine
Jason Dillaman [Thu, 15 Feb 2018 15:44:38 +0000 (10:44 -0500)]
librbd: separated queued image IO requests from state machine

This breaks the tight coupling between the IO work queue and
the actual dispatch of IO requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agomgr: die on bind() failure 20595/head
John Spray [Mon, 26 Feb 2018 17:11:16 +0000 (17:11 +0000)]
mgr: die on bind() failure

Previously, the daemon would get wedged if it
competed for the same port as another daemon
on the same host and lost.

Fixes: https://tracker.ceph.com/issues/23037
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoceph-objectstore-tool: do not check action_on_object_t::call()'s retval 20593/head
Kefu Chai [Mon, 26 Feb 2018 14:34:37 +0000 (22:34 +0800)]
ceph-objectstore-tool: do not check action_on_object_t::call()'s retval

it never fails.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-objectstore-tool: do not check queue_transaction()'s retval
Kefu Chai [Mon, 26 Feb 2018 14:30:59 +0000 (22:30 +0800)]
ceph-objectstore-tool: do not check queue_transaction()'s retval

it never fails.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-objectstore-tool: don't destroy SnapMapper until the txn is completed
Kefu Chai [Mon, 26 Feb 2018 14:20:43 +0000 (22:20 +0800)]
ceph-objectstore-tool: don't destroy SnapMapper until the txn is completed

ch->flush() only ensure that the op is dequeued from osr/collection's
queue. but the ops could be still in the flight and they could still be
holding a *weak* reference of SnapMapper. we should make sure that the
mapper is still available when they reference it,

Fixes: http://tracker.ceph.com/issues/23121
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-volume: log the current running command for easier debugging 20594/head
Andrew Schoen [Mon, 26 Feb 2018 16:04:07 +0000 (10:04 -0600)]
ceph-volume: log the current running command for easier debugging

Fixes: http://tracker.ceph.com/issues/23004
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoosd: Remove partially created pg known as DNE 20571/head
David Zafman [Fri, 23 Feb 2018 20:06:05 +0000 (12:06 -0800)]
osd: Remove partially created pg known as DNE

Fixes: http://tracker.ceph.com/issues/21833
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #20567 from liewegas/wip-kill-pg-preferred
Sage Weil [Mon, 26 Feb 2018 15:13:40 +0000 (09:13 -0600)]
Merge pull request #20567 from liewegas/wip-kill-pg-preferred

osd/osd_types: kill preferred field in pg_t

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoosd/osd_types: pg_t: remove preferred 20567/head
Sage Weil [Fri, 23 Feb 2018 15:03:05 +0000 (09:03 -0600)]
osd/osd_types: pg_t: remove preferred

We killed this many many years ago; remove it!

Keep the hash<pg_t> value the same just in case this leaked into some
on-disk or on-wire structure.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20592 from ceph/ceph-volume-ssh
Alfredo Deza [Mon, 26 Feb 2018 14:55:55 +0000 (09:55 -0500)]
Merge pull request #20592 from ceph/ceph-volume-ssh

ceph-volume: add ANSIBLE_SSH_RETRIES=5 to functional tests

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agocommon/OpTracker: reorder fields 20540/head
Piotr Dałek [Fri, 23 Feb 2018 13:08:25 +0000 (14:08 +0100)]
common/OpTracker: reorder fields

Reorder smaller fields around so they're aligning naturally,
regaining a few bytes of storage.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agomon/Monitor: add missing shutdown of OpTracker
Piotr Dałek [Fri, 23 Feb 2018 08:37:11 +0000 (09:37 +0100)]
mon/Monitor: add missing shutdown of OpTracker

Now that it has its own processing thread, it must be shut down
explicitly or it'll sigsegv randomly.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agomon/OSDMonitor: remove op_tracker
Piotr Dałek [Fri, 23 Feb 2018 08:33:33 +0000 (09:33 +0100)]
mon/OSDMonitor: remove op_tracker

It's unused anyway.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agocommon/OpHistory: move insert/cleanup into separate thread
Piotr Dałek [Thu, 22 Feb 2018 13:45:52 +0000 (14:45 +0100)]
common/OpHistory: move insert/cleanup into separate thread

Cluster that's flooded with incoming ops (and enabled optracker)
is bottlenecked by OpHistory::insert. Reduce that by:
- pushing incoming ops into separate queue that'll be processed by
  separate thread.
- using std::atomic_bool for shutdown flag so ops_history_lock doesn't
  need to be taken as often

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agoMerge pull request #20591 from idryomov/wip-krbd-latest-osdmap-on-map-test
Ilya Dryomov [Mon, 26 Feb 2018 14:07:01 +0000 (15:07 +0100)]
Merge pull request #20591 from idryomov/wip-krbd-latest-osdmap-on-map-test

qa: krbd latest-osdmap-on-map test

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