]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoMerge PR #23370 into master
Patrick Donnelly [Mon, 6 Aug 2018 18:43:09 +0000 (11:43 -0700)]
Merge PR #23370 into master

* refs/pull/23370/head:
client: check for unmounted condition before printing debug output

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge pull request #23387 from jcsp/wip-mgr-rw
John Spray [Mon, 6 Aug 2018 16:26:49 +0000 (17:26 +0100)]
Merge pull request #23387 from jcsp/wip-mgr-rw

mgr: fix permissions on `balancer execute`

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23205 from jcsp/wip-devicehealth-cleanup
John Spray [Mon, 6 Aug 2018 16:26:22 +0000 (17:26 +0100)]
Merge pull request #23205 from jcsp/wip-devicehealth-cleanup

mgr/devicehealth: clean up error handling

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23443 from alfredodeza/wip-rm24970
Andrew Schoen [Mon, 6 Aug 2018 16:02:58 +0000 (16:02 +0000)]
Merge pull request #23443 from alfredodeza/wip-rm24970

ceph-volume: `lvm batch` documentation and man page updates

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23347 from votdev/bug_25190
Ricardo Marques [Mon, 6 Aug 2018 15:41:37 +0000 (16:41 +0100)]
Merge pull request #23347 from votdev/bug_25190

mgr/dashboard: RestClient can't handle ProtocolError exceptions

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #23410 from ifed01/wip-ifed-fio-new-param
Igor Fedotov [Mon, 6 Aug 2018 14:56:12 +0000 (17:56 +0300)]
Merge pull request #23410 from ifed01/wip-ifed-fio-new-param

test/fio: new option to control file preallocation.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23404 from badone/wip-daemon_health_metrics-race
Kefu Chai [Mon, 6 Aug 2018 14:52:37 +0000 (22:52 +0800)]
Merge pull request #23404 from badone/wip-daemon_health_metrics-race

mgr/MgrClient: Protect daemon_health_metrics

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #23377 from dzafman/wip-24875
Kefu Chai [Mon, 6 Aug 2018 14:50:44 +0000 (22:50 +0800)]
Merge pull request #23377 from dzafman/wip-24875

osd: do_sparse_read(): Verify checksum earlier so we will try to repair

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23361 from smithfarm/wip-install-deps-with-seastar
Kefu Chai [Mon, 6 Aug 2018 14:49:44 +0000 (22:49 +0800)]
Merge pull request #23361 from smithfarm/wip-install-deps-with-seastar

build/ops: install-deps.sh: refrain from installing/using lsb_release, and other cleanup

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23285 from tspmelo/wip-package-lock
Kefu Chai [Mon, 6 Aug 2018 14:48:52 +0000 (22:48 +0800)]
Merge pull request #23285 from tspmelo/wip-package-lock

mgr/dashboard: Add package-lock.json

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge PR #22433 into master
Sage Weil [Mon, 6 Aug 2018 13:57:03 +0000 (08:57 -0500)]
Merge PR #22433 into master

* refs/pull/22433/head:
common/config: Add description to (near)full ratio settings

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc/man/ceph-volume add batch information 23443/head
Alfredo Deza [Mon, 6 Aug 2018 12:52:31 +0000 (08:52 -0400)]
doc/man/ceph-volume add batch information

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agomgr/devicehealth: improve error handling 23205/head
John Spray [Tue, 24 Jul 2018 12:48:26 +0000 (08:48 -0400)]
mgr/devicehealth: improve error handling

Avoid catch-all exception handlers, especially
ones that just `pass`

When catching RADOS object not found type errors,
catch specifically those, and make sure we're still
logging any actual unexpected IO errors from RADOS.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr/devicehealth: style/whitespace cleanup
John Spray [Tue, 24 Jul 2018 12:14:23 +0000 (08:14 -0400)]
mgr/devicehealth: style/whitespace cleanup

We don't usually do gratuitious whitespace commits,
but for the python code it's worthwhile as it allows
smart editors to show us real problems without them
getting lost in the style noise.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agodoc/ceph-volume include batch doc in the toc tree
Alfredo Deza [Fri, 3 Aug 2018 20:19:41 +0000 (16:19 -0400)]
doc/ceph-volume include batch doc in the toc tree

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agodoc/ceph-volume decument batch reporting and bluestore support
Alfredo Deza [Fri, 3 Aug 2018 20:19:12 +0000 (16:19 -0400)]
doc/ceph-volume decument batch reporting and bluestore support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23316 from votdev/bug_25090
Laura Paduano [Mon, 6 Aug 2018 11:15:34 +0000 (13:15 +0200)]
Merge pull request #23316 from votdev/bug_25090

