ceph.git
5 years agoMerge PR #27141 into master v15.0.0
Sage Weil [Wed, 3 Apr 2019 19:59:03 +0000 (14:59 -0500)]
Merge PR #27141 into master

* refs/pull/27141/head:
mon/OSDMonitor: fix osd boot feature vs require_osd_release check
include/ceph_features: retire 7 other old features
include/ceph_features: retire ERASURE_CODE_PLUGINS_V2
include/ceph_features: retire OSD_ERASURE_CODES
include/ceph_features: update comment to align with N+2 upgrades
include/ceph_features: adjust whitespace for retired and now usable features
mon: remove check for jewel mons
mds/FSMap: remove support for encoding jewel FSMap
include/ceph_features: enable SERVER_OCTOPUS
test/cli/osdmaptool/feature-set-unset-list: add octopus to output
test/cli/osdmaptool/feature-set-unset-list: change unknown feature bit
qa/releases/octopus.yaml: add octopus upgrade final step
osd/OSDMap: octopus encoding features
mon/OSDMonitor: add mon_debug_no_require_octopus
mon/OSDMonitor: allow 'osd require-osd-release octopus'
mon: add ondisk incompat octopus feature
mon/mon_types: add mon feature for octopus
include/ceph_features: SERVER_O -> SERVER_OCTOPUS

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #27291 into master
Sage Weil [Wed, 3 Apr 2019 19:07:27 +0000 (14:07 -0500)]
Merge PR #27291 into master

* refs/pull/27291/head:
qa/suites/upgrade/nautilus-x-singleton: upgrade mgrs early
qa/suites/upgrade/mimic-x-singleton: upgrade mgrs later
qa/suites: add upgrade/nautilus-x-singleton and symlink from rados/upgrade
qa/suites: move rados/upgrade/mimic-x-singleton to upgrade/ and symlink

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #27146 into master
Sage Weil [Wed, 3 Apr 2019 18:49:19 +0000 (13:49 -0500)]
Merge PR #27146 into master

* refs/pull/27146/head:
mon/MonMap: add min_quorum_size() helper
mon/MDSMonitor: add 'mds ok-to-stop' command
mon: add 'mon ok-to-{stop,add-offline,rm}' commands

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #26572 from rhcs-dashboard/wip-37337-master
Ricardo Marques [Wed, 3 Apr 2019 18:46:38 +0000 (19:46 +0100)]
Merge pull request #26572 from rhcs-dashboard/wip-37337-master

mgr/dashboard: unify button/URL actions naming

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #26183 from letterwuyu/wip-rgw-get-detail-user-info
J. Eric Ivancich [Wed, 3 Apr 2019 16:36:23 +0000 (12:36 -0400)]
Merge pull request #26183 from letterwuyu/wip-rgw-get-detail-user-info

rgw: Make rgw admin ops api get user info consistent with the command line

5 years agoMerge pull request #26412 from theanalyst/rgw-orphan-fixes
J. Eric Ivancich [Wed, 3 Apr 2019 16:34:20 +0000 (12:34 -0400)]
Merge pull request #26412 from theanalyst/rgw-orphan-fixes

rgw: orphan fixes

5 years agoMerge PR #27343 into master
Sage Weil [Wed, 3 Apr 2019 14:22:19 +0000 (09:22 -0500)]
Merge PR #27343 into master

* refs/pull/27343/head:
mon/LogMonitor: add mon_cluster_log_to_file bool option

Reviewed-by: Sébastien Han <seb@redhat.com>
5 years agomgr/dashboard: add wording section to hacking.rst 26572/head
Ernesto Puerta [Fri, 29 Mar 2019 17:07:20 +0000 (18:07 +0100)]
mgr/dashboard: add wording section to hacking.rst

Fixes: http://tracker.ceph.com/issues/37337
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
5 years agomgr/dashboard: unify button/URL actions naming
Ernesto Puerta [Tue, 26 Mar 2019 18:01:01 +0000 (19:01 +0100)]
mgr/dashboard: unify button/URL actions naming

