]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agodoc: 14.2.19 Release Note 40503/head
David Galloway [Tue, 30 Mar 2021 16:27:51 +0000 (12:27 -0400)]
doc: 14.2.19 Release Note

Signed-off-by: David Galloway <dgallowa@redhat.com>
4 years agoMerge pull request #40496 from tchaikov/wip-cmake-test
Kefu Chai [Tue, 30 Mar 2021 12:58:03 +0000 (20:58 +0800)]
Merge pull request #40496 from tchaikov/wip-cmake-test

cmake: pass unparsed args to add_ceph_test()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocmake: pass unparsed args to add_ceph_test() 40496/head
Kefu Chai [Tue, 30 Mar 2021 08:18:48 +0000 (16:18 +0800)]
cmake: pass unparsed args to add_ceph_test()

this allows us to pass extra argument to the script or executable to
further customize its behavior when testing.

also fix all the callers of add_ceph_unittest(), as there is no need to
repeat the executable, which is also used as the name of the test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: pass PARALLEL to add_ceph_unittest()
Kefu Chai [Tue, 30 Mar 2021 08:17:14 +0000 (16:17 +0800)]
cmake: pass PARALLEL to add_ceph_unittest()

and parse it using cmake_parse_arguments(), more flexible this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: drop duplicated fmt::fmt in ceph_common_deps
Kefu Chai [Tue, 30 Mar 2021 05:30:34 +0000 (13:30 +0800)]
cmake: drop duplicated fmt::fmt in ceph_common_deps

we already have it in ceph_common_deps, and the already-existing one is
located after the new one. so linker should be able to find it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40453 from tchaikov/wip-doc-confval
Kefu Chai [Tue, 30 Mar 2021 01:26:46 +0000 (09:26 +0800)]
Merge pull request #40453 from tchaikov/wip-doc-confval

doc/rados/configuration: format confval with "confval" directive

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #40462 from cyx1231st/wip-seastore-fix-onode-tree-eagain
Samuel Just [Mon, 29 Mar 2021 19:41:29 +0000 (12:41 -0700)]
Merge pull request #40462 from cyx1231st/wip-seastore-fix-onode-tree-eagain

crimson/onode-staged-tree: allow non-empty DeltaRecorder to be destructed

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40472 into master
Sage Weil [Mon, 29 Mar 2021 16:20:39 +0000 (12:20 -0400)]
Merge PR #40472 into master

* refs/pull/40472/head:
mgr/cephadm/upgrade: ignore deployed_by until mgr is upgraded

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge PR #40443 into master
Sage Weil [Mon, 29 Mar 2021 14:35:13 +0000 (10:35 -0400)]
Merge PR #40443 into master

* refs/pull/40443/head:
doc/rbd: missed blacklist -> blocklist

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40390 into master
Sage Weil [Mon, 29 Mar 2021 14:06:17 +0000 (10:06 -0400)]
Merge PR #40390 into master

* refs/pull/40390/head:
cstart.sh: some improvements
cpatch: allow python 3.6 or 3.8
cpatch: behave with ninja (instead of make)

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40409 into master
Sage Weil [Mon, 29 Mar 2021 14:05:10 +0000 (10:05 -0400)]
Merge PR #40409 into master

* refs/pull/40409/head:
qa/workunits/cephadm/test_cephadm: specify image separately

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge PR #40428 into master
Sage Weil [Mon, 29 Mar 2021 13:49:35 +0000 (09:49 -0400)]
Merge PR #40428 into master

* refs/pull/40428/head:
win32*.sh: disable libcephsqlite when targeting Windows

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agomgr/cephadm/upgrade: ignore deployed_by until mgr is upgraded 40472/head
Sage Weil [Mon, 29 Mar 2021 13:42:03 +0000 (08:42 -0500)]
mgr/cephadm/upgrade: ignore deployed_by until mgr is upgraded

Until we upgrade the mgr itself, we will never be able to make our
deployed daemons have a deployed_by == target_digests.  Ignore those
daemons until the mgr is the right version.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40470 from idryomov/wip-msgr1-extra-tickets
Ilya Dryomov [Mon, 29 Mar 2021 13:29:03 +0000 (15:29 +0200)]
Merge pull request #40470 from idryomov/wip-msgr1-extra-tickets

