]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Save button doesn't prevent saving an invalid form 24577/head
Patrick Nawracay [Sat, 13 Oct 2018 20:58:36 +0000 (22:58 +0200)]
mgr/dashboard: Save button doesn't prevent saving an invalid form

Fixes: http://tracker.ceph.com/issues/36426
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge pull request #24564 from neha-ojha/wip-21931
Neha Ojha [Sat, 13 Oct 2018 02:15:39 +0000 (19:15 -0700)]
Merge pull request #24564 from neha-ojha/wip-21931

osd: do not overestimate the size of the object for reads with trimtrunc

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed By: Xie Xingguo <xie.xingguo@zte.com.cn>

6 years agoMerge PR #24204 into master
Sage Weil [Fri, 12 Oct 2018 21:29:44 +0000 (16:29 -0500)]
Merge PR #24204 into master

* refs/pull/24204/head:
qa/suites/rgw/tempest: valgrind on centos only

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
6 years agoMerge PR #24249 into master
Sage Weil [Fri, 12 Oct 2018 21:29:28 +0000 (16:29 -0500)]
Merge PR #24249 into master

* refs/pull/24249/head:
doc/rados/troubleshooting-mon: update mondb recovery script

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24296 into master
Sage Weil [Fri, 12 Oct 2018 21:16:39 +0000 (16:16 -0500)]
Merge PR #24296 into master

* refs/pull/24296/head:
osd: Handle is_stopping() by discarding item so it doesn't loop
osd: Simplify _process() logic recently added

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24131 into master
Sage Weil [Fri, 12 Oct 2018 21:14:55 +0000 (16:14 -0500)]
Merge PR #24131 into master

* refs/pull/24131/head:
tests, common: introduce bufferlist::apennd benchmark.
test, common: add BufferListIterator.BenchDeref benchmark.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #24270 into master
Sage Weil [Fri, 12 Oct 2018 21:14:37 +0000 (16:14 -0500)]
Merge PR #24270 into master

* refs/pull/24270/head:
osd: make 'cache drop' command require 'executable' permission
osd: rename 'drop cache' and 'get cache stats' to group them by component
doc: add documentation for 'drop cache' and 'get cache stats'
osd: don't print osdmap cache stats in 'get cache stats' command
osd: do not clear osdmap cache on 'drop cache' command
osd: offload dumping cache stats to the object store
osd: pass a stream to flush_cache commands for more verbosity
osd: implement flush_cache() method for Filestore
osd: add clear_cache and get_cache_object_count commands

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24312 into master
Sage Weil [Fri, 12 Oct 2018 21:14:19 +0000 (16:14 -0500)]
Merge PR #24312 into master

* refs/pull/24312/head:
osd: kill the std::stringstream in ReplicatedBackend::do_repop_reply.
osd: bump-up the dout level in PGLog::write_log_and_missing.

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24520 into master
Sage Weil [Fri, 12 Oct 2018 21:13:57 +0000 (16:13 -0500)]
Merge PR #24520 into master

* refs/pull/24520/head:
install-deps.sh: dashboard frontend needs git

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge PR #24521 into master
Sage Weil [Fri, 12 Oct 2018 21:13:37 +0000 (16:13 -0500)]
Merge PR #24521 into master

* refs/pull/24521/head:
ceph.in: reinstate interactive mode output

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agoosd/PrimaryLogPG.cc: reassign size only when object size > truncate_size 24564/head
Neha Ojha [Tue, 9 Oct 2018 22:57:15 +0000 (15:57 -0700)]
osd/PrimaryLogPG.cc: reassign size only when object size > truncate_size

Before setting size equal to op.extent.truncate_size, we need to check
if the size of the object is greater than the truncate_size. We do not
need to set size to op.extent.truncate_size, in the case where the size of
the object is less than op.extent.truncate_size.

Without this change, we were always setting size =
op.extent.truncate_size, when (seq < op.extent.truncate_seq) and
(op.extent.offset + op.extent.length > op.extent.truncate_size), were both
true. This ended up in:

1. overestimating the size of the object
2. not considering the correct size of the object, for
   the later checks, which calculate op.extent.length for the read ops
3. causing crashes when trying to read more data than what was present