- Mappings (actually an Enum) created for actions (buttons and other UI elements) and URLs: ActionLabels and URLVerbs.
  - An alternative would be to fix/improve the current i18n-polyfill, which only works with literal strings (not even with 'const enums' which become literals after Typescript transpiling).
  - Additionally having a predefined file with some strings to translate (actions, verbs, etc) could improve on the 1st of the 2-stage i18n process (as extraction tool has a lot of limitations).
- A corresponding ActionLabelsI18n service with translated labels (it's a service as I haven't found the way to either translate no-const strings (ngx-translate/AST parser failure) or get a static translator).
  - This services could/should be extended to cover all strings that are defined in static/globally scoped objects before any I18n provider has been initialized.
- Breadcrumbs are not translated (neither were they before this change). This part remains untackled: using 'proxy' static objects and performing live translation could deal with the issue.
- New URLBuilder service created (following a established pattern in the Java/.NET world) . This should avoid the need of messing with literal URLs and string composition/parsing, and while the front-end is not meant to be consumed by anyone, Angular does not provide any other way for the app to navigate between components, so the URLs are a de-facto interface contract. Unlike this approach is not flawless, it's easier to enforce, while issues coming from free-from strings are really hard to catch.
  - This could be further improved by using a router registry/dynamic routing. Most of the routes are trivial.
- As a side effect of these changes, routing module has been refactored and some routes moved to their specific modules (pool, rbd, rgw), via loadChildren and routes.forChild() magic. Now the above mentioned components are lazy-loaded/pre-loaded (it means right after the main code is loaded). This should also decrease the loading time (though probably this is not biggest time eater here).
  - As now modules can be loaded multiple times, not only from App module by means of lazy loading, but also from other ones (as PoolModule loads BlockModule to get QoS widgets in Pool windows), now lazy loaded modules include 2 NgModules (one with imports: RouterModule.forChild(routes), meant for lazy-loading, and another without routes).
- Caveat: Some parts might not be (fully) translated (NFS, iSCSI, mirroring), as there's been ongoing work on them and it's hard to keep up with the new code.
These changes will be a waste of time if the new code does not take benefit from/adheres to it, so I'm still figuring out how to spread this (nothing really fancy to demo). Maybe adding some checks/harnessing to enforce the new naming convention (ideas greatly welcome here).

Fixes: http://tracker.ceph.com/issues/37337
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
5 years agomon/LogMonitor: add mon_cluster_log_to_file bool option 27343/head
Sage Weil [Wed, 3 Apr 2019 12:18:50 +0000 (07:18 -0500)]
mon/LogMonitor: add mon_cluster_log_to_file bool option

Allow cluster logging to a file to be disabled via a boolean.  Default
to true to avoid any change in behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #27280 from xiexingguo/wip-39039
Kefu Chai [Wed, 3 Apr 2019 10:53:55 +0000 (18:53 +0800)]
Merge pull request #27280 from xiexingguo/wip-39039

mgr: more GIL fixes

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #27245 from tspmelo/wip-nfs-typo
Ricardo Marques [Wed, 3 Apr 2019 08:44:24 +0000 (09:44 +0100)]
Merge pull request #27245 from tspmelo/wip-nfs-typo

mgr/dashboard: Fix typo in NFS form

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #27333 from tchaikov/wip-rpm-devtoolsset-8-on-aarch64
Kefu Chai [Wed, 3 Apr 2019 05:29:33 +0000 (13:29 +0800)]
Merge pull request #27333 from tchaikov/wip-rpm-devtoolsset-8-on-aarch64

rpm: enable devtoolset-8 on aarch64 also

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoinstall-deps,rpm: enable devtoolset-8 on aarch64 also 27333/head
Kefu Chai [Wed, 3 Apr 2019 03:08:04 +0000 (11:08 +0800)]
install-deps,rpm: enable devtoolset-8 on aarch64 also

in 5ae3b06e, we left aarch64 with devtoolset-7, but aarch64 builders are
also suffering from http://tracker.ceph.com/issues/38892. so i installed
devtoolset-8 on all aarch64 builders manually from the rpm packages
downloaded from koji builder:

- https://cbs.centos.org/koji/buildinfo?buildID=24923
- https://cbs.centos.org/koji/buildinfo?buildID=24931