auth/CephxClientHandler: explain why skipping extra_tickets is needed

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agocrimson/onode-staged-tree: allow non-empty DeltaRecorder to be destructed 40462/head
Yingxin Cheng [Mon, 29 Mar 2021 06:04:13 +0000 (14:04 +0800)]
crimson/onode-staged-tree: allow non-empty DeltaRecorder to be destructed

Fixes: http://tracker.ceph.com/issues/50028
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/.../transaction_manager: add log for eagain
Yingxin Cheng [Mon, 29 Mar 2021 05:57:25 +0000 (13:57 +0800)]
crimson/.../transaction_manager: add log for eagain

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoauth/CephxClientHandler: explain why skipping extra_tickets is needed 40470/head
Ilya Dryomov [Mon, 29 Mar 2021 11:45:10 +0000 (13:45 +0200)]
auth/CephxClientHandler: explain why skipping extra_tickets is needed

Since nautilus, CEPHX_GET_AUTH_SESSION_KEY shares both the auth ticket
and the service tickets, sparing an extra round-trip to get the service
tickets via CEPHX_GET_PRINCIPAL_SESSION_KEY.  This applies to msgr1 as
well, but we don't take advantage of it on the client side.

However, fixing CephxClientHandler to do the right thing breaks msgr1.
Since msgr1 is on its way out, rather than also fixing MonClient just
document the bug and the current behaviour.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoMerge pull request #40466 from inspur-wyq/patch-2
Kefu Chai [Mon, 29 Mar 2021 09:21:41 +0000 (17:21 +0800)]
Merge pull request #40466 from inspur-wyq/patch-2

blk/spdk/NVMEDevice.cc:  remove unused variables

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40188 from rhcs-dashboard/fix-49869-master
Alfonso Martínez [Mon, 29 Mar 2021 09:20:43 +0000 (11:20 +0200)]
Merge pull request #40188 from rhcs-dashboard/fix-49869-master

mgr/dashboard: fix broken feature toggles

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38679 from ceph/dependabot/npm_and_yarn/src/pybind/mgr/dashboard...
Alfonso Martínez [Mon, 29 Mar 2021 09:10:22 +0000 (11:10 +0200)]
Merge pull request #38679 from ceph/dependabot/npm_and_yarn/src/pybind/mgr/dashboard/frontend/node-notifier-8.0.1

build(deps): bump node-notifier from 8.0.0 to 8.0.1 in /src/pybind/mgr/dashboard/frontend

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39908 from rhcs-dashboard/fix-49645-master
Alfonso Martínez [Mon, 29 Mar 2021 09:01:39 +0000 (11:01 +0200)]
Merge pull request #39908 from rhcs-dashboard/fix-49645-master

mgr/dashboard: Remove username, password fields from Manager Modules/dashboard,influx

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #40023 from rhcs-dashboard/fix-49354-master
Alfonso Martínez [Mon, 29 Mar 2021 08:58:38 +0000 (10:58 +0200)]
Merge pull request #40023 from rhcs-dashboard/fix-49354-master

mgr/dashboard: Device health status is not getting listed under hosts section

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #40332 from rhcs-dashboard/prometheus-alert-notification-fix
Alfonso Martínez [Mon, 29 Mar 2021 08:51:56 +0000 (10:51 +0200)]
Merge pull request #40332 from rhcs-dashboard/prometheus-alert-notification-fix

mgr/dashboard: Fix for alert notification message being undefined

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
4 years agoMerge pull request #39917 from rhcs-dashboard/fix-43058-master
Alfonso Martínez [Mon, 29 Mar 2021 08:03:33 +0000 (10:03 +0200)]
Merge pull request #39917 from rhcs-dashboard/fix-43058-master

mgr/dashboard: warn password expiration in User Management

4 years agoblk/spdk/NVMEDevice.cc: remove unused variables 40466/head
wangyunqing [Mon, 29 Mar 2021 07:56:17 +0000 (15:56 +0800)]
blk/spdk/NVMEDevice.cc:  remove unused variables

