]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agoqa/suites/rados/cephadm/smoke-roleless: deploy additional daemon types 40244/head
Sage Weil [Fri, 19 Mar 2021 15:57:58 +0000 (10:57 -0500)]
qa/suites/rados/cephadm/smoke-roleless: deploy additional daemon types

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #40200 into master
Sage Weil [Fri, 19 Mar 2021 12:31:56 +0000 (08:31 -0400)]
Merge PR #40200 into master

* refs/pull/40200/head:
mgr/cephadm: clean up misc messages
mgr/cephadm/configcheck: do not spam info every minute

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge PR #40223 into master
Sage Weil [Fri, 19 Mar 2021 12:31:24 +0000 (08:31 -0400)]
Merge PR #40223 into master

* refs/pull/40223/head:
cephadm: prevent podman from breaking socket.getfqdn()

Reviewed-by: Daniel Pivonka <dpivonka@redhat.com>
4 years agoMerge pull request #40236 from tchaikov/wip-cbt-perf
Kefu Chai [Fri, 19 Mar 2021 12:10:33 +0000 (20:10 +0800)]
Merge pull request #40236 from tchaikov/wip-cbt-perf

script/run-cbt.sh: set kernel.perf_event_paranoid for running perf

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoscript/run-make.sh: quote targets with double quote 40236/head
Kefu Chai [Fri, 19 Mar 2021 11:23:09 +0000 (19:23 +0800)]
script/run-make.sh: quote targets with double quote

in
ceph-build/ceph-perf-pull-requests/config/definitions/ceph-perf-pull-requests.yml,
we pass "vstart-base crimson-osd" as the targets argument, but the
build() function in ceph/src/script/run-make.sh fails to quote them, so
they are expanded into two argument of `test -n`. hence it breaks like

src/script/run-make.sh: line 124: test: vstart-base: binary operator expected
make will run with option(s) -j40
Unknown argument vstart-base
Unknown argument crimson-osd

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoscript/run-cbt.sh: set kernel.perf_event_paranoid for running perf
Kefu Chai [Fri, 19 Mar 2021 11:04:03 +0000 (19:04 +0800)]
script/run-cbt.sh: set kernel.perf_event_paranoid for running perf

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40233 from tchaikov/wip-make-check-aio-max
Kefu Chai [Fri, 19 Mar 2021 09:50:16 +0000 (17:50 +0800)]
Merge pull request #40233 from tchaikov/wip-make-check-aio-max

run-make-check.sh: increase fs.aio-max-nr

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocmake: use --smp 1 --memory 256M to crimson tests 40233/head
Jenkins Build Slave User [Fri, 19 Mar 2021 08:32:59 +0000 (08:32 +0000)]
cmake: use --smp 1 --memory 256M to crimson tests

to reduce the resource usage when running tests

there is an exception though, as we want to test test_config.cc with
multiple reactors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40229 from tchaikov/wip-dashboard-flake8
Kefu Chai [Fri, 19 Mar 2021 08:25:14 +0000 (16:25 +0800)]
Merge pull request #40229 from tchaikov/wip-dashboard-flake8

pybind/mgr/dashboard: bump flake8 to 3.9.0

Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agorun-make-check.sh: increase fs.aio-max-nr
Kefu Chai [Fri, 19 Mar 2021 08:18:23 +0000 (16:18 +0800)]
run-make-check.sh: increase fs.aio-max-nr

without this change the seastar based tests fail on host with 48 cores,
because the /proc/sys/fs/aio-nr used by the tests is greater than
1048576. if run-make-check.sh is used to launch the test, the default
job number is `$(nproc) / 2`, and the peak number of /proc/sys/fs/aio-nr
when running ctest was 3190848 when testing on the 48-core host.

so we need to increase fs.aio-max-nr accordingly to the available cores
on the host.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/dashboard: remove "python_version >= 3' 40229/head
Kefu Chai [Fri, 19 Mar 2021 04:24:28 +0000 (12:24 +0800)]
pybind/mgr/dashboard: remove "python_version >= 3'

remove "python_version >= '3'" from requirements-lint.txt, as we've
dropped the Python2 support.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/dashboard: bump flake8 to 3.9.0
Kefu Chai [Fri, 19 Mar 2021 04:05:45 +0000 (12:05 +0800)]
pybind/mgr/dashboard: bump flake8 to 3.9.0

to address the failure of

ERROR: Cannot install -r requirements-lint.txt (line 2) and -r requirements-lint.txt (line 8) because these package versions have conflicting dependencies.

The conflict is caused by:
    flake8 3.8.4 depends on pycodestyle<2.7.0 and >=2.6.0a1
    autopep8 1.5.6 depends on pycodestyle>=2.7.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40227 from neha-ojha/wip-message-cap-val
