]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Escape regex pattern in DeletionModalComponent 23420/head
Tiago Melo [Fri, 3 Aug 2018 17:47:59 +0000 (18:47 +0100)]
mgr/dashboard: Escape regex pattern in DeletionModalComponent

Fixes: http://tracker.ceph.com/issues/24902
Signed-off-by: Tiago Melo <tmelo@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 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 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 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 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 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 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 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 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/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 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>
6 years agoMerge pull request #23360 from badone/wip-release-schedule-update-august-2018
Abhishek L [Wed, 1 Aug 2018 11:29:24 +0000 (13:29 +0200)]
Merge pull request #23360 from badone/wip-release-schedule-update-august-2018

doc/releases: Update releases to August '18

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoceph-volume tests verify that luminous doesn't use stdin 23355/head
Alfredo Deza [Tue, 31 Jul 2018 20:47:05 +0000 (16:47 -0400)]
ceph-volume tests verify that luminous doesn't use stdin

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util do not use stdin for luminous
Alfredo Deza [Tue, 31 Jul 2018 20:46:41 +0000 (16:46 -0400)]
ceph-volume util do not use stdin for luminous

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23224 from votdev/rest_client_timeout
Ricardo Dias [Wed, 1 Aug 2018 09:02:09 +0000 (10:02 +0100)]
Merge pull request #23224 from votdev/rest_client_timeout

mgr/dashboard: Set timeout in RestClient calls

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #21881 from sebastian-philipp/dashboard-pool-patch
Ricardo Dias [Wed, 1 Aug 2018 09:00:10 +0000 (10:00 +0100)]
Merge pull request #21881 from sebastian-philipp/dashboard-pool-patch

mgr/dashboard: Add Pool update endpoint

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomgr/dashboard: Modal dialogs are still open when UI is redirected to the login screen 23328/head
Volker Theile [Mon, 30 Jul 2018 15:22:41 +0000 (17:22 +0200)]
mgr/dashboard: Modal dialogs are still open when UI is redirected to the login screen

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

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23284 from tchaikov/wip-seastar-config
Kefu Chai [Wed, 1 Aug 2018 06:58:43 +0000 (14:58 +0800)]
Merge pull request #23284 from tchaikov/wip-seastar-config

crimson/common: write configs synchronously on shard.0

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agodoc/releases: Update releases to August '18 23360/head
Brad Hubbard [Wed, 1 Aug 2018 04:29:29 +0000 (14:29 +1000)]
doc/releases: Update releases to August '18

Mimic    13.2.1
Luminous 12.2.5, 12.2.6, 12.2.7
Jewel    10.2.11

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agorgw-admin: add "--trim-delay-ms" introduction for 'sync error trim' 23342/head
Enming.Zhang [Tue, 31 Jul 2018 06:52:43 +0000 (02:52 -0400)]
rgw-admin: add "--trim-delay-ms" introduction for 'sync error trim'

Signed-off-by: Enming.Zhang <enming.zhang@umcloud.com>
6 years agoMerge PR #22825 into master
Sage Weil [Wed, 1 Aug 2018 01:16:46 +0000 (20:16 -0500)]
Merge PR #22825 into master

* refs/pull/22825/head:
common: FreeBSD does not have /etc/os-release

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #22998 into master
Sage Weil [Wed, 1 Aug 2018 01:16:41 +0000 (20:16 -0500)]
Merge PR #22998 into master

* refs/pull/22998/head:
filestore: add pgid in filestore pg dir split log message

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #23134 into master
Sage Weil [Wed, 1 Aug 2018 01:16:35 +0000 (20:16 -0500)]
Merge PR #23134 into master

* refs/pull/23134/head:
common: check completion condition before waiting

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge PR #23223 into master
Sage Weil [Wed, 1 Aug 2018 01:16:30 +0000 (20:16 -0500)]
Merge PR #23223 into master

* refs/pull/23223/head:
osd/PG: kill dead functions and related options
iosd/osd_type: kill unused input ec_pool for iterate_mayberw_back_to
common: kill dead options
osd/PG: do not initialize up/acting twice
osd/PG: clear missing_loc properly if last location is gone

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #22990 from tchaikov/wip-cmake-link-static-libstdc++
Kefu Chai [Wed, 1 Aug 2018 01:06:37 +0000 (09:06 +0800)]
Merge pull request #22990 from tchaikov/wip-cmake-link-static-libstdc++

cmake: fix "WITH_STATIC_LIBSTDCXX"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #22692 into master
Sage Weil [Tue, 31 Jul 2018 22:23:48 +0000 (17:23 -0500)]
Merge PR #22692 into master

