]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #20063 from cethikdata/rgw_quota
Yuri Weinstein [Thu, 15 Feb 2018 16:59:00 +0000 (08:59 -0800)]
Merge pull request #20063 from cethikdata/rgw_quota

rgw: upldate the max-buckets when the quota is uploaded

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20095 from tianshan/fix_reload
Yuri Weinstein [Thu, 15 Feb 2018 16:58:39 +0000 (08:58 -0800)]
Merge pull request #20095 from tianshan/fix_reload

rgw: fix RGWCompletionManager get_next stuck after going down

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20423 from dillaman/wip-22945
Mykola Golub [Thu, 15 Feb 2018 12:13:45 +0000 (14:13 +0200)]
Merge pull request #20423 from dillaman/wip-22945

librbd: new tag should use on-disk committed position

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20442 from JordanHus/master
John Wilkins [Wed, 14 Feb 2018 23:15:27 +0000 (15:15 -0800)]
Merge pull request #20442 from JordanHus/master

doc: Fixes a spelling error and a broken hyperlink.

Reviewed-by: John Wilkins
7 years agodoc: Fixes a spelling error and a broken hyperlink. 20442/head
Jordan Hus [Wed, 14 Feb 2018 19:23:59 +0000 (14:23 -0500)]
doc: Fixes a spelling error and a broken hyperlink.

Signed-off-by: Jordan Hus <jordan.hus@dicecorp.com>
7 years agojournal: flush commit positions should wait for refresh 20423/head
Jason Dillaman [Tue, 13 Feb 2018 15:05:01 +0000 (10:05 -0500)]
journal: flush commit positions should wait for refresh

Fixes: http://tracker.ceph.com/issues/22945
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agojournal: support concurrent refresh requests
Jason Dillaman [Tue, 13 Feb 2018 15:18:25 +0000 (10:18 -0500)]
journal: support concurrent refresh requests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19859 from yaozongyou/rgw-remove-register-warning
Kefu Chai [Wed, 14 Feb 2018 16:13:37 +0000 (00:13 +0800)]
Merge pull request #19859 from yaozongyou/rgw-remove-register-warning

rgw: silence not allow register storage class specifier warning

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20187 from wido/influxdb-connection-error
John Spray [Wed, 14 Feb 2018 15:18:31 +0000 (15:18 +0000)]
Merge pull request #20187 from wido/influxdb-connection-error

mgr/influx: Various fixes and improvements

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20265 from ceph/wip-rm22876
Alfredo Deza [Wed, 14 Feb 2018 12:07:16 +0000 (07:07 -0500)]
Merge pull request #20265 from ceph/wip-rm22876

ceph-volume: lvm zap will unmount osd paths used by zapped devices

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #20406 from dillaman/wip-22979
Mykola Golub [Wed, 14 Feb 2018 07:36:02 +0000 (09:36 +0200)]
Merge pull request #20406 from dillaman/wip-22979

librbd: fix issues discovered in clone v2 during upgrade tests

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoceph-volume: use terminal.MultiLogger in `lvm zap` 20265/head
Andrew Schoen [Mon, 12 Feb 2018 21:23:08 +0000 (15:23 -0600)]
ceph-volume: use terminal.MultiLogger in `lvm zap`

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume: use api helper methods for pvs and lvs in lvm zap
Andrew Schoen [Wed, 7 Feb 2018 15:06:45 +0000 (09:06 -0600)]
ceph-volume: use api helper methods for pvs and lvs in lvm zap

This is just a cleaner way of doing this instead of using PVolumes
and Volumes directly.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume: fix documentation typos for lvm zap
Andrew Schoen [Wed, 7 Feb 2018 14:35:47 +0000 (08:35 -0600)]
ceph-volume: fix documentation typos for lvm zap

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume: when zapping unmount osd directories
Andrew Schoen [Thu, 1 Feb 2018 20:52:46 +0000 (14:52 -0600)]
ceph-volume: when zapping unmount osd directories

If you zap an lv, device or partition and it's currently mounted as a
ceph osd directory then it will be unmounted so the zap can complete.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume: adds a util.system.unmount function
Andrew Schoen [Thu, 1 Feb 2018 20:29:30 +0000 (14:29 -0600)]
ceph-volume: adds a util.system.unmount function