Neha Ojha [Fri, 19 Mar 2021 00:28:01 +0000 (17:28 -0700)]
Merge pull request #40227 from neha-ojha/wip-message-cap-val

qa/suites/rados/perf: set osd client message cap to 5000

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #40185 from ronen-fr/wip-ronenf-extra-scrub-assert
Neha Ojha [Thu, 18 Mar 2021 21:54:37 +0000 (14:54 -0700)]
Merge pull request #40185 from ronen-fr/wip-ronenf-extra-scrub-assert

osd: remove a ceph_assert() from a legitimate path

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sam Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoqa/suites/rados/perf: set osd client message cap to 5000 40227/head
Neha Ojha [Thu, 18 Mar 2021 21:28:52 +0000 (21:28 +0000)]
qa/suites/rados/perf: set osd client message cap to 5000

Related to https://tracker.ceph.com/issues/49894
Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge PR #40048 into master
Sage Weil [Thu, 18 Mar 2021 20:11:38 +0000 (16:11 -0400)]
Merge PR #40048 into master

* refs/pull/40048/head:
mgr/cephadm: stop conflicting daemon when deploying to a specific port
mgr/cephadm: make DaemonPlacement print nicer
mgr/cephadm: fix --force remove comment
mgr/cephadm/schedule: choose an IP from a subnet list
mgr/cephadm: rgw: clean up config and config-key values on removal
mgr/cephadm: rgw: drop .crt extension when storing cert in config-key
mgr/cephadm/services: allow beast/civetweb to bind to a particular IP
python-common: add 'networks' property to ServiceSpec
mgr/cephadm/schedule: match placement ip only combination with port

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
4 years agoMerge pull request #39139 from TRYTOBE8TME/wip-rgw-bucket-tests-separation-new
Yuval Lifshitz [Thu, 18 Mar 2021 18:33:00 +0000 (20:33 +0200)]
Merge pull request #39139 from TRYTOBE8TME/wip-rgw-bucket-tests-separation-new

Wip rgw bucket tests separation new

4 years agocephadm: prevent podman from breaking socket.getfqdn() 40223/head
Sage Weil [Thu, 18 Mar 2021 18:26:48 +0000 (14:26 -0400)]
cephadm: prevent podman from breaking socket.getfqdn()

socket.getfqdn() will return the reverse lookup for 127.0.1.1, which is
the last item listed for that IP in /etc/hosts.  Podman, by default, will
append the container name (ceph-$fsid-$name) to that line, which is not
a valid hostname, and not what we want the dashbaord to use for the URI
it advertises in the service map.

Pass --no-hosts to podman to disable this.

Docker does not appear to modify /etc/hosts by default--or, more
importantly, does not add the container name there.

Explicitly instruct podman (and docker) to add a

Fixes: https://tracker.ceph.com/issues/49890
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40199 from dillaman/wip-rbd-lockdep
Mykola Golub [Thu, 18 Mar 2021 16:46:13 +0000 (18:46 +0200)]
Merge pull request #40199 from dillaman/wip-rbd-lockdep

test: ignore failures to force-enable lockdep

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #40194 from dillaman/wip-49848
Mykola Golub [Thu, 18 Mar 2021 16:44:53 +0000 (18:44 +0200)]
Merge pull request #40194 from dillaman/wip-49848

test/pybind/rbd: fixed functional change in encryption API

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #40161 from sseshasa/wip-fix-wait-for-clean
Neha Ojha [Thu, 18 Mar 2021 16:24:31 +0000 (09:24 -0700)]
Merge pull request #40161 from sseshasa/wip-fix-wait-for-clean

qa/tasks: Add additional wait_for_clean() check in lost_unfound tasks.

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoosd: remove a ceph_assert() from a legitimate path 40185/head
Ronen Friedman [Wed, 17 Mar 2021 15:21:10 +0000 (17:21 +0200)]
osd: remove a ceph_assert() from a legitimate path

on_replica_init() might be legitimately called twice,
if the replica was waiting for updates to complete
before servicing the request.

Fixes: https://tracker.ceph.com/issues/49867
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
4 years agoMerge PR #40207 into master
Patrick Donnelly [Thu, 18 Mar 2021 13:46:03 +0000 (06:46 -0700)]
Merge PR #40207 into master

* refs/pull/40207/head:
doc: max_maps -> max_caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40187 from ideepika/wip-tracing-intial-doc
zdover23 [Thu, 18 Mar 2021 11:45:39 +0000 (21:45 +1000)]
Merge pull request #40187 from ideepika/wip-tracing-intial-doc