libasan5, libubsan1 are not installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #27328 into master
Patrick Donnelly [Wed, 3 Apr 2019 01:28:09 +0000 (18:28 -0700)]
Merge PR #27328 into master

* refs/pull/27328/head:
qa/tests: reduce number of jobs for `kcephfs`

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #27310 from tchaikov/wip-crimson-cache-ss-oi
Kefu Chai [Wed, 3 Apr 2019 01:24:05 +0000 (09:24 +0800)]
Merge pull request #27310 from tchaikov/wip-crimson-cache-ss-oi

crimson/osd: cache object_info and snapset in PGBackend

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #27307 from tchaikov/wip-crimson-osd-hb
Kefu Chai [Wed, 3 Apr 2019 01:14:37 +0000 (09:14 +0800)]
Merge pull request #27307 from tchaikov/wip-crimson-osd-hb

crimson/osd: do not add whoami as hb peer and cleanups

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoqa/tests: reduce number of jobs for `kcephfs` 27328/head
Yuri Weinstein [Tue, 2 Apr 2019 22:38:55 +0000 (15:38 -0700)]
qa/tests: reduce number of jobs for `kcephfs`

we need it on `master` as well
see https://github.com/ceph/ceph/pull/27165

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoqa/suites/upgrade/nautilus-x-singleton: upgrade mgrs early 27291/head
Sage Weil [Tue, 2 Apr 2019 21:41:15 +0000 (16:41 -0500)]
qa/suites/upgrade/nautilus-x-singleton: upgrade mgrs early

The mgrmap may change when the mons upgrade, causing the mgr daemons to
respawn.  Restart mgr daemons before mons to avoid a mismatch between
the running version and the ondisk binary.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/upgrade/mimic-x-singleton: upgrade mgrs later
Sage Weil [Tue, 2 Apr 2019 21:39:58 +0000 (16:39 -0500)]
qa/suites/upgrade/mimic-x-singleton: upgrade mgrs later

The mgrmap may change when the mons upgrade, causing the mgr daemons to
respawn.  Delay the upgrade until later so that the ondisk binary does
not change out from underneath them.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites: add upgrade/nautilus-x-singleton and symlink from rados/upgrade
Sage Weil [Tue, 2 Apr 2019 21:34:02 +0000 (16:34 -0500)]
qa/suites: add upgrade/nautilus-x-singleton and symlink from rados/upgrade

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites: move rados/upgrade/mimic-x-singleton to upgrade/ and symlink
Sage Weil [Tue, 2 Apr 2019 21:33:38 +0000 (16:33 -0500)]
qa/suites: move rados/upgrade/mimic-x-singleton to upgrade/ and symlink

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #27316 into master
Sage Weil [Tue, 2 Apr 2019 21:24:52 +0000 (16:24 -0500)]
Merge PR #27316 into master

* refs/pull/27316/head:
doc/rados/operations: document BLUEFS_SPILLOVER

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agomon/OSDMonitor: fix osd boot feature vs require_osd_release check
Sage Weil [Tue, 2 Apr 2019 14:28:25 +0000 (09:28 -0500)]
mon/OSDMonitor: fix osd boot feature vs require_osd_release check

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: retire 7 other old features
Sage Weil [Sat, 23 Mar 2019 07:19:53 +0000 (02:19 -0500)]
include/ceph_features: retire 7 other old features

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: retire ERASURE_CODE_PLUGINS_V2
Sage Weil [Sat, 23 Mar 2019 07:17:48 +0000 (02:17 -0500)]
include/ceph_features: retire ERASURE_CODE_PLUGINS_V2

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: retire OSD_ERASURE_CODES
Sage Weil [Sat, 23 Mar 2019 07:17:03 +0000 (02:17 -0500)]
include/ceph_features: retire OSD_ERASURE_CODES

We can use this again in Q.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: update comment to align with N+2 upgrades
Sage Weil [Sat, 23 Mar 2019 07:15:14 +0000 (02:15 -0500)]
include/ceph_features: update comment to align with N+2 upgrades

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: adjust whitespace for retired and now usable features
Sage Weil [Sat, 23 Mar 2019 07:10:29 +0000 (02:10 -0500)]
include/ceph_features: adjust whitespace for retired and now usable features