This function will unmount the given path

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20427 from ceph/wip-rm22988
Andrew Schoen [Tue, 13 Feb 2018 22:57:04 +0000 (23:57 +0100)]
Merge pull request #20427 from ceph/wip-rm22988

ceph-volume use realpath when checking mounts

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge PR #19263 into master
Patrick Donnelly [Tue, 13 Feb 2018 22:43:32 +0000 (14:43 -0800)]
Merge PR #19263 into master

* refs/pull/19263/head:
qa: ignore bad backtrace cluster wrn
qa/cephfs: Add tests to validate scrub functionality
cephfs: Add option to load invalid metadata from disk
cephfs: Reset scrub data when inodes move

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: ignore bad backtrace cluster wrn 19263/head
Patrick Donnelly [Tue, 13 Feb 2018 22:12:53 +0000 (14:12 -0800)]
qa: ignore bad backtrace cluster wrn

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoceph-volume tests verify realpath usage in mounts 20427/head
Alfredo Deza [Tue, 13 Feb 2018 18:22:41 +0000 (13:22 -0500)]
ceph-volume tests verify realpath usage in mounts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.system optionally use realpath on devices
Alfredo Deza [Tue, 13 Feb 2018 17:59:48 +0000 (12:59 -0500)]
ceph-volume util.system optionally use realpath on devices

To check a mounted device it is needed to verify on a combination of
realpath and plain devices against realpath and plain paths. In LVM, two
different paths might refer to the same devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge PR #19957 into master
Patrick Donnelly [Tue, 13 Feb 2018 19:36:18 +0000 (11:36 -0800)]
Merge PR #19957 into master

* refs/pull/19957/head:
client: fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
7 years agoMerge PR #20336 into master
Patrick Donnelly [Tue, 13 Feb 2018 19:36:11 +0000 (11:36 -0800)]
Merge PR #20336 into master

* refs/pull/20336/head:
client: re-use free snap tag

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20373 into master
Patrick Donnelly [Tue, 13 Feb 2018 19:36:04 +0000 (11:36 -0800)]
Merge PR #20373 into master

* refs/pull/20373/head:
client: clamp I/O sizes to INT_MAX when we can't return larger values
test: new testcase for ceph_ll_readv and ceph_ll_writev
client: hook up ceph_ll_readv and ceph_ll_writev
client: type safety cleanup for _read and _write codepaths

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge PR #20386 into master
Patrick Donnelly [Tue, 13 Feb 2018 19:35:57 +0000 (11:35 -0800)]
Merge PR #20386 into master

* refs/pull/20386/head:
mds: optimize getattr file size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa/cephfs: Add tests to validate scrub functionality
Douglas Fuller [Wed, 24 Jan 2018 16:11:40 +0000 (11:11 -0500)]
qa/cephfs: Add tests to validate scrub functionality

Add tests to ensure the scrub operation is not adversly affected
by certain metadata pathologies.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge pull request #20147 from smithfarm/wip-15904
Gregory Farnum [Tue, 13 Feb 2018 17:07:24 +0000 (09:07 -0800)]
Merge pull request #20147 from smithfarm/wip-15904

 tools: rados: make -f be --format for consistency with ceph tool

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #20422 from cbodley/wip-check-cls-rgw
Kefu Chai [Tue, 13 Feb 2018 16:35:14 +0000 (00:35 +0800)]
Merge pull request #20422 from cbodley/wip-check-cls-rgw

cmake: 'make check' builds radosgw and its cls dependencies

Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: 'make check' builds radosgw and its cls dependencies 20422/head
Casey Bodley [Tue, 13 Feb 2018 15:32:11 +0000 (10:32 -0500)]
cmake: 'make check' builds radosgw and its cls dependencies

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agolibrbd: flush journal commit position after stopping replay
Jason Dillaman [Mon, 12 Feb 2018 22:50:01 +0000 (17:50 -0500)]
librbd: flush journal commit position after stopping replay

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: disable clone v2 for negative test cases 20406/head
Jason Dillaman [Mon, 12 Feb 2018 20:02:42 +0000 (15:02 -0500)]
test/librbd: disable clone v2 for negative test cases