Signed-off-by: wangyunqing <wangyunqing@inspur.com>
4 years agoMerge pull request #40240 from rhcs-dashboard/clear-cookies-on-logout
Alfonso Martínez [Mon, 29 Mar 2021 06:52:46 +0000 (08:52 +0200)]
Merge pull request #40240 from rhcs-dashboard/clear-cookies-on-logout

mgr/dashboard: Unable to login to ceph dashboard until clearing cookies manually

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #40458 from lxbsz/typo
Xiubo Li [Mon, 29 Mar 2021 06:22:08 +0000 (14:22 +0800)]
Merge pull request #40458 from lxbsz/typo

client: fix typo in the comments

4 years agocrimson/onode-staged-tree: fix typo in compare_full_key()
Yingxin Cheng [Thu, 18 Mar 2021 15:39:25 +0000 (23:39 +0800)]
crimson/onode-staged-tree: fix typo in compare_full_key()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoclient: fix typo in the comments 40458/head
Xiubo Li [Mon, 29 Mar 2021 04:00:35 +0000 (12:00 +0800)]
client: fix typo in the comments

Signed-off-by: Xiubo Li <xiubli@redhat.com>
4 years agodoc/rados/configuration: format confval with "confval" directive 40453/head
Kefu Chai [Sun, 28 Mar 2021 15:30:44 +0000 (23:30 +0800)]
doc/rados/configuration: format confval with "confval" directive

for better formatting

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/dev/cephadm: quote command with backquotes
Kefu Chai [Sun, 28 Mar 2021 15:29:53 +0000 (23:29 +0800)]
doc/dev/cephadm: quote command with backquotes

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: add a new directive "confval"
Kefu Chai [Sun, 28 Mar 2021 15:25:02 +0000 (23:25 +0800)]
doc: add a new directive "confval"

* so we can define configuration in a more structured way
* so the confvals can be cross referenced

see also https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_object_type

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40445 from liewegas/cephadm-upgrade-progress-version
Kefu Chai [Sun, 28 Mar 2021 12:08:51 +0000 (20:08 +0800)]
Merge pull request #40445 from liewegas/cephadm-upgrade-progress-version

mgr/cephadm: make upgrade progress bar mention target version, not repo digest

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #40447 from Daniel-Pivonka/cephadmdocapplyrgwflags
Kefu Chai [Sun, 28 Mar 2021 12:06:01 +0000 (20:06 +0800)]
Merge pull request #40447 from Daniel-Pivonka/cephadmdocapplyrgwflags

mgr/orchestrator: fix rgw realm and zone flags

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #40379 from adk3798/no-overwrite
Kefu Chai [Sun, 28 Mar 2021 12:03:22 +0000 (20:03 +0800)]
Merge pull request #40379 from adk3798/no-overwrite

mgr/cephadm: --no-overwite flag for apply command

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #39969 from batrick/i49684
Kefu Chai [Sun, 28 Mar 2021 12:01:32 +0000 (20:01 +0800)]
Merge pull request #39969 from batrick/i49684

qa: wait for daemons to come up via cephadm

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #40396 from maydaycc/wip-49968
Kefu Chai [Sun, 28 Mar 2021 11:59:53 +0000 (19:59 +0800)]
Merge pull request #40396 from maydaycc/wip-49968

mgr: attr_list reassigned before use in diskprediction_local module

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40421 from badone/wip-fix-typo-get_device_id
Kefu Chai [Sun, 28 Mar 2021 11:59:06 +0000 (19:59 +0800)]
Merge pull request #40421 from badone/wip-fix-typo-get_device_id

common/blkdev: Remove trailing single quote

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40450 from smithfarm/wip-50007-alt
Nathan Cutler [Sat, 27 Mar 2021 18:34:53 +0000 (19:34 +0100)]
Merge pull request #40450 from smithfarm/wip-50007-alt

rpm: drop extraneous explicit sqlite-libs runtime dependency

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agorpm: drop extraneous explicit sqlite-libs runtime dependency 40450/head
Nathan Cutler [Fri, 26 Mar 2021 10:03:34 +0000 (11:03 +0100)]
rpm: drop extraneous explicit sqlite-libs runtime dependency