mgr/dashboard: Datatable error panel blinking on page loading

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #22735 from votdev/bug_24677
Sebastian Wagner [Mon, 6 Aug 2018 09:06:24 +0000 (11:06 +0200)]
Merge pull request #22735 from votdev/bug_24677

mgr/dashboard: RGW proxy can't handle self-signed SSL certificates

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
6 years agoMerge pull request #23310 from joscollin/wip-fix-rbd-doc-urls
Jos Collin [Mon, 6 Aug 2018 01:40:49 +0000 (07:10 +0530)]
Merge pull request #23310 from joscollin/wip-fix-rbd-doc-urls

doc: fix the broken urls

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge pull request #23424 from tchaikov/wip-fix-FTBFS-clang
Kefu Chai [Sun, 5 Aug 2018 14:35:59 +0000 (22:35 +0800)]
Merge pull request #23424 from tchaikov/wip-fix-FTBFS-clang

osd: make OSD::HEARTBEAT_MAX_CONN inline

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #23423 from ctriple/master
Kefu Chai [Sat, 4 Aug 2018 15:22:09 +0000 (23:22 +0800)]
Merge pull request #23423 from ctriple/master

doc/start: fix kube-helm.rst typo: docuiment -> document

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoosd: make OSD::HEARTBEAT_MAX_CONN inline 23424/head
Kefu Chai [Sat, 4 Aug 2018 14:23:55 +0000 (22:23 +0800)]
osd: make OSD::HEARTBEAT_MAX_CONN inline

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/start: fix kube-helm.rst typo: docuiment -> document 23423/head
Zhou Peng [Thu, 2 Aug 2018 09:19:38 +0000 (17:19 +0800)]
doc/start: fix kube-helm.rst typo: docuiment -> document

Signed-off-by: Zhou Peng <p@ctriple.cn>
6 years agoMerge pull request #23411 from tchaikov/wip-install-py3-for-qa-cephfs
Kefu Chai [Sat, 4 Aug 2018 00:05:31 +0000 (08:05 +0800)]
Merge pull request #23411 from tchaikov/wip-install-py3-for-qa-cephfs

qa: install python3-cephfs for fs suite

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23185 into master
Sage Weil [Fri, 3 Aug 2018 19:13:44 +0000 (14:13 -0500)]
Merge PR #23185 into master

* refs/pull/23185/head:
doc: Create pull_request_template.md

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23417 into master
Patrick Donnelly [Fri, 3 Aug 2018 16:44:37 +0000 (09:44 -0700)]
Merge PR #23417 into master

* refs/pull/23417/head:
pybind: remove execution permission bits of cephfs.pyx

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind: remove execution permission bits of cephfs.pyx 23417/head
Kefu Chai [Fri, 3 Aug 2018 16:32:15 +0000 (00:32 +0800)]
pybind: remove execution permission bits of cephfs.pyx

they were added in c2a671a4b6

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23158 into master
Patrick Donnelly [Fri, 3 Aug 2018 16:22:24 +0000 (09:22 -0700)]
Merge PR #23158 into master

This is a milestone in the CephFS shell project. QA testing is still in the
works and will be merged separately. Installation code via CMake will also be
written in another PR.

* refs/pull/23158/head:
doc: add cephfs-shell to cephfs doc index
cephfs-shell: add new CephFS shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: add cephfs-shell to cephfs doc index 23158/head
Patrick Donnelly [Thu, 2 Aug 2018 21:54:58 +0000 (14:54 -0700)]
doc: add cephfs-shell to cephfs doc index

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: add new CephFS shell
Pavani Rajula [Wed, 18 Jul 2018 15:32:09 +0000 (21:02 +0530)]
cephfs-shell: add new CephFS shell

The CephFS shell is an alternative client to access CephFS without mounting in
the usual way. The shell provides commands to interactively access the file
system, like put, ls, chmod, etc.

Fixes: http://tracker.ceph.com/issues/24286
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
6 years agoMerge PR #23307 into master
Sage Weil [Fri, 3 Aug 2018 15:56:40 +0000 (10:56 -0500)]
Merge PR #23307 into master

