]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agodoc: fix typo to auto scale pg number 31065/head
Changcheng Liu [Wed, 23 Oct 2019 02:53:14 +0000 (10:53 +0800)]
doc: fix typo to auto scale pg number

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoMerge PR #30772 into master
Sage Weil [Tue, 22 Oct 2019 20:57:02 +0000 (15:57 -0500)]
Merge PR #30772 into master

* refs/pull/30772/head:
cmake/modules/GetGitRevisionDescription: update to work with git-worktree

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge PR #31003 into master
Sage Weil [Tue, 22 Oct 2019 20:52:58 +0000 (15:52 -0500)]
Merge PR #31003 into master

* refs/pull/31003/head:
 test/pybind/test_rados.py: test test_aio_remove

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #31052 into master
Sage Weil [Tue, 22 Oct 2019 20:51:31 +0000 (15:51 -0500)]
Merge PR #31052 into master

* refs/pull/31052/head:
auth/cephx/CephxClientHandler: handle decode errors
auth/cephx/CephxProtocol: handle decode errors in CephXTicketHandler::verify_service_ticket_reply
auth/cephx/CephxServiceHandler: handle decode errors

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #30837 from Amrita42/patch-2
Gregory Farnum [Tue, 22 Oct 2019 20:28:07 +0000 (13:28 -0700)]
Merge pull request #30837 from Amrita42/patch-2

doc/start/hardware-recommendations.rst: minor tweaks

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31060 into master
Sage Weil [Tue, 22 Oct 2019 20:27:14 +0000 (15:27 -0500)]
Merge PR #31060 into master

* refs/pull/31060/head:
ceph-daemon: make rm-cluster clear out previously failed units
ceph-daemon: fix get_config_and_both_keyrings() return value

5 years agoMerge PR #31007 into master
Sage Weil [Tue, 22 Oct 2019 20:15:18 +0000 (15:15 -0500)]
Merge PR #31007 into master

* refs/pull/31007/head:
mgr/progress: remove "since" from duration string

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge PR #30975 into master
Sage Weil [Tue, 22 Oct 2019 20:14:18 +0000 (15:14 -0500)]
Merge PR #30975 into master

* refs/pull/30975/head:
rpm: make librados2, libcephfs2 own (create) /etc/ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-daemon: make rm-cluster clear out previously failed units 31060/head
Sage Weil [Tue, 22 Oct 2019 18:41:28 +0000 (13:41 -0500)]
ceph-daemon: make rm-cluster clear out previously failed units

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fix get_config_and_both_keyrings() return value
Sage Weil [Tue, 22 Oct 2019 18:31:16 +0000 (13:31 -0500)]
ceph-daemon: fix get_config_and_both_keyrings() return value

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31022 from drunkard/master
Jason Dillaman [Tue, 22 Oct 2019 15:37:19 +0000 (11:37 -0400)]
Merge pull request #31022 from drunkard/master

doc: add missed word 'than' in doc/man/8/rbd.rst

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #30826 into master
Sage Weil [Tue, 22 Oct 2019 15:13:51 +0000 (10:13 -0500)]
Merge PR #30826 into master

* refs/pull/30826/head:
ceph-daemon: deploy: behave when crash keyring isn't provided
ceph-daemon: simplify calls from rm_cluster
ceph-daemon: explicitly wait for mon to start
ceph-daemon: bootstrap finish message
ceph-daemon: shell: LANG=C
ceph-daemon: verify mon IP is valid before continuing
ceph-daemon: cleanly capture stdout, err; log
ceph-daemon: --debug for more log detail
test_ceph_daemon: default to test on 127.0.0.1; accept ip as arg
ceph-daemon: bootstrap: assimilate and minimize input config file

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoauth/cephx/CephxClientHandler: handle decode errors 31052/head
Sage Weil [Tue, 22 Oct 2019 12:43:14 +0000 (07:43 -0500)]
auth/cephx/CephxClientHandler: handle decode errors

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoauth/cephx/CephxProtocol: handle decode errors in CephXTicketHandler::verify_service_...
Sage Weil [Tue, 22 Oct 2019 12:41:26 +0000 (07:41 -0500)]
auth/cephx/CephxProtocol: handle decode errors in CephXTicketHandler::verify_service_ticket_reply

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoauth/cephx/CephxServiceHandler: handle decode errors
Sage Weil [Tue, 22 Oct 2019 12:37:32 +0000 (07:37 -0500)]
auth/cephx/CephxServiceHandler: handle decode errors