The blank line suggests that the feature is now reusable.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon: remove check for jewel mons
Sage Weil [Sat, 23 Mar 2019 07:00:40 +0000 (02:00 -0500)]
mon: remove check for jewel mons

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomds/FSMap: remove support for encoding jewel FSMap
Sage Weil [Sat, 23 Mar 2019 07:00:25 +0000 (02:00 -0500)]
mds/FSMap: remove support for encoding jewel FSMap

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: enable SERVER_OCTOPUS
Sage Weil [Tue, 26 Mar 2019 18:21:33 +0000 (13:21 -0500)]
include/ceph_features: enable SERVER_OCTOPUS

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest/cli/osdmaptool/feature-set-unset-list: add octopus to output
Sage Weil [Mon, 25 Mar 2019 11:22:44 +0000 (06:22 -0500)]
test/cli/osdmaptool/feature-set-unset-list: add octopus to output

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest/cli/osdmaptool/feature-set-unset-list: change unknown feature bit
Sage Weil [Mon, 25 Mar 2019 11:17:58 +0000 (06:17 -0500)]
test/cli/osdmaptool/feature-set-unset-list: change unknown feature bit

Use something we won't consume anytime soon.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/releases/octopus.yaml: add octopus upgrade final step
Sage Weil [Fri, 22 Mar 2019 22:34:57 +0000 (17:34 -0500)]
qa/releases/octopus.yaml: add octopus upgrade final step

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: octopus encoding features
Sage Weil [Fri, 22 Mar 2019 22:33:02 +0000 (17:33 -0500)]
osd/OSDMap: octopus encoding features

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/OSDMonitor: add mon_debug_no_require_octopus
Sage Weil [Fri, 22 Mar 2019 22:33:39 +0000 (17:33 -0500)]
mon/OSDMonitor: add mon_debug_no_require_octopus

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/OSDMonitor: allow 'osd require-osd-release octopus'
Sage Weil [Fri, 22 Mar 2019 22:30:11 +0000 (17:30 -0500)]
mon/OSDMonitor: allow 'osd require-osd-release octopus'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #27223 from ivancich/wip-fix-resharding-issue
J. Eric Ivancich [Tue, 2 Apr 2019 20:24:36 +0000 (16:24 -0400)]
Merge pull request #27223 from ivancich/wip-fix-resharding-issue

rgw: race condition between resharding and ops waiting on resharding

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agodoc/rados/operations: document BLUEFS_SPILLOVER 27316/head
Sage Weil [Tue, 2 Apr 2019 14:19:04 +0000 (09:19 -0500)]
doc/rados/operations: document BLUEFS_SPILLOVER

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: Fix typo in NFS form 27245/head
Tiago Melo [Thu, 28 Mar 2019 14:27:51 +0000 (13:27 -0100)]
mgr/dashboard: Fix typo in NFS form

Fixes: http://tracker.ceph.com/issues/39067
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge PR #27265 into master
Sage Weil [Tue, 2 Apr 2019 15:52:14 +0000 (10:52 -0500)]
Merge PR #27265 into master

* refs/pull/27265/head:
valgrind.supp: add clauses for uninitialised gcm.Xi in OpenSSL.
src/valgrind.supp: replace with the teuthology's whitelist.

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #27313 into master
Sage Weil [Tue, 2 Apr 2019 15:07:57 +0000 (10:07 -0500)]
Merge PR #27313 into master

* refs/pull/27313/head:
mon: quiet devname log noise

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #26966 from SUSE/wip-orchestrator-deepsea-fix-device-ls
Sebastian Wagner [Tue, 2 Apr 2019 14:16:23 +0000 (16:16 +0200)]
Merge pull request #26966 from SUSE/wip-orchestrator-deepsea-fix-device-ls

mgr/deepsea: use ceph_volume output in get_inventory()

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomon: quiet devname log noise 27313/head
Sage Weil [Tue, 2 Apr 2019 13:49:01 +0000 (08:49 -0500)]
mon: quiet devname log noise

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #27308 from tchaikov/wip-init-ceph-patience-is-a-virtue
Kefu Chai [Tue, 2 Apr 2019 13:35:38 +0000 (21:35 +0800)]
Merge pull request #27308 from tchaikov/wip-init-ceph-patience-is-a-virtue

