]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoosdc/Objecter: invalidate crcs on preallocated rx buffers 26552/head
Ilya Dryomov [Wed, 20 Feb 2019 21:30:29 +0000 (22:30 +0100)]
osdc/Objecter: invalidate crcs on preallocated rx buffers

Both simple and async messengers use c_str() when copying the data from
the socket into the receive buffer, going behind bufferlist's back.  If
the receive buffer is preallocated, we need to invalidate its crc cache
by hand to avoid possible data crc mismatches on the client side.

Fixes: https://tracker.ceph.com/issues/38416
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge pull request #26483 from idryomov/wip-send-copyup-cleanups
Jason Dillaman [Wed, 20 Feb 2019 20:19:30 +0000 (15:19 -0500)]
Merge pull request #26483 from idryomov/wip-send-copyup-cleanups

librbd: send_copyup() fixes and cleanups

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #26465 from dzafman/wip-38344
David Zafman [Wed, 20 Feb 2019 19:17:38 +0000 (11:17 -0800)]
Merge pull request #26465 from dzafman/wip-38344

osd: Prevent negative local num_bytes sent to peer for backfill reser…

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agolibrbd: CopyupRequest::m_pending_copyups doesn't need to be atomic 26483/head
Ilya Dryomov [Mon, 18 Feb 2019 10:55:55 +0000 (11:55 +0100)]
librbd: CopyupRequest::m_pending_copyups doesn't need to be atomic

It's protected by CopyupRequest::m_lock mutex.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agolibrbd: don't clone IoCtx in send_copyup()
Ilya Dryomov [Mon, 18 Feb 2019 10:37:09 +0000 (11:37 +0100)]
librbd: don't clone IoCtx in send_copyup()

Calling aio_operate() with the explicit snap_seq and snaps doesn't
mutate IoCtx, so no reason to clone it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agolibrbd: send copyup and hint only once
Ilya Dryomov [Thu, 14 Feb 2019 20:27:12 +0000 (21:27 +0100)]
librbd: send copyup and hint only once

In the deep-copy case, don't send copyup and hint twice (once with the
blank and once with the current snapshot context).

