]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoosd: write "debug dump_missing" output to stdout 21960/head
Коренберг Марк [Sat, 12 May 2018 17:04:00 +0000 (22:04 +0500)]
osd: write "debug dump_missing" output to stdout

Output was sent to stderr by a mistake. Now it goes to stdout.

Signed-off-by: Коренберг Маркr <socketpair@gmail.com>
7 years agoMerge pull request #21804 from dillaman/wip-24000
Kefu Chai [Sat, 12 May 2018 11:20:24 +0000 (19:20 +0800)]
Merge pull request #21804 from dillaman/wip-24000

osdc: self-managed snapshot helper should catch decode exception

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #21929 from majianpeng/fio-ceph-objectstore
Kefu Chai [Sat, 12 May 2018 11:18:50 +0000 (19:18 +0800)]
Merge pull request #21929 from majianpeng/fio-ceph-objectstore

test/fio: add option single_pool_mode in ceph-bluestore.fio

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #21905 from jcsp/wip-24022
Kefu Chai [Sat, 12 May 2018 11:15:57 +0000 (19:15 +0800)]
Merge pull request #21905 from jcsp/wip-24022

osd: write "bench" output to stdout

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21950 from liewegas/wip-23899
Kefu Chai [Sat, 12 May 2018 11:10:56 +0000 (19:10 +0800)]
Merge pull request #21950 from liewegas/wip-23899

osd: clean up smart probe

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21940 from dmick/wip-remove-cephd
Kefu Chai [Sat, 12 May 2018 11:08:14 +0000 (19:08 +0800)]
Merge pull request #21940 from dmick/wip-remove-cephd

cmake: Remove embedded 'cephd' code

Reviewed-by: Bassam Tabbara <Bassam.Tabbara@Quantum.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #21615 into master
Patrick Donnelly [Fri, 11 May 2018 21:57:54 +0000 (14:57 -0700)]
Merge PR #21615 into master

* refs/pull/21615/head:
ceph-fuse: Delete inode's bufferhead was in Tx state would lead a assert fail

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #21769 into master
Patrick Donnelly [Fri, 11 May 2018 21:57:48 +0000 (14:57 -0700)]
Merge PR #21769 into master

* refs/pull/21769/head:
mds: properly reconnect client caps after loading inodes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21883 into master
Patrick Donnelly [Fri, 11 May 2018 21:57:42 +0000 (14:57 -0700)]
Merge PR #21883 into master

* refs/pull/21883/head:
mds: tighten conditions of calling rejoin_gather_finish()
mds: avoid calling rejoin_gather_finish() two times successively

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21923 into master
Patrick Donnelly [Fri, 11 May 2018 21:57:36 +0000 (14:57 -0700)]
Merge PR #21923 into master

* refs/pull/21923/head:
mds: set could_consume to false when no purge queue item actually executed

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoosd: clean up smart probe code a bit 21950/head
Sage Weil [Fri, 11 May 2018 20:21:46 +0000 (15:21 -0500)]
osd: clean up smart probe code a bit

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoRemove embedded 'cephd' code 21940/head
Dan Mick [Wed, 9 May 2018 02:24:17 +0000 (19:24 -0700)]
Remove embedded 'cephd' code

Signed-off-by: Dan Mick <dan.mick@redhat.com>
7 years agoMerge pull request #21942 from tchaikov/wip-qa-ceph-disk-no-mon-config
Sage Weil [Fri, 11 May 2018 18:01:38 +0000 (13:01 -0500)]
Merge pull request #21942 from tchaikov/wip-qa-ceph-disk-no-mon-config

qa/workunits/ceph-disk: --no-mon-config

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21945 from tchaikov/wip-dashboard-errno
Kefu Chai [Fri, 11 May 2018 17:46:50 +0000 (01:46 +0800)]
Merge pull request #21945 from tchaikov/wip-dashboard-errno

mgr/dashboard: set errno via the parent class

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #21947 from yuriw/wip-yuriw-crontab
David Galloway [Fri, 11 May 2018 17:31:37 +0000 (13:31 -0400)]
Merge pull request #21947 from yuriw/wip-yuriw-crontab

qa/tests: added client-upgrade-luminous suit

