Commit Graph

114776 Commits

Author SHA1 Message Date
Kefu Chai
bc45de0af6
Merge pull request #36886 from batrick/librados-statfs-header
librados: remove unused header

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-29 14:56:01 +08:00
Chunsong Feng
8a9412ee88 msg/async/rdma: avoid enqueue_dead_qp deadlock
In RDMADispatcher::handle_async_event, when case
IBV_EVENT_QP_LAST_WQE_REACHED matched, enqueue_dead_qp wants the lock,
result in deadlock here. Change enqueue_dead_qp to lockless.

Fixes: https://tracker.ceph.com/issues/44298

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: luorixin <luorixin@huawei.com>
2020-08-29 14:26:26 +08:00
Patrick Donnelly
5e5ceadb99
librados: remove unused headers
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-28 19:16:18 -07:00
Patrick Donnelly
048da58923
doc: use union merge strategy for resolving conflicts in PendingReleaseNotes
Generally, the conflict resolution performed manually is always to do a
union: automate this. This avoids pointless rebases of PRs.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-28 18:59:30 -07:00
Patrick Donnelly
ed90c0768b
Merge PR #36701 into master
* refs/pull/36701/head:
	client: make Client::open() pass proper cap mask to path_walk

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-28 17:48:44 -07:00
Patrick Donnelly
ed892ebb8f
Merge PR #36641 into master
* refs/pull/36641/head:
	mds : skip show_cache if level of log is lower than 7

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2020-08-28 17:48:15 -07:00
Patrick Donnelly
e4f3967670
qa: ignore expected mds failover message
Fixes: https://tracker.ceph.com/issues/47202
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-28 17:44:16 -07:00
Patrick Donnelly
0902bf0e0f
Merge PR #36882 into master
* refs/pull/36882/head:
	qa/tests: Added "--force-priority"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-28 13:31:07 -07:00
Kefu Chai
bf0bf80489 msg,messages: remove MMonMetadata
MMonMetadata is sent to pre-luminous monitors and handled only for
backward compatibility with pre-luminous monitors. and luminous is
the last release we were still sending this message. but there is no
need for pacific to be compatible with pre-luminous monitors because of
the +2 policy.

so let's drop this message from the source tree.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-28 23:32:54 +08:00
Kefu Chai
bb9878d1b0
Merge pull request #36729 from changchengx/zero_malloc
crush: do not malloc for empty bucket and avoid member variables after memset() with 0

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-28 23:21:27 +08:00
Kefu Chai
8c04ee89ba
Merge pull request #36820 from tchaikov/wip-test-multi_stress_watch
test/multi_stress_watch: use condition_variable for level triggering

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2020-08-28 23:17:05 +08:00
Kefu Chai
8fef81561d
Merge pull request #36832 from neha-ojha/wip-clean-temps
tools/osdmaptool.cc: add ability to clean_temps

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
2020-08-28 23:14:26 +08:00
Yuri Weinstein
0584150501 qa/tests: Added "--force-priority"
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2020-08-28 07:35:25 -07:00
mhackett
2c37b74b3b doc: document tuning of object gateway garbage collection
Fixes: https://tracker.ceph.com/issues/47189

Signed-off-by: mhackett <mhackett@redhat.com>
2020-08-28 10:29:10 -04:00
Kefu Chai
fce56ad60c admin/doc-requirements: bump up sphinx to 3.2.1
* use the latest stable sphinx
* unpin breathe, sphinx-autodoc-typehints, so pip can choose the
  compatible versions without worrying about the compile failures.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-28 20:35:21 +08:00
Kefu Chai
cf357e17ab doc/conf.py: define CEPH_RADOS_API for breathe
otherwise we could have following errors:

Invalid C declaration: Expected identifier in nested name, got keyword: int [error at 18]
      CEPH_RADOS_API int rados_aio_append (rados_ioctx_t io, const char *oid, rados_completion_t completion, const char *buf, size_t len)
      ------------------^

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-28 20:35:21 +08:00
Kefu Chai
fa7ea35832 script/gen_state_diagram.py: s/python/python3/
python does not necessarily on a modern distro which has only python3,
so use python3 instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-28 20:35:21 +08:00
Ilya Dryomov
46c912978a
Merge pull request #36854 from idryomov/wip-krbd-default-pool-fix
rbd: fix default pool handling for krbd map/unmap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-08-28 13:04:52 +02:00
Sebastian Wagner
922f962ae1 mgr/mgr_module.py: CLICommand: Fix parsing of kwargs arguments
Make parsing of keyword arguments a bit safer by
makeing sure the key is actually a valid parameter name

Fixes: https://tracker.ceph.com/issues/47185
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 12:56:49 +02:00
Sebastian Wagner
bff74b0180 cephadm: properly remove osd-activate container
Othwerise we end up with being unable to create
new containers, due to the name being already used

Fixes: https://tracker.ceph.com/issues/47170

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 11:59:40 +02:00
Vikhyat Umrao
9ffbffbe6c mon/PGMap: add pg count for pools in the ceph df command
Fixes: https://tracker.ceph.com/issues/46663

Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
2020-08-28 02:57:59 -07:00
myoungwon oh
78b30e1249 test: use existing replicated tier instead of using ec_overwrite
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
2020-08-28 18:35:28 +09:00
Kefu Chai
fb7729c605
Merge pull request #36866 from yison/fix-core-dump-issue-of-sync-read
blk/spdk/NVMEDevice.cc: fix a core dump issue of sync read

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-28 16:47:51 +08:00
Yuan Lu
3b4714bc96 blk/spdk/NVMEDevice.cc: fix a core dump issue of sync read
Signed-off-by: Yuan Lu <yuan.y.lu@intel.com>
2020-08-28 18:32:02 +00:00
Kefu Chai
f81b82a4d0 mon/Monitor: do not handle MMonMetadata
MMonMetadata is sent to pre-luminous monitors and handled only for
backward compatibility with pre-luminous monitors. and luminous is the
last release we were still sending this message. but there is no need
for pacific to be compatible with pre-luminous monitors because of the
+2 policy.