Fixes: http://tracker.ceph.com/issues/21931
Fixes: http://tracker.ceph.com/issues/22330
Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoosd: print offset and length to track trimtrunc
Neha Ojha [Wed, 26 Sep 2018 23:31:44 +0000 (16:31 -0700)]
osd: print offset and length to track trimtrunc

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #24341 from joke-lee/WIP_FIX_RGWPOSTOBJ_VERSIONING
Matt Benjamin [Fri, 12 Oct 2018 17:02:33 +0000 (13:02 -0400)]
Merge pull request #24341 from joke-lee/WIP_FIX_RGWPOSTOBJ_VERSIONING

rgw: list bucket can not show the object uploaded by RGWPostObj when enable bucket versioning

6 years agoMerge pull request #24550 from dillaman/wip-36409
Jason Dillaman [Fri, 12 Oct 2018 12:39:37 +0000 (08:39 -0400)]
Merge pull request #24550 from dillaman/wip-36409

qa/workunits: replace 'realpath' with 'readlink -f' in fsstress.sh

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #24517 from jcsp/wip-23970-test
John Spray [Fri, 12 Oct 2018 12:05:40 +0000 (13:05 +0100)]
Merge pull request #24517 from jcsp/wip-23970-test

mgr/selftest: fix disabled module selection

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #24426 from Miouge1/grafana-fix1
Jan Fajerski [Fri, 12 Oct 2018 10:44:39 +0000 (12:44 +0200)]
Merge pull request #24426 from Miouge1/grafana-fix1

monitoring/grafana: Fix OSD Capacity Utlization Grafana graph

6 years agoMerge pull request #24511 from a2batic/grafana-doc
Ricardo Marques [Fri, 12 Oct 2018 09:19:48 +0000 (10:19 +0100)]
Merge pull request #24511 from a2batic/grafana-doc

mgr/dashboard: Improves documentation for Grafana Setting

Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24513 from rhcs-dashboard/27047-landing-page-info-visibility
Ricardo Marques [Fri, 12 Oct 2018 09:04:02 +0000 (10:04 +0100)]
Merge pull request #24513 from rhcs-dashboard/27047-landing-page-info-visibility

mgr/dashboard: Landing Page: info visibility

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #24222 from votdev/bug_36109
Ricardo Marques [Fri, 12 Oct 2018 09:01:39 +0000 (10:01 +0100)]
Merge pull request #24222 from votdev/bug_36109

mgr/dashboard: The RGW backend doesn't handle IPv6 properly

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoqa/tasks: qemu task now uses a relative path in suite repo for test 24550/head
Jason Dillaman [Thu, 11 Oct 2018 20:21:35 +0000 (16:21 -0400)]
qa/tasks: qemu task now uses a relative path in suite repo for test

This makes it easier to re-run tests against a suite branch without
requiring a full ceph-ci build and repo.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24402 from cbodley/wip-36302
Matt Benjamin [Thu, 11 Oct 2018 19:51:49 +0000 (15:51 -0400)]
Merge pull request #24402 from cbodley/wip-36302

librgw: initialize curl and http client for multisite

6 years agoMerge PR #24514 into master
Sage Weil [Thu, 11 Oct 2018 19:35:45 +0000 (14:35 -0500)]
Merge PR #24514 into master

* refs/pull/24514/head:
mgr/restful: do not print warning message at seeing unknown request

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoqa/workunits: replace 'realpath' with 'readlink -f' in fsstress.sh
Jason Dillaman [Thu, 11 Oct 2018 19:17:25 +0000 (15:17 -0400)]
qa/workunits: replace 'realpath' with 'readlink -f' in fsstress.sh

Fixes: http://tracker.ceph.com/issues/36409
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #24264 into master
Sage Weil [Thu, 11 Oct 2018 19:24:12 +0000 (14:24 -0500)]
Merge PR #24264 into master

* refs/pull/24264/head:
tools/rados/rados.cc: fix rados rm --force-full blocking problem

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #24287 into master
Sage Weil [Thu, 11 Oct 2018 19:22:44 +0000 (14:22 -0500)]
Merge PR #24287 into master

* refs/pull/24287/head:
osd/OSD: drop osd_lock only if pg osdmaps are truly laggy

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #24331 into master
Sage Weil [Thu, 11 Oct 2018 19:22:28 +0000 (14:22 -0500)]
Merge PR #24331 into master

* refs/pull/24331/head:
common: fix memory leaks in WeightedPriorityQueue.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #24365 into master
Sage Weil [Thu, 11 Oct 2018 19:22:13 +0000 (14:22 -0500)]
Merge PR #24365 into master