Decode errors should trigger EPERM, not throw exceptions that trigger
timeouts/retries in the messenger.

Fixes: https://tracker.ceph.com/issues/42369
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30867 from rishabh-d-dave/cv-api-lvm
Jan Fajerski [Tue, 22 Oct 2019 12:17:31 +0000 (14:17 +0200)]
Merge pull request #30867 from rishabh-d-dave/cv-api-lvm

ceph-volume: rearrange api/lvm.py

5 years ago test/pybind/test_rados.py: test test_aio_remove 31003/head
zhangjiao [Sun, 20 Oct 2019 15:01:32 +0000 (23:01 +0800)]
 test/pybind/test_rados.py: test test_aio_remove

Signed-off-by: Zhang Jiao <zhangjiao@cmss.chinamobile.com>
5 years agodoc/start/hardware-recommendations.rst: minor tweaks 30837/head
Amrita42 [Thu, 10 Oct 2019 09:50:53 +0000 (05:50 -0400)]
doc/start/hardware-recommendations.rst: minor tweaks

* Hard Disk Drive: Replaced word 'accelerate' with 'optimize'
* Networks: Replaced word 'have' with 'has'

Fixes: https://tracker.ceph.com/issues/42379
Signed-off-by: Amrita Sakthivel <asakthiv@redhat.com>
5 years agorpm: make librados2, libcephfs2 own (create) /etc/ceph 30975/head
Nathan Cutler [Tue, 22 Oct 2019 08:52:45 +0000 (10:52 +0200)]
rpm: make librados2, libcephfs2 own (create) /etc/ceph

Fixes: https://tracker.ceph.com/issues/42352
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge PR #30505 into master
Patrick Donnelly [Tue, 22 Oct 2019 04:23:41 +0000 (21:23 -0700)]
Merge PR #30505 into master

* refs/pull/30505/head:
test/libcephfs: introduce (uint64_t)ceph_pthread_self()
test/libcephfs: Only use sys/xattr.h on Linux
cephfs: Create a separate dirent{} for FreeBSD
test/fs: Only use features.h on Linux

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30813 into master
Patrick Donnelly [Tue, 22 Oct 2019 04:22:00 +0000 (21:22 -0700)]
Merge PR #30813 into master

* refs/pull/30813/head:
qa: get rid of iteritems for python3 compatibility

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30886 into master
Patrick Donnelly [Tue, 22 Oct 2019 04:21:15 +0000 (21:21 -0700)]
Merge PR #30886 into master

* refs/pull/30886/head:
mgr/volumes: cleanup leftovers from earlier purge job implementation

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30971 into master
Patrick Donnelly [Tue, 22 Oct 2019 04:18:36 +0000 (21:18 -0700)]
Merge PR #30971 into master

* refs/pull/30971/head:
qa: whitelist "Error recovering journal" for cephfs-data-scan

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30986 into master
Patrick Donnelly [Tue, 22 Oct 2019 04:14:07 +0000 (21:14 -0700)]
Merge PR #30986 into master

* refs/pull/30986/head:
qa: allow client mount to reset fully

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30897 from tchaikov/wip-bluestore/avl-allocator
Xie Xingguo [Tue, 22 Oct 2019 00:33:54 +0000 (08:33 +0800)]
Merge pull request #30897 from tchaikov/wip-bluestore/avl-allocator