7 years agoqa/tests: added client-upgrade-luminous suit 21947/head
Yuri Weinstein [Fri, 11 May 2018 17:18:27 +0000 (10:18 -0700)]
qa/tests: added client-upgrade-luminous suit

Fixes https://tracker.ceph.com/issues/24021
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agomgr/dashboard: set errno via the parent class 21945/head
Kefu Chai [Fri, 11 May 2018 16:42:46 +0000 (00:42 +0800)]
mgr/dashboard: set errno via the parent class

update the test accordingly. see also rados.Error.__str__()

Signed-off-by: Ricardo Dias <rdias@suse.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21524 from dillaman/wip-23517
Jason Dillaman [Fri, 11 May 2018 15:23:02 +0000 (11:23 -0400)]
Merge pull request #21524 from dillaman/wip-23517

test/librados_test_stub: deterministically load cls shared libraries

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21415 from ErwanAliasr1/evelu-cephdisk
Kefu Chai [Fri, 11 May 2018 14:32:22 +0000 (22:32 +0800)]
Merge pull request #21415 from ErwanAliasr1/evelu-cephdisk

ceph-disk: get_partition_dev() should fail until get_dev_path(partnam…

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/workunits/ceph-disk: --no-mon-config 21942/head
Kefu Chai [Fri, 11 May 2018 13:06:51 +0000 (21:06 +0800)]
qa/workunits/ceph-disk: --no-mon-config

port a095ec8b to the qa/workunits

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: fix osd smart data collection segment fault issue. 21691/head
Gu Zhongyan [Fri, 27 Apr 2018 10:20:02 +0000 (18:20 +0800)]
osd: fix osd smart data collection segment fault issue.
output.read_fd() could return zero length. it needs to
be handled gracefully.

always call invoke join() if spawn() is successfully returned.
otherwise there will be assert failure in ~SubProcess().

Fixes: http://tracker.ceph.com/issues/23899
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
7 years agoMerge pull request #21292 from zy751713126/snapshot_count
Jason Dillaman [Thu, 10 May 2018 18:55:38 +0000 (14:55 -0400)]
Merge pull request #21292 from zy751713126/snapshot_count

rbd: add snapshot count in rbd info

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd/info: add snapshot count in rbd info
zhengyin [Mon, 9 Apr 2018 02:50:38 +0000 (10:50 +0800)]
rbd/info: add snapshot count in rbd info

Signed-off-by: Zheng Yin <zhengyin@huayun.com>
7 years agotest/fio: add option single_pool_mode in ceph-bluestore.fio 21929/head
Jianpeng Ma [Thu, 10 May 2018 15:56:04 +0000 (23:56 +0800)]
test/fio: add option single_pool_mode in ceph-bluestore.fio

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoceph_release: nautilus
Sage Weil [Thu, 10 May 2018 17:19:22 +0000 (12:19 -0500)]
ceph_release: nautilus

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge remote-tracking branch 'gh/mimic'
Sage Weil [Thu, 10 May 2018 17:18:29 +0000 (12:18 -0500)]
Merge remote-tracking branch 'gh/mimic'

7 years agoceph_release: we are an rc now
Sage Weil [Thu, 10 May 2018 17:16:44 +0000 (12:16 -0500)]
ceph_release: we are an rc now

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21930 from dillaman/wip-rbd-backports-mimic
Jason Dillaman [Thu, 10 May 2018 15:27:43 +0000 (11:27 -0400)]
Merge pull request #21930 from dillaman/wip-rbd-backports-mimic

rbd: backport of mimic bug fixes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21893 from cbodley/wip-rgw-req-state-time
Casey Bodley [Thu, 10 May 2018 14:51:47 +0000 (10:51 -0400)]
Merge pull request #21893 from cbodley/wip-rgw-req-state-time

rgw: use coarse_real_clock for req_state::time

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #21931 from yuriw/wip-yuriw-fix-mimic-subset
Kefu Chai [Thu, 10 May 2018 14:45:26 +0000 (22:45 +0800)]
Merge pull request #21931 from yuriw/wip-yuriw-fix-mimic-subset

tests/qa - fix mimic subset for nightlies

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agotests/qa - fix mimic subset for nightlies 21931/head
Yuri Weinstein [Thu, 10 May 2018 14:39:51 +0000 (07:39 -0700)]
tests/qa - fix mimic subset for nightlies

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #21680 from cbodley/wip-rm-replica-log
Casey Bodley [Thu, 10 May 2018 14:26:55 +0000 (10:26 -0400)]
Merge pull request #21680 from cbodley/wip-rm-replica-log

rgw: remove all traces of cls replica_log

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoRevert "stop.sh: use --no-mon-config when trying to unmap rbd devices" 21930/head
Jason Dillaman [Wed, 9 May 2018 19:01:18 +0000 (15:01 -0400)]
Revert "stop.sh: use --no-mon-config when trying to unmap rbd devices"

This reverts commit 6c722cd5f3f829ccf14280e7e36387bafd819c7a.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3c6b01574766ca128818461d6630866cc0c0405b)

