]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agodoc: Clean up the snapshot consistency note 25655/head
Greg Farnum [Thu, 20 Dec 2018 18:33:38 +0000 (10:33 -0800)]
doc: Clean up the snapshot consistency note

The old note made it sound like we weren't crash-consistent, and had a
confusing section about needing to clone before mounting.
You *do* need to clone the snapshot before mounting it, but that has
nothing to do fs freezing or consistency.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
6 years agoMerge PR #23550 into master
Sage Weil [Wed, 5 Dec 2018 19:42:17 +0000 (13:42 -0600)]
Merge PR #23550 into master

* refs/pull/23550/head:
auth: Kerberos authentication

6 years agoMerge pull request #25166 from kungf/journal_remove_full
Jason Dillaman [Wed, 5 Dec 2018 18:25:31 +0000 (13:25 -0500)]
Merge pull request #25166 from kungf/journal_remove_full

journal: allow remove set when jounal pool is full

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25175 from trociny/wip-36710
Jason Dillaman [Wed, 5 Dec 2018 18:24:55 +0000 (13:24 -0500)]
Merge pull request #25175 from trociny/wip-36710

librbd: restart io if migration parent gone

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25260 from trociny/wip-24609
Jason Dillaman [Wed, 5 Dec 2018 18:24:36 +0000 (13:24 -0500)]
Merge pull request #25260 from trociny/wip-24609

rbd-nbd: support namespaces

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25371 from trociny/wip-osd-query-subkey-types
Jason Dillaman [Wed, 5 Dec 2018 18:24:23 +0000 (13:24 -0500)]
Merge pull request #25371 from trociny/wip-osd-query-subkey-types

 osd: support more dynamic perf query subkey types

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25151 from trociny/wip-osd-perf-query-limit
Jason Dillaman [Wed, 5 Dec 2018 18:24:10 +0000 (13:24 -0500)]
Merge pull request #25151 from trociny/wip-osd-perf-query-limit

mgr: add limit param to osd perf query

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25379 from tchaikov/wip-37508
Jason Dillaman [Wed, 5 Dec 2018 18:23:33 +0000 (13:23 -0500)]
Merge pull request #25379 from tchaikov/wip-37508

librbd: reset snaps in rbd_snap_list()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24882 from rzarzynski/wip-bl-hypercombined
Kefu Chai [Wed, 5 Dec 2018 16:16:55 +0000 (00:16 +0800)]
Merge pull request #24882 from rzarzynski/wip-bl-hypercombined

common: hypercombined bufferlist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
6 years agoMerge pull request #25365 from xiexingguo/wip-37493
Kefu Chai [Wed, 5 Dec 2018 16:13:28 +0000 (00:13 +0800)]
Merge pull request #25365 from xiexingguo/wip-37493

osd/OSDMap: fix upmap mis-killing for erasure-coded PGs

6 years agoMerge pull request #25262 from aclamk/wip-kvstore-tool-dump
Kefu Chai [Wed, 5 Dec 2018 16:13:00 +0000 (00:13 +0800)]
Merge pull request #25262 from aclamk/wip-kvstore-tool-dump

ceph-kvstore-tool: dump fixes

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25383 from dmick/wip-container-name
Kefu Chai [Wed, 5 Dec 2018 16:02:49 +0000 (00:02 +0800)]
Merge pull request #25383 from dmick/wip-container-name

common/util.cc: add CONTAINER_NAME processing for metadata

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25400 from dillaman/wip-ceph-cli
Kefu Chai [Wed, 5 Dec 2018 16:01:43 +0000 (00:01 +0800)]
Merge pull request #25400 from dillaman/wip-ceph-cli

ceph: do not raise StopIteration within generator

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25392 from majianpeng/async-rdma
Kefu Chai [Wed, 5 Dec 2018 10:47:53 +0000 (18:47 +0800)]
Merge pull request #25392 from majianpeng/async-rdma