init-ceph: wait longer before resending $signal

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #27255 from adamemerson/wip-names-common-through-objecter
Kefu Chai [Tue, 2 Apr 2019 11:31:36 +0000 (19:31 +0800)]
Merge pull request #27255 from adamemerson/wip-names-common-through-objecter

Remove dependence on `using namespace`: Build of 'common' through osdc/Objecter.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: cache object_info and snapset in PGBackend 27310/head
Kefu Chai [Tue, 2 Apr 2019 08:55:50 +0000 (16:55 +0800)]
crimson/osd: cache object_info and snapset in PGBackend

for better performance

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinit-ceph: wait longer before resending $signal 27308/head
Kefu Chai [Tue, 2 Apr 2019 06:31:05 +0000 (14:31 +0800)]
init-ceph: wait longer before resending $signal

if ceph-osd takes longer than 1 seconds to unmount the objectstore, it
won't get a chance to fully persist all of its stuff to disk before
init-ceph kills it again.

in my case, `MemStore::_save()` fails to write $path/collections before
it gets killed, if it has more than 512 PGs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: do not add whoami as hb peer 27307/head
Kefu Chai [Tue, 2 Apr 2019 06:23:55 +0000 (14:23 +0800)]
crimson/osd: do not add whoami as hb peer

it does not make sense to say hello to myself.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: do not store whoami or nonce in Heartbeat
Kefu Chai [Tue, 2 Apr 2019 06:21:38 +0000 (14:21 +0800)]
crimson/osd: do not store whoami or nonce in Heartbeat

we don't create messengers in the class which consumes them anymore, so
no need to have these member variable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/os: lower debug level of i/o to "debug"
Kefu Chai [Tue, 2 Apr 2019 06:21:05 +0000 (14:21 +0800)]
crimson/os: lower debug level of i/o to "debug"

for better performance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/deepsea: use ceph_volume output in get_inventory() 26966/head
Tim Serong [Fri, 15 Mar 2019 04:52:23 +0000 (15:52 +1100)]
mgr/deepsea: use ceph_volume output in get_inventory()

