]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agotest/pybind/test_rados: always pass bytes to rados.Object.set_xattr() 31044/head
Kefu Chai [Tue, 22 Oct 2019 04:44:35 +0000 (12:44 +0800)]
test/pybind/test_rados: always pass bytes to rados.Object.set_xattr()

> an empty '' is of type str, not bytes.

python3 says. so let's be more explicit.

this change address failures like:
```
======================================================================
ERROR: test_rados.TestIoctx.test_obj_xattrs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in
runTest
    self.test(*self.arg)
  File "/var/ssd/ceph/src/test/pybind/test_rados.py", line 380, in
test_obj_xattrs
    obj.set_xattr(key, value)
  File "rados.pyx", line 4119, in rados.set_object_locator.retfunc
  File "rados.pyx", line 4129, in rados.set_object_namespace.retfunc
  File "rados.pyx", line 4204, in rados.Object.set_xattr
  File "rados.pyx", line 572, in rados.requires.wrapper.validate_func
  File "rados.pyx", line 560, in rados.requires.check_type
TypeError: xattr_value must be bytes
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/rados: do not slice zip()
Kefu Chai [Tue, 22 Oct 2019 04:42:06 +0000 (12:42 +0800)]
pybind/rados: do not slice zip()

in python2, zip() returns a list. while in python3, zip() returns an
iterator. so we cannot slice the return value of zip(...) anymore. let's
just materialized the iterator before slicing it.

this change address the failure of
```
ERROR: test_rados.TestIoctx.test_applications
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in
runTest
    self.test(*self.arg)
  File "/var/ssd/ceph/src/test/pybind/test_rados.py", line 879, in
test_applications
    eq([], self.ioctx.application_metadata_list("app1"))
  File "rados.pyx", line 4074, in rados.Ioctx.application_metadata_list