msg/async/rdma: Delete duplicate header file

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoceph: do not raise StopIteration within generator 25400/head
Jason Dillaman [Tue, 4 Dec 2018 20:00:38 +0000 (15:00 -0500)]
ceph: do not raise StopIteration within generator

This is implicit when a generator exits and under Python 3
it results in a "StopIteration" exception being raised when
"ceph --help" is run.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #24129 into master
Sage Weil [Tue, 4 Dec 2018 20:00:06 +0000 (14:00 -0600)]
Merge PR #24129 into master

* refs/pull/24129/head:
common: drop ::length() from other implementations of the OpQueue.
common, osd: kill OpQueue::length() to minimize inter-core traffic.

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
6 years agoMerge PR #25388 into master
Sage Weil [Tue, 4 Dec 2018 19:59:01 +0000 (13:59 -0600)]
Merge PR #25388 into master

* refs/pull/25388/head:
mon/OSDMonitor: do not no_reply on ready_to_merge message

Reviewed-by: João Eduardo Luís <joao@suse.de>
6 years agomgr/osd_perf_query: example how limit can be used 25151/head
Mykola Golub [Mon, 19 Nov 2018 09:23:51 +0000 (11:23 +0200)]
mgr/osd_perf_query: example how limit can be used

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoosd: make use of osd perf query's limit param
Mykola Golub [Mon, 19 Nov 2018 09:21:05 +0000 (11:21 +0200)]
osd: make use of osd perf query's limit param

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr: add limit param to osd perf query
Mykola Golub [Fri, 23 Nov 2018 13:25:22 +0000 (15:25 +0200)]
mgr: add limit param to osd perf query

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #25192 from ProgVal/doc-rbd-features
Jason Dillaman [Tue, 4 Dec 2018 14:47:15 +0000 (09:47 -0500)]
Merge pull request #25192 from ProgVal/doc-rbd-features

rbd: Document new RBD feature flags and version support

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #25359 from zmc/wip-dashboard-fix-teuth-runner
Lenz Grimmer [Tue, 4 Dec 2018 14:06:48 +0000 (15:06 +0100)]
Merge pull request #25359 from zmc/wip-dashboard-fix-teuth-runner

mgr/dashboard: Fix PYTHONPATH for test runner

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agoMerge pull request #25231 from rhcs-dashboard/37371-logs-links-permissions
Lenz Grimmer [Tue, 4 Dec 2018 14:01:54 +0000 (15:01 +0100)]
Merge pull request #25231 from rhcs-dashboard/37371-logs-links-permissions

mgr/dashboard: 'Logs' links permission in Landing Page

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #25322 from Devp00l/wip-issue-37468
Lenz Grimmer [Tue, 4 Dec 2018 14:00:23 +0000 (15:00 +0100)]
Merge pull request #25322 from Devp00l/wip-issue-37468

mgr/dashboard: Document custom RESTController endpoints

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomsg/async/rdma: Delete duplicate header file 25392/head
Jianpeng Ma [Tue, 4 Dec 2018 12:31:07 +0000 (20:31 +0800)]
msg/async/rdma: Delete duplicate header file

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agorbd: bench snapshot if it was specified 25371/head
Mykola Golub [Sun, 2 Dec 2018 16:33:20 +0000 (18:33 +0200)]
rbd: bench snapshot if it was specified

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/osd_perf_query: add query to test all supported subkeys
Mykola Golub [Sun, 2 Dec 2018 16:31:53 +0000 (18:31 +0200)]
mgr/osd_perf_query: add query to test all supported subkeys

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoosd: support more dynamic perf query subkey types
Mykola Golub [Sun, 2 Dec 2018 08:25:39 +0000 (10:25 +0200)]
osd: support more dynamic perf query subkey types

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agocommon: drop the doubly-linked-list compatibility of bl::buffers_t. 24882/head
Radoslaw Zarzynski [Sat, 1 Dec 2018 18:27:46 +0000 (19:27 +0100)]
common: drop the doubly-linked-list compatibility of bl::buffers_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: switch bl::buffers_t to a singly-linked list. Drop bi::list.
Radoslaw Zarzynski [Thu, 29 Nov 2018 15:21:19 +0000 (16:21 +0100)]
common: switch bl::buffers_t to a singly-linked list. Drop bi::list.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agobluestore/tools: Add option 'dump' to ceph-kvstore-tool to print both key and values. 25262/head
Adam Kupczyk [Mon, 26 Nov 2018 15:27:28 +0000 (16:27 +0100)]
bluestore/tools: Add option 'dump' to ceph-kvstore-tool to print both key and values.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
6 years agoMerge pull request #25335 from ifed01/wip-ifed-fix-enospc
Kefu Chai [Tue, 4 Dec 2018 06:51:31 +0000 (14:51 +0800)]
Merge pull request #25335 from ifed01/wip-ifed-fix-enospc