7 years agorbd: don't load config overrides from monitor initially
Jason Dillaman [Wed, 9 May 2018 16:37:22 +0000 (12:37 -0400)]
rbd: don't load config overrides from monitor initially

The overrides will be loaded when we connect to the cluster via librados
and the current approach prevents running 'rbd help' without a running
cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 46eafdabde57736d2a8b63f55cab94461885a957)

7 years agorbd-mirror: ensure remote demotion is replayed locally
Jason Dillaman [Fri, 4 May 2018 15:14:34 +0000 (11:14 -0400)]
rbd-mirror: ensure remote demotion is replayed locally

The bootstrap process cannot immediately quit if it notices the remote
image is not primary. Instead, it needs to continue if the local image is
still chained to the remote.

Fixes: http://tracker.ceph.com/issues/24009
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d35bc94319c6fa267e973e533f4591568289ee96)

7 years agorbd-mirror: fix potential race between image sync and shut down
Jason Dillaman [Fri, 4 May 2018 13:24:43 +0000 (09:24 -0400)]
rbd-mirror: fix potential race between image sync and shut down

Fixes: http://tracker.ceph.com/issues/24008
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4f2dbcefc5e3547926b8d34135a808266bd059b8)

7 years agorbd-mirror: ensure instance replayer is stoped before destructing
Jason Dillaman [Fri, 4 May 2018 13:23:27 +0000 (09:23 -0400)]
rbd-mirror: ensure instance replayer is stoped before destructing

Fixes: http://tracker.ceph.com/issues/24008
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 9ba94f303072374b5c7c9265c3a493fddce2f8ca)

7 years agoMerge pull request #21831 from tchaikov/wip-23966
Kefu Chai [Thu, 10 May 2018 10:55:42 +0000 (18:55 +0800)]
Merge pull request #21831 from tchaikov/wip-23966

osdc: invoke notify finish context on linger commit failure

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21898 from adamemerson/wip-fedora28
Kefu Chai [Thu, 10 May 2018 10:54:38 +0000 (18:54 +0800)]
Merge pull request #21898 from adamemerson/wip-fedora28

src: Eliminate new warnings in Fedora 28

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21861 from adamemerson/wip-clangtasm
Kefu Chai [Thu, 10 May 2018 10:52:12 +0000 (18:52 +0800)]
Merge pull request #21861 from adamemerson/wip-clangtasm

osd,mon,pybind: Make able to compile with Clang

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21912 from dillaman/wip-24064
Mykola Golub [Thu, 10 May 2018 10:46:33 +0000 (13:46 +0300)]
Merge pull request #21912 from dillaman/wip-24064

rbd: disk-usage can now optionally compute exact on-disk usage

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21910 from dillaman/wip-rbd-help
Mykola Golub [Thu, 10 May 2018 10:45:35 +0000 (13:45 +0300)]
Merge pull request #21910 from dillaman/wip-rbd-help

rbd: don't load config overrides from monitor initially

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21823 from dillaman/wip-24009
Mykola Golub [Thu, 10 May 2018 10:44:55 +0000 (13:44 +0300)]
Merge pull request #21823 from dillaman/wip-24009

rbd-mirror: ensure remote demotion is replayed locally

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21817 from dillaman/wip-24008
Mykola Golub [Thu, 10 May 2018 10:44:24 +0000 (13:44 +0300)]
Merge pull request #21817 from dillaman/wip-24008