Commit 75980798f19b8c11efd75ba4aae3e491d4c99f98 introduced a new package,
libcephsqlite, with a hard RPM dependency on a package "sqlite-libs" which
does not exist in openSUSE.

Since the runtime library dependencies of libcephsqlite are handled by RPM
transparently, this line is not needed.

Fixes: https://tracker.ceph.com/issues/50007
Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agoMerge pull request #40442 from Thingee/update-foundation-page
Kefu Chai [Sat, 27 Mar 2021 08:57:43 +0000 (16:57 +0800)]
Merge pull request #40442 from Thingee/update-foundation-page

doc: Update Foundation page

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agodoc: Updating Foundation membership page 40442/head
Mike Perez [Fri, 26 Mar 2021 15:52:49 +0000 (08:52 -0700)]
doc: Updating Foundation membership page

Signed-off-by: Mike Perez <thingee@gmail.com>
4 years agoMerge pull request #40408 from varshar16/wip-doc-update-ninja
Kefu Chai [Sat, 27 Mar 2021 07:45:38 +0000 (15:45 +0800)]
Merge pull request #40408 from varshar16/wip-doc-update-ninja

doc/install: update about ninja

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40345 from rzarzynski/wip-crimson-doc-waitstates-follow-up
Kefu Chai [Sat, 27 Mar 2021 03:28:33 +0000 (11:28 +0800)]
Merge pull request #40345 from rzarzynski/wip-crimson-doc-waitstates-follow-up

doc/crimson: improve wording about the pipeline / wait states.

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #38732 into master
Patrick Donnelly [Fri, 26 Mar 2021 22:13:07 +0000 (15:13 -0700)]
Merge PR #38732 into master

* refs/pull/38732/head:
client: fire the finish_cap_snap() after buffer being flushed
client: simplify the iterating code
client: remove unused _flushed_cap_snap
client: clean up the code

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40326 into master
Patrick Donnelly [Fri, 26 Mar 2021 22:11:28 +0000 (15:11 -0700)]
Merge PR #40326 into master

* refs/pull/40326/head:
client: rebuild bl to avoid too many vector(> IOV_MAX)

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
4 years agoMerge PR #40394 into master
Sage Weil [Fri, 26 Mar 2021 20:41:31 +0000 (16:41 -0400)]
Merge PR #40394 into master

* refs/pull/40394/head:
osd: handle MOSDPGInfo
osd/PeeringState: init last_require_osd_release in ctor

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agodoc/cephadm: fix rgw realm and zone flags 40447/head
Daniel Pivonka [Fri, 26 Mar 2021 19:13:18 +0000 (15:13 -0400)]
doc/cephadm: fix rgw realm and zone flags

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
4 years agoMerge pull request #40415 from sseshasa/wip-qa-wait-for-clean-check
Neha Ojha [Fri, 26 Mar 2021 18:25:16 +0000 (11:25 -0700)]
Merge pull request #40415 from sseshasa/wip-qa-wait-for-clean-check

qa/tasks: Add wait_for_clean() check prior to initiating scrubbing.

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agomgr/cephadm: make upgrade progress bar mention target version, not repo digest 40445/head
Sage Weil [Thu, 25 Mar 2021 20:05:02 +0000 (15:05 -0500)]
mgr/cephadm: make upgrade progress bar mention target version, not repo digest

The repo digest is super long and meaningless for a human user.  Instead,
use the target version (as soon as we know what it is--until then, use
the target image name).

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agodoc/rbd: missed blacklist -> blocklist 40443/head
Daniel Pivonka [Fri, 26 Mar 2021 16:36:47 +0000 (12:36 -0400)]
doc/rbd: missed blacklist -> blocklist

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
4 years agoMerge pull request #40438 from idryomov/wip-crimson-reopen-session
Kefu Chai [Fri, 26 Mar 2021 16:11:54 +0000 (00:11 +0800)]
Merge pull request #40438 from idryomov/wip-crimson-reopen-session

crimson/monc: discard active/pending connections when reopening

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/monc: discard active/pending connections when reopening 40438/head
Ilya Dryomov [Tue, 23 Mar 2021 09:40:18 +0000 (10:40 +0100)]
crimson/monc: discard active/pending connections when reopening

