]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agoProject Zipper Part 1 - Framework and RGWRadosStore 28824/head
Daniel Gryniewicz [Thu, 6 Jun 2019 18:41:55 +0000 (14:41 -0400)]
Project Zipper Part 1 - Framework and RGWRadosStore

This is the first part of Project Zipper, the Store Abstraction Layer.
It introduces the basic framework, and wraps RGWRados in RGWRadosStore.
The goal over the next few weeks is to do the same for user, bucket, and
object.  This will make most of the remaining users of RGWRados wrapped
in SAL classes, allowing it to be completely absorbed into the private
RGWRadosStore.  This will also expose all the APIs that need to be
pusheg up to higher layers in the SAL.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
6 years agomgr/dashboard: Fix e2e issue in HACKING.rst (#29640)
Lenz Grimmer [Wed, 14 Aug 2019 09:05:07 +0000 (09:05 +0000)]
mgr/dashboard: Fix e2e issue in HACKING.rst (#29640)

mgr/dashboard: Fix e2e issue in HACKING.rst

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #29570 from rhcs-dashboard/new-bucket-utilities-adaptation
Lenz Grimmer [Wed, 14 Aug 2019 08:19:32 +0000 (08:19 +0000)]
Merge pull request #29570 from rhcs-dashboard/new-bucket-utilities-adaptation

mgr/dashboard: adapt bucket tenant API tests to new behaviour

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #29634 from rhcs-dashboard/mgr-module-fixes
Lenz Grimmer [Wed, 14 Aug 2019 08:18:18 +0000 (08:18 +0000)]
Merge pull request #29634 from rhcs-dashboard/mgr-module-fixes

mgr/dashboard: fix mgr module API tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #29612 from tchaikov/wip-crimson-perf-test
Kefu Chai [Wed, 14 Aug 2019 05:48:21 +0000 (13:48 +0800)]
Merge pull request #29612 from tchaikov/wip-crimson-perf-test

crimson/test: add CBT based perf tests

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #29644 from anthonyeleven/patch-3
Kefu Chai [Wed, 14 Aug 2019 03:24:45 +0000 (11:24 +0800)]
Merge pull request #29644 from anthonyeleven/patch-3

doc: operations: correct 'comma-delimited'

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agosrc/script: add run-cbt.sh 29612/head
Kefu Chai [Mon, 12 Aug 2019 14:38:25 +0000 (22:38 +0800)]
src/script: add run-cbt.sh

this script will be used by jenkins to drive the CBT based test

also, this test can be used by developer for testing crimson or classic
OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/test: add perf tests for crimson
Kefu Chai [Mon, 12 Aug 2019 12:10:35 +0000 (20:10 +0800)]
crimson/test: add perf tests for crimson

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/test: add script to convert teuthology task config to cbt config
Kefu Chai [Mon, 12 Aug 2019 12:08:49 +0000 (20:08 +0800)]
crimson/test: add script to convert teuthology task config to cbt config

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: operations: correct 'comma-delimited' 29644/head
Anthony D'Atri [Tue, 13 Aug 2019 19:50:39 +0000 (12:50 -0700)]
doc: operations: correct 'comma-delimited'

CIDR blocks are comma-separated, not comma-delimited.

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
6 years agoMerge pull request #29118 from cbodley/wip-rgw-metadata-servicification
Casey Bodley [Tue, 13 Aug 2019 16:56:52 +0000 (12:56 -0400)]
Merge pull request #29118 from cbodley/wip-rgw-metadata-servicification

rgw: metadata refactoring

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
6 years agoMerge branch 'wip-rgw-metadata-servicification' 29118/head
Casey Bodley [Mon, 12 Aug 2019 19:47:29 +0000 (15:47 -0400)]
Merge branch 'wip-rgw-metadata-servicification'

 Conflicts:
src/rgw/rgw_auth.cc
src/rgw/rgw_auth_registry.h
src/rgw/rgw_auth_s3.h
src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h
src/rgw/rgw_data_sync.h
src/rgw/rgw_frontend.h
src/rgw/rgw_log.h
src/rgw/rgw_main.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.h
src/rgw/rgw_rest_sts.h
src/rgw/rgw_swift_auth.h
src/rgw/rgw_user.cc
src/rgw/rgw_user.h
src/rgw/services/svc_sys_obj_core.h

6 years agomgr/dashboard: Fix e2e issue in HACKING.rst 29640/head
Volker Theile [Tue, 13 Aug 2019 13:20:56 +0000 (15:20 +0200)]
mgr/dashboard: Fix e2e issue in HACKING.rst

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #29633 from hanfengzhe-hi/Fix-decompression-logprint
Casey Bodley [Tue, 13 Aug 2019 12:15:17 +0000 (08:15 -0400)]
Merge pull request #29633 from hanfengzhe-hi/Fix-decompression-logprint

rgw:Fix rgw decompression log-print

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard: fix mgr module API tests 29634/head
alfonsomthd [Tue, 13 Aug 2019 10:15:38 +0000 (12:15 +0200)]
mgr/dashboard: fix mgr module API tests

Signed-off-by: alfonsomthd <almartin@redhat.com>
6 years agorgw:Fix rgw decompression log-print 29633/head
Han Fengzhe [Tue, 13 Aug 2019 09:08:23 +0000 (17:08 +0800)]
rgw:Fix rgw decompression log-print

The zlib compression takes effect in RGW。
When getting objects failed because of decompress-failed。“ceph-client.rgw” log printed “Compression failed with exit code......”,it should be “deCompression failed with exit code......”。

Signed-off-by: Han Fengzhe <hanfengzhe@hisilicon.com>
6 years agoMerge pull request #29587 from yuvalif/wip-yuvali-fix-issue-41169
Yuval Lifshitz [Tue, 13 Aug 2019 08:11:34 +0000 (17:11 +0900)]
Merge pull request #29587 from yuvalif/wip-yuvali-fix-issue-41169

rgw: don't throw when accept errors are happening on frontend

6 years agoMerge pull request #29615 from tchaikov/wip-qa/tasks/mgr/dashboard/test_health
Kefu Chai [Tue, 13 Aug 2019 05:59:28 +0000 (13:59 +0800)]
Merge pull request #29615 from tchaikov/wip-qa/tasks/mgr/dashboard/test_health

qa/tasks/mgr/dashboard/test_health: add missing field for test_full_health

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
6 years agoqa/tasks/mgr/dashboard/test_health: add missing field for test_full_health 29615/head
Kefu Chai [Tue, 13 Aug 2019 00:43:34 +0000 (08:43 +0800)]
qa/tasks/mgr/dashboard/test_health: add missing field for test_full_health

fix regressions introduced by a076260e and d6ff61ed

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/tasks/mgr/dashboard/test_mgr_module: remove enable/disable test from MgrModuleTele... 29619/head
Kefu Chai [Tue, 13 Aug 2019 01:54:24 +0000 (09:54 +0800)]
qa/tasks/mgr/dashboard/test_mgr_module: remove enable/disable test from MgrModuleTelemetryTest

telemetry is always enabled since 2d62d71cd46d791294b3803e034c0995fef08b33

Fixes: https://tracker.ceph.com/issues/41186
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #29342 from Jeegn-Chen/wip-scrub-extended-sleep
Kefu Chai [Tue, 13 Aug 2019 01:09:52 +0000 (09:09 +0800)]
Merge pull request #29342 from Jeegn-Chen/wip-scrub-extended-sleep

osd: support osd_scrub_extended_sleep

Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agoMerge pull request #29522 from majianpeng/bluestore-optimization
Kefu Chai [Tue, 13 Aug 2019 01:08:00 +0000 (09:08 +0800)]
Merge pull request #29522 from majianpeng/bluestore-optimization

os/bluestore: deferred IO notify and locking optimization

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #29418 from junxfl/test1
Kefu Chai [Tue, 13 Aug 2019 01:06:52 +0000 (09:06 +0800)]
Merge pull request #29418 from junxfl/test1

OSD: modify n.cookie to op.notify.cookie

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #29571 from tchaikov/wip-41177
Kefu Chai [Tue, 13 Aug 2019 01:04:58 +0000 (09:04 +0800)]
Merge pull request #29571 from tchaikov/wip-41177

ceph-objectstore-tool: update-mon-db: do not fail if incmap is missing

Reviewed-by: huangjun <huangjun@xsky.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agorgw: RGWUserCtl::PutParams::attrs defaults to nullptr
Casey Bodley [Mon, 12 Aug 2019 14:18:34 +0000 (10:18 -0400)]
rgw: RGWUserCtl::PutParams::attrs defaults to nullptr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agovstart: pass "--smp 1 --cpuset $osd" to crimson-osd
Kefu Chai [Mon, 12 Aug 2019 12:04:17 +0000 (20:04 +0800)]
vstart: pass "--smp 1 --cpuset $osd" to crimson-osd

for optimal performance when testing multiple crimson-osd in a vstart cluster

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #29605 from yaozongyou/remove-unused-marco
Casey Bodley [Mon, 12 Aug 2019 14:14:52 +0000 (10:14 -0400)]
Merge pull request #29605 from yaozongyou/remove-unused-marco

common: remove unused _STR and STRINGIFY macro

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #29553 from cbodley/wip-rgw-http-unlock-suspend
Casey Bodley [Mon, 12 Aug 2019 14:04:40 +0000 (10:04 -0400)]
Merge pull request #29553 from cbodley/wip-rgw-http-unlock-suspend

rgw: http client drops lock before suspending coroutine

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agocommon: remove unused _STR and STRINGIFY macro 29605/head
Yao Zongyou [Mon, 12 Aug 2019 12:49:30 +0000 (20:49 +0800)]
common: remove unused _STR and STRINGIFY macro

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
6 years agoMerge pull request #29547 from jan--f/c-v-always-log-to-stdout
Jan Fajerski [Mon, 12 Aug 2019 12:13:19 +0000 (14:13 +0200)]
Merge pull request #29547 from jan--f/c-v-always-log-to-stdout

ceph-volume: never log to stdout, use stderr instead

6 years agoMerge pull request #29076 from tchaikov/wip-crimson-rep-op
Kefu Chai [Mon, 12 Aug 2019 10:51:46 +0000 (18:51 +0800)]
Merge pull request #29076 from tchaikov/wip-crimson-rep-op

crimson/osd: implement replicated write

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #29378 from cyx1231st/rfc-seastar-msgr-lossless-master
Kefu Chai [Mon, 12 Aug 2019 10:50:40 +0000 (18:50 +0800)]
Merge pull request #29378 from cyx1231st/rfc-seastar-msgr-lossless-master

crimson/net: lossless policy for v2 protocol

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: log if the dest of send_to_osd() is not valid 29076/head
Kefu Chai [Tue, 30 Jul 2019 11:46:53 +0000 (19:46 +0800)]
crimson/osd: log if the dest of send_to_osd() is not valid

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: do not return "void"
Kefu Chai [Tue, 30 Jul 2019 11:43:10 +0000 (19:43 +0800)]
crimson/osd: do not return "void"

to avoid potential confusions.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: write pg info after done with peering
Kefu Chai [Tue, 30 Jul 2019 11:42:25 +0000 (19:42 +0800)]
crimson/osd: write pg info after done with peering

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: handle MOSDRepOp
Kefu Chai [Mon, 15 Jul 2019 13:17:56 +0000 (21:17 +0800)]
crimson/osd: handle MOSDRepOp

* add a `RepRequest` operation which is blocked by `ConnectionPipeline`
  and `PGPipeline`. these two pipelines are modeled after their
  counterparts of `ClientRequest`.
* add these two blockers to `PG` and `OSDConnectionPriv` accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: replicate transaction to peers
Kefu Chai [Sat, 13 Jul 2019 02:39:48 +0000 (10:39 +0800)]
crimson/osd: replicate transaction to peers

* handle `MOSDRepOpReply` message in osd, and pass it all the way down
  to `PGBackend`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: implement PeeringListener::on_activate()
Kefu Chai [Mon, 15 Jul 2019 04:29:57 +0000 (12:29 +0800)]
crimson/osd: implement PeeringListener::on_activate()

see also f7b55ec14415811d750e79838f746a91106ba81e

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/net: minor logging cleanup 29378/head
Yingxin Cheng [Thu, 8 Aug 2019 09:15:48 +0000 (17:15 +0800)]
crimson/net: minor logging cleanup

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: throw bad_peer_address when reconnect address doesn't match
Yingxin Cheng [Thu, 8 Aug 2019 09:14:47 +0000 (17:14 +0800)]
crimson/net: throw bad_peer_address when reconnect address doesn't match

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: REPLACING state to resolve racing and retain session
Yingxin Cheng [Thu, 8 Aug 2019 09:09:34 +0000 (17:09 +0800)]
crimson/net: REPLACING state to resolve racing and retain session

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: handle fault for READY, CONNECTING and ACCEPTING
Yingxin Cheng [Thu, 8 Aug 2019 09:03:39 +0000 (17:03 +0800)]
crimson/net: handle fault for READY, CONNECTING and ACCEPTING

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: WAIT state and backoff for client
Yingxin Cheng [Thu, 8 Aug 2019 08:56:30 +0000 (16:56 +0800)]
crimson/net: WAIT state and backoff for client

Client goes to WAIT state when it is delayed to reconnect, or wants to
be replaced by a newly established socket.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: SERVER_WAIT state for accepting server
Yingxin Cheng [Thu, 8 Aug 2019 08:35:13 +0000 (16:35 +0800)]
crimson/net: SERVER_WAIT state for accepting server

Server wait for peer client close the socket at SERVER_WAIT.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: STANDBY state for lossless server or peer
Yingxin Cheng [Thu, 8 Aug 2019 08:25:43 +0000 (16:25 +0800)]
crimson/net: STANDBY state for lossless server or peer

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: allow REPLACING state wait for protocol exit
Yingxin Cheng [Thu, 8 Aug 2019 08:17:47 +0000 (16:17 +0800)]
crimson/net: allow REPLACING state wait for protocol exit

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: send AckFrame for lossless policy
Yingxin Cheng [Thu, 8 Aug 2019 08:10:54 +0000 (16:10 +0800)]
crimson/net: send AckFrame for lossless policy

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: maintain the sent queue for lossless policy
Yingxin Cheng [Thu, 8 Aug 2019 07:56:17 +0000 (15:56 +0800)]
crimson/net: maintain the sent queue for lossless policy

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: reset write state with reset_write()
Yingxin Cheng [Wed, 7 Aug 2019 15:28:30 +0000 (23:28 +0800)]
crimson/net: reset write state with reset_write()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: allow connecting state reentrant
Yingxin Cheng [Wed, 7 Aug 2019 15:20:49 +0000 (23:20 +0800)]
crimson/net: allow connecting state reentrant

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: reset handshake status when connecting/accepting
Yingxin Cheng [Wed, 7 Aug 2019 15:11:19 +0000 (23:11 +0800)]
crimson/net: reset handshake status when connecting/accepting

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: pending_q to store the pending(sending) messages
Yingxin Cheng [Fri, 9 Aug 2019 09:26:09 +0000 (17:26 +0800)]
crimson/net: pending_q to store the pending(sending) messages

We cannot left the pending messages in the out_q, because with lossless
policy, they can be partially sent and even acknowledged.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: wait_write_exit() to wait for writer stopped
Yingxin Cheng [Fri, 9 Aug 2019 09:24:55 +0000 (17:24 +0800)]
crimson/net: wait_write_exit() to wait for writer stopped

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: is_queued() to check if there's any pending writes
Yingxin Cheng [Wed, 7 Aug 2019 14:36:28 +0000 (22:36 +0800)]
crimson/net: is_queued() to check if there's any pending writes

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: fix variables for stateful connection
Yingxin Cheng [Wed, 7 Aug 2019 14:25:07 +0000 (22:25 +0800)]
crimson/net: fix variables for stateful connection

server_cookie, client_cookie, connect_seq and global_seq are identifiers
of a stateful connection.

We already have some related implementations, but they are stub code
when implement lossy policy and cannot work properly.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agoosd: support osd_scrub_extended_sleep 29342/head
Jeegn Chen [Fri, 26 Jul 2019 02:09:01 +0000 (10:09 +0800)]
osd: support osd_scrub_extended_sleep

1. always take osd_scrub_sleep for manually initiated
   scrubs
2. when scrub_time_permit() return true for scheduled
   ones, the existing osd_scrub_sleep is used
3. when scrub_time_permit() return false for scheduled
   ones, there may be 2 scenarios
   3.1 if osd_scrub_extended_sleep <= osd_scrub_sleep,
       let's take osd_scrub_sleep
   3.2 otherwise, let's take osd_scrub_extended_sleep

Fixes: http://tracker.ceph.com/issues/40955
Signed-off-by: Jeegn Chen <jeegnchen@tencent.com>
6 years agocrimson/net: clean up, exsiting_conn and existing_proto
Yingxin Cheng [Wed, 7 Aug 2019 14:00:33 +0000 (22:00 +0800)]
crimson/net: clean up, exsiting_conn and existing_proto

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: next_step_t for explicit decision of next state
Yingxin Cheng [Wed, 7 Aug 2019 13:43:59 +0000 (21:43 +0800)]
crimson/net: next_step_t for explicit decision of next state

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agocrimson/net: introduce 3 ways to abort the active protocol state
Yingxin Cheng [Wed, 7 Aug 2019 13:08:15 +0000 (21:08 +0800)]
crimson/net: introduce 3 ways to abort the active protocol state

* abort_in_fault(): a fault is happening and needs to be handled.
* abort_protocol(): abort the current protocol state due to preemptive
                    state change.
* abort_in_close(): close this connection and abort the current protocol
                    state due to some fatal error.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
6 years agoceph-objectstore-tool: update-mon-db: do not fail if incmap is missing 29571/head
Kefu Chai [Mon, 12 Aug 2019 02:12:28 +0000 (10:12 +0800)]
ceph-objectstore-tool: update-mon-db: do not fail if incmap is missing

there is chance that we could use an OSD which does not have incmap of a
certain epoch for rebuilding the monstore. and since OSD does not read
and store the incmap if the MOSDMap message already has the fullmap of
that fullmap, and if an OSD does not have previous fullmap, monitor
will just send it the fullmao. so it's not unusual that an OSD has
a fullmap of some epoch without corresponding incmap.

Fixes: https://tracker.ceph.com/issues/41177
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28157 from Kriechi/docs-rgw-ldap
Matt Benjamin [Mon, 12 Aug 2019 00:45:29 +0000 (20:45 -0400)]
Merge pull request #28157 from Kriechi/docs-rgw-ldap

docs: improve rgw ldap auth options

6 years agorgw: don't throw when accept errors are happening on frontend 29587/head
Yuval Lifshitz [Sun, 11 Aug 2019 07:06:05 +0000 (10:06 +0300)]
rgw: don't throw when accept errors are happening on frontend

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
6 years agoMerge pull request #28227 from sseshasa/monCachePriority
Josh Durgin [Fri, 9 Aug 2019 21:23:39 +0000 (14:23 -0700)]
Merge pull request #28227 from sseshasa/monCachePriority

mon/OSDMonitor: Use generic priority cache tuner for mon caches

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #29540 from cbodley/wip-rgw-user-rename
Casey Bodley [Fri, 9 Aug 2019 20:57:25 +0000 (16:57 -0400)]
Merge pull request #29540 from cbodley/wip-rgw-user-rename

rgw: followup for 'user rename'

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #29558 from theanalyst/rgw-cache-lock
Casey Bodley [Fri, 9 Aug 2019 17:03:35 +0000 (13:03 -0400)]
Merge pull request #29558 from theanalyst/rgw-cache-lock

rgw: fix unlock of shared lock in RGWCache

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agorgw: fix unlock of shared lock in RGWCache 29558/head
Abhishek Lekshmanan [Thu, 8 Aug 2019 15:38:43 +0000 (17:38 +0200)]
rgw: fix unlock of shared lock in RGWCache

similar to https://github.com/ceph/ceph/pull/29538/ we unlock a shared_lock with
unlock causing a crash. Also scope the single line if statements to make the
code more concise

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoMerge PR #29292 into master
Sage Weil [Fri, 9 Aug 2019 15:40:45 +0000 (10:40 -0500)]
Merge PR #29292 into master

* refs/pull/29292/head:
os/bluestore: warn on no per-pool omap
os/bluestore: fsck: warning (not error) by default on no per-pool omap
os/bluestore: fsck: int64_t for error count
os/bluestore: default size of 1 TB for testing
os/bluestore: behave if we *do* set PGMETA and PERPOOL flags
os/bluestore: do not set both PGMETA_OMAP and PERPOOL_OMAP
os/bluestore: fsck: only generate 1 error per omap_head
os/bluestore: make fsck repair convert to per-pool omap
os/bluestore: teach fsck to tolerate per-pool omap
os/bluestore: ondisk format change to 3 for per-pool omap
mon/PGMap: add data/omap breakouts for 'df detail' view
osd/osd_types: separate get_{user,allocated}_bytes() into data and omap variants
mon/PGMap: fix stored_raw calculation
mon/PGMap: add in actual omap usage into per-pool stats
osd: report per-pool omap support via store_statfs_t
os/bluestore: set per_pool_omap key on mkfs
osd/osd_types: count per-pool omap capable OSDs
os/bluestore: report omap_allocated per-pool
os/bluestore: add pool prefix to omap keys
kv/KeyValueDB: take key_prefix for estimate_prefix_size()
os/bluestore: fix manual omap key manipulation to use Onode::get_omap_key()
os/bluestore: make omap key helpers Onode methods
os/bluestore: add Onode::get_omap_prefix() helper
os/bluestore: change _do_omap_clear() args

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #29528 from tchaikov/wip-build-doc-with-python3
Alfredo Deza [Fri, 9 Aug 2019 15:17:19 +0000 (11:17 -0400)]
Merge pull request #29528 from tchaikov/wip-build-doc-with-python3

admin/build-doc: use python3

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #29560 from linuxbox2/wip-rgwf-advance
Matt Benjamin [Fri, 9 Aug 2019 14:01:03 +0000 (10:01 -0400)]
Merge pull request #29560 from linuxbox2/wip-rgwf-advance

rgw_file: dont deadlock in advance_mtime()

6 years agoos/bluestore: warn on no per-pool omap 29292/head
Sage Weil [Thu, 8 Aug 2019 21:57:22 +0000 (16:57 -0500)]
os/bluestore: warn on no per-pool omap

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-volume: never log to stdout, use stderr instead 29547/head
Jan Fajerski [Thu, 8 Aug 2019 08:42:37 +0000 (10:42 +0200)]
ceph-volume: never log to stdout, use stderr instead

We should never print log messages to stdout, as this should be reserved
for output of ceph-volume.

Fixes: https://tracker.ceph.com/issues/41158
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agomgr/dashboard: adapt bucket tenant tests to new behaviour 29570/head
alfonsomthd [Fri, 9 Aug 2019 08:05:46 +0000 (10:05 +0200)]
mgr/dashboard: adapt bucket tenant tests to new behaviour

Fixes: https://tracker.ceph.com/issues/41175
Signed-off-by: alfonsomthd <almartin@redhat.com>
6 years agoMerge pull request #29400 from wjwithagen/wjw-fix-do_freeBSD.sh
Kefu Chai [Fri, 9 Aug 2019 06:09:42 +0000 (14:09 +0800)]
Merge pull request #29400 from wjwithagen/wjw-fix-do_freeBSD.sh

do_freebsd.sh: update build scripts to resemble Jenkins scripts

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #29495 from ifed01/wip-ifed-finisher-improve
Kefu Chai [Fri, 9 Aug 2019 04:24:28 +0000 (12:24 +0800)]
Merge pull request #29495 from ifed01/wip-ifed-finisher-improve

common/Finisher: remove some lock acquisitions.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #29477 from tchaikov/wip-osd-pg-as-mutex
Kefu Chai [Fri, 9 Aug 2019 04:22:26 +0000 (12:22 +0800)]
Merge pull request #29477 from tchaikov/wip-osd-pg-as-mutex

osd: pg as a mutex

Reviewed-by: Greg Farnum gfarnum@redhat.com
Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #29486 from runsisi/wip-fix-verbose
Kefu Chai [Fri, 9 Aug 2019 04:21:29 +0000 (12:21 +0800)]
Merge pull request #29486 from runsisi/wip-fix-verbose

ceph.in: fix verbose print

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #29465 from penglaiyxy/wip_bluestore_caculated_revert
Kefu Chai [Fri, 9 Aug 2019 04:20:46 +0000 (12:20 +0800)]
Merge pull request #29465 from penglaiyxy/wip_bluestore_caculated_revert

os/bluestore: no need to add tail length (revert PR#29185)

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #29488 from majianpeng/bluestore-remove-lock
Kefu Chai [Fri, 9 Aug 2019 04:19:27 +0000 (12:19 +0800)]
Merge pull request #29488 from majianpeng/bluestore-remove-lock

os/bluestore: no need protected by OpSequencer::qlock.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #29385 from kamoltat/wip-qa-tasks-mgr-test-progress-bug-fix
Kefu Chai [Fri, 9 Aug 2019 04:18:40 +0000 (12:18 +0800)]
Merge pull request #29385 from kamoltat/wip-qa-tasks-mgr-test-progress-bug-fix

qa/tasks/mgr/test_progress.py: fix bug in 9b4dbf0

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #29365 from liewegas/wip-telemetry-post
Dan Mick [Thu, 8 Aug 2019 23:32:15 +0000 (16:32 -0700)]
Merge pull request #29365 from liewegas/wip-telemetry-post

telemetry/server: misc fixes

6 years agorgw_file: dont deadlock in advance_mtime() 29560/head
Matt Benjamin [Thu, 8 Aug 2019 20:21:24 +0000 (16:21 -0400)]
rgw_file: dont deadlock in advance_mtime()

Fixes: https://tracker.ceph.com/issues/41173
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoos/bluestore: fsck: warning (not error) by default on no per-pool omap
Sage Weil [Thu, 8 Aug 2019 21:56:07 +0000 (16:56 -0500)]
os/bluestore: fsck: warning (not error) by default on no per-pool omap

Unconditionally error if the global per_pool_omap was set, though!

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: fsck: int64_t for error count
Sage Weil [Thu, 8 Aug 2019 21:31:01 +0000 (16:31 -0500)]
os/bluestore: fsck: int64_t for error count

Just to be on the safe side.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: default size of 1 TB for testing
Sage Weil [Tue, 6 Aug 2019 14:07:35 +0000 (09:07 -0500)]
os/bluestore: default size of 1 TB for testing

Less ENOSPC from vstart.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: behave if we *do* set PGMETA and PERPOOL flags
Sage Weil [Mon, 5 Aug 2019 17:53:29 +0000 (12:53 -0500)]
os/bluestore: behave if we *do* set PGMETA and PERPOOL flags

pgmeta trumps perpool.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: do not set both PGMETA_OMAP and PERPOOL_OMAP
Sage Weil [Mon, 5 Aug 2019 17:52:56 +0000 (12:52 -0500)]
os/bluestore: do not set both PGMETA_OMAP and PERPOOL_OMAP

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: fsck: only generate 1 error per omap_head
Sage Weil [Mon, 5 Aug 2019 17:08:17 +0000 (12:08 -0500)]
os/bluestore: fsck: only generate 1 error per omap_head

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoos/bluestore: make fsck repair convert to per-pool omap
Sage Weil [Tue, 30 Jul 2019 00:43:53 +0000 (19:43 -0500)]
os/bluestore: make fsck repair convert to per-pool omap

- error if objects not per-pool
- error if per_pool_omap not set
- convert as we go, and set the flag at the end

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #29541 from yuriw/wip-yuriw-upgrade-rbd-master
Yuri Weinstein [Thu, 8 Aug 2019 22:22:48 +0000 (15:22 -0700)]
Merge pull request #29541 from yuriw/wip-yuriw-upgrade-rbd-master

qa/tests: added rbd task on ec

6 years agoMerge PR #27542 into master
Sage Weil [Thu, 8 Aug 2019 20:52:58 +0000 (15:52 -0500)]
Merge PR #27542 into master

* refs/pull/27542/head:
qa/tasks: Fix ambiguous store_thrash, thrash_store

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #29493 into master
Sage Weil [Thu, 8 Aug 2019 20:52:45 +0000 (15:52 -0500)]
Merge PR #29493 into master

* refs/pull/29493/head:
qa/tasks/mgr/mgr_test_case: get mgrmap from 'mgr dump', not status
qa/tasks/ceph_manager: no newlines in 'ceph -s' output
mon: make mon summary more concise in 'ceph -s'
mon/MgrStatMonitor: set initial service_map 'modified' to cluster mkfs
mon: remove double-nesting of "osdmap" for ceph status
mon/MgrMap: make print_summary (used by 'ceph -s') more concise

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29511 into master
Sage Weil [Thu, 8 Aug 2019 20:49:29 +0000 (15:49 -0500)]
Merge PR #29511 into master

* refs/pull/29511/head:
common/config: respect POD_MEMORY_REQUEST *and* POD_MEMORY_LIMIT env vars
common/config: let diff show non-build defaults
common/config: do no include multiple 'default' values

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #29517 into master
Sage Weil [Thu, 8 Aug 2019 20:49:17 +0000 (15:49 -0500)]
Merge PR #29517 into master

* refs/pull/29517/head:
osd: include PastInterals in pg_notify_t

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #29559 from adamemerson/wip-putobj-crash
Adam C. Emerson [Thu, 8 Aug 2019 19:14:03 +0000 (15:14 -0400)]
Merge pull request #29559 from adamemerson/wip-putobj-crash

rgw: Move upload_info declaration out of conditional

Reviewed-By: Casey Bodley <cbodley@redhat.com>
6 years agorgw: Move upload_info declaration out of conditional 29559/head
Adam C. Emerson [Fri, 19 Jul 2019 20:10:30 +0000 (16:10 -0400)]
rgw: Move upload_info declaration out of conditional

That way we don't deconstruct it right after assigning a reference to
part of it.

Fixes: https://tracker.ceph.com/issues/41172
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #29449 from cbodley/wip-vstart-client-rgw
Casey Bodley [Thu, 8 Aug 2019 15:33:52 +0000 (11:33 -0400)]
Merge pull request #29449 from cbodley/wip-vstart-client-rgw

vstart: move common rgw config to [client.rgw]

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
6 years agoqa/tests: added rbd task on ec 29541/head
Yuri Weinstein [Wed, 7 Aug 2019 20:36:29 +0000 (13:36 -0700)]
qa/tests: added rbd task on ec

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoosd: include PastInterals in pg_notify_t 29517/head
Sage Weil [Tue, 6 Aug 2019 19:30:53 +0000 (14:30 -0500)]
osd: include PastInterals in pg_notify_t

We use a pair<pg_notify_t,PastIntervals> everywhere a pg_notify_t is used.
This is silly; just make it a member instead.

Include some minor compat cruft so we can speak to pre-octopus OSDs.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #29538 from cbodley/wip-rgw-data-changes-shared-unlock
Casey Bodley [Thu, 8 Aug 2019 14:11:29 +0000 (10:11 -0400)]
Merge pull request #29538 from cbodley/wip-rgw-data-changes-shared-unlock

rgw: fix unlock of shared lock in RGWDataChangesLog

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agorgw: http client drops mutex before suspending coroutine 29553/head
Casey Bodley [Thu, 8 Aug 2019 14:06:17 +0000 (10:06 -0400)]
rgw: http client drops mutex before suspending coroutine

the lock can't be held over async_wait(), because the call to finish()
won't be able to reacquire the lock in order to fire the completion.
coroutines may also resume on a different thread, and you can't unlock a
mutex that was locked on another thread

Reported-by: Yuval Lifshitz <yuvalif@yahoo.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>