dev/developer_guide: add jaegertracing intial developer documentation

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agodoc/dev/developer_guide: add jaegertracing intial developer documentation 40187/head
Deepika Upadhyay [Wed, 17 Mar 2021 16:05:50 +0000 (21:35 +0530)]
doc/dev/developer_guide: add jaegertracing intial developer documentation

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoqa/tasks: Add additional wait_for_clean() check in lost_unfound tasks. 40161/head
Sridhar Seshasayee [Tue, 16 Mar 2021 19:48:40 +0000 (01:18 +0530)]
qa/tasks: Add additional wait_for_clean() check in lost_unfound tasks.

At the end of the lost_unfound tests add an additional wait_for_clean()
check to ensure that recoveries get enough time to complete before
proceeding and avoid failures down the line. For e.g. failure like
"Scrubbing terminated -- not all pgs were active and clean." is because
recoveries on the PGs did not get sufficient time to complete even though
they were bound to eventually complete.

Fixes: https://tracker.ceph.com/issues/49844
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
4 years agodoc: max_maps -> max_caps 40207/head
Dan van der Ster [Thu, 18 Mar 2021 07:05:49 +0000 (08:05 +0100)]
doc: max_maps -> max_caps

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
4 years agoqa/rgw: notifications suite runs single job 39139/head
Casey Bodley [Mon, 1 Mar 2021 17:19:25 +0000 (12:19 -0500)]
qa/rgw: notifications suite runs single job

pin to the beast frontend, default bluestore, replicated pools, and run
against a random distro

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #40163 from ktdreyer/resource-agents-noarch
Kefu Chai [Thu, 18 Mar 2021 03:02:22 +0000 (11:02 +0800)]
Merge pull request #40163 from ktdreyer/resource-agents-noarch

rpm: ceph-resource-agents package is noarch

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40058 into master
Patrick Donnelly [Thu, 18 Mar 2021 02:41:09 +0000 (19:41 -0700)]
Merge PR #40058 into master

* refs/pull/40058/head:
doc: mds cap acquisition readdir throttle documentation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40193 into master
Patrick Donnelly [Thu, 18 Mar 2021 02:31:43 +0000 (19:31 -0700)]
Merge PR #40193 into master

* refs/pull/40193/head:
ceph-debug-docker: podman build doesn't accept input via stdin

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #31514 from simon-rock/simon_work_fou
Brad Hubbard [Thu, 18 Mar 2021 02:30:26 +0000 (12:30 +1000)]
Merge pull request #31514 from simon-rock/simon_work_fou

osd:modify conf, timeout & suicide timeout, of workqueue at runtime to av…

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
4 years agomgr/cephadm: stop conflicting daemon when deploying to a specific port 40048/head
Sage Weil [Wed, 17 Mar 2021 19:39:15 +0000 (15:39 -0400)]
mgr/cephadm: stop conflicting daemon when deploying to a specific port

If we are deploying a daemon to bind to a specific port and there is
an existing daemon we are removing that also binds to that port, stop
it first.  Unless we are both binding to different IPs.

This resolves the case where daemons bind to * and we redeploy with a
subnet to bind to.  It would eventually converge before, but would
throw a bind error in the process and take longer.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm: make DaemonPlacement print nicer
Sage Weil [Wed, 17 Mar 2021 19:38:57 +0000 (15:38 -0400)]
mgr/cephadm: make DaemonPlacement print nicer

'host(ip:port)' or 'host(*:port)' so we can show it to a user.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39911 from cyx1231st/wip-seastore-onode-tree-fix-cache
Samuel Just [Wed, 17 Mar 2021 20:43:32 +0000 (13:43 -0700)]
Merge pull request #39911 from cyx1231st/wip-seastore-onode-tree-fix-cache

crimson/onode-staged-tree: fix tree_cursor_t::Cursor to be aware of extent duplication

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge PR #40160 into master
Sage Weil [Wed, 17 Mar 2021 19:50:50 +0000 (15:50 -0400)]
Merge PR #40160 into master

* refs/pull/40160/head:
qa/suites/rados/cephadm/orchestrator_cli: random-distro$ -> 0-random-distro$
qa/suites/rados/cephadm/smoke-roleless: distro -> 0-distro
qa/distros/podman: install kubic once per host, in parallel
qa/suites/fs/multiclient: use clients: not all: for pexec

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agomgr/cephadm: clean up misc messages 40200/head
Sage Weil [Wed, 17 Mar 2021 19:49:47 +0000 (15:49 -0400)]
mgr/cephadm: clean up misc messages

- join list with ' '
- key, not keyring
- -ing, not ': '

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm/configcheck: do not spam info every minute
Sage Weil [Wed, 17 Mar 2021 19:43:33 +0000 (15:43 -0400)]
mgr/cephadm/configcheck: do not spam info every minute