os/bluestore: AVL-tree & extent - based space allocator

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoceph-daemon: deploy: behave when crash keyring isn't provided 30826/head
Sage Weil [Mon, 21 Oct 2019 15:56:22 +0000 (10:56 -0500)]
ceph-daemon: deploy: behave when crash keyring isn't provided

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: simplify calls from rm_cluster
Sage Weil [Thu, 10 Oct 2019 02:26:49 +0000 (21:26 -0500)]
ceph-daemon: simplify calls from rm_cluster

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: explicitly wait for mon to start
Sage Weil [Wed, 9 Oct 2019 21:40:46 +0000 (16:40 -0500)]
ceph-daemon: explicitly wait for mon to start

All this does is make things easier to understand if there is a failure
that prevents the mon from responding.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: bootstrap finish message
Sage Weil [Wed, 9 Oct 2019 21:35:26 +0000 (16:35 -0500)]
ceph-daemon: bootstrap finish message

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: shell: LANG=C
Sage Weil [Wed, 9 Oct 2019 19:25:39 +0000 (14:25 -0500)]
ceph-daemon: shell: LANG=C

This gets rid of all these warnings:

bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: verify mon IP is valid before continuing
Sage Weil [Wed, 9 Oct 2019 18:36:23 +0000 (13:36 -0500)]
ceph-daemon: verify mon IP is valid before continuing

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: cleanly capture stdout, err; log
Sage Weil [Wed, 9 Oct 2019 17:50:47 +0000 (12:50 -0500)]
ceph-daemon: cleanly capture stdout, err; log

- New Popen wrapper that grabs stdout, stderr, and return code.  This is
adapted from ceph-volume's process.py helper(s).

- Optionally log output to logger

- By default, be more verbose if the command fails.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: --debug for more log detail
Sage Weil [Tue, 8 Oct 2019 15:23:43 +0000 (10:23 -0500)]
ceph-daemon: --debug for more log detail

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon: default to test on 127.0.0.1; accept ip as arg
Sage Weil [Mon, 7 Oct 2019 21:48:19 +0000 (16:48 -0500)]
test_ceph_daemon: default to test on 127.0.0.1; accept ip as arg

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: bootstrap: assimilate and minimize input config file
Sage Weil [Mon, 7 Oct 2019 21:48:06 +0000 (16:48 -0500)]
ceph-daemon: bootstrap: assimilate and minimize input config file

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30957 from tchaikov/wip/crimson/mon/client
Kefu Chai [Mon, 21 Oct 2019 15:03:19 +0000 (23:03 +0800)]
Merge pull request #30957 from tchaikov/wip/crimson/mon/client

crimson/{osd,mon}: lower log level when sending a replicated op

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/mon: skip CEPHX_V2 challenge if client doesn't support it 30957/head
Kefu Chai [Wed, 16 Oct 2019 07:51:54 +0000 (15:51 +0800)]
crimson/mon: skip CEPHX_V2 challenge if client doesn't support it

port 321548010578d6ff7bbf2e5ce8a550008b131423 from src/mon/MonClient

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: lower log level when sending a replicated op
Kefu Chai [Thu, 10 Oct 2019 07:44:27 +0000 (15:44 +0800)]
crimson/osd: lower log level when sending a replicated op

it's but normal i/o, no need to print it using "info"

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: add missed word 'than' in doc/man/8/rbd.rst 31022/head
Drunkard Zhang [Mon, 21 Oct 2019 14:21:40 +0000 (22:21 +0800)]
doc: add missed word 'than' in doc/man/8/rbd.rst

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
5 years agoMerge pull request #30925 from cyx1231st/wip-seastar-msgr-policies
Kefu Chai [Mon, 21 Oct 2019 14:18:54 +0000 (22:18 +0800)]
Merge pull request #30925 from cyx1231st/wip-seastar-msgr-policies

test/crimson: verify msgr v2 behavior with different policies

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa: allow client mount to reset fully 30986/head
Venky Shankar [Thu, 17 Oct 2019 15:29:42 +0000 (20:59 +0530)]
qa: allow client mount to reset fully