* refs/pull/24365/head:
erasure-code: var-sized array init is done separatly.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24506 into master
Sage Weil [Thu, 11 Oct 2018 18:53:20 +0000 (13:53 -0500)]
Merge PR #24506 into master

* refs/pull/24506/head:
doc/rados/troubleshooting: update notes on rebuilding mon db
ceph-objectstore-tool: update-mon-db: remove pgmap references
ceph-monstore-tool: remove remaining pgmap references, inflate-pgmap command
ceph-monstore-tool: rebuild creating_pgs
ceph-monstore-tool: rebuild: remove obsolete pgmap_meta fields

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24409 from alimaredia/wip-rgw-dpp-auth
Casey Bodley [Thu, 11 Oct 2018 17:21:40 +0000 (13:21 -0400)]
Merge pull request #24409 from alimaredia/wip-rgw-dpp-auth

rgw: thread DoutPrefixProvider into RGW::Auth_S3::authorize

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agodoc/rados/troubleshooting-mon: update mondb recovery script 24249/head
Sage Weil [Mon, 24 Sep 2018 16:12:00 +0000 (11:12 -0500)]
doc/rados/troubleshooting-mon: update mondb recovery script

- some cleanup (e.g., use $ms throughput)
- behave if the local host is in the $hosts list (use $ms.remote)
- be clear about updating all mons
- mon.0 -> mon.foo

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24428 from trociny/wip-rbd-config-global
Jason Dillaman [Thu, 11 Oct 2018 14:50:33 +0000 (10:50 -0400)]
Merge pull request #24428 from trociny/wip-rbd-config-global

rbd: add 'config global' command to get/store overrides in mon config db

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #24541 into master
Sage Weil [Thu, 11 Oct 2018 14:09:07 +0000 (09:09 -0500)]
Merge PR #24541 into master

* refs/pull/24541/head:
common/config.h: fix spelling error in this file

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomgr/selftest: fix disabled module selection 24517/head
John Spray [Wed, 10 Oct 2018 10:47:03 +0000 (11:47 +0100)]
mgr/selftest: fix disabled module selection

This was broken by always on modules -- it was also
unnecessary complication, let's just pick some
hardcoded module to use.

Signed-off-by: John Spray <john.spray@redhat.com>
6 years agoMerge PR #24305 into master
Sage Weil [Thu, 11 Oct 2018 12:27:11 +0000 (07:27 -0500)]
Merge PR #24305 into master

* refs/pull/24305/head:
msg/async: ProtocolV1: use continuations instead of direct function calls
msg/async: ProtocolV1 state machine ascii diagram

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoinstall-deps.sh: dashboard frontend needs git 24520/head
Sebastian Wagner [Wed, 10 Oct 2018 12:21:04 +0000 (14:21 +0200)]
install-deps.sh: dashboard frontend needs git

Running `npm install` for the dashboard pulls dependenies with git.
Under some setups, git was not installed when building the frontend.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #24404 from ceph/wip-batch-report-idempotent
Alfredo Deza [Thu, 11 Oct 2018 11:51:22 +0000 (07:51 -0400)]
Merge pull request #24404 from ceph/wip-batch-report-idempotent

ceph-volume: make `lvm batch` idempotent

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agocommon/config.h: fix spelling error in this file 24541/head
xiaomanh [Thu, 11 Oct 2018 10:00:51 +0000 (18:00 +0800)]
common/config.h: fix spelling error in this file

Signed-off-by: xiaomanh <huangxiaoman@cmss.chinamobile.com>
6 years agoMerge pull request #24425 from b-ranto/wip-ld-hardening
Boris Ranto [Thu, 11 Oct 2018 09:55:37 +0000 (04:55 -0500)]
Merge pull request #24425 from b-ranto/wip-ld-hardening

rpm: Use hardened LDFLAGS

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agomgr/dashboard: Improves documentation for Grafana Setting 24511/head
Kanika Murarka [Wed, 10 Oct 2018 07:34:22 +0000 (13:04 +0530)]
mgr/dashboard: Improves documentation for Grafana Setting

Fixes: http://tracker.ceph.com/issues/36371
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
6 years agoMerge PR #23069 into master
Patrick Donnelly [Wed, 10 Oct 2018 22:29:41 +0000 (15:29 -0700)]
Merge PR #23069 into master