os/bluestore: fix and unify log output on allocation failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25343 from liewegas/wip-36612
Kefu Chai [Tue, 4 Dec 2018 06:50:03 +0000 (14:50 +0800)]
Merge pull request #25343 from liewegas/wip-36612

msg/async: do not trigger RESETSESSION from connect fault during connection phase

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
6 years agoosd/OSDMap: fix upmap mis-killing for erasure-coded PGs 25365/head
xie xingguo [Sat, 1 Dec 2018 09:42:01 +0000 (17:42 +0800)]
osd/OSDMap: fix upmap mis-killing for erasure-coded PGs

The up-set of erasure-coded PGs may include CRUSH_ITEM_NONE,
which as a result causes mis-killing of valid upmap items.

Fixes: https://tracker.ceph.com/issues/37493
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: ningtao <ningtao@sangfor.com.cn>
6 years agoMerge pull request #25336 from dragonylffly/wip-silence-warning
Kefu Chai [Tue, 4 Dec 2018 06:31:49 +0000 (14:31 +0800)]
Merge pull request #25336 from dragonylffly/wip-silence-warning

crush/CrushWrapper: silence compiler warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25373 into master
Sage Weil [Tue, 4 Dec 2018 04:10:43 +0000 (22:10 -0600)]
Merge PR #25373 into master

* refs/pull/25373/head:
ceph_argparse: fix CephBool to CephChoices conversion

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomon/OSDMonitor: do not no_reply on ready_to_merge message 25388/head
Sage Weil [Tue, 4 Dec 2018 04:09:40 +0000 (22:09 -0600)]
mon/OSDMonitor: do not no_reply on ready_to_merge message

The C_ReplyMap will reply to this op.  Do not no_reply, or else an
ill-timed mon election will mean we do nothing for this request.

Fixes: http://tracker.ceph.com/issues/37512
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoauth: Kerberos authentication 23550/head
oliveiradan [Thu, 22 Nov 2018 00:10:33 +0000 (17:10 -0700)]
auth: Kerberos authentication

Signed-off-by: Daniel Oliveira <doliveira@suse.com> (github: oliveiradan)
6 years agoMerge pull request #25361 from badone/wip-add-luminous-12.2.9-and-10
Brad Hubbard [Mon, 3 Dec 2018 23:16:52 +0000 (09:16 +1000)]
Merge pull request #25361 from badone/wip-add-luminous-12.2.9-and-10

doc/releases: Add luminous releases 12.2.9 and 10

Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
6 years agocommon/util.cc: add CONTAINER_NAME processing for metadata 25383/head
Dan Mick [Wed, 31 Oct 2018 03:50:53 +0000 (20:50 -0700)]
common/util.cc: add CONTAINER_NAME processing for metadata

Kubernetes clusters use POD_NAME; simple containers should be
distinguishable and don't have 'pods'.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
6 years agodoc/rbd: Document new RBD feature flags and librbd/krbd version support 25192/head
Valentin Lorentz [Tue, 20 Nov 2018 23:59:36 +0000 (00:59 +0100)]
doc/rbd: Document new RBD feature flags and librbd/krbd version support