Fixes: http://tracker.ceph.com/issues/22979
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: don't clear CLONE_CHILD op feature if still a child
Jason Dillaman [Mon, 12 Feb 2018 20:01:28 +0000 (15:01 -0500)]
cls/rbd: don't clear CLONE_CHILD op feature if still a child

After removing the last snapshot linked to a parent image,
don't clear the CLONE_CHILD op feature bit if the image HEAD
is still linked to the parent.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #19939 from liewegas/wip-osd-new-class
Sage Weil [Mon, 12 Feb 2018 17:17:14 +0000 (11:17 -0600)]
Merge pull request #19939 from liewegas/wip-osd-new-class

mon,osd: do not use crush_device_class file to initalize class for new osds

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20363 from dongbula/e-rados-get-put-command
Gregory Farnum [Mon, 12 Feb 2018 16:56:56 +0000 (08:56 -0800)]
Merge pull request #20363 from dongbula/e-rados-get-put-command

make rados get/put/append command help txt clear

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoclient: clamp I/O sizes to INT_MAX when we can't return larger values 20373/head
Jeff Layton [Fri, 9 Feb 2018 12:39:56 +0000 (07:39 -0500)]
client: clamp I/O sizes to INT_MAX when we can't return larger values

We have several API functions that allow the caller to request I/Os
larger than INT_MAX bytes, but that return an int. Ensure that we don't
try to do more I/O than we can represent in the return value.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agotest: new testcase for ceph_ll_readv and ceph_ll_writev
Jeff Layton [Wed, 7 Feb 2018 20:59:47 +0000 (15:59 -0500)]
test: new testcase for ceph_ll_readv and ceph_ll_writev

Just copy the PreadvPwritev test and alter accordingly.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agoclient: hook up ceph_ll_readv and ceph_ll_writev
Jeff Layton [Wed, 7 Feb 2018 14:57:47 +0000 (09:57 -0500)]
client: hook up ceph_ll_readv and ceph_ll_writev

Break the core of _preadv_pwritev out into a function that takes a Fh.
Make _preadv_pwritev into a wrapper around that.

Then add in plumbing for ceph_ll_readv and ceph_ll_writev.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agoclient: type safety cleanup for _read and _write codepaths
Jeff Layton [Mon, 12 Feb 2018 12:17:51 +0000 (07:17 -0500)]
client: type safety cleanup for _read and _write codepaths

In the read codepath, bl->length() returns an unsigned value, and that
could end up looking negative when cast to int. On the write side,
totalwritten is a uint64_t, which could look negative when cast to int.

Have the underlying layers pass back an int64_t and convert them to
int at a higher level. This prepares the underlying infrastructure for
ceph_ll_readv and ceph_ll_writev support.

Tracker: http://tracker.ceph.com/issues/22948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agotools/rados: make rados get/put/append command help txt clearer 20363/head
lvshuhua [Thu, 8 Feb 2018 11:39:18 +0000 (19:39 +0800)]
tools/rados: make rados get/put/append command help txt clearer

Fixes: http://tracker.ceph.com/issues/22958
Signed-off-by: lvshuhua <lvshuhua@cmss.chinamobile.com>
7 years agoMerge pull request #20392 from adamemerson/wip-clangtastic-voyage
Kefu Chai [Mon, 12 Feb 2018 03:19:39 +0000 (11:19 +0800)]
Merge pull request #20392 from adamemerson/wip-clangtastic-voyage

cmake, test/fs, client: fix build with clang

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20379 from tchaikov/wip-test-fix-freebsd
Kefu Chai [Mon, 12 Feb 2018 03:17:22 +0000 (11:17 +0800)]
Merge pull request #20379 from tchaikov/wip-test-fix-freebsd

test/librados: s/invoke_result_t/result_of_t/

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #20360 from ifed01/wip-ifed-extents-cleanup
Kefu Chai [Mon, 12 Feb 2018 03:16:44 +0000 (11:16 +0800)]
Merge pull request #20360 from ifed01/wip-ifed-extents-cleanup