* refs/pull/23307/head:
osd/OSD: fix HeartbeatInfo.is_healthy() check
osd/OSD: use first_tx to calculate failed_for
osd: refactor heartbeat health check

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #22717 into master
Sage Weil [Fri, 3 Aug 2018 15:56:36 +0000 (10:56 -0500)]
Merge PR #22717 into master

* refs/pull/22717/head:
mgr/DaemonServer: osd purge: accept --yes-i-really-mean-it too
mon,mgr: guard 'osd purge' with safe-to-destroy check
mon/MonCommands: hide 'osd destroy-actual'
mon/MonCommands: add HIDDEN flag
mon,mgr: guard 'osd destroy' with 'osd safe-to-destroy' check
mon/MonCommand: deprecate 'osd rm'
mon/OSDMonitor: point users at 'ceph osd safe-to-destroy' for purge|destroy

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #23339 into master
Sage Weil [Fri, 3 Aug 2018 15:56:31 +0000 (10:56 -0500)]
Merge PR #23339 into master

* refs/pull/23339/head:
Revert "mgr/pybind: expose erasure code profiles"

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Datatable error panel blinking on page loading 23316/head
Volker Theile [Mon, 30 Jul 2018 15:32:54 +0000 (17:32 +0200)]
mgr/dashboard: Datatable error panel blinking on page loading

Fixes https://tracker.ceph.com/issues/25090

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23390 from tchaikov/wip-cmake-fmt-4.x
Kefu Chai [Fri, 3 Aug 2018 13:05:03 +0000 (21:05 +0800)]
Merge pull request #23390 from tchaikov/wip-cmake-fmt-4.x

cmake: do not use Findfmt.cmake for checking libfmt-dev

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #23352 from jcsp/wip-25197
Kefu Chai [Fri, 3 Aug 2018 13:01:07 +0000 (21:01 +0800)]
Merge pull request #23352 from jcsp/wip-25197

mgrc: enable disabling stats via mgr_stats_threshold

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23326 from tchaikov/wip-gnu-cold-attr
Kefu Chai [Fri, 3 Aug 2018 12:59:28 +0000 (20:59 +0800)]
Merge pull request #23326 from tchaikov/wip-gnu-cold-attr

common/assert: mark assert helpers with [[gnu::cold]]

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
6 years agoMerge pull request #23320 from tchaikov/wip-cmake-viva-les-local-symbols
Kefu Chai [Fri, 3 Aug 2018 12:57:07 +0000 (20:57 +0800)]
Merge pull request #23320 from tchaikov/wip-cmake-viva-les-local-symbols

cmake: always prefer local symbols

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23330 from jcsp/wip-cli-eperm
Kefu Chai [Fri, 3 Aug 2018 12:54:41 +0000 (20:54 +0800)]
Merge pull request #23330 from jcsp/wip-cli-eperm

ceph.in: friendlier message on EPERM

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa/suites/fs: add python3-cephfs to packages 23411/head
Kefu Chai [Fri, 3 Aug 2018 09:27:20 +0000 (17:27 +0800)]
qa/suites/fs: add python3-cephfs to packages

the default set of packages to install is in
$suite/qa/packages/packages.yaml . see get_package_list() in
teuthology/teuthology/task/install/__init__.py for how we prepare a
package list for install task.

for running python3 tests in
fs/basic_functional/tasks/volume-client, we need to install
python3-cephfs. please note that,
_package_override() in teuthology/teutholoy/task/install/rpm.py will
take care of the different naming on centos/rhel, where the python3
packages are named python34-*.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/fio: new option to control file preallocation. 23410/head
Igor Fedotov [Fri, 3 Aug 2018 10:11:30 +0000 (13:11 +0300)]
test/fio: new option to control file preallocation.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #23261 from dillaman/wip-vstart
Ricardo Dias [Fri, 3 Aug 2018 09:12:25 +0000 (10:12 +0100)]
Merge pull request #23261 from dillaman/wip-vstart

vstart: do not attempt to re-initialize dashboard for existing cluster

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoqa: do not install python3 packages in task.install
Kefu Chai [Fri, 3 Aug 2018 09:02:49 +0000 (17:02 +0800)]
qa: do not install python3 packages in task.install

This reverts commit c1efd59f618e24cf060d564ac0f21d5b0b57fd4a