rbd-mirror: fixed potential crashes during shut down

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21853 from rishabh-d-dave/volclient-keyargs-for-all-exceptions
Kefu Chai [Thu, 10 May 2018 09:30:22 +0000 (17:30 +0800)]
Merge pull request #21853 from rishabh-d-dave/volclient-keyargs-for-all-exceptions

rados.pyx: make all exceptions accept keyword arguments

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21886 from jcsp/wip-no-install-hello
Kefu Chai [Thu, 10 May 2018 09:25:33 +0000 (17:25 +0800)]
Merge pull request #21886 from jcsp/wip-no-install-hello

cmake: do not install `hello` demo module

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21782 from wido/mgr-telegraf
Kefu Chai [Thu, 10 May 2018 09:24:46 +0000 (17:24 +0800)]
Merge pull request #21782 from wido/mgr-telegraf

mgr/telegraf: Telegraf module for Ceph Mgr

Reveiwed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomds: set could_consume to false when no purge queue item actually executed 21923/head
Xuehan Xu [Thu, 10 May 2018 04:22:24 +0000 (12:22 +0800)]
mds: set could_consume to false when no purge queue item actually executed

Fixes: http://tracker.ceph.com/issues/24073
Signed-off-by: Xuehan Xu <xuxuehan@360.cn>
7 years agoMerge pull request #21918 from smithfarm/wip-24003-mimic
Nathan Cutler [Thu, 10 May 2018 05:15:34 +0000 (07:15 +0200)]
Merge pull request #21918 from smithfarm/wip-24003-mimic

script: build-integration-branch: avoid Unicode error

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21891 from cbodley/wip-cmake-crypto-plugins
Kefu Chai [Thu, 10 May 2018 03:01:55 +0000 (11:01 +0800)]
Merge pull request #21891 from cbodley/wip-cmake-crypto-plugins

cmake: move crypto_plugins target

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoRevert "stop.sh: use --no-mon-config when trying to unmap rbd devices" 21910/head
Jason Dillaman [Wed, 9 May 2018 19:01:18 +0000 (15:01 -0400)]
Revert "stop.sh: use --no-mon-config when trying to unmap rbd devices"

This reverts commit 6c722cd5f3f829ccf14280e7e36387bafd819c7a.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21770 from zy751713126/remove-redundant-code
Jason Dillaman [Thu, 10 May 2018 01:24:55 +0000 (18:24 -0700)]
Merge pull request #21770 from zy751713126/remove-redundant-code

rbd: add the judgment of resizing the image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21914 from cbodley/wip-common-async
Casey Bodley [Wed, 9 May 2018 20:32:24 +0000 (16:32 -0400)]
Merge pull request #21914 from cbodley/wip-common-async

common: add a generic async Completion for use with boost::asio

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoscript: build-integration-branch: avoid Unicode error 21918/head
Nathan Cutler [Thu, 3 May 2018 20:42:04 +0000 (22:42 +0200)]
script: build-integration-branch: avoid Unicode error

When run on PRs that have non-ASCII characters in their titles, the script
fails like this when run in a non UTF-8 environment:

UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in
position 651: ordinal not in range(256)

Since failing like that is not useful, avoid the error by forcing ASCII
encoding and filtering out any non-ASCII characters.

Fixes: http://tracker.ceph.com/issues/24003
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 6dd31fdbec43e37bece24c0de886d2c4083901c8)

7 years agoMerge pull request #21909 from neha-ojha/wip-fix-powercycle
Josh Durgin [Wed, 9 May 2018 18:37:32 +0000 (11:37 -0700)]
Merge pull request #21909 from neha-ojha/wip-fix-powercycle

qa/suites: set osd_pg_log_dups_tracked in cfuse_workunit_suites_fsync.yaml

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agorgw: Silence sign comparison warnings 21898/head
Adam C. Emerson [Wed, 9 May 2018 18:19:50 +0000 (14:19 -0400)]
rgw: Silence sign comparison warnings

Since we're iterating with a size_t, we may as well compare against one.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agocommon: add an async SharedMutex 21914/head
Casey Bodley [Fri, 30 Mar 2018 03:53:40 +0000 (23:53 -0400)]
common: add an async SharedMutex

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: forward_handler() for handlers with move-only args
Casey Bodley [Tue, 10 Apr 2018 22:27:50 +0000 (18:27 -0400)]
common: forward_handler() for handlers with move-only args