os/bluestore: cleanup around ExtentList, AllocExtent and bluestore_extent_t classes

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20320 from rzarzynski/wip-common-md_config_cacher_t
Kefu Chai [Mon, 12 Feb 2018 03:15:37 +0000 (11:15 +0800)]
Merge pull request #20320 from rzarzynski/wip-common-md_config_cacher_t

common: introduce md_config_cacher_t

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20198 from wido/zabbix-health-checks
Kefu Chai [Mon, 12 Feb 2018 03:14:41 +0000 (11:14 +0800)]
Merge pull request #20198 from wido/zabbix-health-checks

mgr/zabbix: Implement health checks

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20378 from tchaikov/wip-os-perf-stat-in-ns
Kefu Chai [Sun, 11 Feb 2018 01:53:40 +0000 (09:53 +0800)]
Merge pull request #20378 from tchaikov/wip-os-perf-stat-in-ns

osd: check feature bits when encoding objectstore_perf_stat_t

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20275 from badone/wip-osdmonitor-unused-function
Kefu Chai [Sun, 11 Feb 2018 01:52:10 +0000 (09:52 +0800)]
Merge pull request #20275 from badone/wip-osdmonitor-unused-function

mon/OSDMonitor: Comment out unused function

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20371 from tchaikov/wip-admin_socket_output
Kefu Chai [Sun, 11 Feb 2018 01:51:04 +0000 (09:51 +0800)]
Merge pull request #20371 from tchaikov/wip-admin_socket_output

test/admin_socket_output: add --vstart=path/to/asok option

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #20227 from rzarzynski/wip-bs-final-aiocontexts
Kefu Chai [Sat, 10 Feb 2018 17:24:31 +0000 (01:24 +0800)]
Merge pull request #20227 from rzarzynski/wip-bs-final-aiocontexts

os/bluestore: mark derivatives of AioContext as final.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20376 from dillaman/wip-22873
Mykola Golub [Sat, 10 Feb 2018 06:53:35 +0000 (08:53 +0200)]
Merge pull request #20376 from dillaman/wip-22873

librbd: auto-remove trash snapshots when image is deleted

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agobuild: Use the right experimental library 20392/head
Adam C. Emerson [Fri, 9 Feb 2018 21:16:43 +0000 (16:16 -0500)]
build: Use the right experimental library

Test whether we're building with libstdc++ or libc++.

Use stdc++filesystem if the former and c++experimental if the later.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years ago{client,test}: Explicitly initialize empty inode_t
Adam C. Emerson [Fri, 9 Feb 2018 17:51:31 +0000 (12:51 -0500)]
{client,test}: Explicitly initialize empty inode_t

Using an explicit {} initializer. This unbreaks Clang.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agolibrbd: auto-remove trash snapshots when image is deleted 20376/head
Jason Dillaman [Thu, 8 Feb 2018 22:12:00 +0000 (17:12 -0500)]
librbd: auto-remove trash snapshots when image is deleted

Fixes: http://tracker.ceph.com/issues/22873
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librados: s/invoke_result_t/result_of_t/ 20379/head
Kefu Chai [Fri, 9 Feb 2018 16:06:20 +0000 (00:06 +0800)]
test/librados: s/invoke_result_t/result_of_t/

to workaround buggy libc++ implementation. see
https://cplusplus.github.io/LWG/issue2807 . we should switch to
invoke_result_t once issue2807 is fixed in the latest release of
libc++.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: cleanup around ExtentList class. 20360/head
Igor Fedotov [Wed, 7 Feb 2018 18:43:48 +0000 (21:43 +0300)]
os/bluestore: cleanup around ExtentList class.

Also move it out of bluestore_types.h.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: kill AllocExtent[Vector] to simplify code a bit
Igor Fedotov [Wed, 7 Feb 2018 18:18:34 +0000 (21:18 +0300)]
os/bluestore: kill AllocExtent[Vector] to simplify code a bit

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #20387 from ifed01/wip-ifed-fio-build-fix
Igor Fedotov [Fri, 9 Feb 2018 15:35:25 +0000 (18:35 +0300)]
Merge pull request #20387 from ifed01/wip-ifed-fio-build-fix

test/fio: fix build failure caused by sequencer replacement.