task.install.rpm installs packages listed in
$suites/qa/packages/packages.yaml, the packge list applies to the
upgrade tests also. but we don't have python3 bindings packages in jewel
-- they were introduced in kraken.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: RGW proxy can't handle self-signed certificates 22735/head
Volker Theile [Fri, 3 Aug 2018 06:48:00 +0000 (08:48 +0200)]
mgr/dashboard: RGW proxy can't handle self-signed certificates

Fixes tracker.ceph.com/issues/24677

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agotest: use death_test_style="threadsafe" for Mutex.NormalAsserts 23320/head
Kefu Chai [Mon, 30 Jul 2018 13:29:03 +0000 (21:29 +0800)]
test: use death_test_style="threadsafe" for Mutex.NormalAsserts

use threadsafe for running the Mutex assert test to run the test from
beginning to avoid the hang. this test overrides the symbol of
ceph::__ceph_assert_fail() with a local one offered by the application
links against libceph-common. but we intentionally forbid this behavior:
we do not allow libceph-common to reference the symbols exposed from
application with the same name. see http://tracker.ceph.com/issues/25154

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: always prefer local symbols
Kefu Chai [Mon, 30 Jul 2018 11:55:51 +0000 (19:55 +0800)]
cmake: always prefer local symbols

Fixes: http://tracker.ceph.com/issues/25154
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23384 from tchaikov/wip-cmake-cleanup
Kefu Chai [Fri, 3 Aug 2018 00:58:14 +0000 (08:58 +0800)]
Merge pull request #23384 from tchaikov/wip-cmake-cleanup

cmake: fix std::filesystem detection and extract sanitizer detection into its own module

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agomgr/MgrClient: Protect daemon_health_metrics 23404/head
Brad Hubbard [Thu, 2 Aug 2018 00:33:42 +0000 (10:33 +1000)]
mgr/MgrClient: Protect daemon_health_metrics

Without holiding the lock update_daemon_health() can race with
send_report() corrupting the daemon_health_metrics vector.

Fixes: http://tracker.ceph.com/issues/23352
Signed-off-by: Kjetil Joergensen <kjetil@medallia.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agoMerge PR #23381 into master
Patrick Donnelly [Thu, 2 Aug 2018 21:03:20 +0000 (14:03 -0700)]
Merge PR #23381 into master

* refs/pull/23381/head:
mds: update MDSRank::cluster_degraded before handling mds failure

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #23398 from alfredodeza/wip-patch-release
Andrew Schoen [Thu, 2 Aug 2018 18:15:27 +0000 (18:15 +0000)]
Merge pull request #23398 from alfredodeza/wip-patch-release

ceph-volume tests patch __release__ to mimic always for stdin keys

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume tests patch __release__ to mimic always for stdin keys 23398/head
Alfredo Deza [Thu, 2 Aug 2018 17:51:22 +0000 (13:51 -0400)]
ceph-volume tests patch __release__ to mimic always for stdin keys

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23382 from tchaikov/wip-gtest-parallel-py3
Nathan Cutler [Thu, 2 Aug 2018 16:11:30 +0000 (18:11 +0200)]
Merge pull request #23382 from tchaikov/wip-gtest-parallel-py3

cmake,run-make-check: always enable WITH_GTEST_PARALLEL

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoseastar: pick up changes in seastar 23384/head
Kefu Chai [Thu, 2 Aug 2018 06:30:17 +0000 (14:30 +0800)]
seastar: pick up changes in seastar

-ldl is not necessary if an application using dlopen() can compile and
link just fine without it.

same applies to -lrt, when it comes to time related calls.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorpm: remove fmt-devel from BuildRequires 23390/head
Kefu Chai [Thu, 2 Aug 2018 14:15:12 +0000 (22:15 +0800)]
rpm: remove fmt-devel from BuildRequires

because RHEL/CentOS 7 only offers fmt-devel 3.0.2, while seastar
requires >= 4.0.0, < 5.0.0, and on openSUSE Leap 15, we have
libfmt-devel 5.x.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: require 4.0.0 <= libfmt-dev < 5.0.0
Kefu Chai [Thu, 2 Aug 2018 11:04:30 +0000 (19:04 +0800)]
cmake: require 4.0.0 <= libfmt-dev < 5.0.0

FMT_VERSION is now living in fmt/core.h in libfmt >= 5.0, so we cannot
parse fmt/format.h for libfmt's version anymore. also we don't need
Findfmt.cmake now. because libfmt-dev 4.0 and up is required by seastar,
also it's libfmt-dev 3.x's cmake module which fails to offer fmt::fmt
target. in other words, it's safe to drop libfmt 3.x support. but 5.0.0
is not compatible with seastar, we will have failures like:

In file included from
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/aligned_buffer.hh:25:0,
                 from
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/reactor.hh:26,
                 from
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/alien.hh:35,
                 from
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/src/core/alien.cc:23:
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/print.hh:
In function 'seastar::sstring seastar::format(const char*, A&& ...)':
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/print.hh:135:10:
error: 'MemoryWriter' is not a member of 'fmt'
     fmt::MemoryWriter out;
          ^~~~~~~~~~~~
/home/smithfarm/src/ceph/smithfarm/ceph/src/seastar/include/seastar/core/print.hh:136:5:
error: 'out' was not declared in this scope
     out.write(fmt, std::forward<A>(a)...);
     ^~~

so, we should build libfmt even if we have libfmt-dev 5.x

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23386 from smithfarm/wip-fix-seastar-builddeps
Nathan Cutler [Thu, 2 Aug 2018 13:31:38 +0000 (15:31 +0200)]
Merge pull request #23386 from smithfarm/wip-fix-seastar-builddeps

build/ops: rpm: fix seastar build dependencies

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23375 from alfredodeza/wip-rm25216
Andrew Schoen [Thu, 2 Aug 2018 12:51:37 +0000 (12:51 +0000)]
Merge pull request #23375 from alfredodeza/wip-rm25216

ceph-volume lvm.activate conditional mon-config on prime-osd-dir

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agomgr: tweaks to command permissions 23387/head
John Spray [Thu, 2 Aug 2018 10:42:50 +0000 (11:42 +0100)]
mgr: tweaks to command permissions

Upgrade all selftest ops to rw, downgrade restful
cert list to r.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agomgr: fix permissions on `balancer execute`
John Spray [Thu, 2 Aug 2018 10:42:21 +0000 (11:42 +0100)]
mgr: fix permissions on `balancer execute`

Fixes: http://tracker.ceph.com/issues/25345
Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #23328 from votdev/bug_24570
Ricardo Marques [Thu, 2 Aug 2018 10:27:44 +0000 (11:27 +0100)]
Merge pull request #23328 from votdev/bug_24570

mgr/dashboard: Close modal dialogs on login screen

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agobuild/ops: rpm: fix seastar build dependencies 23386/head
Nathan Cutler [Thu, 2 Aug 2018 10:17:25 +0000 (12:17 +0200)]
build/ops: rpm: fix seastar build dependencies

1. cryptopp-devel was moved to the distro-specific section by
aeb974b9139d49f13e162cd90da8a0a4b3fc3b33, then
96196e9d774ab55fabb792935a09a81cf0ca9786 reintroduced it in the
non-distro-specific section, breaking install-deps.sh for SUSE

2. fmt-devel is called libfmt-devel on SUSE

Fixes: install-deps.sh on SUSE
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agomgr/dashboard: RestClient can't handle ProtocolError exceptions 23347/head
Volker Theile [Tue, 31 Jul 2018 08:43:06 +0000 (10:43 +0200)]
mgr/dashboard: RestClient can't handle ProtocolError exceptions

Fixes: https://tracker.ceph.com/issues/25190
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23363 from votdev/fix_typo
Ricardo Marques [Thu, 2 Aug 2018 10:11:58 +0000 (11:11 +0100)]
Merge pull request #23363 from votdev/fix_typo

mgr/dashboard: Fix typo

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agobuild/ops: refrain from installing/using lsb_release in install-deps.sh 23361/head
Nathan Cutler [Wed, 1 Aug 2018 10:52:45 +0000 (12:52 +0200)]
build/ops: refrain from installing/using lsb_release in install-deps.sh

Unfortunately the mapping between release number and codename (which is only
relevant for Debian and Ubuntu btw) is not available from /etc/os-release.
In that one respect, lsb_release was "better".

However, when I weigh the advantages of obtaining that mapping from an external
tool, with the (substantial) risk that the external dependency might cause
trouble on one or more supported distros (to say nothing of the non- or
semi-/pseudo-supported ones), against the work involved in maintaining a
hard-coded mapping (negligible), the needle on my scale immediately swings
toward eliminating the dependency.

Also, I see this commit as part of the longer-term effort to completely expunge
lsb_release from our codebase. See git log --grep lsb_release.