DeepSea is being updated to use ceph_volume internally (see
https://github.com/SUSE/DeepSea/pull/1517).  Once this is done,
the mgr_orch.get_inventory runner will just be returning the
raw ceph_volume output, so this commit updates the DeepSea mgr
module to match.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agomgr/deepsea: log salt job failures
Tim Serong [Thu, 14 Mar 2019 11:48:44 +0000 (22:48 +1100)]
mgr/deepsea: log salt job failures

If a request to salt succeeds, but the event comes back with some internal
failure (e.g.: an exception was thrown inside the salt runner), we need to
log this so the admin can find out what on earth went wrong.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agomgr/deepsea: use empty strings rather than None for option defaults
Tim Serong [Thu, 14 Mar 2019 10:10:38 +0000 (21:10 +1100)]
mgr/deepsea: use empty strings rather than None for option defaults

This makes the _config_valid() function work properly; the option
defaults are being strinified somewhere, so we need to use empty
strings rather than None (which becomes "None"), in order to check
if they're set or not.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agoMerge PR #27301 into master
Sage Weil [Tue, 2 Apr 2019 01:54:36 +0000 (20:54 -0500)]
Merge PR #27301 into master

* refs/pull/27301/head:
qa: remove requirement on simple msgr

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoqa: remove requirement on simple msgr 27301/head
Patrick Donnelly [Sat, 30 Mar 2019 04:57:33 +0000 (21:57 -0700)]
qa: remove requirement on simple msgr

Fixes: http://tracker.ceph.com/issues/39079
Introduced-by: 28b4392a7191c5ed59c03cdd113050107a8109fc
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #26970 into master
Patrick Donnelly [Mon, 1 Apr 2019 22:06:06 +0000 (15:06 -0700)]
Merge PR #26970 into master

* refs/pull/26970/head:
mds: initialize cap_revoke_eviction_timeout with conf

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #26992 into master
Patrick Donnelly [Mon, 1 Apr 2019 22:04:50 +0000 (15:04 -0700)]
Merge PR #26992 into master

* refs/pull/26992/head:
mount.ceph.c: do not pass nofail to the kernel

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #27087 into master
Patrick Donnelly [Mon, 1 Apr 2019 22:02:51 +0000 (15:02 -0700)]
Merge PR #27087 into master

* refs/pull/27087/head:
mds: remove duplicated check on balance amount

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #27063 into master
Patrick Donnelly [Mon, 1 Apr 2019 21:46:25 +0000 (14:46 -0700)]
Merge PR #27063 into master

* refs/pull/27063/head:
mds: there is an assertion when calling Beacon::shutdown()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #27294 from tspmelo/wip-nfs-squash
Ricardo Marques [Mon, 1 Apr 2019 21:13:55 +0000 (22:13 +0100)]
Merge pull request #27294 from tspmelo/wip-nfs-squash

mgr/dashboard: Fix NFS squash default value

Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agomon/MonMap: add min_quorum_size() helper 27146/head
Sage Weil [Mon, 1 Apr 2019 15:20:46 +0000 (10:20 -0500)]
mon/MonMap: add min_quorum_size() helper

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MDSMonitor: add 'mds ok-to-stop' command
Sage Weil [Sat, 23 Mar 2019 21:49:33 +0000 (16:49 -0500)]
mon/MDSMonitor: add 'mds ok-to-stop' command

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #25353 from cbodley/wip-rgw-sysobj-yield
Casey Bodley [Mon, 1 Apr 2019 17:19:26 +0000 (13:19 -0400)]
Merge pull request #25353 from cbodley/wip-rgw-sysobj-yield

rgw: add optional_yield to SysObj service interfaces

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoMerge pull request #25355 from cbodley/wip-rgw-http-yield
Casey Bodley [Mon, 1 Apr 2019 17:18:56 +0000 (13:18 -0400)]
Merge pull request #25355 from cbodley/wip-rgw-http-yield

rgw: add optional_yield to http client interface

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
5 years agoMerge pull request #27276 from cbodley/wip-39033
Casey Bodley [Mon, 1 Apr 2019 16:56:47 +0000 (12:56 -0400)]
Merge pull request #27276 from cbodley/wip-39033

rgw multisite: data sync checks empty next_marker for datalog

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agomon: add ondisk incompat octopus feature
Sage Weil [Fri, 22 Mar 2019 22:29:43 +0000 (17:29 -0500)]
mon: add ondisk incompat octopus feature

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/mon_types: add mon feature for octopus
Sage Weil [Fri, 22 Mar 2019 22:29:18 +0000 (17:29 -0500)]
mon/mon_types: add mon feature for octopus

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoinclude/ceph_features: SERVER_O -> SERVER_OCTOPUS
Sage Weil [Fri, 22 Mar 2019 22:28:47 +0000 (17:28 -0500)]
include/ceph_features: SERVER_O -> SERVER_OCTOPUS

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon: add 'mon ok-to-{stop,add-offline,rm}' commands
Sage Weil [Sat, 23 Mar 2019 20:52:04 +0000 (15:52 -0500)]
mon: add 'mon ok-to-{stop,add-offline,rm}' commands

Helpers to decide when it is safe to stop a mon, add a mon that is
not started, or remove a mon.  (Adding and start a mon would always
be safe, but it takes time to sync, so it's not really possible to do
quickly.)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #27244 from tspmelo/wip-nfsv3-prop
Ricardo Marques [Mon, 1 Apr 2019 15:40:44 +0000 (16:40 +0100)]
Merge pull request #27244 from tspmelo/wip-nfsv3-prop

mgr/dashboard: Fix deletion of NFS protocol properties

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoMerge pull request #27130 from cbodley/wip-38700
Casey Bodley [Mon, 1 Apr 2019 15:24:47 +0000 (11:24 -0400)]
Merge pull request #27130 from cbodley/wip-38700

rgw: decrypt filter does not cross multipart boundaries

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agomgr/dashboard: Fix NFS squash default value 27294/head
Tiago Melo [Mon, 1 Apr 2019 14:50:44 +0000 (14:50 +0000)]
mgr/dashboard: Fix NFS squash default value

Fixes: http://tracker.ceph.com/issues/39064
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge PR #27206 into master
Sage Weil [Mon, 1 Apr 2019 13:37:10 +0000 (08:37 -0500)]
Merge PR #27206 into master

* refs/pull/27206/head:
osd: shutdown recovery_request_timer earlier

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #27074 from LenzGr/master-documentation
Jason Dillaman [Mon, 1 Apr 2019 13:20:24 +0000 (09:20 -0400)]
Merge pull request #27074 from LenzGr/master-documentation

doc: Updated dashboard iSCSI configuration, added labels

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #27164 from Devp00l/issue-38937
Ricardo Marques [Mon, 1 Apr 2019 10:35:27 +0000 (11:35 +0100)]
Merge pull request #27164 from Devp00l/issue-38937

mgr/dashboard: Back button component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #27269 from rhcs-dashboard/wip-39030-master
Sebastian Wagner [Mon, 1 Apr 2019 08:53:21 +0000 (10:53 +0200)]
Merge pull request #27269 from rhcs-dashboard/wip-39030-master

mgr/dashboard: update vstart to use new ssl port

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #27203 from falcon78921/wip-doc-38721
Kefu Chai [Mon, 1 Apr 2019 07:05:58 +0000 (15:05 +0800)]
Merge pull request #27203 from falcon78921/wip-doc-38721

doc: removed OpenStack Kilo references in Keystone docs

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #27264 from rouming/fio-ceph-messenger--dummy-auth-for-v2
Kefu Chai [Mon, 1 Apr 2019 07:03:01 +0000 (15:03 +0800)]
Merge pull request #27264 from rouming/fio-ceph-messenger--dummy-auth-for-v2

fio_ceph_messenger: catch up v2 proto changes by using dummy auth

Reviewed-by: Ricardo Dias <rdias@suse.com>
5 years agomgr/BaseMgrModule: drop GIL in ceph_store_set 27280/head
xie xingguo [Sat, 30 Mar 2019 03:26:19 +0000 (11:26 +0800)]
mgr/BaseMgrModule: drop GIL in ceph_store_set

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agomgr/BaseMgrModule: drop GIL in set_config
xie xingguo [Sat, 30 Mar 2019 03:15:49 +0000 (11:15 +0800)]
mgr/BaseMgrModule: drop GIL in set_config

Holding GIL and run mon_command turns out to be easily deadlock-prone.
https://tracker.ceph.com/issues/35985 is a typical report, and here is
another.

Fix by using PyModuleConfig's own lock for protection of concurrent
accesses, which should be sufficient enough.

Fixes: http://tracker.ceph.com/issues/39040
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agodoc: Updated dashboard iSCSI configuration, added labels 27074/head
Lenz Grimmer [Sun, 31 Mar 2019 18:32:15 +0000 (13:32 -0500)]
doc: Updated dashboard iSCSI configuration, added labels

Added note about the requirement for the latest ceph-iscsi version
3 to the dashboard documentation. Added some doc references
and replaced some URLs in the iSCSI docs with reST labels instead.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
5 years agoMerge pull request #27205 from xiexingguo/wip-38784
Xie Xingguo [Sat, 30 Mar 2019 08:46:08 +0000 (16:46 +0800)]
Merge pull request #27205 from xiexingguo/wip-38784

osd/PG: introduce all_missing_unfound helper

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #27182 from xiexingguo/wip-38931
Xie Xingguo [Sat, 30 Mar 2019 08:36:47 +0000 (16:36 +0800)]
Merge pull request #27182 from xiexingguo/wip-38931

osd/PG: move down peers out from peer_purged

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoosd/PG: move down peers out from peer_purged 27205/head
xie xingguo [Tue, 26 Mar 2019 07:02:02 +0000 (15:02 +0800)]
osd/PG: move down peers out from peer_purged

In purge_strays(), we'll aggressively clear stray_set and
add all related peers into peer_purged.

However, if the corrsponding peer is down and becomes
up again, (unconditionally) adding it to peer_purged
will prevent primary from re-purging it.
(See Active::react(const MNotifyRec& notevt))

On consuming a new osdmap, let's move any down peers out from
peer_purged simutaneously. This way we can lower the risk
of leaving any leftover PGs behind.

Related-to: http://tracker.ceph.com/issues/38931
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge PR #27249 into master
Sage Weil [Fri, 29 Mar 2019 22:58:53 +0000 (17:58 -0500)]
Merge PR #27249 into master

* refs/pull/27249/head:
qa/suites/rados/thrash-old-clients: fix up v1/v2 options

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #27133 into master
Sage Weil [Fri, 29 Mar 2019 22:58:33 +0000 (17:58 -0500)]
Merge PR #27133 into master

* refs/pull/27133/head:
log,global: do not start flusher thread until after we have our mon config
log: buffer log entries until flusher thread starts
log: open log file from flusher thread
common/ceph_context: fix log_to_file observer

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #26976 into master
Patrick Donnelly [Fri, 29 Mar 2019 21:44:16 +0000 (14:44 -0700)]
Merge PR #26976 into master

* refs/pull/26976/head:
doc: add doc for cephfs lazyio

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #27199 into master
Patrick Donnelly [Fri, 29 Mar 2019 21:41:37 +0000 (14:41 -0700)]
Merge PR #27199 into master

* refs/pull/27199/head:
mds: fix dump routine for session_info_t.used_inos
mds: fix some misleading log messages
client: comment fix in _lookup
mds: fix comment over MDRequestImpl
mds: use stdbool.h instead of hand-rolling our own bool type

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agomgr/dashboard: udpate vstart to use new ssl port 27269/head
Ernesto Puerta [Fri, 29 Mar 2019 13:06:25 +0000 (14:06 +0100)]
mgr/dashboard: udpate vstart to use new ssl port

Fixes: https://tracker.ceph.com/issues/39030
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #27242 from theanalyst/beast-fe-ports
Casey Bodley [Fri, 29 Mar 2019 17:22:09 +0000 (13:22 -0400)]
Merge pull request #27242 from theanalyst/beast-fe-ports

rgw: beast port parsing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: beast: set a default port for endpoints 27242/head
Abhishek Lekshmanan [Thu, 28 Mar 2019 12:41:23 +0000 (13:41 +0100)]
rgw: beast: set a default port for endpoints

if no port is specified we don't set one(or set to 0), and don't exactly error
out, so rgw keeps running without being bound to a port. Set the port to default
in these cases

Fixes: http://tracker.ceph.com/issues/39000
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: callers pass null_yield to RGWSI_SysObj 25353/head
Casey Bodley [Fri, 23 Nov 2018 20:46:22 +0000 (15:46 -0500)]
rgw: callers pass null_yield to RGWSI_SysObj

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add optional_yield to RGWSI_Notify
Casey Bodley [Sat, 24 Nov 2018 15:19:15 +0000 (10:19 -0500)]
rgw: add optional_yield to RGWSI_Notify

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add optional_yield to RGWSI_SysObj
Casey Bodley [Fri, 23 Nov 2018 20:45:27 +0000 (15:45 -0500)]
rgw: add optional_yield to RGWSI_SysObj

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add optional_yield to RGWSI_SysObj_Cache
Casey Bodley [Fri, 23 Nov 2018 20:44:57 +0000 (15:44 -0500)]
rgw: add optional_yield to RGWSI_SysObj_Cache

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add optional_yield to RGWSI_SysObj_Core interface
Casey Bodley [Fri, 23 Nov 2018 20:44:17 +0000 (15:44 -0500)]
rgw: add optional_yield to RGWSI_SysObj_Core interface

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: RGWSI_RADOS::Obj::notify() takes optional_yield
Casey Bodley [Sat, 24 Nov 2018 00:28:49 +0000 (19:28 -0500)]
rgw: RGWSI_RADOS::Obj::notify() takes optional_yield

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add rgw_rados_notify() with optional_yield
Casey Bodley [Sat, 24 Nov 2018 00:28:08 +0000 (19:28 -0500)]
rgw: add rgw_rados_notify() with optional_yield

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