It doesn't make to spam INF every minute.  Reducing this to DBG means
it'll never be seen.  Just remove it.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39915 from CongMinYin/fix-vm-io-hang
Jason Dillaman [Wed, 17 Mar 2021 19:35:58 +0000 (15:35 -0400)]
Merge pull request #39915 from CongMinYin/fix-vm-io-hang

librbd/cache/pwl: set max size of continuous data

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
4 years agotest: ignore failures to force-enable lockdep 40199/head
Jason Dillaman [Wed, 17 Mar 2021 19:29:37 +0000 (15:29 -0400)]
test: ignore failures to force-enable lockdep

PR #40062 tweaked the behavior of lockdep to compile it out
of the code entirely for release builds. This fixes several
gtests where lockdep was force-enabled.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #40175 from idryomov/wip-krbd-blkroset-5.12
Ilya Dryomov [Wed, 17 Mar 2021 18:44:14 +0000 (19:44 +0100)]
Merge pull request #40175 from idryomov/wip-krbd-blkroset-5.12

qa: krbd_blkroset.t: update for separate hw and user read-only flags

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/cephadm: fix --force remove comment
Sage Weil [Wed, 17 Mar 2021 18:42:34 +0000 (14:42 -0400)]
mgr/cephadm: fix --force remove comment

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agotest/pybind/rbd: fixed functional change in encryption API 40194/head
Jason Dillaman [Wed, 17 Mar 2021 18:14:48 +0000 (14:14 -0400)]
test/pybind/rbd: fixed functional change in encryption API

The encryption format API now also implicitly loads the encryption
layer. This tweaks the tests to account for this functional
difference.

Fixes: https://tracker.ceph.com/issues/49848
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoceph-debug-docker: podman build doesn't accept input via stdin 40193/head
Jeff Layton [Wed, 17 Mar 2021 17:12:09 +0000 (13:12 -0400)]
ceph-debug-docker: podman build doesn't accept input via stdin

podman on centos 8 at least doesn't accept the Dockerfile being fed to
it via stdin. Change that branch of the script to use the same method
that the ubuntu side does.

This gets the script working on senta03 for me.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge pull request #40051 from strenuous-life/wip-cephadm-osd-exact-match-size
Sebastian Wagner [Wed, 17 Mar 2021 17:22:05 +0000 (18:22 +0100)]
Merge pull request #40051 from strenuous-life/wip-cephadm-osd-exact-match-size

mgr/cephadm: When device size contains the decimal, it can not match size exactly

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39880 from adk3798/upgrade-status
Sebastian Wagner [Wed, 17 Mar 2021 17:08:23 +0000 (18:08 +0100)]
Merge pull request #39880 from adk3798/upgrade-status

mgr/cephadm: add info to 'ceph orch upgrade status' in cephadm

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge PR #40177 into master
Patrick Donnelly [Wed, 17 Mar 2021 16:00:56 +0000 (09:00 -0700)]
Merge PR #40177 into master

* refs/pull/40177/head:
doc: update Windows MSI link

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #40178 from idryomov/wip-rbd-map-sanity-check-fixup
Ilya Dryomov [Wed, 17 Mar 2021 15:43:26 +0000 (16:43 +0100)]
Merge pull request #40178 from idryomov/wip-rbd-map-sanity-check-fixup

krbd: check device node accessibility only if we actually mapped

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39678 from yehudasa/wip-rgw-aws4-client
Casey Bodley [Wed, 17 Mar 2021 15:42:08 +0000 (11:42 -0400)]
Merge pull request #39678 from yehudasa/wip-rgw-aws4-client

rgw: awsv4 client support

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #36549 from markhpc/wip-bl-dynamic_alen
Kefu Chai [Wed, 17 Mar 2021 14:43:07 +0000 (22:43 +0800)]
Merge pull request #36549 from markhpc/wip-bl-dynamic_alen

common/buffer.cc: Implement dynamic alen in refill_append_space

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39757 from aclamk/wip-qa-test-bluestore-reshard
Kefu Chai [Wed, 17 Mar 2021 14:41:34 +0000 (22:41 +0800)]
Merge pull request #39757 from aclamk/wip-qa-test-bluestore-reshard

qa: Add bluestore resharding test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoqa/suites/rados/cephadm/orchestrator_cli: random-distro$ -> 0-random-distro$ 40160/head
Sage Weil [Wed, 17 Mar 2021 14:40:32 +0000 (10:40 -0400)]
qa/suites/rados/cephadm/orchestrator_cli: random-distro$ -> 0-random-distro$

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40032 from aclamk/wip-bdev-remove-reap
Kefu Chai [Wed, 17 Mar 2021 14:40:21 +0000 (22:40 +0800)]
Merge pull request #40032 from aclamk/wip-bdev-remove-reap