* refs/pull/23069/head:
tests/libcephfs: add simple reclaim test
mds: check auth name before reclaiming session
mds: reclaim session before allowing mds to become active
mds: allow client to specify its session timeout
mds: initial code for client states reclaim

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoceph-volume: extracts batch.filter_devices from Batch._get_strategy 24404/head
Andrew Schoen [Wed, 10 Oct 2018 19:28:29 +0000 (15:28 -0400)]
ceph-volume: extracts batch.filter_devices from Batch._get_strategy

This allows us to easily provide tests for that method.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: failing to get block db size from conf logs an exception
Andrew Schoen [Wed, 10 Oct 2018 18:05:25 +0000 (14:05 -0400)]
ceph-volume: failing to get block db size from conf logs an exception

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: when all devices are filtered exit gracefully
Andrew Schoen [Tue, 9 Oct 2018 18:05:54 +0000 (14:05 -0400)]
ceph-volume: when all devices are filtered exit gracefully

Even if all devices are filtered we want to return a 0 exit code and
make sure the json reporting still works.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: filter devices used by journals/block.db
Andrew Schoen [Mon, 8 Oct 2018 13:57:07 +0000 (09:57 -0400)]
ceph-volume: filter devices used by journals/block.db

If after filterering of data/block devices there are only
one device left it can not be used if it is an SSD and
has been used previously as a journal or block.db

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add rotational property to Device class
Andrew Schoen [Mon, 8 Oct 2018 13:39:05 +0000 (09:39 -0400)]
ceph-volume: add rotational property to Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add info about filtered devices to batch pretty reports
Andrew Schoen [Fri, 5 Oct 2018 21:18:48 +0000 (16:18 -0500)]
ceph-volume: add info about filtered devices to batch pretty reports

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: remove the used_by_ceph key in the json output
Andrew Schoen [Fri, 5 Oct 2018 15:45:35 +0000 (10:45 -0500)]
ceph-volume: remove the used_by_ceph key in the json output

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: fix idempotency checks for lvm batch tests
Andrew Schoen [Fri, 5 Oct 2018 15:39:54 +0000 (10:39 -0500)]
ceph-volume: fix idempotency checks for lvm batch tests

The mixed type tests will change strategy after the idempotency test so
we need to handle that in test playbook.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: fix bluestore strategy json reporting and type
Andrew Schoen [Fri, 5 Oct 2018 15:38:11 +0000 (10:38 -0500)]
ceph-volume: fix bluestore strategy json reporting and type

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: ignore failure to load ceph configuration for block.db size
Andrew Schoen [Thu, 4 Oct 2018 17:47:48 +0000 (12:47 -0500)]
ceph-volume: ignore failure to load ceph configuration for block.db size

If we fail to load a ceph configureation file when trying to get the
block.db size then just use defaults instead of throwing an error.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: fix strategy comparison in 'lvm batch'
Andrew Schoen [Thu, 4 Oct 2018 16:54:06 +0000 (11:54 -0500)]
ceph-volume: fix strategy comparison in 'lvm batch'

This also fixes some small json reporting issues with the
filestore MixedType strategy

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: raise a non zero exit code if strategy changes with batch
Andrew Schoen [Wed, 3 Oct 2018 20:01:08 +0000 (15:01 -0500)]
ceph-volume: raise a non zero exit code if strategy changes with batch

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add functional tests to ensure lvm batch is idempotent
Andrew Schoen [Wed, 3 Oct 2018 17:13:27 +0000 (12:13 -0500)]
ceph-volume: add functional tests to ensure lvm batch is idempotent

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add tests for util.device.Device.used_by_ceph
Andrew Schoen [Wed, 3 Oct 2018 15:19:45 +0000 (10:19 -0500)]
ceph-volume: add tests for util.device.Device.used_by_ceph

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: update tests to account for filtered_devices in batch
Andrew Schoen [Tue, 2 Oct 2018 20:23:39 +0000 (15:23 -0500)]
ceph-volume: update tests to account for filtered_devices in batch

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: consider block and data devices used_by_ceph
Andrew Schoen [Tue, 2 Oct 2018 20:08:10 +0000 (15:08 -0500)]
ceph-volume: consider block and data devices used_by_ceph

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add filtered_devices and used_by_ceph to all batch reports
Andrew Schoen [Tue, 2 Oct 2018 14:48:27 +0000 (09:48 -0500)]
ceph-volume: add filtered_devices and used_by_ceph to all batch reports

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: pick strategy for batch with only the unused devices
Andrew Schoen [Thu, 27 Sep 2018 20:22:17 +0000 (15:22 -0500)]
ceph-volume: pick strategy for batch with only the unused devices