For another example of an external distro-detection tool (albeit one that was
included in Python 2) gone awry, see http://tracker.ceph.com/issues/18163.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agorun-make-check: drop CMAKE_PYTHON_OPTS variable 23382/head
Kefu Chai [Thu, 2 Aug 2018 09:19:10 +0000 (17:19 +0800)]
run-make-check: drop CMAKE_PYTHON_OPTS variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake,run-make-check: always enable WITH_GTEST_PARALLEL
Kefu Chai [Thu, 2 Aug 2018 02:34:07 +0000 (10:34 +0800)]
cmake,run-make-check: always enable WITH_GTEST_PARALLEL

now that https://github.com/google/gtest-parallel/pull/63 has been
merged, we can now use gtest-parallel with py2 and also py3.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: extract sanitizer detection out
Kefu Chai [Thu, 2 Aug 2018 05:59:31 +0000 (13:59 +0800)]
cmake: extract sanitizer detection out

also, we don't need to pass '-lasan' or '-ltsan' to linker. it's
suggested to use the "-fsanitize=${sanitizer}".

please note, this module is compatible with the one used in seastar on
purpose, as seastar is included in ceph using add_subdirectory(), and it
in turn add its own cmake modules directory using list(APPEND ...), so
cmake/modules/FindSantitizers.cmake is prefered over
src/seastar/cmake/FindSantitizers.cmake.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: fix StdFilesystem detection
Kefu Chai [Thu, 2 Aug 2018 05:45:51 +0000 (13:45 +0800)]
cmake: fix StdFilesystem detection

before this change, we fails to detect std::filesystem with clang++,
because  the cmake project created by try_compile() only expands
following options passed from its caller:
- COMPILE_DEFINITIONS
- INCLUDE_DIRECTORIES
- LINK_DIRECTORIES
- LINK_LIBRARIES

which do not include CMAKE_CXX_FLAGS, so either we need to (ab)use
COMPILE_DEFINITIONS for passing -std=c++17, or we can change the
CMAKE_CXX_FLAGS in the parent env, as it turns out the created cmake
project does inherit this flag from current project. in this change,
we use the COMPILE_DEFINITIONS approach: simpler this way. and we
can drop it once cmake 3.8 is required.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #21948 into master
Patrick Donnelly [Thu, 2 Aug 2018 04:42:27 +0000 (21:42 -0700)]
Merge PR #21948 into master

* refs/pull/21948/head:
ceph_volume_client: use integer division for pg_num
packages.yaml: install py3 compatible cephfs and rados bindings...
qa: test py2 and py3 for volume client
qa: make test_volume_client.py py3 compatible
qa/ceph-volume: allow executing python pyloads using python3
cephfs.pyx: add py3 compatibility
ceph-volume-client: add py3 compatibility

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #22450 into master
Patrick Donnelly [Thu, 2 Aug 2018 04:42:22 +0000 (21:42 -0700)]
Merge PR #22450 into master

* refs/pull/22450/head:
client: LAZY_IO support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23290 into master
Patrick Donnelly [Thu, 2 Aug 2018 04:42:16 +0000 (21:42 -0700)]
Merge PR #23290 into master

* refs/pull/23290/head:
tools/ceph-dencoder: include types.h with full path
tools/ceph-dencoder: move ceph-dencoder to tools/ceph-dencoder

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23365 into master
Patrick Donnelly [Thu, 2 Aug 2018 04:42:11 +0000 (21:42 -0700)]
Merge PR #23365 into master

* refs/pull/23365/head:
mds/MDCache: fix mds_cache_memory_limit get_val<>

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoosd: do_sparse_read(): On Checksum mismatch try to repair 23377/head
David Zafman [Wed, 1 Aug 2018 23:12:16 +0000 (16:12 -0700)]
osd: do_sparse_read(): On Checksum mismatch try to repair

Fixes: http://tracker.ceph.com/issues/24875
Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoosd: do_read(): Use actual bytes read to determine if CRC can be checked
David Zafman [Thu, 2 Aug 2018 00:14:59 +0000 (17:14 -0700)]
osd: do_read(): Use actual bytes read to determine if CRC can be checked

Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #23380 from majianpeng/cmake-jemalloc-error
Kefu Chai [Thu, 2 Aug 2018 02:46:27 +0000 (10:46 +0800)]
Merge pull request #23380 from majianpeng/cmake-jemalloc-error