Sources:

layering:

* https://github.com/ceph/ceph/commit/f87c441f6891e5e72d5e712d9a19e45a1b9a97eb
* krbd: https://github.com/torvalds/linux/commit/770eba6e295fd36e43881176ee0644b9cc2803f1

striping:

* https://github.com/ceph/ceph/commit/2e403ef2c98bb64220060c06b435fb1ffe08294e
* krbd: https://github.com/torvalds/linux/commit/770eba6e295fd36e43881176ee0644b9cc2803f1

exclusive-lock:

* https://github.com/ceph/ceph/commit/fa96bb4db47c500947efcab51892f45a04b03d30
* krbd: https://github.com/torvalds/linux/commit/ed95b21a4b0a71ef89306cdeb427d53cc9cb343f

object-map:

* https://github.com/ceph/ceph/commit/7e751ce9125cbeb04b9551afff4b91c6255c03f9

fast-diff:

* https://github.com/ceph/ceph/commit/16ad44cebcc5d2464be38b95f16e0d63d2b29ed1

deep-flatten:

* https://github.com/ceph/ceph/commit/b556d3173ae4483e681bb21658a7d484a2627386

journaling:

* https://github.com/ceph/ceph/commit/750771c6ff07f6fcf0235172ec68ff4d907c621d
* not a default: https://github.com/ceph/ceph/blob/1a14963/src/test/cli/rbd/help.t#L229

data-pool:

* https://github.com/ceph/ceph/commit/c5f22900474e0eed88910341de57e17e1cc154f0
* description: https://tracker.ceph.com/issues/17409
* krbd: https://github.com/torvalds/linux/commit/7e97332ea9caad3b7c6d86bc3b982e17eda2f736

operations:

* https://github.com/ceph/ceph/commit/209f6fc5a44e2d068ce0dd8b3e9a25ee700ad0e0
* description: https://github.com/torvalds/linux/commit/e573427a440fd67d3f522357d7ac901d59281948
* krbd: https://github.com/torvalds/linux/commit/e573427a440fd67d3f522357d7ac901d59281948

migrating:

* https://github.com/ceph/ceph/commit/2f7c4ae3fc7ec7a2bfe99e116bf5e4f71f24c6a1

Signed-off-by: Valentin Lorentz <progval+git@progval.net>
6 years agolibrbd: reset snaps in rbd_snap_list() 25379/head
Kefu Chai [Mon, 3 Dec 2018 16:28:31 +0000 (00:28 +0800)]
librbd: reset snaps in rbd_snap_list()

in SnapIterator in rbd.pyx, rbd_snap_list_end() is called by
SnapIterator.__dealloc__(). and rbd_snap_list_end() frees
snaps->name if it is not nullptr.  but there is chance that
snaps->name is never initialized after snaps is allocated by
SnapIterator.__init__, in that case, we will free() a wild pointer.

Fixes: http://tracker.ceph.com/issues/37508
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr: add "total" perf counter types
Mykola Golub [Thu, 22 Nov 2018 11:11:28 +0000 (13:11 +0200)]
mgr: add "total" perf counter types

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agomgr/dashboard: Fix 'resource' typo 25322/head
Stephan Müller [Mon, 3 Dec 2018 14:20:03 +0000 (15:20 +0100)]
mgr/dashboard: Fix 'resource' typo

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agomgr/dashboard: Document custom RESTController endpoints
Stephan Müller [Mon, 3 Dec 2018 14:19:24 +0000 (15:19 +0100)]
mgr/dashboard: Document custom RESTController endpoints

Extended HACKING.rst by the fact how to extend a RESTController with
a custom endpoint which has all permissions preserved.

Fixes: https://tracker.ceph.com/issues/37468
Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #25305 from cbodley/wip-37440
Casey Bodley [Mon, 3 Dec 2018 14:00:39 +0000 (09:00 -0500)]
Merge pull request #25305 from cbodley/wip-37440