... without this there is a sutle race where it takes a
bit of time after a hard reset of a client mount causing
further checks to fail as the (still up) client is still
connected to the MDS.

Fixes: http://tracker.ceph.com/issues/42213
Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge pull request #31008 from SUSE/wip-doc-telemetry-default-interval
Tim Serong [Mon, 21 Oct 2019 09:10:19 +0000 (20:10 +1100)]
Merge pull request #31008 from SUSE/wip-doc-telemetry-default-interval

doc/mgr/telemetry: update default interval

5 years agoMerge pull request #30965 from idryomov/wip-krbd-udev-socket-overrun
Ilya Dryomov [Mon, 21 Oct 2019 09:00:46 +0000 (11:00 +0200)]
Merge pull request #30965 from idryomov/wip-krbd-udev-socket-overrun

krbd: avoid udev netlink socket overrun

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agodoc/mgr/telemetry: update default interval 31008/head
Tim Serong [Mon, 21 Oct 2019 07:11:35 +0000 (18:11 +1100)]
doc/mgr/telemetry: update default interval

Commit 712987d533 changed the default interval to 24h;
updating the docs to match (this also should go to
the Nautilus branch as that commit landed there too
in https://github.com/ceph/ceph/pull/27709)

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agomgr/progress: remove "since" from duration string 31007/head
Kefu Chai [Mon, 21 Oct 2019 06:23:48 +0000 (14:23 +0800)]
mgr/progress: remove "since" from duration string

quote from the description of the tracker ticket:

> This is a duration and therefore "since" doesn't make sense since it's
> not the start of the event.

Fixes: https://tracker.ceph.com/issues/40976
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30973 from tchaikov/wip/qa/tasks/ceph_manager
Kefu Chai [Mon, 21 Oct 2019 04:20:01 +0000 (12:20 +0800)]
Merge pull request #30973 from tchaikov/wip/qa/tasks/ceph_manager

qa/tasks/ceph_manager: do not panic if "pg_num_target" is missing

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/tasks/ceph: tolerate 'T' or ' ' as date and time separator 30973/head
Kefu Chai [Thu, 17 Oct 2019 15:23:11 +0000 (23:23 +0800)]
qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator

str.replace() does not change the string in-place, so we need to assign
its return value to `t`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/ceph_manager: do not panic of "pg_num_target" is missing
Kefu Chai [Thu, 17 Oct 2019 14:07:18 +0000 (22:07 +0800)]
qa/tasks/ceph_manager: do not panic of "pg_num_target" is missing

we don't have "pg_num_target" in "osd dump" back in mimic, so we don't
need to check it if it is missing when performing upgrade test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30947 from dillaman/wip-42332
Kefu Chai [Mon, 21 Oct 2019 04:14:46 +0000 (12:14 +0800)]
Merge pull request #30947 from dillaman/wip-42332

common/ceph_context: avoid unnecessary wait during service thread shutdown

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30840 from majianpeng/async-messenger-narrow-lock
Kefu Chai [Mon, 21 Oct 2019 04:13:47 +0000 (12:13 +0800)]
Merge pull request #30840 from majianpeng/async-messenger-narrow-lock

msg/async: narrow scope of AsyncMessenger::lock in fun connect_to.

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30883 from majianpeng/msg-remove-submit-message
Kefu Chai [Mon, 21 Oct 2019 04:12:29 +0000 (12:12 +0800)]
Merge pull request #30883 from majianpeng/msg-remove-submit-message

msg/async: move submit_message() into send_to()

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30695 from dsavineau/ceph_cli_cephconf_rc
Kefu Chai [Sun, 20 Oct 2019 16:50:26 +0000 (00:50 +0800)]
Merge pull request #30695 from dsavineau/ceph_cli_cephconf_rc

ceph.in: check ceph-conf returncode

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30758 from kshtsk/wip-python3-print
Kefu Chai [Sun, 20 Oct 2019 16:34:18 +0000 (00:34 +0800)]
Merge pull request #30758 from kshtsk/wip-python3-print

tests: use python3 compatible print

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30987 from trociny/wip-42370
Kefu Chai [Sun, 20 Oct 2019 16:32:22 +0000 (00:32 +0800)]
Merge pull request #30987 from trociny/wip-42370

mgr/balancer: python3 compatibility issue

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30705 from smithfarm/wip-sp-backporting-2
Nathan Cutler [Sat, 19 Oct 2019 08:20:47 +0000 (10:20 +0200)]
Merge pull request #30705 from smithfarm/wip-sp-backporting-2

doc: split up SubmittingPatches.rst

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agoMerge pull request #30989 from tchaikov/wip/ceph-crash/logger-name
Dan Mick [Fri, 18 Oct 2019 23:11:37 +0000 (16:11 -0700)]
Merge pull request #30989 from tchaikov/wip/ceph-crash/logger-name

ceph-crash: use "ceph-crash" as logger name

5 years agoqa: add script to test udev event reaping 30965/head
Ilya Dryomov [Fri, 11 Oct 2019 12:58:08 +0000 (14:58 +0200)]
qa: add script to test udev event reaping

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agokrbd: increase udev netlink socket receive buffer to 2M
Ilya Dryomov [Mon, 14 Oct 2019 10:40:43 +0000 (12:40 +0200)]
krbd: increase udev netlink socket receive buffer to 2M

Even though with the previous commit we no longer block between binding
the socket and starting handling events, we still want a larger receive
buffer to accommodate for scheduling delays.  Since the filtering is
done in the listener, an estimate focused on just rbd is not accurate,
but anyway: a pair of "rbd" and "block" events for "rbd map" take 2048
bytes in the receive buffer.  This allows for roughly a thousand of
them ("rbd map" and "rbd unmap" require root and libudev makes use of
SO_RCVBUFFORCE so rmem_max limit is ignored).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoceph-crash: use "ceph-crash" as logger name 30989/head
Kefu Chai [Fri, 18 Oct 2019 09:47:12 +0000 (17:47 +0800)]
ceph-crash: use "ceph-crash" as logger name

"ceph-crash" is a better name than "__main__", we don't use ceph-crash
as a module, so its `__name__` is always `__main__`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/balancer: python3 compatibility issue 30987/head
Mykola Golub [Fri, 18 Oct 2019 09:19:30 +0000 (12:19 +0300)]
mgr/balancer: python3 compatibility issue

Fixes: https://tracker.ceph.com/issues/42370
Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #30701 from pdvian/wip-fix-target-size-bytes
Kefu Chai [Fri, 18 Oct 2019 09:15:45 +0000 (17:15 +0800)]
Merge pull request #30701 from pdvian/wip-fix-target-size-bytes

mon/OSDMonitor: Fix pool set target_size_bytes (etc) with unit suffix

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30870 from rosinL/wip-addlog-setnumaaffinity
Kefu Chai [Fri, 18 Oct 2019 09:15:07 +0000 (17:15 +0800)]
Merge pull request #30870 from rosinL/wip-addlog-setnumaaffinity

osd/osd: add an err log to set_numa_affinty

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30549 from aclamk/fix-garbled-wal
Kefu Chai [Fri, 18 Oct 2019 09:14:00 +0000 (17:14 +0800)]
Merge pull request #30549 from aclamk/fix-garbled-wal

os/bluestore/BlueFS: clear newly allocated space for WAL logs

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #30978 from idryomov/wip-krbd-modprobe
Ilya Dryomov [Fri, 18 Oct 2019 09:11:07 +0000 (11:11 +0200)]
Merge pull request #30978 from idryomov/wip-krbd-modprobe

krbd: modprobe before calling build_map_buf()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoceph-volume: make get_pv() accepts list of PVs 30867/head
Rishabh Dave [Sat, 12 Oct 2019 11:32:33 +0000 (17:02 +0530)]
ceph-volume: make get_pv() accepts list of PVs

...so that the code calling it can pass its copy which would prevent
creating a new one within get_pv().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: make get_vg() accepts list of VGs
Rishabh Dave [Sat, 12 Oct 2019 11:29:57 +0000 (16:59 +0530)]
ceph-volume: make get_vg() accepts list of VGs

...so that the code calling it can pass its copy which would prevent
creating a new one within get_vg().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: rearrange api/lvm.py
Rishabh Dave [Sat, 12 Oct 2019 11:14:39 +0000 (16:44 +0530)]
ceph-volume: rearrange api/lvm.py

Move code for PVs, VGs and LVs, individually, next to each other.

Fixes: https://tracker.ceph.com/issues/42368
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #30790 from kshtsk/wip-python3-print-ceph-volume
Jan Fajerski [Fri, 18 Oct 2019 08:07:06 +0000 (10:07 +0200)]
Merge pull request #30790 from kshtsk/wip-python3-print-ceph-volume

ceph-volume: use python3 compatible print

5 years agoMerge pull request #30829 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config
Kefu Chai [Fri, 18 Oct 2019 08:06:23 +0000 (16:06 +0800)]
Merge pull request #30829 from kshtsk/wip-misc-drop-legacy-code-in-skeleton_config

tasks/ceph: drop testdir replacement in skeleton_config

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30852 from dzafman/wip-42115
Kefu Chai [Fri, 18 Oct 2019 08:02:32 +0000 (16:02 +0800)]
Merge pull request #30852 from dzafman/wip-42115

osd: Turn off repair pg state when leaving recovery

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30646 from shyukri/wip-qa-mgr-balancer
Kefu Chai [Fri, 18 Oct 2019 07:43:33 +0000 (15:43 +0800)]
Merge pull request #30646 from shyukri/wip-qa-mgr-balancer

qa/mgr/balancer: Add cram based test for altering target_max_misplaced_ratio setting

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agodoc: split up SubmittingPatches.rst 30705/head
Nathan Cutler [Thu, 5 Jul 2018 13:50:11 +0000 (15:50 +0200)]
doc: split up SubmittingPatches.rst

Split the existing SubmittingPatches.rst into three files:

* SubmittingPatches.rst (general guidelines, for GitHub/master branch)
* SubmittingPatches-kernel.rst (for kernel patches)
* SubmittingPatches-backports.rst (for backports)

Fixes: http://tracker.ceph.com/issues/20953
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30293 from rosinL/wip-fix-kvstorebench
Kefu Chai [Thu, 17 Oct 2019 15:31:24 +0000 (23:31 +0800)]
Merge pull request #30293 from rosinL/wip-fix-kvstorebench

kv_store_bench: fix teuthology_tests() return value

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30833 from majianpeng/async-batch-counter
Kefu Chai [Thu, 17 Oct 2019 15:28:29 +0000 (23:28 +0800)]
Merge pull request #30833 from majianpeng/async-batch-counter

msg/async: remove unsued code.

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30288 from ricardoasmarques/display-uuid-lunid
Lenz Grimmer [Thu, 17 Oct 2019 15:21:16 +0000 (15:21 +0000)]
Merge pull request #30288 from ricardoasmarques/display-uuid-lunid

mgr/dashboard: Display WWN and LUN number in iSCSI target details

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agokrbd: modprobe before calling build_map_buf() 30978/head
Ilya Dryomov [Thu, 17 Oct 2019 14:23:41 +0000 (16:23 +0200)]
krbd: modprobe before calling build_map_buf()

Otherwise add_key() in set_kernel_secret() fails as if running against
an ancient kernel and we fall back to secret= in options for the first
image being mapped on the machine.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #30940 from cbodley/wip-qa-rgw-crypt
J. Eric Ivancich [Thu, 17 Oct 2019 13:27:40 +0000 (09:27 -0400)]
Merge pull request #30940 from cbodley/wip-qa-rgw-crypt

qa/rgw: refactor the kms backend configuration

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoqa: whitelist "Error recovering journal" for cephfs-data-scan 30971/head
Yan, Zheng [Thu, 17 Oct 2019 13:15:13 +0000 (21:15 +0800)]
qa: whitelist "Error recovering journal" for cephfs-data-scan

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/41836
5 years agoobjectstore/test/aging: Added avl, added more test cases, added reporting free score. 30897/head
Adam Kupczyk [Wed, 16 Oct 2019 11:13:34 +0000 (13:13 +0200)]
objectstore/test/aging: Added avl, added more test cases, added reporting free score.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoqa: add AvlAllocator test script
xie xingguo [Mon, 9 Oct 2017 12:31:57 +0000 (20:31 +0800)]
qa: add AvlAllocator test script

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agosrc/test/objectstore/Allocator_{test,bench}.cc: test AvlAllocator too
xie xingguo [Sun, 8 Oct 2017 07:52:34 +0000 (15:52 +0800)]
src/test/objectstore/Allocator_{test,bench}.cc: test AvlAllocator too

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoos/bluestore: implement avl-extent-based allocator
xie xingguo [Sat, 7 Oct 2017 05:18:31 +0000 (13:18 +0800)]
os/bluestore: implement avl-extent-based allocator

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30937 from rjfd/wip-dashboard-fix-home-py2
Ricardo Dias [Thu, 17 Oct 2019 08:51:26 +0000 (09:51 +0100)]
Merge pull request #30937 from rjfd/wip-dashboard-fix-home-py2

mgr/dashboard: fix python2 failure in home controller

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #30930 from majianpeng/osd-pg-remove-unused-code
Kefu Chai [Thu, 17 Oct 2019 00:21:26 +0000 (08:21 +0800)]
Merge pull request #30930 from majianpeng/osd-pg-remove-unused-code

osd/PG: remove unused code

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agokrbd: avoid udev netlink socket overrun
Ilya Dryomov [Thu, 26 Sep 2019 16:06:27 +0000 (18:06 +0200)]
krbd: avoid udev netlink socket overrun

Because the event(s) we are interested in can be deliveled while we are
still in the kernel finishing map or unmap, we start listening for udev
events before going into the kernel.  However, if (un)mapping takes its
time, udev netlink socket can be fairly easily overrun -- the filtering
is done on the listener side, so we get to process everything, not just
rbd events.  If any of the events of interest get dropped (ENOBUFS), we
hang in poll().

Go into the kernel in a separate thread and leave the main thread to
run the event loop.  The return value is communicated to the reactor
though a pipe.

Fixes: https://tracker.ceph.com/issues/41404
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agokrbd: reap all available events before polling again
Ilya Dryomov [Thu, 10 Oct 2019 11:49:26 +0000 (13:49 +0200)]
krbd: reap all available events before polling again

This also exposes errors from udev_monitor_receive_device() which were
previously ignored.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agokrbd: separate event reaping from event processing
Ilya Dryomov [Thu, 10 Oct 2019 08:49:17 +0000 (10:49 +0200)]
krbd: separate event reaping from event processing

Move event processing into UdevMapHandler and UdevUnmapHandler
functors and replace wait_for_udev_{add,remove}() with a single
wait_for_mapping() template.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agokrbd: get rid of poll() timeout
Ilya Dryomov [Fri, 27 Sep 2019 15:14:08 +0000 (17:14 +0200)]
krbd: get rid of poll() timeout

This timeout was added as a (very poor) workaround for an issue
addressed in commit 42dd1eae630f ("krbd: fix rbd map hang due to udev
return subsystem unordered").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #30958 from tchaikov/wip-cmake/dashboard-frontend
Kefu Chai [Wed, 16 Oct 2019 14:43:06 +0000 (22:43 +0800)]
Merge pull request #30958 from tchaikov/wip-cmake/dashboard-frontend

cmake: dashboard: enable frontend on arm64

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Lenz Grimmer <LGrimmer@suse.com>
5 years agoMerge pull request #30944 from cbodley/wip-qa-rgw-whitelist-slow-ops
Casey Bodley [Wed, 16 Oct 2019 14:06:56 +0000 (10:06 -0400)]
Merge pull request #30944 from cbodley/wip-qa-rgw-whitelist-slow-ops

qa/rgw: whitelist SLOW_OPS failures against ec pools

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #30952 from mxdInspur/trash_restore_info_warn
Jason Dillaman [Wed, 16 Oct 2019 12:11:11 +0000 (08:11 -0400)]
Merge pull request #30952 from mxdInspur/trash_restore_info_warn

rbd: delete redundant words when trash restore fails because of same name

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #28952 from MahatiC/wip-ordering-ios
Jason Dillaman [Wed, 16 Oct 2019 12:06:18 +0000 (08:06 -0400)]
Merge pull request #28952 from MahatiC/wip-ordering-ios

librbd: implement ordering for overlapping IOs

5 years agoMerge pull request #30953 from tchaikov/wip-doc/rbd
Jason Dillaman [Wed, 16 Oct 2019 11:21:02 +0000 (07:21 -0400)]
Merge pull request #30953 from tchaikov/wip-doc/rbd

doc/rbd: s/guess/xml/ for codeblock lexer

Reviewed-by: Jason DIllaman <dillaman@redhat.com>
5 years agoMerge pull request #30942 from dillaman/wip-rbd-qa-suites
Mykola Golub [Wed, 16 Oct 2019 10:36:10 +0000 (13:36 +0300)]
Merge pull request #30942 from dillaman/wip-rbd-qa-suites

qa/suites/rbd: fix errant tab in yaml which is causing parsing failures

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agocmake: dashboard: move "if(WITH_MGR_DASHBOARD_FRONTEND)" up 30958/head
Kefu Chai [Wed, 16 Oct 2019 08:50:47 +0000 (16:50 +0800)]
cmake: dashboard: move "if(WITH_MGR_DASHBOARD_FRONTEND)" up

two reasons:

* we don't need to run the tox test if WITH_MGR_DASHBOARD_FRONTEND is
  OFF
* better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: dashboard: enable frontend on arm64
Kefu Chai [Wed, 16 Oct 2019 08:44:01 +0000 (16:44 +0800)]
cmake: dashboard: enable frontend on arm64

it was disable when we added dashboard(v2) to ceph in
24e216b519795ba6a5d427790399a595fbb19b27 because some npm package did
not install or build on arm64. but "mgr-dashboard-frontend-build" now
builds fine at the time of writing. so let's enable it!

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorbd:delete redundant words when trash restore failed because of same name 30952/head
Xiangdong Mu [Wed, 16 Oct 2019 06:27:21 +0000 (14:27 +0800)]
rbd:delete redundant words when trash restore failed because of same name

Signed-off-by: Xiangdong Mu <muxiangdong@inspur.com>
5 years agodoc/rbd: s/guess/xml/ for codeblock lexer 30953/head
Kefu Chai [Wed, 16 Oct 2019 04:34:19 +0000 (12:34 +0800)]
doc/rbd: s/guess/xml/ for codeblock lexer

this change silences the warning of

```
doc/rbd/qemu-rbd.rst:174: WARNING: Pygments lexer name 'guess' is not
known
```

see http://pygments.org/docs/lexers/, we should use "xml" for XML .

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/crimson: v2 policy test reconnect after server/acceptor down 30925/head
Yingxin Cheng [Tue, 15 Oct 2019 06:27:50 +0000 (14:27 +0800)]
test/crimson: v2 policy test reconnect after server/acceptor down

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: v2 policy test server/acceptor markdown
Yingxin Cheng [Mon, 14 Oct 2019 03:37:20 +0000 (11:37 +0800)]
test/crimson: v2 policy test server/acceptor markdown

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>