so let's stop handle this message in pacific and up.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-28 16:32:08 +08:00
zhoufeng
b2732303b0 msg/async: cleanup unused function local_deliver()
Signed-off-by: zhoufeng <zhoufeng2021@outlook.com>
2020-08-28 16:27:55 +08:00
Mykola Golub
e56ace7fa1
Merge pull request #36802 from dillaman/wip-46916
librbd: expose internal plugin API to plugin libraries

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-08-28 11:17:08 +03:00
Sebastian Wagner
d0978ddf41 mgr/cephadm: add test_daemon_check
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:56:13 +02:00
Sebastian Wagner
365f839a79 mgr/cephadm: Make daemon actions asynchronous
Fixes broken `ceph orch redeploy <current active mgr>`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:54:41 +02:00
Sebastian Wagner
ce4798ba0d mgr/cephadm: add scheduled_daemon_actions to HostCache
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:51:21 +02:00
Sebastian Wagner
3e5676d6c0 mgr/cephadm: move fail_over from upgrade.py to MgrService
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:51:19 +02:00
Sebastian Wagner
f5ae34ab71 mgr/cephadm: _wait_for_ok_to_stop: add missing f-prefix
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:29:07 +02:00
Sebastian Wagner
66a9f87d16 mgr/cephadm: _create_daemon: remove usused parameter
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:29:07 +02:00
Sebastian Wagner
e6f2237840 mgr/orch: daemon redeploy: Fix missing default value
Fixes: https://tracker.ceph.com/issues/47035
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-28 09:29:06 +02:00
Sebastian Wagner
0867cd4c32
Merge pull request #36792 from sebastian-philipp/cephadm-pep8-inventory
mgr/cephadm: PEP8tify inventory.py

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-08-28 09:24:36 +02:00
Sebastian Wagner
f030255106
Merge pull request #36848 from sebastian-philipp/cephadm-no-pep8-test_scheduling
mgr/cephadm: disable autopep8 for test_{spec,scheduling}.py

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-08-28 09:20:54 +02:00
Venky Shankar
de2128a7db
Merge pull request #29489 from jan--f/cephfs-snap-schedule
pybind/snap_schedule: add initial interface
2020-08-28 09:51:53 +05:30
Kefu Chai
957a5cfbf5
Merge pull request #34566 from X0Ken/master
os/bluestore: Support flock retry

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2020-08-28 11:01:41 +08:00
Kefu Chai
210000e8f0
Merge pull request #36507 from matthewoliver/msgr_intercepter_step_enum
msgr: interceptor test step enum to ease readability

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-28 10:51:16 +08:00
Kefu Chai
08255a48a7
Merge pull request #36762 from qwren/qat-doc-update
doc: the update for QAT Acceleration

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-28 10:48:52 +08:00
myoungwon oh
bf533c0b1d test: fix to use set-chunk (with reference)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
2020-08-28 11:47:09 +09:00
Patrick Donnelly
fffdb6519b
Merge PR #35941 into master
* refs/pull/35941/head:
	doc/mgr: Supplement missing keywords 'crash'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-27 19:11:30 -07:00
Yanhu Cao
1b7d06a9c9 client: support getting ceph.dir.rsnaps vxattr
Fixes: https://tracker.ceph.com/issues/47168
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
2020-08-28 09:49:20 +08:00
Yanhu Cao
1390debf30 messages: fix decode version for snap_btime
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
2020-08-28 09:47:11 +08:00
Adam King
e6792f306a cephadm: Change service type to forking via systemd
Using Type=Forking and setting the PIDFile=
directive is the supported configuration for
running podman containers with systemd as it
more accuractely models what is actually
happening. Type=Simple assumes podman is the
direct parent of the container processes which
is not true.

Fixes: https://tracker.ceph.com/issues/46654

Signed-off-by: Adam King <adking@redhat.com>
2020-08-27 15:10:20 -04:00
Adam King
2c440edebf mgr/cephadm: Verify non-empty list in get_active_daemon functions
The get_active_daemon functions for monitoring stack daemons
were just returning the first or last daemon in the given list
without checking the list actually contained any daemons

Fixes: https://tracker.ceph.com/issues/47171

Signed-off-by: Adam King <adking@redhat.com>
2020-08-27 13:45:30 -04:00
Tiago Melo
c9a73185a9 mgr/dashboard: Fix stale table actions
If we don't emit the select event, the action button can become stale and not
update when the data changes.

This fixes a regression introduced in 31e9bbb9b308277d2f89390d5ff62f13457d69cb

Fixes: https://tracker.ceph.com/issues/47175

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-08-27 17:36:27 +00:00
Neha Ojha
762966a08a test/cli/osdmaptool/help.t: add clean-temps
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-27 17:02:08 +00:00
Neha Ojha
78224c21d2 doc: add clean-temps to osdmaptool.rst
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-27 17:02:08 +00:00
Neha Ojha
ab54d3821a tools/osdmaptool.cc: add ability to clean_temps
This is particularly useful for debugging purposes when clean_temps()
takes abnormally high amount of time due to flaws in crush rules etc.

Fixes: https://tracker.ceph.com/issues/47159
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-27 17:01:41 +00:00