Otherwise pending_conns vector just keeps growing with redundant
connections all trying to reach the same set of monitors.  When one
of the attempts finally succeeds, _finish_auth() will pick the first
connection with a matching entity_addr_t, designate it as active and
close all others.  The match is very likely to be wrong and hence the
actual authenticated connection gets closed, leaving the OSD with
a bogus active_con and no monitor session.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoMerge PR #40404 into master
Sage Weil [Fri, 26 Mar 2021 12:24:52 +0000 (08:24 -0400)]
Merge PR #40404 into master

* refs/pull/40404/head:
auth: require CEPHX_V2 by default

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40321 into master
Sage Weil [Fri, 26 Mar 2021 12:19:06 +0000 (08:19 -0400)]
Merge PR #40321 into master

* refs/pull/40321/head:
cephadm: fix parsing of keepalived version (drop leading 'v')
cephadm: keepalived needs --cap-add=NET_RAW
cephadm: fix --cap-add=NET_ADMIN
cephadm: fix quoting for keepalived env var
mgr/cephadm: ha-rgw: use correct port

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge PR #40015 into master
Sage Weil [Fri, 26 Mar 2021 12:18:35 +0000 (08:18 -0400)]
Merge PR #40015 into master

* refs/pull/40015/head:
cephadm: validate fsid during cephadm shell command

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
4 years agoMerge PR #40341 into master
Sage Weil [Fri, 26 Mar 2021 12:16:19 +0000 (08:16 -0400)]
Merge PR #40341 into master

* refs/pull/40341/head:
os/bluestore: separate omap per-pool vs per-pg alerts

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #40429 from varshar16/wip-fix-fs-top-error
Venky Shankar [Fri, 26 Mar 2021 11:55:03 +0000 (17:25 +0530)]
Merge pull request #40429 from varshar16/wip-fix-fs-top-error

src/tools/cephfs-top: fix flake8 line too long error

Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #40401 from lnussel/master
Nathan Cutler [Fri, 26 Mar 2021 10:23:55 +0000 (11:23 +0100)]
Merge pull request #40401 from lnussel/master