7 years agoMerge pull request #20043 from Rubab-Syed/configuration_setting_browser
John Spray [Fri, 9 Feb 2018 15:22:51 +0000 (15:22 +0000)]
Merge pull request #20043 from Rubab-Syed/configuration_setting_browser

mgr/dashboard: add configuration setting browser

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #20389 from trociny/wip-cli_generic
Jason Dillaman [Fri, 9 Feb 2018 14:21:57 +0000 (09:21 -0500)]
Merge pull request #20389 from trociny/wip-cli_generic

qa/workunits/rbd: fix cli_generic test_purge for rbd default format 1

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa/workunits/rbd/cli_generic: fix test_purge for rbd default format 1 20389/head
Mykola Golub [Fri, 9 Feb 2018 10:53:31 +0000 (12:53 +0200)]
qa/workunits/rbd/cli_generic: fix test_purge for rbd default format 1

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20364 from Songweibin/wip-fix-test-rbd
Mykola Golub [Fri, 9 Feb 2018 12:42:27 +0000 (14:42 +0200)]
Merge pull request #20364 from Songweibin/wip-fix-test-rbd

test/rbd: cli_generic fails if v1 image format or deep-flatten disabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agotools/ceph-objectstore-tool: do not fail on lack of OI_ATTR for an 20387/head
Igor Fedotov [Fri, 9 Feb 2018 12:00:07 +0000 (15:00 +0300)]
tools/ceph-objectstore-tool: do not fail on lack of OI_ATTR for an
object.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest/fio: create superblock on mkfs to provide proper tools functioning
Igor Fedotov [Fri, 9 Feb 2018 11:58:15 +0000 (14:58 +0300)]
test/fio: create superblock on mkfs to provide proper tools functioning

E.g. ceph-objectstore-tool requires that

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest/fio: fix build failure caused by sequencer replacement.
Igor Fedotov [Fri, 9 Feb 2018 11:06:15 +0000 (14:06 +0300)]
test/fio: fix build failure caused by sequencer replacement.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agomds: optimize getattr file size 20386/head
Yan, Zheng [Thu, 8 Feb 2018 10:21:29 +0000 (18:21 +0800)]
mds: optimize getattr file size

Fixes: http://tracker.ceph.com/issues/22925
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agoMerge pull request #20372 from tchaikov/wip-mgr-doc
John Spray [Fri, 9 Feb 2018 09:51:09 +0000 (10:51 +0100)]
Merge pull request #20372 from tchaikov/wip-mgr-doc

doc/mgr: remove non user-facing code from doc

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agomgr/zabbix: Implement health checks in Zabbix module 20198/head
Wido den Hollander [Wed, 31 Jan 2018 09:04:13 +0000 (10:04 +0100)]
mgr/zabbix: Implement health checks in Zabbix module

Should make it easier for users to see why the module is failing.

Signed-off-by: Wido den Hollander <wido@42on.com>
7 years agotest/rbd: cli_generic fails if v1 image format or deep-flatten disabled 20364/head
songweibin [Thu, 8 Feb 2018 11:48:51 +0000 (19:48 +0800)]
test/rbd: cli_generic fails if v1 image format or deep-flatten disabled

Fixes: http://tracker.ceph.com/issues/22950
Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoMerge pull request #20382 from tchaikov/wip-fix-ftbfs-store-test
Kefu Chai [Fri, 9 Feb 2018 06:39:49 +0000 (14:39 +0800)]
Merge pull request #20382 from tchaikov/wip-fix-ftbfs-store-test

test/store_test: fix FTBFS as Sequencer is removed

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocheck feature bits when encoding objectstore_perf_stat_t 20378/head
Kefu Chai [Tue, 23 Jan 2018 07:30:58 +0000 (15:30 +0800)]
check feature bits when encoding objectstore_perf_stat_t

OS_PERF_STAT_NS feature bit is added. it's sharing the same bit with
QOS_DMC.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoclient: fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL 19957/head
huanwen ren [Tue, 16 Jan 2018 06:18:46 +0000 (14:18 +0800)]
client: fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL

fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL,
Because the original fuction does not have a global Lock to
ensure the atomicity of the lookup inode process,It eventually
caused an exception when the NFS-Ganesha FSAL module called
this interface in parallel,see the Bug report.

Fixes: http://tracker.ceph.com/issues/22683
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agotest/store_test: fix FTBFS as Sequencer is removed 20382/head
Kefu Chai [Fri, 9 Feb 2018 05:05:19 +0000 (13:05 +0800)]
test/store_test: fix FTBFS as Sequencer is removed

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20294 from rzarzynski/wip-bs-drop-std_function
Kefu Chai [Fri, 9 Feb 2018 02:45:24 +0000 (10:45 +0800)]
Merge pull request #20294 from rzarzynski/wip-bs-drop-std_function

os/bluestore: avoid overhead of std::function in blob_t.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19232 from socketpair/precision
Kefu Chai [Fri, 9 Feb 2018 02:44:27 +0000 (10:44 +0800)]
Merge pull request #19232 from socketpair/precision

mgr: increase time resolution of Commit/Apply OSD latencies.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18804 from majianpeng/bluestore-collection-prealloc
Kefu Chai [Fri, 9 Feb 2018 02:43:24 +0000 (10:43 +0800)]
Merge pull request #18804 from majianpeng/bluestore-collection-prealloc

os/bluestore: Prealloc memory avoid realloc in list_collection.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18494 from ifed01/wip-stupidalloc-fix2
Kefu Chai [Fri, 9 Feb 2018 02:42:43 +0000 (10:42 +0800)]
Merge pull request #18494 from ifed01/wip-stupidalloc-fix2

os/bluestore: do not assert if BlueFS rebalance is unable to allocate sufficient space

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18343 from shinobu-x/sk-remove-osdmap
Kefu Chai [Fri, 9 Feb 2018 02:41:50 +0000 (10:41 +0800)]
Merge pull request #18343 from shinobu-x/sk-remove-osdmap

mon/PGMap: Remove unnecessary header

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #19954 into master
Patrick Donnelly [Fri, 9 Feb 2018 02:17:15 +0000 (18:17 -0800)]
Merge PR #19954 into master

* refs/pull/19954/head:
test/encoding: refactor to avoid escaping shell magic
mds: minor refactor of SimpleLock
mds: track Capability in mempool
mds: move CInode container members to mempool
mds: move CDentry container members to mempool
mds: move CDir container members to mempool
mds: put MDSCacheObject compact_map in mempool
common: use size_t for object size
mds: convert to allocator agnostic string_view
mds: simplify initialization
compact_*: support mempool allocated containers

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoosd: PrimaryLogPG::do_osd_ops() uses md_config_cacher_t. 20320/head
Radoslaw Zarzynski [Mon, 5 Feb 2018 14:19:47 +0000 (15:19 +0100)]
osd: PrimaryLogPG::do_osd_ops() uses md_config_cacher_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20007 from mogeb/steady-clock-librbd
Jason Dillaman [Fri, 9 Feb 2018 00:20:21 +0000 (19:20 -0500)]
Merge pull request #20007 from mogeb/steady-clock-librbd

librbd: use steady clock to measure elapsed time in AioCompletion

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20008 from mogeb/steady-clock-tools-rbd
Jason Dillaman [Fri, 9 Feb 2018 00:20:07 +0000 (19:20 -0500)]
Merge pull request #20008 from mogeb/steady-clock-tools-rbd

tools/rbd: use steady clock in bencher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20218 from shun-s/wip-speedup-diskusage-resize
Jason Dillaman [Fri, 9 Feb 2018 00:19:52 +0000 (19:19 -0500)]
Merge pull request #20218 from shun-s/wip-speedup-diskusage-resize

librbd: speed up object map disk usage and resize

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20311 from Songweibin/wip-group-snap-ls
Jason Dillaman [Fri, 9 Feb 2018 00:19:35 +0000 (19:19 -0500)]
Merge pull request #20311 from Songweibin/wip-group-snap-ls

rbd: do not show title if there is no group snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20349 from trociny/wip-22932
Jason Dillaman [Fri, 9 Feb 2018 00:19:12 +0000 (19:19 -0500)]
Merge pull request #20349 from trociny/wip-22932