Preserve the workaround for compare-and-write added in commit
f6db9b8027b6 ("librbd: copyup state machine needs to handle empty write
ops").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge pull request #26519 from idryomov/wip-cmpext-bl
Jason Dillaman [Wed, 20 Feb 2019 19:10:20 +0000 (14:10 -0500)]
Merge pull request #26519 from idryomov/wip-cmpext-bl

librbd: ensure compare-and-write doesn't skip compare after copyup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #26262 into master
Sage Weil [Wed, 20 Feb 2019 19:05:11 +0000 (13:05 -0600)]
Merge PR #26262 into master

* refs/pull/26262/head:
mgr/orch/ssh: add qa test
qa: install/exclude ceph-mgr-ssh package
debian: package ssh orchestrator
spec.ceph: package ssh orchestrator
ssh/orch: add ssh orchestrator

6 years agoMerge pull request #26197 from wanghao72/master
Casey Bodley [Wed, 20 Feb 2019 18:39:02 +0000 (13:39 -0500)]
Merge pull request #26197 from wanghao72/master

rgw: bug in versioning concurrent, list and get have consistency issue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #26494 from cbodley/wip-rgw-datalog-autotrim
Casey Bodley [Wed, 20 Feb 2019 18:38:38 +0000 (13:38 -0500)]
Merge pull request #26494 from cbodley/wip-rgw-datalog-autotrim

rgw: fix rgw_data_sync_info::json_decode()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agomgr/orch/ssh: add qa test 26262/head
Noah Watkins [Fri, 15 Feb 2019 17:45:30 +0000 (09:45 -0800)]
mgr/orch/ssh: add qa test

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agoqa: install/exclude ceph-mgr-ssh package
Noah Watkins [Thu, 14 Feb 2019 20:10:24 +0000 (12:10 -0800)]
qa: install/exclude ceph-mgr-ssh package

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agodebian: package ssh orchestrator
Noah Watkins [Tue, 12 Feb 2019 22:02:42 +0000 (14:02 -0800)]
debian: package ssh orchestrator

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agospec.ceph: package ssh orchestrator
Noah Watkins [Mon, 11 Feb 2019 19:38:17 +0000 (11:38 -0800)]
spec.ceph: package ssh orchestrator

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agossh/orch: add ssh orchestrator
Noah Watkins [Tue, 19 Feb 2019 19:28:50 +0000 (11:28 -0800)]
ssh/orch: add ssh orchestrator

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
6 years agoMerge pull request #26471 from tnaganawa/patch-3
Alfredo Deza [Wed, 20 Feb 2019 17:23:38 +0000 (12:23 -0500)]
Merge pull request #26471 from tnaganawa/patch-3

ceph-deploy would not support --cluster option anymore

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agotest/librbd: add test cases for compare-and-write with copyup 26519/head
Ilya Dryomov [Tue, 19 Feb 2019 16:45:24 +0000 (17:45 +0100)]
test/librbd: add test cases for compare-and-write with copyup

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agotest/librbd: make get_temp_image_name() static
Ilya Dryomov [Fri, 15 Feb 2019 13:04:16 +0000 (14:04 +0100)]
test/librbd: make get_temp_image_name() static

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agotest/librados_test_stub: reimplement cmpext()
Ilya Dryomov [Wed, 20 Feb 2019 10:37:07 +0000 (11:37 +0100)]
test/librados_test_stub: reimplement cmpext()

cmpext is a read operation.  As such, it shouldn't be creating objects
or extending them and it should accept snapshots.

The compare code is completely broken, resulting in false positives
(i.e. failures to detect mismatches) in many cases.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge pull request #26299 from yuvalif/add_pubsub_tests
Casey Bodley [Wed, 20 Feb 2019 14:10:17 +0000 (09:10 -0500)]
Merge pull request #26299 from yuvalif/add_pubsub_tests

rgw/pubsub: add pubsub tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge PR #26484 into master
Sage Weil [Wed, 20 Feb 2019 13:16:12 +0000 (07:16 -0600)]
Merge PR #26484 into master

* refs/pull/26484/head:
msg/async: msgr2: don't smash client cookie on reconnect
doc/msgr2: session establishment failure scenarios
msg/async: msgr2: don't smash peer_name and features on reconnect
msg/async: msgr2: added client and server cookie to protocol

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #26417 into master
Sage Weil [Wed, 20 Feb 2019 13:03:56 +0000 (07:03 -0600)]
Merge PR #26417 into master

* refs/pull/26417/head:
qa, doc: update ec fast read setting
qa/suites: remove mon kv backend options

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #26489 into master
Sage Weil [Wed, 20 Feb 2019 13:03:28 +0000 (07:03 -0600)]
Merge PR #26489 into master

* refs/pull/26489/head:
qa/standalone/osd/osd-markdown: disable CLI command dups

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge PR #26490 into master
Sage Weil [Wed, 20 Feb 2019 13:03:12 +0000 (07:03 -0600)]
Merge PR #26490 into master

* refs/pull/26490/head:
osd: fix typo in numa node check; lower debug level

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #26492 into master
Sage Weil [Wed, 20 Feb 2019 13:02:44 +0000 (07:02 -0600)]
Merge PR #26492 into master

* refs/pull/26492/head:
osd: fix pg split/merge prime during startup

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #26408 from tspmelo/wip-pool-slash
Lenz Grimmer [Wed, 20 Feb 2019 12:42:09 +0000 (13:42 +0100)]
Merge pull request #26408 from tspmelo/wip-pool-slash

mgr/dashboard: Allow "/" in pool name

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #25866 from yuvalif/add_amqp_push_endpoint_new
Matt Benjamin [Wed, 20 Feb 2019 12:37:34 +0000 (07:37 -0500)]
Merge pull request #25866 from yuvalif/add_amqp_push_endpoint_new

rgw/pubsub: add amqp push endpoint

6 years agoMerge pull request #26433 from tspmelo/wip-rbd-slash
Lenz Grimmer [Wed, 20 Feb 2019 11:56:26 +0000 (12:56 +0100)]
Merge pull request #26433 from tspmelo/wip-rbd-slash

mgr/dashboard: Improve RBD form

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #26443 from sebastian-philipp/orchestrator_fix_readme.md
Sebastian Wagner [Wed, 20 Feb 2019 11:21:07 +0000 (12:21 +0100)]
Merge pull request #26443 from sebastian-philipp/orchestrator_fix_readme.md

mgr/orchestrator_cli: Fix README.md

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
6 years agoMerge pull request #26509 from p-na/wip-pna-fix-ganesha-pylint
Lenz Grimmer [Wed, 20 Feb 2019 08:35:48 +0000 (09:35 +0100)]
Merge pull request #26509 from p-na/wip-pna-fix-ganesha-pylint

mgr/dashboard: Clean up pylint's `disable:no-else-return`

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #26478 from xiexingguo/wip-calc-upmap-vec-reserve
Xie Xingguo [Wed, 20 Feb 2019 06:13:41 +0000 (14:13 +0800)]
Merge pull request #26478 from xiexingguo/wip-calc-upmap-vec-reserve

osd/OSDMap: using std::vector::reserve to reduce memory reallocation

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
6 years agoMerge pull request #26505 from xiexingguo/wip-balancer-weekday-range
Xie Xingguo [Wed, 20 Feb 2019 06:12:59 +0000 (14:12 +0800)]
Merge pull request #26505 from xiexingguo/wip-balancer-weekday-range

mgr/balancer: add min/max fields for weekday and be compatible with C

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25138 from stackhpc/rdma-cm
Kefu Chai [Wed, 20 Feb 2019 05:08:01 +0000 (13:08 +0800)]
Merge pull request #25138 from stackhpc/rdma-cm

msgr/async/rdma: Return from poll system call with EINTR should be retried

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomsg/async/rdma: retry if poll() returns EINTR 25138/head
Stig Telfer [Sat, 10 Nov 2018 21:01:53 +0000 (22:01 +0100)]
msg/async/rdma: retry if poll() returns EINTR

Fixes: https://tracker.ceph.com/issues/37292
Signed-off-by: Stig Telfer <stig@stackhpc.com>
6 years agoMerge pull request #26328 from badone/wip-update-ceph_stable_release-to-mimic
vasukulkarni [Wed, 20 Feb 2019 02:11:59 +0000 (18:11 -0800)]
Merge pull request #26328 from badone/wip-update-ceph_stable_release-to-mimic

qa/ceph-ansible: Set ceph_stable_release to mimic

6 years agomgr/dashboard: Allow create and edit of pools with "/" in the name 26408/head
Tiago Melo [Wed, 13 Feb 2019 15:31:27 +0000 (15:31 +0000)]
mgr/dashboard: Allow create and edit of pools with "/" in the name

Fixes: http://tracker.ceph.com/issues/38302
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #25945 from trociny/wip-migration-parent
Jason Dillaman [Tue, 19 Feb 2019 19:52:03 +0000 (14:52 -0500)]
Merge pull request #25945 from trociny/wip-migration-parent

librbd: make it possible to migrate parent images

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrados: don't claim ObjectOperation::cmpext() buffer
Ilya Dryomov [Tue, 19 Feb 2019 15:07:22 +0000 (16:07 +0100)]
librados: don't claim ObjectOperation::cmpext() buffer

This is counter-intuitive and doesn't match the behavior of either
other compare ops (cmpxattr, omap_cmp) or write ops.

Fixes: http://tracker.ceph.com/issues/38383
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agorgw: pubsub tests. use bukcet checkpoint. allow redundant events 26299/head
Yuval Lifshitz [Tue, 19 Feb 2019 17:18:01 +0000 (19:18 +0200)]
rgw: pubsub tests. use bukcet checkpoint. allow redundant events

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agomgr/dashboard: Improve RBD form 26433/head
Tiago Melo [Thu, 14 Feb 2019 16:47:01 +0000 (16:47 +0000)]
mgr/dashboard: Improve RBD form

Remove pools with '/' in the name and add RBD name validation.

Fixes: http://tracker.ceph.com/issues/38303
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Replace encodeURI for encodeURIComponent
Tiago Melo [Wed, 13 Feb 2019 15:36:47 +0000 (15:36 +0000)]
mgr/dashboard: Replace encodeURI for encodeURIComponent

Fixes: http://tracker.ceph.com/issues/38303
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomsg/async: msgr2: don't smash client cookie on reconnect 26484/head
Ricardo Dias [Tue, 19 Feb 2019 16:00:40 +0000 (16:00 +0000)]
msg/async: msgr2: don't smash client cookie on reconnect

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoosd/osd_types: show cmpext arguments
Ilya Dryomov [Tue, 19 Feb 2019 15:04:45 +0000 (16:04 +0100)]
osd/osd_types: show cmpext arguments

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
6 years agoMerge PR #26469 into master
Sage Weil [Tue, 19 Feb 2019 14:31:39 +0000 (08:31 -0600)]
Merge PR #26469 into master

* refs/pull/26469/head:
common/ceph_timer: stop timer's thread when it is suspended

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #26470 into master
Sage Weil [Tue, 19 Feb 2019 14:31:23 +0000 (08:31 -0600)]
Merge PR #26470 into master

* refs/pull/26470/head:
mgr/MgrStandby: include addrs in metadata

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #26479 into master
Sage Weil [Tue, 19 Feb 2019 14:31:03 +0000 (08:31 -0600)]
Merge PR #26479 into master

* refs/pull/26479/head:
pybind: move FLAGS into Flag class

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #26485 into master
Sage Weil [Tue, 19 Feb 2019 14:30:41 +0000 (08:30 -0600)]
Merge PR #26485 into master

* refs/pull/26485/head:
qa/suites/upgrade/luminous-x: force clone v1 format for final rbd python test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agorgw: wakeup lease_cr after abort on bucket sync disable 26494/head
Casey Bodley [Tue, 19 Feb 2019 13:37:18 +0000 (08:37 -0500)]
rgw: wakeup lease_cr after abort on bucket sync disable

the 'bucket sync disable' tests were causing data sync to lag behind
because these calls to lease_cr->abort() were still waiting for the
RGWContinuousLeaseCR to wake up from its sleep. added data sync
checkpoints to each 'bucket sync disable' test to make sure that data
sync catches up before running other tests, as this was causing failures
in the new 'datalog autotrim' test

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26452 from tchaikov/wip-crimson-send-known-addresses
Kefu Chai [Tue, 19 Feb 2019 12:23:26 +0000 (20:23 +0800)]
Merge pull request #26452 from tchaikov/wip-crimson-send-known-addresses

crimson/osd: send known addresses at boot

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agodoc/msgr2: session establishment failure scenarios
Ricardo Dias [Mon, 18 Feb 2019 16:27:40 +0000 (16:27 +0000)]
doc/msgr2: session establishment failure scenarios

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomsg/async: msgr2: don't smash peer_name and features on reconnect
Ricardo Dias [Mon, 18 Feb 2019 22:09:38 +0000 (22:09 +0000)]
msg/async: msgr2: don't smash peer_name and features on reconnect

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomsg/async: msgr2: added client and server cookie to protocol
Ricardo Dias [Mon, 18 Feb 2019 14:29:28 +0000 (14:29 +0000)]
msg/async: msgr2: added client and server cookie to protocol

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #26450 from s0nea/wip-dashboard-readonly-config-options-2
Lenz Grimmer [Tue, 19 Feb 2019 11:50:30 +0000 (12:50 +0100)]
Merge pull request #26450 from s0nea/wip-dashboard-readonly-config-options-2

mgr/dashboard: disallow editing read-only config options (part 2)

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #25233 from p-na/wip-pna-qos-pr
Lenz Grimmer [Tue, 19 Feb 2019 11:43:40 +0000 (12:43 +0100)]
Merge pull request #25233 from p-na/wip-pna-qos-pr

mgr/dashboard: Add support for managing RBD QoS

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agomgr/balancer: make weekday be compatible with C 26505/head
xie xingguo [Tue, 19 Feb 2019 10:36:25 +0000 (18:36 +0800)]
mgr/balancer: make weekday be compatible with C

The __desc__ field of **begin[end]_weekend** suggests
sunday is the prevailing start of the week, whereas the
Python implementation says no.

See https://stackoverflow.com/questions/21045569/why-is-pythons-weekday-different-from-tm-wday-in-c

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomgr/balancer: add min/max fields for begin[end]_weekday
xie xingguo [Tue, 19 Feb 2019 10:30:52 +0000 (18:30 +0800)]
mgr/balancer: add min/max fields for begin[end]_weekday

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agomgr/dashboard: Clean up pylint's `disable:no-else-return` 26509/head
Patrick Nawracay [Tue, 19 Feb 2019 11:15:24 +0000 (12:15 +0100)]
mgr/dashboard: Clean up pylint's `disable:no-else-return`

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: Render error in pool edit dialog 25233/head
Patrick Nawracay [Mon, 4 Feb 2019 13:47:23 +0000 (14:47 +0100)]
mgr/dashboard: Render error in pool edit dialog

Fixes: http://tracker.ceph.com/issues/38004
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: Add support for managing RBD QoS
Patrick Nawracay [Mon, 29 Oct 2018 08:59:59 +0000 (09:59 +0100)]
mgr/dashboard: Add support for managing RBD QoS

Fixes: http://tracker.ceph.com/issues/36191
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge pull request #26405 from jtlayton/wip-jlayton-orch
Sebastian Wagner [Tue, 19 Feb 2019 09:29:04 +0000 (10:29 +0100)]
Merge pull request #26405 from jtlayton/wip-jlayton-orch

Allow rook to scale the mon count

Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
6 years agoMerge pull request #23221 from baixueyu/wip-rgw-cleanup-regex
Kefu Chai [Tue, 19 Feb 2019 09:18:17 +0000 (17:18 +0800)]
Merge pull request #23221 from baixueyu/wip-rgw-cleanup-regex

rgw: delete some unused code about std::regex

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoobjclass: fix cls_get_snapset_seq for cache tier case 25945/head
Mykola Golub [Mon, 18 Feb 2019 17:11:03 +0000 (17:11 +0000)]
objclass: fix cls_get_snapset_seq for cache tier case

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/workunits/rbd: add parent migration case
Mykola Golub [Thu, 7 Feb 2019 10:12:07 +0000 (10:12 +0000)]
qa/workunits/rbd: add parent migration case

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agorbd: allow to migrate parent if force flag set
Mykola Golub [Mon, 4 Feb 2019 12:06:36 +0000 (12:06 +0000)]
rbd: allow to migrate parent if force flag set

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agorbd: add option to list all descendant images
Mykola Golub [Fri, 8 Feb 2019 17:54:23 +0000 (17:54 +0000)]
rbd: add option to list all descendant images

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agorbd: use 'namespace' instead of 'namespace-name' in specs
Mykola Golub [Mon, 11 Feb 2019 20:55:35 +0000 (20:55 +0000)]
rbd: use 'namespace' instead of 'namespace-name' in specs

to make them fit the screen

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agocrimson/osd: send known addresses in MOSDBoot 26452/head
Kefu Chai [Fri, 15 Feb 2019 17:02:18 +0000 (01:02 +0800)]
crimson/osd: send known addresses in MOSDBoot

otherwise, the peers will drop the connection at seeing unmatched
address in banner.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: populate crc settings
Kefu Chai [Fri, 15 Feb 2019 17:00:02 +0000 (01:00 +0800)]
crimson/osd: populate crc settings

we should populate messenger related settings before starting
messengers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: listen on v1 addresses
Kefu Chai [Fri, 15 Feb 2019 15:10:28 +0000 (23:10 +0800)]
crimson/osd: listen on v1 addresses

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26254 from tchaikov/wip-crimson-cache
Kefu Chai [Tue, 19 Feb 2019 08:51:19 +0000 (16:51 +0800)]
Merge pull request #26254 from tchaikov/wip-crimson-cache

crimson: cache osdmap using LRU cache

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agorbd: allow 'children' command work if no snap specified
Mykola Golub [Thu, 7 Feb 2019 10:06:55 +0000 (10:06 +0000)]
rbd: allow 'children' command work if no snap specified

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: add list_descendants API method
Mykola Golub [Fri, 8 Feb 2019 17:53:59 +0000 (17:53 +0000)]
librbd: add list_descendants API method

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: make list_children work if parent snap is head
Mykola Golub [Thu, 7 Feb 2019 10:03:08 +0000 (10:03 +0000)]
librbd: make list_children work if parent snap is head

(returning children for all the image snaps in this case)

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: make it possible to migrate parent images
Mykola Golub [Mon, 4 Feb 2019 12:09:02 +0000 (12:09 +0000)]
librbd: make it possible to migrate parent images

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: replace attach child call with new state machine
Mykola Golub [Wed, 16 Jan 2019 11:58:55 +0000 (11:58 +0000)]
librbd: replace attach child call with new state machine

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: new attach child state machine
Mykola Golub [Wed, 16 Jan 2019 11:58:04 +0000 (11:58 +0000)]
librbd: new attach child state machine

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agolibrbd: make AttachParentRequest support reattach
Mykola Golub [Mon, 21 Jan 2019 08:29:14 +0000 (08:29 +0000)]
librbd: make AttachParentRequest support reattach

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agocls/rbd: extend parent_attach to support reattach
Mykola Golub [Mon, 21 Jan 2019 08:27:14 +0000 (08:27 +0000)]
cls/rbd: extend parent_attach to support reattach

Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #26378 from votdev/issue_38267
Lenz Grimmer [Tue, 19 Feb 2019 08:23:58 +0000 (09:23 +0100)]
Merge pull request #26378 from votdev/issue_38267

mgr/dashboard: Module dashboard.services.ganesha has several lint issues

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
6 years agorgw: delete some unused code about std::regex 23221/head
baixueyu78@126.com [Wed, 25 Jul 2018 05:49:55 +0000 (13:49 +0800)]
rgw: delete some unused code about std::regex

Signed-off-by: Xueyu Bai <baixueyu@inspur.com>
6 years agocmake: add PGMap.cc to crimson-common 26254/head
Kefu Chai [Thu, 14 Feb 2019 09:27:57 +0000 (17:27 +0800)]
cmake: add PGMap.cc to crimson-common

otherwise we have failures like:

/usr/bin/ld: ../../../lib/libcrimson-common.a(Message.cc.o): in function
`PGMapDigest::~PGMapDigest()':
/var/ssd/ceph/src/mon/PGMap.h:37: undefined reference to `vtable for
PGMapDigest'
/usr/bin/ld: ../../../lib/libcrimson-common.a(Message.cc.o): in function
`PGMapDigest::~PGMapDigest()':

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: set_callback in ctor
Kefu Chai [Tue, 12 Feb 2019 13:40:15 +0000 (21:40 +0800)]
crimson/osd: set_callback in ctor

there is no need to do so in `start()`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/common: lookup using unordered_map first
Kefu Chai [Sun, 3 Feb 2019 12:32:04 +0000 (20:32 +0800)]
crimson/common: lookup using unordered_map first

assuming the unordered_map in LRU cache is faster.

inspired by #25480 by Radoslaw Zarzynski

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: cache osdmaps using LRU cache
Kefu Chai [Sun, 3 Feb 2019 05:31:27 +0000 (13:31 +0800)]
crimson/osd: cache osdmaps using LRU cache

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: bug in versioning concurrent, list and get have consistency issue 26197/head
wanghao72 [Wed, 30 Jan 2019 07:18:06 +0000 (15:18 +0800)]
rgw: bug in versioning concurrent, list and get have consistency issue

Fixes: https://tracker.ceph.com/issues/38060
Signed-off-by: Wang Hao <wanghao72@baidu.com>
6 years agoosd: Improve use of atomic operations to add and subtract from local_num_bytes 26465/head
David Zafman [Tue, 19 Feb 2019 02:02:16 +0000 (18:02 -0800)]
osd: Improve use of atomic operations to add and subtract from local_num_bytes

Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #25570 from cbodley/wip-rgw-cls-bi-list-log-level
Casey Bodley [Tue, 19 Feb 2019 00:06:16 +0000 (19:06 -0500)]
Merge pull request #25570 from cbodley/wip-rgw-cls-bi-list-log-level

cls/rgw: raise debug level of bi_log_iterate_entries output

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agotest/rgw_multi: add test_datalog_autotrim()
Casey Bodley [Mon, 18 Feb 2019 23:46:24 +0000 (18:46 -0500)]
test/rgw_multi: add test_datalog_autotrim()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: add 'datalog autotrim' admin command
Casey Bodley [Mon, 18 Feb 2019 22:15:15 +0000 (17:15 -0500)]
rgw: add 'datalog autotrim' admin command

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: fix rgw_data_sync_info::json_decode()
Casey Bodley [Mon, 18 Feb 2019 23:15:11 +0000 (18:15 -0500)]
rgw: fix rgw_data_sync_info::json_decode()

this was trying to decode a 'uint64_t instance_id' into the wrong
variable 'uint32_t num_shards'

datalog trimming relies on this json format, and decode failures here
prevent any trimming from taking place

Fixes: http://tracker.ceph.com/issues/38373
Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26491 from ceph/revert-25926-wip-rgw-lc-prefix
Matt Benjamin [Mon, 18 Feb 2019 23:10:18 +0000 (18:10 -0500)]
Merge pull request #26491 from ceph/revert-25926-wip-rgw-lc-prefix

Revert "rgw: lifcycle: don't reject compound rules with empty prefix"

6 years agoosd: fix pg split/merge prime during startup 26492/head
Sage Weil [Mon, 18 Feb 2019 21:30:32 +0000 (15:30 -0600)]
osd: fix pg split/merge prime during startup

The priming of split/merge targets may modify pg_slots, an unordered_map,
which means our iterator may become invalid.  Put PGs in a temporary set
and use that instead.

Fixes: http://tracker.ceph.com/issues/36304
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoRevert "rgw: lifcycle: don't reject compound rules with empty prefix" 26491/head
Matt Benjamin [Mon, 18 Feb 2019 21:14:52 +0000 (16:14 -0500)]
Revert "rgw: lifcycle: don't reject compound rules with empty prefix"

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoosd: fix typo in numa node check; lower debug level 26490/head
Sage Weil [Mon, 18 Feb 2019 21:07:18 +0000 (15:07 -0600)]
osd: fix typo in numa node check; lower debug level

- s/to/do/
- no need for this on stderr, since they don't match on *most* systems
  it seems.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa/standalone/osd/osd-markdown: disable CLI command dups 26489/head
Sage Weil [Mon, 18 Feb 2019 21:02:25 +0000 (15:02 -0600)]
qa/standalone/osd/osd-markdown: disable CLI command dups

The markdown test is based on marking down a specific number of times, but
the duplicate commands from the CLI may not get absorbed/batched by the
mon, breaking the test.  Override the default qa/tasks/workunit.py
behavior of sending dups.

Fixes: http://tracker.ceph.com/issues/38359
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #26399 from jan--f/c-v-fix-hashable-py3
Andrew Schoen [Mon, 18 Feb 2019 20:38:21 +0000 (14:38 -0600)]
Merge pull request #26399 from jan--f/c-v-fix-hashable-py3

ceph-volume: make Device hashable to allow set of Device list in py3

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #26401 from jan--f/c-v-fix-siez-format-py3
Andrew Schoen [Mon, 18 Feb 2019 20:37:35 +0000 (14:37 -0600)]
Merge pull request #26401 from jan--f/c-v-fix-siez-format-py3

ceph-volume: implement __format__ in Size to format sizes in py3

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #26403 from jan--f/c-v-no-iteritems-py3
Andrew Schoen [Mon, 18 Feb 2019 20:36:57 +0000 (14:36 -0600)]
Merge pull request #26403 from jan--f/c-v-no-iteritems-py3

ceph-volume: remove iteritems instances

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #26463 into master
Sage Weil [Mon, 18 Feb 2019 19:39:35 +0000 (13:39 -0600)]
Merge PR #26463 into master

* refs/pull/26463/head:
script/ptl-tool: allow invocation within a subdirectory

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #26272 from ivancich/wip-log-excl-lock-busy-info
J. Eric Ivancich [Mon, 18 Feb 2019 17:48:09 +0000 (12:48 -0500)]
Merge pull request #26272 from ivancich/wip-log-excl-lock-busy-info

rgw: when exclusive lock fails due existing lock, log add'l info

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>