* refs/pull/22692/head:
doc/mgr/devicehealth: document devicehealth module
doc/rados/operations/health-checks: document DEVICE_HEALTH* messages
mgr/devicehealth: fix style for returns
mgr/devicehealth: use constants for health warnings
mgr/devicehealth: deal with as many daemons as we can until limit
mgr/devicehealth: warn if too many daemons are expected to fail soon
mgr/devicehealth: set primary-affinity 0 for failing devices
msg/devicehealth: fix config options
mgr/devicehealth: only fetch osdmap once from check_health
mgr/devicehealth: revise health messages
mgr/devicehealth: add 'device check-health' command and run periodically
mgr/devicehealth: fix new options
mgr/devicehealth: add helpers to life_expectancy_response()
mgr/devicehealth: simplify setting defaults
common/blkdev remove debug statements

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge PR #23157 into master
Patrick Donnelly [Tue, 31 Jul 2018 21:50:50 +0000 (14:50 -0700)]
Merge PR #23157 into master

* refs/pull/23157/head:
Provided API to change umask

6 years agoMerge PR #23354 into master
Sage Weil [Tue, 31 Jul 2018 21:24:22 +0000 (16:24 -0500)]
Merge PR #23354 into master

* refs/pull/23354/head:
src/osd/PG.cc: remove redundant call to trim_log()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc/mgr/devicehealth: document devicehealth module 22692/head
Sage Weil [Tue, 31 Jul 2018 14:38:39 +0000 (09:38 -0500)]
doc/mgr/devicehealth: document devicehealth module

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc/rados/operations/health-checks: document DEVICE_HEALTH* messages
Sage Weil [Tue, 31 Jul 2018 14:22:42 +0000 (09:22 -0500)]
doc/rados/operations/health-checks: document DEVICE_HEALTH* messages

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: fix style for returns
Sage Weil [Tue, 31 Jul 2018 13:31:23 +0000 (08:31 -0500)]
mgr/devicehealth: fix style for returns

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: use constants for health warnings
Sage Weil [Tue, 31 Jul 2018 13:31:14 +0000 (08:31 -0500)]
mgr/devicehealth: use constants for health warnings

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: deal with as many daemons as we can until limit
Sage Weil [Mon, 25 Jun 2018 20:50:47 +0000 (15:50 -0500)]
mgr/devicehealth: deal with as many daemons as we can until limit

Process as many OSDs as we can until we hit the min_in_ratio.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: warn if too many daemons are expected to fail soon
Sage Weil [Mon, 25 Jun 2018 20:30:57 +0000 (15:30 -0500)]
mgr/devicehealth: warn if too many daemons are expected to fail soon

Refuse to mark out *all* OSDs.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: set primary-affinity 0 for failing devices
Sage Weil [Mon, 25 Jun 2018 18:31:27 +0000 (13:31 -0500)]
mgr/devicehealth: set primary-affinity 0 for failing devices

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomsg/devicehealth: fix config options
Sage Weil [Mon, 25 Jun 2018 18:31:09 +0000 (13:31 -0500)]
msg/devicehealth: fix config options

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: only fetch osdmap once from check_health
Sage Weil [Mon, 25 Jun 2018 18:25:18 +0000 (13:25 -0500)]
mgr/devicehealth: only fetch osdmap once from check_health

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: revise health messages
Sage Weil [Mon, 25 Jun 2018 13:55:09 +0000 (08:55 -0500)]
mgr/devicehealth: revise health messages

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: add 'device check-health' command and run periodically
Sage Weil [Mon, 25 Jun 2018 13:54:57 +0000 (08:54 -0500)]
mgr/devicehealth: add 'device check-health' command and run periodically

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: fix new options
Sage Weil [Mon, 25 Jun 2018 13:47:30 +0000 (08:47 -0500)]
mgr/devicehealth: fix new options

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/devicehealth: add helpers to life_expectancy_response()
Yaarit Hatuka [Mon, 25 Jun 2018 13:19:22 +0000 (08:19 -0500)]
mgr/devicehealth: add helpers to life_expectancy_response()

- if mark_out_threshold is met we write to log.warn instead of raising a
  health warning.
- check that OSD is 'in' before calling mark_out().
- raise a health warning in case OSD is marked 'out' but still has PGs
  attached to it.
- cast thresholds default values to string.
- add SCSI multipath support to health warning message.
- change health warning message.

Signed-off-by: Yaarit Hatuka <yaarithatuka@gmail.com>
6 years agomgr/devicehealth: simplify setting defaults
Sage Weil [Mon, 25 Jun 2018 13:20:10 +0000 (08:20 -0500)]
mgr/devicehealth: simplify setting defaults

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/blkdev remove debug statements
Yaarit Hatuka [Wed, 13 Jun 2018 14:19:40 +0000 (10:19 -0400)]
common/blkdev remove debug statements