blk/BlockDevice: Remove reap_ioc logic

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #40118 from jtlayton/wip-49806
Sebastian Wagner [Wed, 17 Mar 2021 14:19:33 +0000 (15:19 +0100)]
Merge pull request #40118 from jtlayton/wip-49806

doc: fixes for cephadm documentation

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #40179 from tchaikov/wip-cmake-permissive-for-cxx
Kefu Chai [Wed, 17 Mar 2021 13:49:12 +0000 (21:49 +0800)]
Merge pull request #40179 from tchaikov/wip-cmake-permissive-for-cxx

cmake: do not pass -fpermissive when compiling C code

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #40136 from kshtsk/wip-fix-ninja-leap
Kefu Chai [Wed, 17 Mar 2021 13:23:45 +0000 (21:23 +0800)]
Merge pull request #40136 from kshtsk/wip-fix-ninja-leap

ceph.spec.in: use ninja instead of ninja-build for openSUSE

Reviewed-by: Nathan Cutler <ncutler@suse.com>
4 years agodoc: fixes for cephadm documentation 40118/head
Jeff Layton [Fri, 29 Jan 2021 19:15:26 +0000 (14:15 -0500)]
doc: fixes for cephadm documentation

Be sure to note that python 3 is a prerequisite. Minimal centos 8
installs don't have it, for instance.

Also, we probably don't want to hardcode an octopus URL into the
suggested curl command. Change it to fill that in with
"|stable-release|", which should always point to the latest released
version name.

Fixes: https://tracker.ceph.com/issues/49806
Signed-off-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge pull request #39290 from lxbsz/service
Jason Dillaman [Wed, 17 Mar 2021 12:16:49 +0000 (08:16 -0400)]
Merge pull request #39290 from lxbsz/service

mgr: enhance the rados service map

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: do not pass -fpermissive when compiling C code 40179/head
Kefu Chai [Wed, 17 Mar 2021 12:03:45 +0000 (20:03 +0800)]
cmake: do not pass -fpermissive when compiling C code

silences warnings like

[2/768] /usr/bin/x86_64-w64-mingw32-gcc-posix -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -D_POSIX=1 -D_POSIX_=1 -D_POSIX_C_SOURCE=1
-D_POSIX_THREADS=1 -D_REENTRANT -D_THREAD_SAFE -D_WIN32_WINNT=0x0A00 -D__CEPH__ -D__STDC_FORMAT_MACROS -Isrc/include -I../src -I../src/include/win32 -isystem ../build.deps/mingw/boost/include -isystem
include -isystem ../src/xxHash -isystem ../src/rapidjson/include -isystem ../src/fmt/include -O3 -DNDEBUG   -include winsock_wrapper.h -include win32_errno.h -U_FORTIFY_SOURCE -Wall
-fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -fpermissive -fdiagnostics-color=auto -std=gnu99 -MD -MT
src/CMakeFiles/common-objs.dir/xxHash/xxhash.c.obj -MF src/CMakeFiles/common-objs.dir/xxHash/xxhash.c.obj.d -o src/CMakeFiles/common-objs.dir/xxHash/xxhash.c.obj   -c ../src/xxHash/xxhash.c
cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C

see also
https://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/C_002b_002b-Dialect-Options.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agokrbd: check device node accessibility only if we actually mapped 40178/head
Ilya Dryomov [Mon, 15 Mar 2021 19:30:07 +0000 (20:30 +0100)]
krbd: check device node accessibility only if we actually mapped