executors will always call the handler's lvalue overload of operator(),
so forward_handler() is required to wrap calls to bind_handler() with
move-only argument types. Completion uses this to forward all of its
CompletionHandlers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add a generic async Completion interface
Casey Bodley [Sat, 17 Mar 2018 03:25:55 +0000 (23:25 -0400)]
common: add a generic async Completion interface

a generic Completion for storing asio completion handlers for deferred
execution

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agobuild: Remove -Wno-invalid-offsetof
Adam C. Emerson [Wed, 9 May 2018 02:34:44 +0000 (22:34 -0400)]
build: Remove -Wno-invalid-offsetof

Since C++17 relaxed the rules for using offsetof, this is no longer needed.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotools: Do not memset uuid_d
Adam C. Emerson [Wed, 9 May 2018 01:54:21 +0000 (21:54 -0400)]
tools: Do not memset uuid_d

It is perfectly able to default initialize itself.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotest/rbd/fsx: Disable overflow-format warning
Adam C. Emerson [Wed, 9 May 2018 01:25:28 +0000 (21:25 -0400)]
test/rbd/fsx: Disable overflow-format warning

No return type or other way to react to it.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotest/libcephfs: Expand buffer slightly
Adam C. Emerson [Wed, 9 May 2018 01:03:29 +0000 (21:03 -0400)]
test/libcephfs: Expand buffer slightly

So the snprintf output isn't truncated.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: There is no point in const return values
Adam C. Emerson [Tue, 8 May 2018 23:54:50 +0000 (19:54 -0400)]
rgw: There is no point in const return values

Pointer-to-const or reference-to-const yes. Const value, no.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Catch exceptions at const references
Adam C. Emerson [Tue, 8 May 2018 23:53:19 +0000 (19:53 -0400)]
rgw: Catch exceptions at const references

/Never/ by value.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Remove extra 'const' from cast
Adam C. Emerson [Tue, 8 May 2018 23:43:33 +0000 (19:43 -0400)]
rgw: Remove extra 'const' from cast

Casting to pointer-to-const makes sense. Casting to a const
value (even a const pointer) doesn't.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agordma: Silence qualifier warnings
Adam C. Emerson [Tue, 8 May 2018 23:29:41 +0000 (19:29 -0400)]
rdma: Silence qualifier warnings

No point in reinterpret_casting something const anyway, you can always
assign non-const to const.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agomsg/rdma/infiniband: Silence memset warning
Adam C. Emerson [Tue, 8 May 2018 23:26:28 +0000 (19:26 -0400)]
msg/rdma/infiniband: Silence memset warning

Though it may be better in the long-run to replace the malloc-like
interface with an Allocator type interface.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Exceptions should be caught by const reference
Adam C. Emerson [Tue, 8 May 2018 23:23:02 +0000 (19:23 -0400)]
rgw: Exceptions should be caught by const reference

/Not/ by value.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoFuseStore: Expand buffers to prevent overflow
Adam C. Emerson [Tue, 8 May 2018 22:58:12 +0000 (18:58 -0400)]
FuseStore: Expand buffers to prevent overflow

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoperfglue: Silence truncation warning
Adam C. Emerson [Tue, 8 May 2018 21:19:38 +0000 (17:19 -0400)]
perfglue: Silence truncation warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agomount: Enlarge buffer to fix overflow warning
Adam C. Emerson [Tue, 8 May 2018 20:50:02 +0000 (16:50 -0400)]
mount: Enlarge buffer to fix overflow warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agomon: Remove unused variable
Adam C. Emerson [Tue, 8 May 2018 20:47:38 +0000 (16:47 -0400)]
mon: Remove unused variable

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoblkdev: Check return of snprintf and error on truncation
Adam C. Emerson [Tue, 8 May 2018 20:42:56 +0000 (16:42 -0400)]
blkdev: Check return of snprintf and error on truncation

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoblkdev: Get rid of get_device_by_uuid
Adam C. Emerson [Tue, 8 May 2018 20:31:25 +0000 (16:31 -0400)]
blkdev: Get rid of get_device_by_uuid