cmake: fix a cmake error when with -DALLOCATOR=jemalloc.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: fix a cmake error when with -DALLOCATOR=jemalloc. 23380/head
Jianpeng Ma [Thu, 2 Aug 2018 08:37:39 +0000 (16:37 +0800)]
cmake: fix a cmake error when with -DALLOCATOR=jemalloc.

When exec: ./do_cmake.sh -DALLOCATOR=jemalloc. Met the following
messages:
>> CMake Error at cmake/modules/FindJeMalloc.cmake:28 (endforeach):
  endforeach An ENDFOREACH command was found outside of a proper FOREACH
  ENDFOREACH structure.  Or its arguments did not match the opening FOREACH
  command.
>> Call Stack (most recent call first):
  CMakeLists.txt:326 (find_package)

This bug introduce commit 8db629a14baf2aea99cf.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #23300 from tchaikov/wip-cmake-cleanup
Kefu Chai [Thu, 2 Aug 2018 02:14:09 +0000 (10:14 +0800)]
Merge pull request #23300 from tchaikov/wip-cmake-cleanup

cmake: cleanups

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomds: update MDSRank::cluster_degraded before handling mds failure 23381/head
Yan, Zheng [Thu, 2 Aug 2018 02:05:12 +0000 (10:05 +0800)]
mds: update MDSRank::cluster_degraded before handling mds failure

Migrator checks MDSRank::is_cluster_degraded() to decide if it needs to
send message to other mds. MDSRank::cluster_degraded should get updated
before calling Migrator::handle_mds_failure_or_stop().

Introduced by commit 7de9da4a "mds: handle discontinuous mdsmap"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
6 years agoceph-volume lvm.activate conditional mon-config on prime-osd-dir 23375/head
Alfredo Deza [Wed, 1 Aug 2018 21:01:31 +0000 (17:01 -0400)]
ceph-volume lvm.activate conditional mon-config on prime-osd-dir

The --no-mon-config should only be done in Mimic releaes and later

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23372 from cbodley/wip-25214
Casey Bodley [Wed, 1 Aug 2018 20:12:21 +0000 (16:12 -0400)]
Merge pull request #23372 from cbodley/wip-25214

qa/rgw: override valgrind --max-threads for radosgw

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoqa/rgw: override valgrind --max-threads for radosgw 23372/head
Casey Bodley [Wed, 1 Aug 2018 17:01:30 +0000 (13:01 -0400)]
qa/rgw: override valgrind --max-threads for radosgw

radosgw now uses 512 frontend threads by default, and valgrind won't
start with its default --max-threads=500

Fixes: http://tracker.ceph.com/issues/25214
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23145 from cbodley/wip-qa-rgw-admin-rest
Casey Bodley [Wed, 1 Aug 2018 17:52:40 +0000 (13:52 -0400)]
Merge pull request #23145 from cbodley/wip-qa-rgw-admin-rest

qa/rgw: add radosgw-admin-rest task to singleton suite

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
6 years agoMerge PR #23195 into master
Patrick Donnelly [Wed, 1 Aug 2018 16:53:40 +0000 (09:53 -0700)]
Merge PR #23195 into master

* refs/pull/23195/head:
mds: use vector for context lists
common: make C_ContextsBase container agnostic
common: make finish_contexts container agnostic
mds: add vector def for MDS contexts
mds: use compact map to manage waiting list

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoclient: check for unmounted condition before printing debug output 23370/head
Jeff Layton [Wed, 1 Aug 2018 13:05:51 +0000 (09:05 -0400)]
client: check for unmounted condition before printing debug output

If the filesystem was unmounted before we attempt to call ceph_ll_close
on a Fh, then we can end up tripping over the dereferences in the
debug output. Check for unmounted filesystem first, and only print
the debug info if it's still mounted.

This patch only fixes up ceph_ll_close, which is the only call ganesha
makes after calling ceph_abort_conn. We may need to fix other paths in
the future though if that ever changes.

Tracker: http://tracker.ceph.com/issues/25213
Signed-off-by: Jeff Layton <jlayton@kernel.org>
6 years agoMerge PR #23353 into master
Patrick Donnelly [Wed, 1 Aug 2018 16:23:26 +0000 (09:23 -0700)]
Merge PR #23353 into master

* refs/pull/23353/head:
doc: explain how to mkdir under .snap

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: explain how to mkdir under .snap 23353/head
Ken Dreyer [Tue, 31 Jul 2018 17:03:47 +0000 (11:03 -0600)]
doc: explain how to mkdir under .snap