This will pick a strategy, filter out any devices already been used by
ceph and then pick a strategy again. If the strategy has changed the
call should error, if the strategy is the same proceed. If there are no
unused devices then the command is a noop.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: adds a 'changed' key to lvm batch --report
Andrew Schoen [Thu, 27 Sep 2018 13:55:20 +0000 (08:55 -0500)]
ceph-volume: adds a 'changed' key to lvm batch --report

This will indicate if the command would result in any OSDs being created
or not. Other tooling can use that key for idempotency checks.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: adds used_by_ceph to filestore singletype batch report
Andrew Schoen [Wed, 26 Sep 2018 21:07:30 +0000 (16:07 -0500)]
ceph-volume: adds used_by_ceph to filestore singletype batch report

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: adds a used_by_ceph property to the Device class
Andrew Schoen [Wed, 26 Sep 2018 21:01:30 +0000 (16:01 -0500)]
ceph-volume: adds a used_by_ceph property to the Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: adds a lvs property to the Device class
Andrew Schoen [Wed, 26 Sep 2018 20:53:26 +0000 (15:53 -0500)]
ceph-volume: adds a lvs property to the Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: add vg_name to the Device class
Andrew Schoen [Wed, 26 Sep 2018 19:29:41 +0000 (14:29 -0500)]
ceph-volume: add vg_name to the Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #24525 from jtlayton/k8s-no-module-warn
John Spray [Wed, 10 Oct 2018 17:27:46 +0000 (18:27 +0100)]
Merge pull request #24525 from jtlayton/k8s-no-module-warn

mgr/orchestrator: clarify error message about kubernetes python module

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoosd: make 'cache drop' command require 'executable' permission 24270/head
Mohamad Gebai [Wed, 10 Oct 2018 15:41:21 +0000 (11:41 -0400)]
osd: make 'cache drop' command require 'executable' permission

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: rename 'drop cache' and 'get cache stats' to group them by component
Mohamad Gebai [Mon, 8 Oct 2018 15:04:22 +0000 (11:04 -0400)]
osd: rename 'drop cache' and 'get cache stats' to group them by component

Rename 'drop cache' to 'cache drop' and 'get cache stats' to 'cache
status'.

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agodoc: add documentation for 'drop cache' and 'get cache stats'
Mohamad Gebai [Thu, 4 Oct 2018 17:07:49 +0000 (13:07 -0400)]
doc: add documentation for 'drop cache' and 'get cache stats'

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: don't print osdmap cache stats in 'get cache stats' command
Mohamad Gebai [Wed, 3 Oct 2018 22:32:01 +0000 (18:32 -0400)]
osd: don't print osdmap cache stats in 'get cache stats' command

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: do not clear osdmap cache on 'drop cache' command
Mohamad Gebai [Wed, 3 Oct 2018 19:31:46 +0000 (15:31 -0400)]
osd: do not clear osdmap cache on 'drop cache' command

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: offload dumping cache stats to the object store
Mohamad Gebai [Wed, 3 Oct 2018 19:31:20 +0000 (15:31 -0400)]
osd: offload dumping cache stats to the object store

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: pass a stream to flush_cache commands for more verbosity
Mohamad Gebai [Mon, 1 Oct 2018 14:46:15 +0000 (10:46 -0400)]
osd: pass a stream to flush_cache commands for more verbosity

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: implement flush_cache() method for Filestore
Mohamad Gebai [Thu, 27 Sep 2018 17:33:56 +0000 (13:33 -0400)]
osd: implement flush_cache() method for Filestore

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoosd: add clear_cache and get_cache_object_count commands
Mohamad Gebai [Sun, 12 Aug 2018 15:43:15 +0000 (18:43 +0300)]
osd: add clear_cache and get_cache_object_count commands

Fixes: http://tracker.ceph.com/issues/24176
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
6 years agoMerge pull request #24476 from dillaman/wip-35944
Mykola Golub [Wed, 10 Oct 2018 15:40:14 +0000 (18:40 +0300)]
Merge pull request #24476 from dillaman/wip-35944