This function's interface is bad, in that it takes char*s with no
sizes. Also nobody calls it.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotest: Enlarge a few buffers
Adam C. Emerson [Mon, 7 May 2018 20:36:42 +0000 (16:36 -0400)]
test: Enlarge a few buffers

To get rid of overflow warnings.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agomds: Do not memset fnode_t
Adam C. Emerson [Mon, 7 May 2018 20:24:17 +0000 (16:24 -0400)]
mds: Do not memset fnode_t

fnode_t can initialize itself.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoauto: Catch exceptions by const reference
Adam C. Emerson [Mon, 7 May 2018 20:13:18 +0000 (16:13 -0400)]
auto: Catch exceptions by const reference

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoclient: Do not memset frag_info_t and inode_t
Adam C. Emerson [Mon, 7 May 2018 20:11:12 +0000 (16:11 -0400)]
client: Do not memset frag_info_t and inode_t

They do a perfectly good job of initializing themselves.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agotest: Increase buffer to prevent possible truncation
Adam C. Emerson [Mon, 7 May 2018 20:03:21 +0000 (16:03 -0400)]
test: Increase buffer to prevent possible truncation

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Fix uninitialized value warning
Adam C. Emerson [Mon, 7 May 2018 20:00:45 +0000 (16:00 -0400)]
rgw: Fix uninitialized value warning

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agodoc: fix iscsi target name when configuring target
Venky Shankar [Wed, 9 May 2018 15:07:19 +0000 (20:37 +0530)]
doc: fix iscsi target name when configuring target

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 3b2d739e4c12120d27fdaf6b0af0e0de5bb972f3)

7 years agoMerge pull request #21906 from vshankar/iscsi-target-cli-typo
Jason Dillaman [Wed, 9 May 2018 17:17:51 +0000 (10:17 -0700)]
Merge pull request #21906 from vshankar/iscsi-target-cli-typo

doc: fix iscsi target name when configuring target

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: disk-usage can now optionally compute exact on-disk usage 21912/head
Jason Dillaman [Wed, 9 May 2018 17:13:56 +0000 (13:13 -0400)]
rbd: disk-usage can now optionally compute exact on-disk usage

Fixes: http://tracker.ceph.com/issues/24064
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: don't load config overrides from monitor initially
Jason Dillaman [Wed, 9 May 2018 16:37:22 +0000 (12:37 -0400)]
rbd: don't load config overrides from monitor initially

The overrides will be loaded when we connect to the cluster via librados
and the current approach prevents running 'rbd help' without a running
cluster.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20974 from XiangxiangMeng/rgw-policy-keyword-modify
Adam C. Emerson [Wed, 9 May 2018 16:28:22 +0000 (12:28 -0400)]
Merge pull request #20974 from XiangxiangMeng/rgw-policy-keyword-modify

rgw: policy: modify some operation permission keyword

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agomon: pool-ops against non-existent pools should return error 21804/head
Jason Dillaman [Wed, 9 May 2018 15:45:51 +0000 (11:45 -0400)]
mon: pool-ops against non-existent pools should return error

Fixes: http://tracker.ceph.com/issues/24000
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosdc: self-managed snapshot helper should catch decode exception
Jason Dillaman [Thu, 3 May 2018 19:23:44 +0000 (15:23 -0400)]
osdc: self-managed snapshot helper should catch decode exception

Fixes: http://tracker.ceph.com/issues/24000
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc: fix iscsi target name when configuring target 21906/head
Venky Shankar [Wed, 9 May 2018 15:07:19 +0000 (20:37 +0530)]
doc: fix iscsi target name when configuring target

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agoMerge pull request #21788 from cbodley/wip-22914
Casey Bodley [Wed, 9 May 2018 15:06:40 +0000 (11:06 -0400)]
Merge pull request #21788 from cbodley/wip-22914

rgw: bucket sync status improvements, part 1

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #21855 from votdev/fix_rgw_backend_mimic
Tatjana Dehler [Wed, 9 May 2018 14:59:32 +0000 (16:59 +0200)]
Merge pull request #21855 from votdev/fix_rgw_backend_mimic