rbd-mirror: fix potential infinite loop when formatting status message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge PR #20310 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:30:04 +0000 (13:30 -0800)]
Merge PR #20310 into master

* refs/pull/20310/head:
qa: adjust cephfs full test for kclient

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20148 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:26 +0000 (13:05 -0800)]
Merge PR #20148 into master

* refs/pull/20148/head:
mds: reset connection's priv when marking down connection
mds: fix session reference leak

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20155 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:19 +0000 (13:05 -0800)]
Merge PR #20155 into master

* refs/pull/20155/head:
osdc/Journaler: make sure flush() writes enough data

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20190 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:12 +0000 (13:05 -0800)]
Merge PR #20190 into master

* refs/pull/20190/head:
mon: allow removal of tier of ec overwritable pool

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
7 years agoMerge PR #20200 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:05 +0000 (13:05 -0800)]
Merge PR #20200 into master

* refs/pull/20200/head:
client: add cap_dirtier_uid/gid to CapSnap

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge PR #20246 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:04:54 +0000 (13:04 -0800)]
Merge PR #20246 into master

* refs/pull/20246/head:
mds: remove extra 0x in ino prints
mds: print inode number not CInode ptr

7 years agomon/OSDMonitor: accept crush_device_class in 'osd new' json input 19939/head
Sage Weil [Fri, 12 Jan 2018 23:10:11 +0000 (17:10 -0600)]
mon/OSDMonitor: accept crush_device_class in 'osd new' json input

If provided, set the OSD device_class at OSD creation time.  This is
simpler than writing a file that the OSD has to read in and use to
set its initial device class, and also avoids a bit of sticky state
at the OSD that will make it keep trying to reset its device class on
startup if it ever gets cleared.

Note that we now ignore json input fields we don't understand, so remove
a test case.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agodoc/mgr: remove none user-facing code from doc 20372/head
Kefu Chai [Thu, 8 Feb 2018 17:47:35 +0000 (01:47 +0800)]
doc/mgr: remove none user-facing code from doc

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/test_admin_socket_output: allow different asok directory 20371/head
Kefu Chai [Thu, 8 Feb 2018 11:09:25 +0000 (19:09 +0800)]
test/test_admin_socket_output: allow different asok directory

the asok files are not necessary located in ./out, actually, they are
put in $TMPDIR/ceph-asok.$random_stuff .

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/admin_socket_output: no need to create a copy of fs::path
Kefu Chai [Thu, 8 Feb 2018 11:08:36 +0000 (19:08 +0800)]
test/admin_socket_output: no need to create a copy of fs::path

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20367 from ceph/simple-custom-cluster
Alfredo Deza [Thu, 8 Feb 2018 13:48:41 +0000 (08:48 -0500)]
Merge pull request #20367 from ceph/simple-custom-cluster

ceph-volume: adds custom cluster name support to simple

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: use a custom cluster name in simple functional tests 20367/head
Andrew Schoen [Thu, 8 Feb 2018 13:09:57 +0000 (07:09 -0600)]
ceph-volume: use a custom cluster name in simple functional tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20305 from xiexingguo/wip-more-balancer-fixes
Xie Xingguo [Thu, 8 Feb 2018 04:30:46 +0000 (12:30 +0800)]
Merge pull request #20305 from xiexingguo/wip-more-balancer-fixes

pybind/mgr/balancer: more specific command outputs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20355 from luomuyao/typo
Xie Xingguo [Thu, 8 Feb 2018 03:41:48 +0000 (11:41 +0800)]
Merge pull request #20355 from luomuyao/typo

rgw: fix a typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agotest/encoding: refactor to avoid escaping shell magic 19954/head
Patrick Donnelly [Thu, 8 Feb 2018 00:03:48 +0000 (16:03 -0800)]
test/encoding: refactor to avoid escaping shell magic

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: minor refactor of SimpleLock
Patrick Donnelly [Wed, 24 Jan 2018 23:32:18 +0000 (15:32 -0800)]
mds: minor refactor of SimpleLock

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: track Capability in mempool
Patrick Donnelly [Wed, 24 Jan 2018 18:34:20 +0000 (10:34 -0800)]
mds: track Capability in mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>