librbd: add new configuration option to always move deleted items to the trash

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #24512 from trociny/wip-qa-namespace-create_args
Jason Dillaman [Wed, 10 Oct 2018 14:42:08 +0000 (10:42 -0400)]
Merge pull request #24512 from trociny/wip-qa-namespace-create_args

qa/workunits/rbd: force v2 image format for namespace test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd: add 'config global' command to get/store overrides in mon config db 24428/head
Mykola Golub [Thu, 4 Oct 2018 15:09:16 +0000 (18:09 +0300)]
rbd: add 'config global' command to get/store overrides in mon config db

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/dashboard: Landing Page: info group visibility 24513/head
alfonsomthd [Wed, 10 Oct 2018 08:02:18 +0000 (10:02 +0200)]
mgr/dashboard: Landing Page: info group visibility
Do not display info groups not containing any card.
Fixes: https://tracker.ceph.com/issues/27047
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
6 years agoceph.in: reinstate interactive mode output 24521/head
John Spray [Tue, 9 Oct 2018 11:27:44 +0000 (07:27 -0400)]
ceph.in: reinstate interactive mode output

This was broken in the following commit:
"""
commit 474c94b81efad1b954ab789bf8a97d93cd0e74f3
Author: Mohamad Gebai <mgebai@suse.com>
Date:   Wed Feb 28 18:12:19 2018 -0500

ceph.in: handle polling commands

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
"""

Fixes: http://tracker.ceph.com/issues/36358
Signed-off-by: John Spray <john.spray@redhat.com>
6 years agodoc/rados/troubleshooting: update notes on rebuilding mon db 24506/head
Sage Weil [Wed, 10 Oct 2018 13:41:38 +0000 (08:41 -0500)]
doc/rados/troubleshooting: update notes on rebuilding mon db

- those old pg settings are no longer lost as they go in the OSDMap now
- add a note about pools that were mid-create

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-objectstore-tool: update-mon-db: remove pgmap references
Sage Weil [Wed, 10 Oct 2018 13:38:27 +0000 (08:38 -0500)]
ceph-objectstore-tool: update-mon-db: remove pgmap references

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-monstore-tool: remove remaining pgmap references, inflate-pgmap command
Sage Weil [Wed, 10 Oct 2018 13:36:58 +0000 (08:36 -0500)]
ceph-monstore-tool: remove remaining pgmap references, inflate-pgmap command

These are all also obsolete.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-monstore-tool: rebuild creating_pgs
Sage Weil [Tue, 9 Oct 2018 23:06:18 +0000 (18:06 -0500)]
ceph-monstore-tool: rebuild creating_pgs

In particular, we need to rebuild the created_pools set or else the mon
will try to recreate every PG in the system.  On an aged cluster, that
is extremely expensive, and will break things.

Fixes: http://tracker.ceph.com/issues/36306
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-monstore-tool: rebuild: remove obsolete pgmap_meta fields
Sage Weil [Tue, 9 Oct 2018 23:01:06 +0000 (18:01 -0500)]
ceph-monstore-tool: rebuild: remove obsolete pgmap_meta fields

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/workunits/rbd: test new move-to-trash on image remove config override 24476/head
Jason Dillaman [Mon, 8 Oct 2018 14:50:32 +0000 (10:50 -0400)]
qa/workunits/rbd: test new move-to-trash on image remove config override

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: optionally move image to trash when removed by user
Jason Dillaman [Mon, 8 Oct 2018 14:46:18 +0000 (10:46 -0400)]
librbd: optionally move image to trash when removed by user

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: move remove API method to api namespace
Jason Dillaman [Mon, 8 Oct 2018 14:09:39 +0000 (10:09 -0400)]
librbd: move remove API method to api namespace

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: move trash API methods to api namespace
Jason Dillaman [Mon, 8 Oct 2018 13:55:18 +0000 (09:55 -0400)]
librbd: move trash API methods to api namespace

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24407 from alfredodeza/wip-rm26953
Andrew Schoen [Wed, 10 Oct 2018 12:57:34 +0000 (08:57 -0400)]
Merge pull request #24407 from alfredodeza/wip-rm26953

ceph-volume: allow to specify --cluster-fsid instead of reading from ceph.conf

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #24515 from tchaikov/wip-cmake-rgw
Kefu Chai [Wed, 10 Oct 2018 12:32:02 +0000 (20:32 +0800)]
Merge pull request #24515 from tchaikov/wip-cmake-rgw