mimic: mgr/dashboard: Refactor RGW backend

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
7 years agoMerge pull request #21851 from votdev/improve_error_panel
Tatjana Dehler [Wed, 9 May 2018 14:49:03 +0000 (16:49 +0200)]
Merge pull request #21851 from votdev/improve_error_panel

mgr/dashboard: Improve error panel

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoceph-disk: get_partition_dev() should fail until get_dev_path(partname) is populated 21415/head
Erwan Velu [Fri, 13 Apr 2018 10:32:22 +0000 (12:32 +0200)]
ceph-disk: get_partition_dev() should fail until get_dev_path(partname) is populated

get_partition_dev() is a function called to get a block device path.

The @retry decorator implements a timeout mecanism as it exist a race
between the partition creation command and the actual presence of the
partition.

This function have a semantic issue.
The function is asked if /dev/sda6 exists but check if /sys/block/sda/sda6 exists.
Once /sys/block/sda/sda6 is populated within the timeout, the function returns "/dev/sda6".
But this doesn't check if "/dev/sda6" really exists, so a function
using this value fall into a race condition and fails too.

We do have this case inside the CI where timing are very variable
regarding the workload and VM's performance and even sometimes nasted VMs.

This patch offer to double-check before returning that the actual /dev/
entry actually exist once the BLOCKDIR (/sys) is populated. If not, the
@retry is triggered to let some time resolution this temporary situation.

If this state is permanent, an explicit error message is reported like :
    /dev/sdb1 is not populated while /sys/block/sdb has it

Signed-off-by: Erwan Velu <erwan@redhat.com>
7 years agoosd: write "bench" output to stdout 21905/head
John Spray [Wed, 9 May 2018 14:19:18 +0000 (15:19 +0100)]
osd: write "bench" output to stdout

...not stderr.  Seems more reasonable as this
command is essentially feeding back a measurement result,
rather than just commenting on its status

Fixes: http://tracker.ceph.com/issues/24022
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #21835 from tchaikov/mimic-23921
Kefu Chai [Wed, 9 May 2018 14:08:52 +0000 (22:08 +0800)]
Merge pull request #21835 from tchaikov/mimic-23921

mimic: crush, osd: handle multiple parents properly when applying pg upmaps

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomgr/telegraf: Telegraf module for Ceph Mgr 21782/head
Wido den Hollander [Mon, 26 Mar 2018 11:47:45 +0000 (13:47 +0200)]
mgr/telegraf: Telegraf module for Ceph Mgr

Telegraf is a agent for collecting and reporting metrics.

It has multiple inputs and can send data to various outputs like
for example InfluxDB or ElasticSearch.

This module works by using the socket_listener of Telegraf and can
send data over UDP, TCP and a local Unix Socket.

Signed-off-by: Wido den Hollander <wido@42on.com>
7 years agorbd-mirror: ensure remote demotion is replayed locally 21823/head
Jason Dillaman [Fri, 4 May 2018 15:14:34 +0000 (11:14 -0400)]
rbd-mirror: ensure remote demotion is replayed locally

The bootstrap process cannot immediately quit if it notices the remote
image is not primary. Instead, it needs to continue if the local image is
still chained to the remote.

Fixes: http://tracker.ceph.com/issues/24009
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocmake: move crypto_plugins target 21891/head
Casey Bodley [Tue, 8 May 2018 18:22:42 +0000 (14:22 -0400)]
cmake: move crypto_plugins target

the crypto_plugins target was defined in
src/crypto/isa-l/CMakeLists.txt, but this is only included
if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))

moving it out of the if() block allows the os target to depend on it
even if no plugins are built

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoosdc: guard op->on_notify_finish with lock 21831/head
Kefu Chai [Sun, 6 May 2018 03:11:16 +0000 (11:11 +0800)]
osdc: guard op->on_notify_finish with lock

Fixes: http://tracker.ceph.com/issues/23966
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c16371965cc785f2e2b87d8c6684854fa2de65e1)

7 years agoMerge pull request #21834 from tchaikov/mimic-23966
Kefu Chai [Wed, 9 May 2018 13:03:50 +0000 (21:03 +0800)]
Merge pull request #21834 from tchaikov/mimic-23966

mimic: osdc: guard op->on_notify_finish with lock

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