qa/rgw: fix invalid syntax error in radosgw_admin_rest.py

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoos/bluestore: fix and unify log output on allocation failure 25335/head
Igor Fedotov [Fri, 30 Nov 2018 08:47:02 +0000 (11:47 +0300)]
os/bluestore: fix and unify log output on allocation failure

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
6 years agomgr/dashboard: 'Logs' links permission in Landing Page 25231/head
alfonsomthd [Mon, 3 Dec 2018 12:54:05 +0000 (13:54 +0100)]
mgr/dashboard: 'Logs' links permission in Landing Page

- 'Logs' links in Landing Page cards' popovers
for cards 'Cluster Status' (when not in HEALTH_OK) and
'PG Status' appear only when the user has
the appropriate permissions.
- Some refactor.
- Added test: ensure that clickable text (popover) is shown
when there are health checks' messages.

Fixes: https://tracker.ceph.com/issues/37371
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #25366 from jtlayton/wip-orchestrator
jtlayton [Mon, 3 Dec 2018 12:08:05 +0000 (07:08 -0500)]
Merge pull request #25366 from jtlayton/wip-orchestrator

orchestrator: add the ability to remove services

6 years agoMerge pull request #25344 from sebastian-philipp/volumes-py3
Ricardo Dias [Mon, 3 Dec 2018 10:05:51 +0000 (10:05 +0000)]
Merge pull request #25344 from sebastian-philipp/volumes-py3

mgr/volumes: Fix Python 3 import error

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoceph_argparse: fix CephBool to CephChoices conversion 25373/head
Ricardo Dias [Mon, 3 Dec 2018 08:05:31 +0000 (08:05 +0000)]
ceph_argparse: fix CephBool to CephChoices conversion

Commit 525623b has introduced a regression that makes Ceph clients of
versions prior to Nautilus to receive invalid unicode characters in the
commands list JSON sent by the monitors.

The unicode characters are caused by memory corruption in a dangling
pointer stored by a std::string_view. The dangling pointer belonged to
an std::string object that was already destructed when the
std::string_view is used.
The fix in this PR makes the std::string object to live enough time for
the std::string_view to be used safely.

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #24445 from jmolmo/wip_ansible_orchestrator
Sebastian Wagner [Mon, 3 Dec 2018 09:38:53 +0000 (10:38 +0100)]
Merge pull request #24445 from jmolmo/wip_ansible_orchestrator

mgr/ansible: Ansible orchestrator module

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
6 years agocommon: bufferlist::buffers_t wraps bi::list now.
Radoslaw Zarzynski [Tue, 27 Nov 2018 16:24:02 +0000 (17:24 +0100)]
common: bufferlist::buffers_t wraps bi::list now.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoinclude: buffer_raw.h uses C++11-compatible std::aligned_storage.
Radoslaw Zarzynski [Sun, 4 Nov 2018 20:44:54 +0000 (21:44 +0100)]
include: buffer_raw.h uses C++11-compatible std::aligned_storage.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: factories of buffer::ptr_node produce std::unique_ptr now.
Radoslaw Zarzynski [Sat, 3 Nov 2018 12:05:26 +0000 (13:05 +0100)]
common: factories of buffer::ptr_node produce std::unique_ptr now.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoclient: create buffer::ptr_node directly.
Radoslaw Zarzynski [Tue, 23 Oct 2018 13:51:09 +0000 (15:51 +0200)]
client: create buffer::ptr_node directly.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoos/bluestore: KernelDevice creates buffer::ptr_node directly.
Radoslaw Zarzynski [Tue, 23 Oct 2018 13:36:48 +0000 (15:36 +0200)]
os/bluestore: KernelDevice creates buffer::ptr_node directly.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agotests: bench_bufferlist_alloc() gives a try to node_ptr.
Radoslaw Zarzynski [Tue, 9 Oct 2018 14:25:08 +0000 (16:25 +0200)]
tests: bench_bufferlist_alloc() gives a try to node_ptr.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: hypercombined bufferlist.
Radoslaw Zarzynski [Mon, 8 Oct 2018 23:17:31 +0000 (01:17 +0200)]
common: hypercombined bufferlist.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: proliferate ptr_node in the bufferlist implementation.
Radoslaw Zarzynski [Mon, 8 Oct 2018 23:16:32 +0000 (01:16 +0200)]
common: proliferate ptr_node in the bufferlist implementation.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: switch bufferlist to use boost::intrusive for _buffers.
Radoslaw Zarzynski [Mon, 8 Oct 2018 00:25:51 +0000 (02:25 +0200)]
common: switch bufferlist to use boost::intrusive for _buffers.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #25339 from jtlayton/wip-volumes
jtlayton [Sun, 2 Dec 2018 16:40:10 +0000 (11:40 -0500)]
Merge pull request #25339 from jtlayton/wip-volumes