Signed-off-by: Yaarit Hatuka yaarithatuka@gmail.com
6 years agoMerge PR #23334 into master
Sage Weil [Tue, 31 Jul 2018 19:08:37 +0000 (14:08 -0500)]
Merge PR #23334 into master

* refs/pull/23334/head:
pybind/rados/rados: do not pass prval from stack

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23217 from dzafman/wip-25085
David Zafman [Tue, 31 Jul 2018 19:07:22 +0000 (15:07 -0400)]
Merge pull request #23217 from dzafman/wip-25085

osd: Allow repair of an object with a bad data_digest in object_info on all replicas

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agosrc/osd/PG.cc: remove redundant call to trim_log() 23354/head
Neha Ojha [Tue, 31 Jul 2018 00:09:51 +0000 (17:09 -0700)]
src/osd/PG.cc: remove redundant call to trim_log()

This change is motived by the failure tracked in
https://tracker.ceph.com/issues/25198. The failure highlights a case, when a
call to trim_log() after the PG has recovered, races with the previous op,
on a replica OSD. Since the previous operation has not completed, the
last_complete value for that OSD is not valid, when we try to trim the
log. It is also worth noting that the race is due to MOSDPGTrim going through
the strict queue as a peering message vs regular ops going through the
non-strict queue.

During the investigation of this bug, we noticed that, with
https://tracker.ceph.com/issues/23979, we allow pg log trimming to
happen on the primary and replicas, whenever we cross the upper bound of
the pg log. This also ensures that pg log trimming happens while processing
any new op.

Therefore, the function trim_log(), which earlier served the purpose of
trimming logs on the primary and replicas, just before the PG went into
the Recovered state, is no more required. This acted like a last line of
defense to trim logs, when we did not need the logs any more. But, this call
seems redundant now, because, we are limiting the pg log length at all times.

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agopybind/rados/rados: do not pass prval from stack 23334/head
Sage Weil [Mon, 30 Jul 2018 19:18:07 +0000 (14:18 -0500)]
pybind/rados/rados: do not pass prval from stack

The prval is a pointer to an int to write the final completion code of
the rados op.  This can't be on the stack since we immediately leave the
current scope after preparing the op (looong before we do the rados op).

We keep the tuple return value to avoid breaking users of this API
(devicehealth module, gnocchi at a minimum).

Fixes: http://tracker.ceph.com/issues/25175
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23348 from ceph/wip-rm24957
Alfredo Deza [Tue, 31 Jul 2018 13:56:05 +0000 (09:56 -0400)]
Merge pull request #23348 from ceph/wip-rm24957

ceph-volume: adds test for `ceph-volume lvm list /dev/sda`

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume: adds a unit test for `lvm list /dev/sda` 23348/head
Andrew Schoen [Mon, 30 Jul 2018 18:52:37 +0000 (13:52 -0500)]
ceph-volume: adds a unit test for `lvm list /dev/sda`

This test is to prove that the issue from
http://tracker.ceph.com/issues/24957 was fixed
by http://tracker.ceph.com/issues/24784

When running lvm list against a raw device it should handle
gracefully the situation where there are multiple PVs with the
name of the given device.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: move pvolumes fixture into conftest.py
Andrew Schoen [Tue, 31 Jul 2018 13:26:57 +0000 (08:26 -0500)]
ceph-volume: move pvolumes fixture into conftest.py

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23336 from noahdesu/vstart-dashboard-no-rbd
Kefu Chai [Tue, 31 Jul 2018 03:05:02 +0000 (11:05 +0800)]
Merge pull request #23336 from noahdesu/vstart-dashboard-no-rbd

vstart: disable dashboard when rbd not built

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/PGLog.cc: use lgeneric_subdout instead of generic_dout 23340/head
Neha Ojha [Mon, 30 Jul 2018 23:42:55 +0000 (16:42 -0700)]
osd/PGLog.cc: use lgeneric_subdout instead of generic_dout

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoceph_volume_client: use integer division for pg_num 21948/head
Patrick Donnelly [Fri, 27 Jul 2018 21:05:42 +0000 (14:05 -0700)]
ceph_volume_client: use integer division for pg_num

Otherwise a float is sent to the manager which is not the invalid format.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopackages.yaml: install py3 compatible cephfs and rados bindings...
Rishabh Dave [Mon, 23 Jul 2018 10:31:42 +0000 (10:31 +0000)]
packages.yaml: install py3 compatible cephfs and rados bindings...