ceph.spec: prepare openSUSE usrmerge (boo#1029961)

4 years agosrc/tools/cephfs-top: fix flake8 line too long error 40429/head
Varsha Rao [Fri, 26 Mar 2021 09:38:33 +0000 (15:08 +0530)]
src/tools/cephfs-top: fix flake8 line too long error

Fixes: https://tracker.ceph.com/issues/50005
Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agomgr/dashboard: Unable to login to ceph dashboard until clearing cookies 40240/head
Avan Thakkar [Fri, 19 Mar 2021 12:59:22 +0000 (18:29 +0530)]
mgr/dashboard: Unable to login to ceph dashboard until clearing cookies

Fixes: https://tracker.ceph.com/issues/49897
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Clears the cookie for token after logout.

4 years agowin32*.sh: disable libcephsqlite when targeting Windows 40428/head
Lucian Petrut [Fri, 26 Mar 2021 08:15:37 +0000 (08:15 +0000)]
win32*.sh: disable libcephsqlite when targeting Windows

The Windows build is failing as sqlite can't be retrieved:
http://paste.openstack.org/raw/803940/

We don't support libcephsqlite on Windows for the time being,
so we'll just pass WITH_LIBCEPHSQLITE=OFF.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoMerge pull request #40170 from Rethan/fix-sync-pause-max-lat
Kefu Chai [Fri, 26 Mar 2021 07:08:25 +0000 (15:08 +0800)]
Merge pull request #40170 from Rethan/fix-sync-pause-max-lat

os/FileStore: fix sync_pause_max_lat which should not be inced

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoREADME.md: remove extra 'the' and format para related to ninja 40408/head
Varsha Rao [Thu, 25 Mar 2021 12:06:57 +0000 (17:36 +0530)]
README.md: remove extra 'the' and format para related to ninja

Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agodoc/install: replace do_cmake note with link to ceph README
Varsha Rao [Fri, 26 Mar 2021 06:46:05 +0000 (12:16 +0530)]
doc/install: replace do_cmake note with link to ceph README

Ceph README.md doc already has the do_cmake note and other build related info.

Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agodoc/install: Update about ninja
Varsha Rao [Thu, 25 Mar 2021 11:59:21 +0000 (17:29 +0530)]
doc/install: Update about ninja

'ninja' replaced 'make' in this PR[1]. This patch updates the doc about it.

[1] https://github.com/ceph/ceph/pull/39826

Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agoMerge pull request #40334 from dvanders/pick
Kefu Chai [Fri, 26 Mar 2021 06:31:10 +0000 (14:31 +0800)]
Merge pull request #40334 from dvanders/pick

common/ipaddr: skip loopback interfaces named 'lo' and test it

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #40292 from tchaikov/wip-39191
Kefu Chai [Fri, 26 Mar 2021 06:28:34 +0000 (14:28 +0800)]
Merge pull request #40292 from tchaikov/wip-39191

debian,cmake,cephsqlite: hide non-public symbols

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40171 from swegener/bluefs-assert-always-true
Kefu Chai [Fri, 26 Mar 2021 06:25:38 +0000 (14:25 +0800)]
Merge pull request #40171 from swegener/bluefs-assert-always-true

bluefs: fix assert always being true

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40304 from tchaikov/wip-telegraph-ann
Kefu Chai [Fri, 26 Mar 2021 06:24:56 +0000 (14:24 +0800)]
Merge pull request #40304 from tchaikov/wip-telegraph-ann

pybind/mgr/telegraf: add type annotations

Reviewed-by: Wido den Hollander <wido@widodh.nl>
4 years agoMerge pull request #40403 from vshankar/wip-cephfs-top-add-metrics
Venky Shankar [Fri, 26 Mar 2021 06:22:31 +0000 (11:52 +0530)]
Merge pull request #40403 from vshankar/wip-cephfs-top-add-metrics

cephfs-top: include additional metrics reported by `fs perf stats`

Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #40167 from singuliere/wip-49781
Kefu Chai [Fri, 26 Mar 2021 06:13:18 +0000 (14:13 +0800)]
Merge pull request #40167 from singuliere/wip-49781

common/mempool: only fail tests if sharding is very bad

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/blkdev: Remove trailing single quote 40421/head
Brad Hubbard [Fri, 26 Mar 2021 04:58:04 +0000 (14:58 +1000)]
common/blkdev: Remove trailing single quote

Example output:

e1 collect_metadata :  no unique device id for : fallback method has no
model nor serial'

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #40331 from athanatos/sjust/wip-seatore-gc-refactor
Samuel Just [Fri, 26 Mar 2021 04:21:28 +0000 (21:21 -0700)]
Merge pull request #40331 from athanatos/sjust/wip-seatore-gc-refactor

crimson/seastore: refactor gc into concurrent task

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
4 years agoMerge pull request #40336 from tchaikov/wip-cmake-fio
Kefu Chai [Fri, 26 Mar 2021 01:28:31 +0000 (09:28 +0800)]
Merge pull request #40336 from tchaikov/wip-cmake-fio

cmake: pass compile options by fio interface library

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #40323 from aclamk/wip-onode-resiliant-to-split-cache
Neha Ojha [Fri, 26 Mar 2021 01:05:28 +0000 (18:05 -0700)]
Merge pull request #40323 from aclamk/wip-onode-resiliant-to-split-cache

os/bluestore: Make Onode::put/get resiliant to split_cache

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agomgr/volumes: do not overwrite existant mds specs 40379/head
Adam King [Thu, 25 Mar 2021 20:29:03 +0000 (16:29 -0400)]
mgr/volumes: do not overwrite existant mds specs

Signed-off-by: Adam King <adking@redhat.com>
4 years agocrimson/os/seastore/segment_cleaner: bump reclaim_ratio limits 40331/head
Samuel Just [Thu, 25 Mar 2021 20:15:24 +0000 (13:15 -0700)]
crimson/os/seastore/segment_cleaner: bump reclaim_ratio limits

GC behavior still needs a ton of work, but this adjustment should
reduce gc activity for now until we have time to refine the params
and introduce the ability to write cold extents to a segment other
than the current journal segment.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../btree_range_pin: use ceph_assert
Samuel Just [Thu, 25 Mar 2021 20:12:11 +0000 (13:12 -0700)]
crimson/os/seastore/.../btree_range_pin: use ceph_assert

There's a performance overhead, but seastore is quite immature and
detecting these logic errors saves a ton of debugging time.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../block.cc: add error message on alloc error to segment_write
Samuel Just [Thu, 25 Mar 2021 18:56:40 +0000 (11:56 -0700)]
crimson/os/seastore/.../block.cc: add error message on alloc error to segment_write

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agomgr/cephadm: no-overwite flag for apply command
Adam King [Wed, 24 Mar 2021 18:29:28 +0000 (14:29 -0400)]
mgr/cephadm: no-overwite flag for apply command

no-overwrite flag makes it so cephadm will only apply the spec
if the spec does not already exist.

Signed-off-by: Adam King <adking@redhat.com>
4 years agomgr/dashboard: warn user's password expiration in user management 39917/head
Pere Diaz Bou [Thu, 25 Mar 2021 17:40:40 +0000 (18:40 +0100)]
mgr/dashboard: warn user's password expiration in user management
Warn about user's incoming password expiration on the User Management with an icon.
Fixes: https://tracker.ceph.com/issues/43058
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
4 years agoqa/tasks: Add wait_for_clean() check prior to initiating scrubbing. 40415/head
Sridhar Seshasayee [Thu, 25 Mar 2021 12:37:49 +0000 (18:07 +0530)]
qa/tasks: Add wait_for_clean() check prior to initiating scrubbing.

Fixes: https://tracker.ceph.com/issues/49983
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
4 years agoMerge pull request #39776 from alimaredia/wip-rgw-log-req-latency
Mark Kogan [Thu, 25 Mar 2021 16:16:39 +0000 (18:16 +0200)]
Merge pull request #39776 from alimaredia/wip-rgw-log-req-latency

rgw: add latency to the request summary of an op

4 years agocephadm: validate fsid during cephadm shell command 40015/head
Daniel Pivonka [Wed, 10 Mar 2021 23:01:35 +0000 (18:01 -0500)]
cephadm: validate fsid during cephadm shell command

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
4 years agoMerge PR #40366 into master
Sage Weil [Thu, 25 Mar 2021 12:39:34 +0000 (08:39 -0400)]
Merge PR #40366 into master

* refs/pull/40366/head:
mgr/cephadm: Fix dashboard gateway configuration when using IPV6

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoqa/workunits/cephadm/test_cephadm: specify image separately 40409/head
Sage Weil [Thu, 25 Mar 2021 12:33:26 +0000 (07:33 -0500)]
qa/workunits/cephadm/test_cephadm: specify image separately

On master, this will be IMAGE_MASTER.  On pacific branch, we'll make it
IMAGE_PACIFIC so that we don't hit the release mismatch error.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40395 from rhcs-dashboard/fix-49952-master
Kefu Chai [Thu, 25 Mar 2021 11:28:59 +0000 (19:28 +0800)]
Merge pull request #40395 from rhcs-dashboard/fix-49952-master

mgr/dashboard:Simplify some complex calculations in test_alerts.yml

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoauth: require CEPHX_V2 by default 40404/head
Ilya Dryomov [Wed, 24 Mar 2021 15:23:44 +0000 (16:23 +0100)]
auth: require CEPHX_V2 by default

It's been almost three years and support is present in all relevant
clients.

From the security perspective, roughly the same could be achieved
with "ceph osd set-require-min-compat-client nautilus", but this is
more user friendly as the client gets ENOTSUP instead of spinning on
"feature set mismatch" faults.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agocephfs-top: include additional metrics reported by `fs perf stats`. 40403/head
Venky Shankar [Thu, 25 Mar 2021 09:40:28 +0000 (05:40 -0400)]
cephfs-top: include additional metrics reported by `fs perf stats`.

Without this, `cephfs-top` hits an exception since the additional
metrics keys were not configured.

Also, include a validation suring selftest that checks if `ceph
fs perf stats` metrics match what cephfs-top is configured to
report.

Fixes: http://tracker.ceph.com/issues/49974
Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #40400 from tchaikov/wip-ctest-jenkins
Kefu Chai [Thu, 25 Mar 2021 10:24:22 +0000 (18:24 +0800)]
Merge pull request #40400 from tchaikov/wip-ctest-jenkins

run-make-check.sh: let ctest generate XML output

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #40327 from racpatel/wip-cephfs-top-refresh-interval
Venky Shankar [Thu, 25 Mar 2021 09:46:39 +0000 (15:16 +0530)]
Merge pull request #40327 from racpatel/wip-cephfs-top-refresh-interval

cephfs-top: allow configurable stats refresh interval

4 years agoMerge pull request #40210 from joscollin/wip-B49736-missing-client-metadata
Venky Shankar [Thu, 25 Mar 2021 09:45:01 +0000 (15:15 +0530)]
Merge pull request #40210 from joscollin/wip-B49736-missing-client-metadata

cephfs-top: be resilient to missing client metadata keys

4 years agoceph.spec: prepare openSUSE usrmerge (boo#1029961) 40401/head
Ludwig Nussel [Thu, 25 Mar 2021 09:32:21 +0000 (10:32 +0100)]
ceph.spec: prepare openSUSE usrmerge (boo#1029961)

The compat symlink in /sbin is no longer required and actually in
the way in the usrmerge case.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
4 years agorun-make-check.sh: let ctest generate XML output 40400/head
Kefu Chai [Thu, 25 Mar 2021 09:08:48 +0000 (17:08 +0800)]
run-make-check.sh: let ctest generate XML output

to enable XUnit plugin of jenkins to consume the ctest output and
publish it in the dashboard, we need to

* let ctest generate XML output instead of plain text output
* do not fail the test if any test case fails. this allows the publisher
  to do its job by checking the XML output.
* prevent ctest from compressing the output. see
  https://issues.jenkins.io/browse/JENKINS-21737

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard:Simplify some complex calculations in test_alerts.yml 40395/head
Aashish Sharma [Thu, 25 Mar 2021 05:55:37 +0000 (11:25 +0530)]
mgr/dashboard:Simplify some complex calculations in test_alerts.yml

run-promtool-unittests is failing with difference in floating point values in some complex calculations. This PR intends to simplify those calculations and fix this issue.

Fixes: https://tracker.ceph.com/issues/49952
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
4 years agoosd: handle MOSDPGInfo 40394/head
Kefu Chai [Thu, 25 Mar 2021 04:33:50 +0000 (12:33 +0800)]
osd: handle MOSDPGInfo

this change partially reverts b37e959238e75690d38873744515fa54413f4393,
which introduced a regression where we fail to handle MOSDPGInfo
messages sent by osd before aba13c7661bf8a62f2879513512053dc9857c003
and/or f7130db7a9fa85e475f14e4feed0097bf2d0b964.

Fixes: https://tracker.ceph.com/issues/49963
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoosd/PeeringState: init last_require_osd_release in ctor
Kefu Chai [Thu, 25 Mar 2021 04:04:37 +0000 (12:04 +0800)]
osd/PeeringState: init last_require_osd_release in ctor

so we can use the latest osdmap to tell what is the required osd release in
*current* cluster before consuming a new osdmap which is fed to
PeeringState only if we advance to a new map.

a osd shares its pg_info using MOSDPGInfo2 or MOSDPGInfo according to
PeeringState::last_require_osd_release, this happens before a new osdmap
is fully consumed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr: attr_list reassigned before use in diskprediction_local module 40396/head
wanwencong [Thu, 25 Mar 2021 03:34:24 +0000 (11:34 +0800)]
mgr: attr_list reassigned before use in diskprediction_local module

According to the document description, attr_list should be intersection
set of all disk days.

Fixes: https://tracker.ceph.com/issues/49968
Signed-off-by: wencong wan <wanwc@chinatelecom.cn>
4 years agoMerge pull request #40377 from tchaikov/wip-doc-fixes
Kefu Chai [Thu, 25 Mar 2021 02:39:14 +0000 (10:39 +0800)]
Merge pull request #40377 from tchaikov/wip-doc-fixes

doc/man: fix formatting

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