Prior to this change, the CephFS snapshot instructions were not clear
whether users should "mkdir" the ".snap" directory or not.

Update the documentation to clarify that users should make a directory
under .snap with a name of their choice.

Thanks to John Spray <jspray@redhat.com> on ceph-users for this
information.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
6 years agomds/MDCache: fix mds_cache_memory_limit get_val<> 23365/head
Sage Weil [Wed, 1 Aug 2018 14:29:15 +0000 (09:29 -0500)]
mds/MDCache: fix mds_cache_memory_limit get_val<>

Fixes: 922bfc5f3b333f576a1444773fff6db7100dd24a
Fixes: http://tracker.ceph.com/issues/25215
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23355 from alfredodeza/wip-rm25173
Andrew Schoen [Wed, 1 Aug 2018 14:48:37 +0000 (14:48 +0000)]
Merge pull request #23355 from alfredodeza/wip-rm25173

ceph-volume do not use stdin in luminous

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23366 from tchaikov/wip-cmake-no-common-crc-aarch64
Kefu Chai [Wed, 1 Aug 2018 14:43:58 +0000 (22:43 +0800)]
Merge pull request #23366 from tchaikov/wip-cmake-no-common-crc-aarch64

cmake: do not link against common_crc_aarch64

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agocmake: do not link against common_crc_aarch64 23366/head
Kefu Chai [Sat, 28 Jul 2018 03:58:27 +0000 (11:58 +0800)]
cmake: do not link against common_crc_aarch64

it's included by libcrc32 already

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23340 into master
Sage Weil [Wed, 1 Aug 2018 13:26:40 +0000 (08:26 -0500)]
Merge PR #23340 into master

* refs/pull/23340/head:
osd/PGLog.cc: use lgeneric_subdout instead of generic_dout

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr/DaemonServer: osd purge: accept --yes-i-really-mean-it too 22717/head
Sage Weil [Mon, 30 Jul 2018 13:56:28 +0000 (08:56 -0500)]
mgr/DaemonServer: osd purge: accept --yes-i-really-mean-it too

This avoids breaking old scripts.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: Fix typo 23363/head
Volker Theile [Wed, 1 Aug 2018 13:12:33 +0000 (15:12 +0200)]
mgr/dashboard: Fix typo

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agomon,mgr: guard 'osd purge' with safe-to-destroy check
Sage Weil [Tue, 26 Jun 2018 12:34:46 +0000 (07:34 -0500)]
mon,mgr: guard 'osd purge' with safe-to-destroy check

Do the same thing that we do with 'osd destroy'.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonCommands: hide 'osd destroy-actual'
Sage Weil [Tue, 26 Jun 2018 12:03:46 +0000 (07:03 -0500)]
mon/MonCommands: hide 'osd destroy-actual'

This is only invoked directly (via JSON) by the mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonCommands: add HIDDEN flag
Sage Weil [Tue, 26 Jun 2018 12:03:29 +0000 (07:03 -0500)]
mon/MonCommands: add HIDDEN flag

Hide a command from the CLI and help.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon,mgr: guard 'osd destroy' with 'osd safe-to-destroy' check
Sage Weil [Tue, 26 Jun 2018 12:00:33 +0000 (07:00 -0500)]
mon,mgr: guard 'osd destroy' with 'osd safe-to-destroy' check

Rename actual command 'osd destroy-actual', and map 'osd destroy' to the
mgr code so that we first check safe-to-destroy.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonCommand: deprecate 'osd rm'
Sage Weil [Mon, 11 Jun 2018 22:11:16 +0000 (17:11 -0500)]
mon/MonCommand: deprecate 'osd rm'

Users should use 'osd destroy' instead.  It does more and has a scary
force flag.  And suggests that CLI users check 'osd safe-to-destroy'
first.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: point users at 'ceph osd safe-to-destroy' for purge|destroy
Sage Weil [Mon, 11 Jun 2018 22:07:58 +0000 (17:07 -0500)]
mon/OSDMonitor: point users at 'ceph osd safe-to-destroy' for purge|destroy

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23342 from ZVampirEM77/wip-sync-error-trim-param
Casey Bodley [Wed, 1 Aug 2018 11:51:13 +0000 (07:51 -0400)]
Merge pull request #23342 from ZVampirEM77/wip-sync-error-trim-param

rgw-admin: add "--trim-delay-ms" introduction for 'sync error trim'

Reviewed-by: Casey Bodley <cbodley@redhat.com>