TypeError: 'zip' object is unsliceable
```

Signed-off-by: Kefu Chai <kchai@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 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 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 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 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 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 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>
5 years agotest/crimson: v2 peer policy test markdown
Yingxin Cheng [Sat, 12 Oct 2019 08:48:16 +0000 (16:48 +0800)]
test/crimson: v2 peer policy test markdown

lossless_peer_reuse policy won't get remote reset compared with
lossless_peer/stateful_server/lossless_client policy when peer is
markdown.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: v2 lossless policy test markdown
Yingxin Cheng [Sat, 12 Oct 2019 08:22:16 +0000 (16:22 +0800)]
test/crimson: v2 lossless policy test markdown

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: send message only after getting the connection
Yingxin Cheng [Sat, 12 Oct 2019 08:18:00 +0000 (16:18 +0800)]
test/crimson: send message only after getting the connection

It is possible for stateless/stateful server to lose the pending message
due to the remote markdown, causing unexpected test failure.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: don't fail when nothing queued for sweep
Yingxin Cheng [Sat, 12 Oct 2019 07:39:00 +0000 (15:39 +0800)]
crimson/net: don't fail when nothing queued for sweep

Fix a corner case when write is dispatching but the queued events are
cleared by a remote reset.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: v2 stateless server policy test markdown
Yingxin Cheng [Sat, 12 Oct 2019 05:31:00 +0000 (13:31 +0800)]
test/crimson: v2 stateless server policy test markdown

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: v2 lossy client policy test markdown
Yingxin Cheng [Sat, 12 Oct 2019 03:17:51 +0000 (11:17 +0800)]
test/crimson: v2 lossy client policy test markdown

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agolibrbd: implement ordering for overlapping IOs 28952/head
Mahati Chamarthy [Mon, 16 Sep 2019 09:00:52 +0000 (14:30 +0530)]
librbd: implement ordering for overlapping IOs

..and block flushes until previous writes are completed

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
5 years agoMerge pull request #30927 from zjcmszh/test_remove
Jason Dillaman [Wed, 16 Oct 2019 01:05:53 +0000 (21:05 -0400)]
Merge pull request #30927 from zjcmszh/test_remove

test/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30865 from zy751713126/config_pool
Jason Dillaman [Wed, 16 Oct 2019 01:05:27 +0000 (21:05 -0400)]
Merge pull request #30865 from zy751713126/config_pool

pybind/rbd: add pool config_set/get/remove api in rbd.pyx

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agocommon/ceph_context: avoid unnecessary wait during service thread shutdown 30947/head
Jason Dillaman [Tue, 15 Oct 2019 22:19:15 +0000 (18:19 -0400)]
common/ceph_context: avoid unnecessary wait during service thread shutdown

Fixes: https://tracker.ceph.com/issues/42332
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/rgw: whitelist SLOW_OPS failures against ec pools 30944/head
Casey Bodley [Tue, 15 Oct 2019 18:57:31 +0000 (14:57 -0400)]
qa/rgw: whitelist SLOW_OPS failures against ec pools

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/suites/rbd: fix errant tab in yaml which is causing parsing failures 30942/head
Jason Dillaman [Tue, 15 Oct 2019 17:51:58 +0000 (13:51 -0400)]
qa/suites/rbd: fix errant tab in yaml which is causing parsing failures

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/rgw: use config overrides for vault kms backend 30940/head
Casey Bodley [Tue, 15 Oct 2019 15:29:30 +0000 (11:29 -0400)]
qa/rgw: use config overrides for vault kms backend

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: use config overrides for barbican kms backend
Casey Bodley [Tue, 15 Oct 2019 15:12:10 +0000 (11:12 -0400)]
qa/rgw: use config overrides for barbican kms backend

except for the barbican endpoint, which isn't known until the barbican
task runs

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: use config overrides for 'testing' kms backend
Casey Bodley [Tue, 15 Oct 2019 15:07:35 +0000 (11:07 -0400)]
qa/rgw: use config overrides for 'testing' kms backend

and configure the 'testing' backend for the rgw/verify suite

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30595 from p-se/wip-pna-extend-smart-types
Ricardo Marques [Tue, 15 Oct 2019 12:17:23 +0000 (13:17 +0100)]
Merge pull request #30595 from p-se/wip-pna-extend-smart-types

mgr/dashboard: extend types of `smart` response

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agomgr/dashboard: home controller unit test 30937/head
Ricardo Dias [Tue, 15 Oct 2019 12:12:34 +0000 (13:12 +0100)]
mgr/dashboard: home controller unit test

Signed-off-by: Ricardo Dias <rdias@suse.com>
5 years agomgr/dashboard: home: fix fallback to default language
Ricardo Dias [Tue, 15 Oct 2019 12:12:06 +0000 (13:12 +0100)]
mgr/dashboard: home: fix fallback to default language

Signed-off-by: Ricardo Dias <rdias@suse.com>
5 years agomgr/dashboard: home: fix python2 failure in regex processing
Ricardo Dias [Tue, 15 Oct 2019 12:10:22 +0000 (13:10 +0100)]
mgr/dashboard: home: fix python2 failure in regex processing

Signed-off-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge pull request #30558 from dillaman/wip-41555
Mykola Golub [Tue, 15 Oct 2019 11:20:12 +0000 (14:20 +0300)]
Merge pull request #30558 from dillaman/wip-41555

rbd-mirror: image status should report remote status

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #30671 from tspmelo/wip-i18n-vars
Ricardo Marques [Tue, 15 Oct 2019 10:23:54 +0000 (11:23 +0100)]
Merge pull request #30671 from tspmelo/wip-i18n-vars

mgr/dashboard: Fix translation of variables

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
5 years agoMerge pull request #30803 from cyx1231st/wip-seastar-msgr-failover
Kefu Chai [Tue, 15 Oct 2019 09:15:24 +0000 (17:15 +0800)]
Merge pull request #30803 from cyx1231st/wip-seastar-msgr-failover

test/crimson: v2 failover tests with ack/keepalive

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30779 from rhcs-dashboard/tox-ini-fixes
Laura Paduano [Tue, 15 Oct 2019 08:12:19 +0000 (10:12 +0200)]
Merge pull request #30779 from rhcs-dashboard/tox-ini-fixes

mgr/dashboard: tox.ini fixes

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
5 years agotest/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py 30927/head
zhangjiao [Tue, 15 Oct 2019 07:49:33 +0000 (15:49 +0800)]
test/pybind/rbd.pyx: add test_remove_snap_by_id case in test_rbd.py

Signed-off-by: Zhang Jiao <zhangjiao@cmss.chinamobile.com>
5 years agoosd/PG: remove unused code. 30930/head
Jianpeng Ma [Tue, 15 Oct 2019 07:14:11 +0000 (15:14 +0800)]
osd/PG: remove unused code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agoMerge pull request #30600 from yuvalif/boto3_extensions_examples
Yuval Lifshitz [Tue, 15 Oct 2019 06:57:27 +0000 (09:57 +0300)]
Merge pull request #30600 from yuvalif/boto3_extensions_examples

rgw/examples: adding examples for boto3 extensions to AWS S3

5 years agomsg/async: clean up code. 30883/head
Jianpeng Ma [Tue, 15 Oct 2019 05:16:22 +0000 (13:16 +0800)]
msg/async: clean up code.

Currently, function submit_message only used by send_to, so conbine
them to one.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agoMerge pull request #30874 from uweigand/add-cycles-ibmz
Kefu Chai [Tue, 15 Oct 2019 01:35:32 +0000 (09:35 +0800)]
Merge pull request #30874 from uweigand/add-cycles-ibmz

Cycles: Add support for IBM Z

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30816 into master
Patrick Donnelly [Tue, 15 Oct 2019 00:59:12 +0000 (17:59 -0700)]
Merge PR #30816 into master

* refs/pull/30816/head:
qa: use small default pg count for CephFS pools
*: remove config of "mon pg warn min per osd" in testing

Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge PR #30641 into master
Patrick Donnelly [Mon, 14 Oct 2019 20:03:35 +0000 (13:03 -0700)]
Merge PR #30641 into master

* refs/pull/30641/head:
pybind/cephfs: add cephfs python API removexattr()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoMerge PR #30873 into master
Patrick Donnelly [Mon, 14 Oct 2019 20:01:36 +0000 (13:01 -0700)]
Merge PR #30873 into master

* refs/pull/30873/head:
qa: get rid of iterkeys for py3 compatibility

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge PR #30744 into master
Patrick Donnelly [Mon, 14 Oct 2019 19:58:45 +0000 (12:58 -0700)]
Merge PR #30744 into master

* refs/pull/30744/head:
mds: Reorganize class members in MDLog header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30206 into master
Patrick Donnelly [Mon, 14 Oct 2019 19:33:19 +0000 (12:33 -0700)]
Merge PR #30206 into master

* refs/pull/30206/head:
test: add test_statx for new statx()
client: add statx in cephfs.pyx

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #29626 into master
Patrick Donnelly [Mon, 14 Oct 2019 19:15:50 +0000 (12:15 -0700)]
Merge PR #29626 into master

* refs/pull/29626/head:
client: fix return code handling from _lseek

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #30585 into master
Patrick Donnelly [Mon, 14 Oct 2019 18:26:46 +0000 (11:26 -0700)]
Merge PR #30585 into master

* refs/pull/30585/head:
docs/cephfs-shell: update doc about pyscript
cephfs-shell: make compatible with cmd2 versions after 0.9.13

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoqa: use small default pg count for CephFS pools 30816/head
Patrick Donnelly [Wed, 9 Oct 2019 17:41:35 +0000 (10:41 -0700)]
qa: use small default pg count for CephFS pools

The pg count needs to be a power-of-two since
dff5697464edb9931d5dfa08cd4a30f85c1f237e.

Also, mon_pg_warn_min_per_osd is disabled by default now (or set to a
low value in vstart/testing) so there's no need to base the pg count on
this value.

Ideally someday we can remove this so that the default cluster value is
used but we need to keep this for deployments of older versions of Ceph.

Fixes: https://tracker.ceph.com/issues/42228
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agorgw/examples: adding info on boto3 extensions to docs 30600/head
Yuval Lifshitz [Wed, 2 Oct 2019 15:40:07 +0000 (18:40 +0300)]
rgw/examples: adding info on boto3 extensions to docs

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agoMerge pull request #30830 from tchaikov/wip/rpm-install-deps/python_provide
Kefu Chai [Mon, 14 Oct 2019 16:05:06 +0000 (00:05 +0800)]
Merge pull request #30830 from tchaikov/wip/rpm-install-deps/python_provide

install-deps, rpm: use python_provide macro and cleanups

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30151 from ofriedma/wip-ofriedma-lc-twice
Matt Benjamin [Mon, 14 Oct 2019 15:36:07 +0000 (11:36 -0400)]
Merge pull request #30151 from ofriedma/wip-ofriedma-lc-twice

fix rgw lc does not delete objects that do not have exactly the same tags as the rule