cmake: do not use plain target_link_libraries(rgw_a ...)

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23622 from renhwztetecs/renhw-wip-25103
John Spray [Wed, 10 Oct 2018 12:28:33 +0000 (13:28 +0100)]
Merge pull request #23622 from renhwztetecs/renhw-wip-25103

mgr: fixup pgs show in unknown state

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #24448 from votdev/bug_36325
Ricardo Marques [Wed, 10 Oct 2018 11:18:35 +0000 (12:18 +0100)]
Merge pull request #24448 from votdev/bug_36325

mgr/dashboard: Performance counter progress bar keeps infinitely looping

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23970 from noahdesu/mgr-always-on-mods-v2
John Spray [Wed, 10 Oct 2018 11:17:41 +0000 (12:17 +0100)]
Merge pull request #23970 from noahdesu/mgr-always-on-mods-v2

mgr: always on modules v2

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agoMerge pull request #24239 from votdev/python_ceph_audit_log
John Spray [Wed, 10 Oct 2018 10:47:49 +0000 (11:47 +0100)]
Merge pull request #24239 from votdev/python_ceph_audit_log

mgr: Add ability to trigger a cluster/audit log message from Python

Reviewed-by: John Spray <john.spray@redhat.com>
6 years agocmake: do not use plain target_link_libraries(rgw_a ...) 24515/head
Kefu Chai [Wed, 10 Oct 2018 10:18:03 +0000 (18:18 +0800)]
cmake: do not use plain target_link_libraries(rgw_a ...)

this addresses following error:

CMake Error at src/rgw/CMakeLists.txt:178 (target_link_libraries):
  The plain signature for target_link_libraries has already been used
with
  the target "rgw_a".  All uses of target_link_libraries with a target
must
  be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/rgw/CMakeLists.txt:168 (target_link_libraries)

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/restful: do not print warning message at seeing unknown request 24514/head
Kefu Chai [Wed, 10 Oct 2018 08:22:59 +0000 (16:22 +0800)]
mgr/restful: do not print warning message at seeing unknown request

mgr broadcast "notify()" to call registered plugins upon finishing a
send_command() request. and restful plugin prints a warning message if
the request is not issued by itself. apparently, there is good chance
that the finished request is sent by other mgr plugins, in that case,
restful plugin always prints the warning messages like:

 "2018-10-09 14:52:07.818 7fbc4d8c5700  1 mgr[restful] Unknown request
''

this is misleading and annoying. so, in this change

* add a prefix of "restful.module" before that tag used for identifying
  a request. this prefix helps to differentiate the requests sent by
  restful plugin from other requests.
* do not print warning message if none running request matches the given tag
* break at seeing the first request matches the given tag, because
  the tags used by restful plugin are unique.
* do not str(self.id) before composing the tag, as it is a `str`
  already, see CommandsRequest.__init__()
* early return to reduce the indent level

Fixes: http://tracker.ceph.com/issues/36374
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24487 from badone/wip-undefined-references-to-dpdk-symbols
Kefu Chai [Wed, 10 Oct 2018 08:48:22 +0000 (16:48 +0800)]
Merge pull request #24487 from badone/wip-undefined-references-to-dpdk-symbols

cmake/modules/BuildDPDK.cmake: Build required DPDK libraries

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24450 from dillaman/wip-rbd-conf-keys
Mykola Golub [Wed, 10 Oct 2018 08:01:50 +0000 (11:01 +0300)]
Merge pull request #24450 from dillaman/wip-rbd-conf-keys

librbd: simplify config override handling

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/workunits/rbd: force v2 image format for namespace test 24512/head
Mykola Golub [Wed, 10 Oct 2018 07:46:14 +0000 (10:46 +0300)]
qa/workunits/rbd: force v2 image format for namespace test

While here, fix test_locking too.

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #24509 from badone/wip-releases-add-13.2.2
Kefu Chai [Wed, 10 Oct 2018 06:47:51 +0000 (14:47 +0800)]
Merge pull request #24509 from badone/wip-releases-add-13.2.2

doc/releases: Add Mimic release 13.2.2

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24368 from tchaikov/wip-cmake-cleanup
Kefu Chai [Wed, 10 Oct 2018 04:39:06 +0000 (12:39 +0800)]
Merge pull request #24368 from tchaikov/wip-cmake-cleanup

cmake: use OpenSSL::Crypto instead of OPENSSL_LIBRARIES

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