mgr/volumes: fix orchestrator remove operation

6 years agocommon: drop ::length() from other implementations of the OpQueue. 24129/head
Radoslaw Zarzynski [Sun, 2 Dec 2018 13:59:18 +0000 (14:59 +0100)]
common: drop ::length() from other implementations of the OpQueue.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon, osd: kill OpQueue::length() to minimize inter-core traffic.
Radoslaw Zarzynski [Sun, 16 Sep 2018 15:33:50 +0000 (17:33 +0200)]
common, osd: kill OpQueue::length() to minimize inter-core traffic.

Before
------
```
-    1,50%     1,34%  msgr-worker-0  ceph-osd  [.] WeightedPriorityQueue<OpQueueItem, unsigned long>::Queue::insert
```

Where self if 1.34%
```
       │       mov    %r12d,0x2c(%r14)
       │               }
       │               ++size;
 17,33 │1ba:   addl   $0x1,0x2ec48(%r14)
       │             }
```

After
-----
```
-    1,05%     0,93%  msgr-worker-0  ceph-osd  [.] WeightedPriorityQueue<OpQueueItem, unsigned long>::Queue::insert
```

Let's annotate hottest place (self is 0,93%):
```
       │           //Find the upper bound, cache the previous value and if we should
       │           //store it in the left or right node
       │           bool left_child = true;
       │           while(x){
       │ a0:   mov    %rax,%rbx
       │              ++depth;
       │              y = x;
       │              x = (left_child = comp(key, x)) ?
  8,86 │ a3:   cmp    0x20(%rbx),%r15
       │     _ZN5boost9intrusive31default_rbtree_node_traits_implIPvE9get_rightERKPNS0_11r
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoos: Transaction::_update_op_bl doesn't copy bl::_buffers anymore.
Radoslaw Zarzynski [Mon, 8 Oct 2018 10:14:21 +0000 (12:14 +0200)]
os: Transaction::_update_op_bl doesn't copy bl::_buffers anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: modernize and refactor occurrences of bufferlist::buffers_t.
Radoslaw Zarzynski [Fri, 2 Nov 2018 13:47:20 +0000 (14:47 +0100)]
common: modernize and refactor occurrences of bufferlist::buffers_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: abstract the container type of bufferlist::_buffers.
Radoslaw Zarzynski [Tue, 27 Mar 2018 14:49:54 +0000 (16:49 +0200)]
common: abstract the container type of bufferlist::_buffers.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoorchestrator_cli: add a service rm command 25366/head
Jeff Layton [Thu, 15 Nov 2018 19:10:53 +0000 (14:10 -0500)]
orchestrator_cli: add a service rm command

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoorchestrator/rook: add a rm_service backend command
Jeff Layton [Thu, 15 Nov 2018 18:59:15 +0000 (13:59 -0500)]
orchestrator/rook: add a rm_service backend command

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agomgr/volumes: fix orchestrator remove operation 25339/head
Jeff Layton [Fri, 30 Nov 2018 15:07:50 +0000 (10:07 -0500)]
mgr/volumes: fix orchestrator remove operation

Signed-off-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #25126 from xiexingguo/wip-heartbeat-bs
Xie Xingguo [Sat, 1 Dec 2018 10:23:33 +0000 (18:23 +0800)]
Merge pull request #25126 from xiexingguo/wip-heartbeat-bs

osd: two heartbeat fixes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
6 years agodoc/releases: Add luminous releases 12.2.9 and 10 25361/head
Brad Hubbard [Sat, 1 Dec 2018 00:36:55 +0000 (10:36 +1000)]
doc/releases: Add luminous releases 12.2.9 and 10

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
6 years agomgr/dashboard: Fix PYTHONPATH for test runner 25359/head
Zack Cerza [Fri, 30 Nov 2018 22:41:07 +0000 (22:41 +0000)]
mgr/dashboard: Fix PYTHONPATH for test runner

A new mgr module ('volumes') pulls in src/pybind/ceph_volume_client.py; the
wrapper script that we use to run backend API tests needs to include that in
PYTHONPATH, or else the cluster will be stuck in HEALTH_WARN with the message:
"Module 'volumes' has failed dependency: No module named ceph_volume_client".

Signed-off-by: Zack Cerza <zack@redhat.com>
6 years agoMerge pull request #25122 from noahdesu/insights-osd-space
Noah Watkins [Fri, 30 Nov 2018 19:57:51 +0000 (11:57 -0800)]
Merge pull request #25122 from noahdesu/insights-osd-space

pybind/mgr: add osd space utilization to insights report

Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agoMerge PR #25308 into master
Sage Weil [Fri, 30 Nov 2018 19:19:42 +0000 (13:19 -0600)]
Merge PR #25308 into master

* refs/pull/25308/head:
osd/OSD: OSD::mkfs asserts when reusing disk with existing superblock.
os/bluestore: add main device expand capability.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #25328 into master
Sage Weil [Fri, 30 Nov 2018 19:19:26 +0000 (13:19 -0600)]
Merge PR #25328 into master

* refs/pull/25328/head:
spec: fix cython package version to less than 0.29

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #25330 from alfredodeza/wip-rm37449
Alfredo Deza [Fri, 30 Nov 2018 18:41:12 +0000 (13:41 -0500)]
Merge pull request #25330 from alfredodeza/wip-rm37449

ceph-volume  zap: improve zapping to remove all partitions and all LVs, encrypted or not

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume tests patch udevadm so it doesn't actually call udevadm in a test 25330/head
Alfredo Deza [Fri, 30 Nov 2018 17:31:02 +0000 (12:31 -0500)]
ceph-volume tests patch udevadm so it doesn't actually call udevadm in a test

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk use device.path for error reporting
Alfredo Deza [Fri, 30 Nov 2018 13:27:01 +0000 (08:27 -0500)]
ceph-volume util.disk use device.path for error reporting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional add back sdc1 partitions with parted to redeploy after...
Alfredo Deza [Fri, 30 Nov 2018 11:44:56 +0000 (06:44 -0500)]
ceph-volume tests.functional add back sdc1 partitions with parted to redeploy after zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional add back partitions with parted to redeploy after zapping
Alfredo Deza [Thu, 29 Nov 2018 23:07:09 +0000 (18:07 -0500)]
ceph-volume tests.functional add back partitions with parted to redeploy after zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional recreate partitions previously removed with --destroy
Alfredo Deza [Thu, 29 Nov 2018 19:10:46 +0000 (14:10 -0500)]
ceph-volume tests.functional recreate partitions previously removed with --destroy

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure that both disk and device report is_device
Alfredo Deza [Wed, 28 Nov 2018 21:09:49 +0000 (16:09 -0500)]
ceph-volume tests.util ensure that both disk and device report is_device

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure is_encrypted works for lv, partition, and mapper devices
Alfredo Deza [Wed, 28 Nov 2018 21:01:52 +0000 (16:01 -0500)]
ceph-volume tests.util ensure is_encrypted works for lv, partition, and mapper devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.util ensure partitions are listed as top-level keys
Alfredo Deza [Wed, 28 Nov 2018 18:53:56 +0000 (13:53 -0500)]
ceph-volume tests.util ensure partitions are listed as top-level keys

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests add mapper test for dm paths
Alfredo Deza [Wed, 28 Nov 2018 18:47:01 +0000 (13:47 -0500)]
ceph-volume tests add mapper test for dm paths

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests update is_mapper unit test when zapping
Alfredo Deza [Wed, 28 Nov 2018 18:46:05 +0000 (13:46 -0500)]
ceph-volume tests update is_mapper unit test when zapping

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device check both dm and mapper paths for is_mapper property
Alfredo Deza [Wed, 28 Nov 2018 18:26:59 +0000 (13:26 -0500)]
ceph-volume util.device check both dm and mapper paths for is_mapper property

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm skip empty vg_name removals
Alfredo Deza [Wed, 28 Nov 2018 13:18:03 +0000 (08:18 -0500)]
ceph-volume lvm skip empty vg_name removals

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.arg_validators optionally skip gpt header check
Alfredo Deza [Wed, 28 Nov 2018 12:56:34 +0000 (07:56 -0500)]
ceph-volume util.arg_validators optionally skip gpt header check

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device if no vgs, set it to an empty list
Alfredo Deza [Wed, 28 Nov 2018 12:52:46 +0000 (07:52 -0500)]
ceph-volume util.device if no vgs, set it to an empty list

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.device set vgs to Device object if available
Alfredo Deza [Wed, 28 Nov 2018 12:51:51 +0000 (07:51 -0500)]
ceph-volume util.device set vgs to Device object if available

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util update is_device when reported as device or disk
Alfredo Deza [Wed, 28 Nov 2018 12:50:50 +0000 (07:50 -0500)]
ceph-volume util update is_device when reported as device or disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util add method to detect encryption on devices
Alfredo Deza [Wed, 28 Nov 2018 12:47:59 +0000 (07:47 -0500)]
ceph-volume util add method to detect encryption on devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk add a helper to remove partitions
Alfredo Deza [Tue, 27 Nov 2018 14:45:17 +0000 (09:45 -0500)]
ceph-volume util.disk add a helper to remove partitions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa/rgw: radosgw_admin_rest.py uses /admin/user?list for user listing 25305/head
Casey Bodley [Fri, 30 Nov 2018 17:21:29 +0000 (12:21 -0500)]
qa/rgw: radosgw_admin_rest.py uses /admin/user?list for user listing

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoceph-volume util.disk include partitions as top level devices in get_devices
Alfredo Deza [Tue, 27 Nov 2018 14:31:58 +0000 (09:31 -0500)]
ceph-volume util.disk include partitions as top level devices in get_devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume util.disk fix issue when capturing partition information
Alfredo Deza [Tue, 27 Nov 2018 14:26:33 +0000 (09:26 -0500)]
ceph-volume util.disk fix issue when capturing partition information

Before, the `if` condition meant that it would only work when the output
was '1', which is incorrect as that would only happen if a partition was
the first one, ignoring any other partition. The contents of that file
is the partition number, not a boolean to tell if it is a partition or
not.

It now includes the `holders` file contents which is needed for
dm-mapper work

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.zap split zapping in methods per device type
Alfredo Deza [Tue, 27 Nov 2018 13:23:19 +0000 (08:23 -0500)]
ceph-volume lvm.zap split zapping in methods per device type

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25201 from jan--f/c-v-inventory-add-device_id
Alfredo Deza [Fri, 30 Nov 2018 17:11:23 +0000 (12:11 -0500)]
Merge pull request #25201 from jan--f/c-v-inventory-add-device_id

ceph-volume add device_id to inventory listing

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastien Han <shan@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>