Fix a braino that came with commit f6854ac65d2a ("krbd: make sure the
device node is accessible after the mapping").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agodoc: update Windows MSI link 40177/head
Lucian Petrut [Wed, 17 Mar 2021 10:38:55 +0000 (10:38 +0000)]
doc: update Windows MSI link

Instead of having a direct download link, we'll point to the
download page, which will eventually contain other MSI versions as
well (e.g. Quincy).

While at it, we're simplifying the document a bit, dropping
information that's also included in the manual install guide.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoMerge pull request #40169 from petrutlucian94/test_fixes
Ilya Dryomov [Wed, 17 Mar 2021 10:16:24 +0000 (11:16 +0100)]
Merge pull request #40169 from petrutlucian94/test_fixes

win32*.sh: use the right target when building the tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoqa: krbd_blkroset.t: update for separate hw and user read-only flags 40175/head
Ilya Dryomov [Wed, 17 Mar 2021 10:00:33 +0000 (11:00 +0100)]
qa: krbd_blkroset.t: update for separate hw and user read-only flags

Since kernel 5.12, hardware read-only state and user read-only
policy (BLKROGET/SET ioctls) are tracked separately in the block
layer.  As the purpose of our ->set_read_only() method was exactly
that, it was removed.

As a side effect, BLKROSET no longer returns EROFS on an attempt
to make a read-only mapping read-write with "blockdev --setrw".
The policy gets updated, but the device remains read-only as before
because the hardware (== mapping) state is controlled by the driver.

Fixes: https://tracker.ceph.com/issues/49858
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agowin32*.sh: use the right target when building the tests 40169/head
Lucian Petrut [Wed, 17 Mar 2021 07:01:15 +0000 (07:01 +0000)]
win32*.sh: use the right target when building the tests

We switched from make to ninja but we're using the wrong target
when building the tests.

"ninja test" tries to actually run the tests. We'll have to use
"ninja tests" when targeting Windows.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoMerge pull request #40022 from athanatos/sjust/wip-warnings
Kefu Chai [Wed, 17 Mar 2021 04:03:24 +0000 (12:03 +0800)]
Merge pull request #40022 from athanatos/sjust/wip-warnings

test/librgw_file_xattr.cc: fix unused warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40070 into master
Patrick Donnelly [Wed, 17 Mar 2021 03:27:15 +0000 (20:27 -0700)]
Merge PR #40070 into master

* refs/pull/40070/head:
lockdep: fix follows/follows_bt resize() size
lockdep: switch follows_bt vector member to std::map

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
4 years agoMerge PR #40038 into master
Patrick Donnelly [Wed, 17 Mar 2021 03:25:41 +0000 (20:25 -0700)]
Merge PR #40038 into master

* refs/pull/40038/head:
test: log the RLIMIT_NOFILE that we set when running this test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40028 into master
Patrick Donnelly [Wed, 17 Mar 2021 03:24:35 +0000 (20:24 -0700)]
Merge PR #40028 into master

* refs/pull/40028/head:
client: hold the cct by increasing the cct nref
client: notify and stop the tick thread when destructing the Client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39848 into master
Patrick Donnelly [Wed, 17 Mar 2021 03:23:13 +0000 (20:23 -0700)]
Merge PR #39848 into master

* refs/pull/39848/head:
mds: fix race of fetching large dirfrag

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
4 years agoMerge PR #39847 into master
Patrick Donnelly [Wed, 17 Mar 2021 03:21:52 +0000 (20:21 -0700)]
Merge PR #39847 into master

* refs/pull/39847/head:
qa/cephfs: don't expect "file exists" error for "mkdir -p"
qa/cephfs: don't take parameter cwd in _create_mntpt()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
4 years agoMerge pull request #40162 from liewegas/bug-49846
Kefu Chai [Wed, 17 Mar 2021 02:52:41 +0000 (10:52 +0800)]
Merge pull request #40162 from liewegas/bug-49846

mgr/prometheus: fix typo in get_collect_time_metrics

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40152 from TheJJ/fix-osd-class-path-docs
Kefu Chai [Wed, 17 Mar 2021 02:46:19 +0000 (10:46 +0800)]
Merge pull request #40152 from TheJJ/fix-osd-class-path-docs

doc: update osd-class-path error messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agocrimson/seastore/onode_tree: fix recorder nullptr case 39911/head
Yingxin Cheng [Fri, 12 Mar 2021 08:13:16 +0000 (16:13 +0800)]
crimson/seastore/onode_tree: fix recorder nullptr case

The value recorder can be nullptr if the extent is fresh.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/seastore/onode_tree: implement FLTreeOnodeManager unittest
Yingxin Cheng [Fri, 12 Mar 2021 08:12:14 +0000 (16:12 +0800)]
crimson/seastore/onode_tree: implement FLTreeOnodeManager unittest

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoqa/suites/rados/cephadm/smoke-roleless: distro -> 0-distro
Sage Weil [Wed, 17 Mar 2021 00:51:23 +0000 (20:51 -0400)]
qa/suites/rados/cephadm/smoke-roleless: distro -> 0-distro

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/distros/podman: install kubic once per host, in parallel
Sage Weil [Tue, 16 Mar 2021 17:17:11 +0000 (13:17 -0400)]
qa/distros/podman: install kubic once per host, in parallel

- exec "all:" means all *roles*, not *hosts*
- pexec "all:" means all hosts (yay), and also works in parallel

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/fs/multiclient: use clients: not all: for pexec
Sage Weil [Tue, 16 Mar 2021 17:12:07 +0000 (13:12 -0400)]
qa/suites/fs/multiclient: use clients: not all: for pexec

This matches the setup work we are trying to tear down.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40164 from racpatel/DocRBDfix
Jason Dillaman [Wed, 17 Mar 2021 00:21:37 +0000 (20:21 -0400)]
Merge pull request #40164 from racpatel/DocRBDfix

doc/RBD:fixes for ceph-immutable-object-cache daemon enable command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/cephadm/schedule: choose an IP from a subnet list
Sage Weil [Thu, 11 Mar 2021 23:47:24 +0000 (18:47 -0500)]
mgr/cephadm/schedule: choose an IP from a subnet list

Choose an IP from the subnet list provided by the ServiceSpec.

A few caveats:
- we ignore hosts that don't have IPs in the given subnet
- the subnet matching is STRICT.  That is, the CIDR name has to exactly
match what is configured on the host.  That means you can't just say 10/8
to match any 10.whatever addres--you need the exactly network on the host
(e.g, 10.1.2.0/24).
- If you modify a servicespec and change the networks when there are
already deployed daemons, we will try to deploy the new instances on
the same ports but bound to a specific IP instead of *.  Which will fail.
You need to remove the service first, or remove the old daemons manually
so that creating new ones will succeed.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm: rgw: clean up config and config-key values on removal
Sage Weil [Tue, 16 Mar 2021 16:58:52 +0000 (12:58 -0400)]
mgr/cephadm: rgw: clean up config and config-key values on removal

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm: rgw: drop .crt extension when storing cert in config-key
Sage Weil [Tue, 16 Mar 2021 16:58:03 +0000 (12:58 -0400)]
mgr/cephadm: rgw: drop .crt extension when storing cert in config-key

This will no affect upgrades since we will run the config() method before
prepare_create() any time we deploy a new daemon on this service, which
means we'll re-store the cert in the new key location before we generate
a new rgw_frontends option that references it.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm/services: allow beast/civetweb to bind to a particular IP
Sage Weil [Thu, 11 Mar 2021 23:42:33 +0000 (18:42 -0500)]
mgr/cephadm/services: allow beast/civetweb to bind to a particular IP

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agopython-common: add 'networks' property to ServiceSpec
Sage Weil [Tue, 16 Mar 2021 22:59:56 +0000 (18:59 -0400)]
python-common: add 'networks' property to ServiceSpec

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agodoc/RBD:fixes for ceph-immutable-object-cache daemon enable command 40164/head
Rachanaben Patel [Tue, 16 Mar 2021 22:37:46 +0000 (15:37 -0700)]
doc/RBD:fixes for ceph-immutable-object-cache daemon enable command

Document for rbd-persistent-read-only-cache show how to manage
ceph-immutable-object-cache daemon using systemd.
command example needs fixing.It should be

systemctl enable ceph-immutable-object-cache@ceph-immutable-object-cache.{unique id}

Fixes: https://tracker.ceph.com/issues/49849
Signed-off-by: Rachanaben Patel <racpatel@redhat.com>
4 years agorpm: ceph-resource-agents package is noarch 40163/head
Ken Dreyer [Tue, 16 Mar 2021 22:16:52 +0000 (16:16 -0600)]
rpm: ceph-resource-agents package is noarch

The ceph-resource-agents package contains an architecture-independent
bash script and parent directories. There are no architecture-dependent
files here, so we can use a single noarch RPM across all host
architectures.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
4 years agomgr/prometheus: fix typo in get_collect_time_metrics 40162/head
Sage Weil [Tue, 16 Mar 2021 20:10:42 +0000 (15:10 -0500)]
mgr/prometheus: fix typo in get_collect_time_metrics

This causes a failure the first time through this function, but
subsequent calls succeed, making it a bit hard to notice.

Fixes: 58fd057e2c8799fa000b9937aa992e13cbbd485f
Fixes: https://tracker.ceph.com/issues/49846
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #40114 into master
Patrick Donnelly [Tue, 16 Mar 2021 19:27:43 +0000 (12:27 -0700)]
Merge PR #40114 into master

* refs/pull/40114/head:
doc: reorganize Windows docs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge PR #40075 into master
Sage Weil [Tue, 16 Mar 2021 18:07:51 +0000 (14:07 -0400)]
Merge PR #40075 into master

* refs/pull/40075/head:
qa/suites/rados/cephadm/upgrade: add centos upgrade on latest octopus

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agomgr/cephadm/schedule: match placement ip only combination with port
Sage Weil [Thu, 11 Mar 2021 23:40:22 +0000 (18:40 -0500)]
mgr/cephadm/schedule: match placement ip only combination with port

1- We only have an IP to bind to if we also have a port, and
2- If we do, we want an exact match: if the DaemonPlacement has ip of
   None, then the DaemonDescription should have None too.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #39931 into master
Sage Weil [Tue, 16 Mar 2021 17:04:55 +0000 (13:04 -0400)]
Merge PR #39931 into master

* refs/pull/39931/head:
mgr/cephadm: fall back to service spec port if none on DaemonDescription
mgr/cephadm: fix redeploy when daemons have ip:port
mgr/cephadm/schedule: add test case
qa/suites/rados/cephadm/smoke-roleless: add rgw test on many ports
doc/cephadm/rgw: update docs to show count-per-host
mgr/cephadm: add support for rgw_frontend_type (beast or civetweb)
mgr/cephadm: remove ssl_frontend_ssl_key from RGWSpec
mgr/cephadm: fix beast private key config option
mgr/cephadm: fix rgw ssl cert/key config-key path
mgr/cephadm/schedule: dynamically assign ports for rgw
mgr/cephadm/schedule: only 1 port in DaemonPlacement
mgr/cephadm: move rgw frontend logic into RgwService
mgr/cephadm/schedule: return DaemonPlacement instead of HostPlacementSpec
mgr/cephadm/schedule: remove unused methods
mgr/cephadm: propagate ip:port from CephadmDaemoNDeploySpec to deployment
cephadm: populate ports if known and not included in unit.meta
mgr/cephadm: gather and report ports in 'orch ps' output

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #40120 from zdover23/wip-doc-cephadm-mon-service-1-16-Mar-2021
zdover23 [Tue, 16 Mar 2021 16:44:33 +0000 (02:44 +1000)]
Merge pull request #40120 from zdover23/wip-doc-cephadm-mon-service-1-16-Mar-2021

doc/cephadm: break mon section into sections

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
4 years agodoc/cephadm: break mon section into sections 40120/head
Zac Dover [Mon, 15 Mar 2021 15:03:06 +0000 (01:03 +1000)]
doc/cephadm: break mon section into sections

This PR breaks the "Deploy Additional Monitors" section
of the cephadm documentation into several subsections
whose titles spotlight the matter under discussion in
those respective subsections.

inb4: Another PR is on deck that rewrites the sentences
in this chapter of the cephadm documentation. I'd like
to get this chapter broken up into these subsections before
I rewrite those sentences. So I'm hoping for no grammatical
mission creep on this one. The grammar and clarity updates
are coming.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agodoc: update osd-class-path error messages 40152/head
Jonas Jelten [Tue, 16 Mar 2021 10:45:50 +0000 (11:45 +0100)]
doc: update osd-class-path error messages

the return value is "95 Operation not supported"

Signed-off-by: Jonas Jelten <jj@sft.lol>
4 years agoMerge pull request #40141 from zdover23/wip-doc-cephadm-mon-deploying-add-rewrite...
zdover23 [Tue, 16 Mar 2021 15:10:01 +0000 (01:10 +1000)]
Merge pull request #40141 from zdover23/wip-doc-cephadm-mon-deploying-add-rewrite-2021-Mar-16

doc/cephadm: rewrite "deploying add. mons"

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
4 years agoMerge pull request #40153 from rzarzynski/wip-osd-obclock-cleanup
Kefu Chai [Tue, 16 Mar 2021 14:04:32 +0000 (22:04 +0800)]
Merge pull request #40153 from rzarzynski/wip-osd-obclock-cleanup

osd: clean obc locking and repop creation as a sidequest of crimson's InternalClientRequest

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39996 from tchaikov/wip-crimson-cleanups
Kefu Chai [Tue, 16 Mar 2021 14:01:58 +0000 (22:01 +0800)]
Merge pull request #39996 from tchaikov/wip-crimson-cleanups

crimson: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoosd: move PrimaryLogPG::get_rw_locks() from header to .cc. 40153/head
Radoslaw Zarzynski [Tue, 16 Mar 2021 12:45:06 +0000 (12:45 +0000)]
osd: move PrimaryLogPG::get_rw_locks() from header to .cc.

For the sake of symmetry with `release_object_locks()`
and easier grepping for e.g. `ctx->lock_manager`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoosd: PrimaryLogPG::new_repop() doesn't depend on obc anymore.
Radoslaw Zarzynski [Mon, 15 Mar 2021 19:14:44 +0000 (19:14 +0000)]
osd: PrimaryLogPG::new_repop() doesn't depend on obc anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge PR #40130 into master
Sage Weil [Tue, 16 Mar 2021 12:43:06 +0000 (08:43 -0400)]
Merge PR #40130 into master

* refs/pull/40130/head:
mgr/cephadm: less noise about refreshing hosts

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

* refs/pull/40140/head:
mgr/cephadm: fix 'auth caps' fallback

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>