on Ubuntu and CentOS for upstream testing.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoqa: test py2 and py3 for volume client
Patrick Donnelly [Wed, 6 Jun 2018 23:51:05 +0000 (16:51 -0700)]
qa: test py2 and py3 for volume client

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: make test_volume_client.py py3 compatible
Rishabh Dave [Tue, 15 May 2018 06:06:39 +0000 (06:06 +0000)]
qa: make test_volume_client.py py3 compatible

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoqa/ceph-volume: allow executing python pyloads using python3
Rishabh Dave [Tue, 24 Jul 2018 07:59:55 +0000 (07:59 +0000)]
qa/ceph-volume: allow executing python pyloads using python3

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agocephfs.pyx: add py3 compatibility
Rishabh Dave [Wed, 16 May 2018 19:06:42 +0000 (19:06 +0000)]
cephfs.pyx: add py3 compatibility

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoceph-volume-client: add py3 compatibility
Rishabh Dave [Tue, 15 May 2018 05:58:25 +0000 (05:58 +0000)]
ceph-volume-client: add py3 compatibility

Fixes: http://tracker.ceph.com/issues/17230
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #23297 into master
Patrick Donnelly [Mon, 30 Jul 2018 23:11:21 +0000 (16:11 -0700)]
Merge PR #23297 into master

* refs/pull/23297/head:
ceph_volume_client: add delay for MDSMap to be distributed

Reviewed-by: Ramana Raja <rraja@redhat.com>
6 years agoMerge PR #23308 into master
Patrick Donnelly [Mon, 30 Jul 2018 23:06:39 +0000 (16:06 -0700)]
Merge PR #23308 into master

* refs/pull/23308/head:
doc: s/Ceph FS/CephFS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agovstart: disable dashboard when rbd not built 23336/head
Noah Watkins [Mon, 30 Jul 2018 21:47:33 +0000 (14:47 -0700)]
vstart: disable dashboard when rbd not built

dashboard doesn't load correctly without the rbd module, which means
vstart commands that interact with dashboard fail and vstart exits.

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23292 from yuriw/wip-yuriw-25140-master
Sage Weil [Mon, 30 Jul 2018 19:55:41 +0000 (14:55 -0500)]
Merge pull request #23292 from yuriw/wip-yuriw-25140-master

qa/tests: added 1st draft of mimic-x suite

6 years agoMerge pull request #23302 from yuriw/wip-yuriw-crontab-master
Sage Weil [Mon, 30 Jul 2018 19:55:27 +0000 (14:55 -0500)]
Merge pull request #23302 from yuriw/wip-yuriw-crontab-master

qa/tests: added mimic-x to the schedule

6 years agoMerge pull request #23321 from cernceph/dvanders_enable
Alfredo Deza [Mon, 30 Jul 2018 16:54:24 +0000 (12:54 -0400)]
Merge pull request #23321 from cernceph/dvanders_enable

ceph-volume: enable the ceph-osd during lvm activation

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23332 from alfredodeza/wip-rm25171
Andrew Schoen [Mon, 30 Jul 2018 16:14:01 +0000 (16:14 +0000)]
Merge pull request #23332 from alfredodeza/wip-rm25171

ceph-volume add a __release__ string, to help version-conditional calls

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23305 from smithfarm/wip-cleanup-upgrade
Yuri Weinstein [Mon, 30 Jul 2018 16:01:03 +0000 (09:01 -0700)]
Merge pull request #23305 from smithfarm/wip-cleanup-upgrade

qa/upgrade: cleanup for nautilus

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoqa/tests: added 1st draft of mimic-x suite 23292/head
Yuri Weinstein [Fri, 27 Jul 2018 20:38:14 +0000 (13:38 -0700)]
qa/tests: added 1st draft of mimic-x suite

Fixes: https://tracker.ceph.com/issues/25140
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoceph-volume add a __release__ string, to help version-conditional calls 23332/head
Alfredo Deza [Mon, 30 Jul 2018 15:39:43 +0000 (11:39 -0400)]
ceph-volume add a __release__ string, to help version-conditional calls

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23276 from tchaikov/wip-config-diff-lock
Kefu Chai [Mon, 30 Jul 2018 14:24:54 +0000 (22:24 +0800)]
Merge pull request #23276 from tchaikov/wip-config-diff-lock

common/config: fix the lock in ConfigProxy::diff()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23251 from neha-ojha/wip-25112
Kefu Chai [Mon, 30 Jul 2018 14:23:18 +0000 (22:23 +0800)]
Merge pull request #23251 from neha-ojha/wip-25112

osd,mon: increase mon_max_pg_per_osd to 250

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #23249 from liewegas/wip-mon-cx-nautilus
Kefu Chai [Mon, 30 Jul 2018 14:22:40 +0000 (22:22 +0800)]
Merge pull request #23249 from liewegas/wip-mon-cx-nautilus

osd/OSDMap: fix CEPHX_V2 osd requirement to nautilus, not mimic

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>