]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agolibrbd: cleanup parent cache
shangdehao1 [Sun, 9 Jun 2019 23:30:43 +0000 (07:30 +0800)]
librbd: cleanup parent cache

- remove compiler warning.
- add error log level.
- modify tool/immutable_obj_cache unit testing.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: modify Parent cache interface
shangdehao1 [Sun, 9 Jun 2019 19:47:24 +0000 (03:47 +0800)]
librbd: modify Parent cache interface

follow the recent ObjectDispatchInterface to adjust parent cache hook

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agodoc: updating doc for rbd shared parent cache
Yuan Zhou [Thu, 6 Jun 2019 09:36:39 +0000 (17:36 +0800)]
doc: updating doc for rbd shared parent cache

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
6 years agolibrbd: move SharedPersistentObjectCacher to ParentCacheObjectDispatch
shangdehao1 [Wed, 5 Jun 2019 00:30:04 +0000 (08:30 +0800)]
librbd: move SharedPersistentObjectCacher to ParentCacheObjectDispatch

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: add re-connect and infligh enable feature
shangdehao1 [Fri, 31 May 2019 01:47:31 +0000 (09:47 +0800)]
librbd: add re-connect and infligh enable feature

- reconnect : when session don't work or RO daemon crash,
  parent cache will try to re-connect daemon.
- in-fligh enable RO daemon.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agotools: modify connect implement of RO cache
shangdehao1 [Sun, 26 May 2019 22:22:21 +0000 (06:22 +0800)]
tools: modify connect implement of RO cache

- In order to support re-connect, add async connect at CacheClient.
- sync connect is based on C_SaferCond + async_connect.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: fix double free issue for CacheGenContextURef
shangdehao1 [Sun, 26 May 2019 18:53:34 +0000 (02:53 +0800)]
librbd: fix double free issue for CacheGenContextURef

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: add TypeTrait class to librbd/cache
shangdehao1 [Thu, 23 May 2019 21:46:24 +0000 (05:46 +0800)]
librbd: add TypeTrait class to librbd/cache

- add TypeTraits to librbd/cache
- remove the second template parameter of parent image dispatch
- remove m_cache_client and m_image_ctx to private selection,
  and add two public method to get these two data member.
- modify parent image cache uite testing

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: cleanup RO cache
shangdehao1 [Wed, 22 May 2019 23:01:12 +0000 (07:01 +0800)]
librbd: cleanup RO cache

- cleanup invalid comments
- cleanup useless method and data member
- fix spelling mistake
- change naming from SharedReadOnlyCache to ParentCache
- change file name from SharedReadOnlyObjectDispatch
  to ParentCacheObjectDispath

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: change RO hook naming.
shangdehao1 [Wed, 8 May 2019 05:10:23 +0000 (13:10 +0800)]
librbd: change RO hook naming.

change SharedReadOnlyCache to ParentCache

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agodoc: adding docs for rbd shared read-only parent image cache
Yuan Zhou [Sun, 28 Apr 2019 03:12:01 +0000 (11:12 +0800)]
doc: adding docs for rbd shared read-only parent image cache

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
6 years agolibrbd: modify RO hook implements
shangdehao1 [Fri, 19 Apr 2019 00:24:41 +0000 (08:24 +0800)]
librbd: modify RO hook implements

modify read and handle_read_cache method, and cleanup.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: don't append zeros for RO caching reading
shangdehao1 [Fri, 19 Apr 2019 00:19:13 +0000 (08:19 +0800)]
librbd: don't append zeros for RO caching reading

Just return actual contents.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: keep gen lambda context small
shangdehao1 [Thu, 18 Apr 2019 23:18:48 +0000 (07:18 +0800)]
librbd: keep gen lambda context small

move all codes of lambda context to handle_read_cache.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: introduce new context type at RO
shangdehao1 [Thu, 18 Apr 2019 22:29:58 +0000 (06:29 +0800)]
librbd: introduce new context type at RO

 - CacheGenContextURef is wrapper GenContextURef
 - use make_gen_lambda_context to create context.
 - smart pointer unique_ptr to auto release object.

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: modify flush interface of RO
shangdehao1 [Wed, 17 Apr 2019 18:09:18 +0000 (02:09 +0800)]
librbd: modify flush interface of RO

Add to journal_tid parameter to flush interface
Delete LibrbdWriteback head file

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agotest: add librbd/cache/ParentImageCache UT
shangdehao1 [Sun, 9 Jun 2019 17:40:18 +0000 (01:40 +0800)]
test: add librbd/cache/ParentImageCache UT

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agotest: add domain socket mock
shangdehao1 [Wed, 17 Apr 2019 05:32:24 +0000 (13:32 +0800)]
test: add domain socket mock

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: template CacheClient at RO hook
shangdehao1 [Wed, 17 Apr 2019 05:28:07 +0000 (13:28 +0800)]
librbd: template CacheClient at RO hook

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
6 years agolibrbd: enable librbd hook for shared RO cache
shangdehao1 [Wed, 17 Apr 2019 07:58:16 +0000 (15:58 +0800)]
librbd: enable librbd hook for shared RO cache

Signed-off-by: Dehao Shang <dehao.shang@intel.com>
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
6 years agoMerge pull request #28665 from mikechristie/wip-doc-mikechristie-update-igw-ansible
Jason Dillaman [Mon, 24 Jun 2019 21:33:45 +0000 (17:33 -0400)]
Merge pull request #28665 from mikechristie/wip-doc-mikechristie-update-igw-ansible

doc: update ceph ansible iscsi info

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #28721 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Mon, 24 Jun 2019 18:57:27 +0000 (11:57 -0700)]
Merge pull request #28721 from yuriw/wip-yuriw-crontab-master

qa/tests: changed the TO email to 'ceph-qa@ceph.io'

6 years agodoc: Add rbd-target-api ceph iscsi ansible vars 28665/head
Mike Christie [Thu, 20 Jun 2019 02:39:48 +0000 (21:39 -0500)]
doc: Add rbd-target-api ceph iscsi ansible vars

Signed-off-by: Mike Christie <mchristi@redhat.com>
6 years agodoc: Update rbd-target-gw behavior info
Mike Christie [Thu, 20 Jun 2019 02:13:51 +0000 (21:13 -0500)]
doc: Update rbd-target-gw behavior info

The lio setup and teardown functionality was moved from rbd-target-gw to
rbd-target-api in ceph-iscsi.

Signed-off-by: Mike Christie <mchristi@redhat.com>
6 years agodoc: Update ceph-ansible iscsigws settings
Mike Christie [Fri, 21 Jun 2019 00:37:20 +0000 (19:37 -0500)]
doc: Update ceph-ansible iscsigws settings

The ceph-ansible ceph-iscsi support does not allow setting up iscsi
objects. It must be done through gwcli like is done in the container
case. This drops the iscsi object related settings and admin info for
it.

Signed-off-by: Mike Christie <mchristi@redhat.com>
6 years agodoc: Fix ceph-ansible iscsigws command
Mike Christie [Thu, 20 Jun 2019 01:29:20 +0000 (20:29 -0500)]
doc: Fix ceph-ansible iscsigws command

Use the more standard --limit iscsigws argument instead of running the
playbook command on the iscsigws.yml file directly.

Signed-off-by: Mike Christie <mchristi@redhat.com>
6 years agodoc: Fix igw ceph ansible host group name
Mike Christie [Thu, 20 Jun 2019 01:27:28 +0000 (20:27 -0500)]
doc: Fix igw ceph ansible host group name

The ceph-ansible iscsi group name is iscsigws and not
ceph-iscsi-gws.

Signed-off-by: Mike Christie <mchristi@redhat.com>
6 years agoMerge PR #28624 into master
Sage Weil [Mon, 24 Jun 2019 18:15:16 +0000 (13:15 -0500)]
Merge PR #28624 into master

* refs/pull/28624/head:
mgr/zabbix: encode string for Python 3 compatibility

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #28658 into master
Sage Weil [Mon, 24 Jun 2019 18:14:42 +0000 (13:14 -0500)]
Merge PR #28658 into master

* refs/pull/28658/head:
qa/suites/rados/thrash: force normal pg log length with cache tiering

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #28662 into master
Sage Weil [Mon, 24 Jun 2019 18:13:48 +0000 (13:13 -0500)]
Merge PR #28662 into master

* refs/pull/28662/head:
osd: share curmap in handle_osd_ping

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28430 from cbodley/wip-40187
Casey Bodley [Mon, 24 Jun 2019 15:46:45 +0000 (11:46 -0400)]
Merge pull request #28430 from cbodley/wip-40187

cls/rgw: keep issuing bilog trim ops after reset

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #28667 from majianpeng/msg-async-comments
Jason Dillaman [Mon, 24 Jun 2019 15:34:36 +0000 (11:34 -0400)]
Merge pull request #28667 from majianpeng/msg-async-comments

msg/async: add comments for commit 294c41f18adada6ab.

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoqa/tests: changed the TO email to 'ceph-qa@ceph.io' 28721/head
Yuri Weinstein [Mon, 24 Jun 2019 14:25:15 +0000 (07:25 -0700)]
qa/tests: changed the TO email to 'ceph-qa@ceph.io'

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #28704 from joke-lee/sts_assume_policy
Casey Bodley [Mon, 24 Jun 2019 14:03:21 +0000 (10:03 -0400)]
Merge pull request #28704 from joke-lee/sts_assume_policy

rgw: Policy should be url_decode when assume_role

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agomsg/async: add comments for commit 294c41f18adada6ab. 28667/head
Jianpeng Ma [Mon, 24 Jun 2019 12:24:36 +0000 (20:24 +0800)]
msg/async: add comments for commit 294c41f18adada6ab.

Consider this case:
    send-thread                                 msg-work
                                            write_event()
                                             r = write_message()
connection->write_lock.lock()
if (.. && !write_in_progress) {
  write_in_progress = true;
  add external_event
}
connection->write_lock.unlock()
                                          connection->write_lock.lock()
                                          if (r > 0)
                                            break;
                                          } while ();
                                          write_in_progress = false;

For this case, we don't add external_event and in write_event we don't
check out_q whether empty rather than break.
This make msg-work never wake up again.
Fortunately, if write_message() > 0, in AsyncConnection::_try_send will
add an EVENT_WRITEABLE to wake up msg-work. So bug can't occur.

I add comment to descript this and hope get the better method to fix
this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #28709 from tchaikov/wip-seastar
Kefu Chai [Mon, 24 Jun 2019 08:11:46 +0000 (16:11 +0800)]
Merge pull request #28709 from tchaikov/wip-seastar

seasetar: pick up the latest seastar

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoseasetar: pick up the latest seastar 28709/head
Kefu Chai [Mon, 24 Jun 2019 04:56:35 +0000 (12:56 +0800)]
seasetar: pick up the latest seastar

couple noticeable changes

* use dpdk v19.05, please note the older version of dpdk might not
  work, for instance dpdk v18.11 does not compile with the latest
  seastar master HEAD
* future cleanups

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28707 from majianpeng/perf-async-msgr-remove-unsued-header
Kefu Chai [Mon, 24 Jun 2019 02:58:34 +0000 (10:58 +0800)]
Merge pull request #28707 from majianpeng/perf-async-msgr-remove-unsued-header

test/crimson/perf_async_msgr: remove unsued header file.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson/perf_async_msgr: remove unsued header file. 28707/head
Jianpeng Ma [Thu, 20 Jun 2019 02:26:59 +0000 (10:26 +0800)]
test/crimson/perf_async_msgr: remove unsued header file.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #28684 from tchaikov/wip-silence-warnings
Kefu Chai [Sun, 23 Jun 2019 02:13:01 +0000 (10:13 +0800)]
Merge pull request #28684 from tchaikov/wip-silence-warnings

src/: silence GCC warnings

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #28677 from liewegas/wip-recovery-nvme
Kefu Chai [Sat, 22 Jun 2019 17:56:42 +0000 (01:56 +0800)]
Merge pull request #28677 from liewegas/wip-recovery-nvme

osd: add hdd and ssd variants for osd_recovery_max_active

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
6 years agorgw, Policy should be url_decode when assume_role 28704/head
yuliyang [Sat, 22 Jun 2019 06:58:31 +0000 (14:58 +0800)]
rgw, Policy should be url_decode when assume_role

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #17619 from liuchang0812/wip-ec-below-min-size
Kefu Chai [Sat, 22 Jun 2019 04:58:55 +0000 (12:58 +0800)]
Merge pull request #17619 from liuchang0812/wip-ec-below-min-size

osd: allow EC PGs to do recovery below min_size

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28697 from cbodley/wip-qa-rgw-swift-skip-client
Casey Bodley [Fri, 21 Jun 2019 19:52:36 +0000 (15:52 -0400)]
Merge pull request #28697 from cbodley/wip-qa-rgw-swift-skip-client

qa/rgw: fix swift warning message

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoqa/rgw: fix swift warning message 28697/head
Casey Bodley [Fri, 21 Jun 2019 19:18:55 +0000 (15:18 -0400)]
qa/rgw: fix swift warning message

  File "/home/teuthworker/src/github.com_ceph_ceph_master/qa/tasks/swift.py", line 245, in task
    log.warning('Swift tests cannot run on rhel 7.6+, skipping client {client}'.format(client))
KeyError: 'client'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28657 from dillaman/wip-40435
Mykola Golub [Fri, 21 Jun 2019 17:24:52 +0000 (20:24 +0300)]
Merge pull request #28657 from dillaman/wip-40435

rbd: use the ordered throttle for the export action

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #28567 into master
Sage Weil [Fri, 21 Jun 2019 13:38:39 +0000 (08:38 -0500)]
Merge PR #28567 into master

* refs/pull/28567/head:
Revert "mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num"

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28674 from tchaikov/wip-doc/crimson
Kefu Chai [Fri, 21 Jun 2019 11:18:11 +0000 (19:18 +0800)]
Merge pull request #28674 from tchaikov/wip-doc/crimson

doc/dev: add crimson.rst

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #28462 from myoungwon/wip-doc-dedup
Kefu Chai [Fri, 21 Jun 2019 11:13:44 +0000 (19:13 +0800)]
Merge pull request #28462 from myoungwon/wip-doc-dedup

doc: add a deduplication document

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26251 from majianpeng/add-new-op-create
Kefu Chai [Fri, 21 Jun 2019 08:10:37 +0000 (16:10 +0800)]
Merge pull request #26251 from majianpeng/add-new-op-create

os/objectstore: add new op OP_CREATE for create a new object.

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc: add a deduplication document 28462/head
myoungwon oh [Fri, 7 Jun 2019 10:07:05 +0000 (19:07 +0900)]
doc: add a deduplication document

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
6 years agodoc/dev: add crimson.rst 28674/head
Kefu Chai [Thu, 20 Jun 2019 11:27:09 +0000 (19:27 +0800)]
doc/dev: add crimson.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest: Replace deprecated TYPED_TEST_CASE with TYPED_TEST_SUITE 28684/head
Adam C. Emerson [Tue, 18 Jun 2019 17:08:18 +0000 (13:08 -0400)]
test: Replace deprecated TYPED_TEST_CASE with TYPED_TEST_SUITE

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorgw: Fix pessimizing move
Adam C. Emerson [Mon, 17 Jun 2019 17:50:57 +0000 (13:50 -0400)]
rgw: Fix pessimizing move

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoclient,rbd,mon: Fix signed compare warnings
Adam C. Emerson [Mon, 17 Jun 2019 17:50:07 +0000 (13:50 -0400)]
client,rbd,mon: Fix signed compare warnings

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agotest/simple_spin: Explicitly wait for futures from async
Adam C. Emerson [Thu, 2 May 2019 18:18:55 +0000 (14:18 -0400)]
test/simple_spin: Explicitly wait for futures from async

Rather than count on implicitly blocking destruct.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoOSD: Initialize pool and recovery_state in the order they are defined
Adam C. Emerson [Thu, 2 May 2019 16:48:44 +0000 (12:48 -0400)]
OSD: Initialize pool and recovery_state in the order they are defined

Currently we call get_pool on the PeeringState before the PeeringState
has been initialized.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorbd: Remove unused capture
Adam C. Emerson [Thu, 2 May 2019 16:42:27 +0000 (12:42 -0400)]
rbd: Remove unused capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoimmutable_object_cache: Remove unused capture
Adam C. Emerson [Thu, 2 May 2019 16:41:48 +0000 (12:41 -0400)]
immutable_object_cache: Remove unused capture

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoimmutable_object_cache: Remove pessimizing moves
Adam C. Emerson [Thu, 2 May 2019 16:41:16 +0000 (12:41 -0400)]
immutable_object_cache: Remove pessimizing moves

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoosd: add hdd and ssd variants for osd_recovery_max_active 28677/head
Sage Weil [Thu, 20 Jun 2019 15:50:13 +0000 (10:50 -0500)]
osd: add hdd and ssd variants for osd_recovery_max_active

Semi-arbitrarily set the SSD max to 10 (instead of 3).  This should be
tuned based on some real data.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28676 from tchaikov/wip-stop.sh-with-crimson
Kefu Chai [Thu, 20 Jun 2019 19:55:05 +0000 (03:55 +0800)]
Merge pull request #28676 from tchaikov/wip-stop.sh-with-crimson

stop.sh: add --crimson option

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28204 from dzafman/wip-39555
Neha Ojha [Thu, 20 Jun 2019 18:12:10 +0000 (11:12 -0700)]
Merge pull request #28204 from dzafman/wip-39555

mon: Improve health status for backfill_toofull and recovery_toofull

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #28663 into master
Patrick Donnelly [Thu, 20 Jun 2019 18:09:37 +0000 (11:09 -0700)]
Merge PR #28663 into master

* refs/pull/28663/head:
cephfs-shell: use consistent naming for paths
cephfs-shell: remove unnecessary instances of to_bytes
cephfs-shell: refactor list_items
pybind/cephfs: improve user-friendliness of DirResult
pybind/cephfs: avoid unicode check

Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #28561 into master
Patrick Donnelly [Thu, 20 Jun 2019 18:09:01 +0000 (11:09 -0700)]
Merge PR #28561 into master

* refs/pull/28561/head:
vstart_runner: upgrade the check for commands to be run as another user
vstart_runner: split unicode arguments into lists

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28049 from theanalyst/rgw-lc-bl-fix
Casey Bodley [Thu, 20 Jun 2019 17:30:51 +0000 (13:30 -0400)]
Merge pull request #28049 from theanalyst/rgw-lc-bl-fix

rgw_lc: use a new bl while encoding RGW_ATTR_LC

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #28276 from liuchang0812/multi-site-request-forward
Casey Bodley [Thu, 20 Jun 2019 17:23:47 +0000 (13:23 -0400)]
Merge pull request #28276 from liuchang0812/multi-site-request-forward

rgw: forwarded some requests to master zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26167 from yaozongyou/rgw-lc-add-more-check
Casey Bodley [Thu, 20 Jun 2019 17:15:57 +0000 (13:15 -0400)]
Merge pull request #26167 from yaozongyou/rgw-lc-add-more-check

rgw: check lc objs not empty after fetching

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #26538 from zhangsw/feature-rgw-object-lock
Casey Bodley [Thu, 20 Jun 2019 17:14:51 +0000 (13:14 -0400)]
Merge pull request #26538 from zhangsw/feature-rgw-object-lock

rgw: add S3 object lock feature to support object worm

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #26351 from linuxbox2/wip-rgw-gcretire
Casey Bodley [Thu, 20 Jun 2019 17:13:57 +0000 (13:13 -0400)]
Merge pull request #26351 from linuxbox2/wip-rgw-gcretire

rgw: perfcounters: add gc retire counter

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #28527 from tianshan/fix_ret
Casey Bodley [Thu, 20 Jun 2019 17:12:33 +0000 (13:12 -0400)]
Merge pull request #28527 from tianshan/fix_ret

rgw: fix miss get ret in STSService::storeARN

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agoMerge pull request #28327 from linuxbox2/wip-rgw-email
Casey Bodley [Thu, 20 Jun 2019 17:12:10 +0000 (13:12 -0400)]
Merge pull request #28327 from linuxbox2/wip-rgw-email

rgw: conditionally allow non-unique email addresses

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28308 from joke-lee/usage_dump
Casey Bodley [Thu, 20 Jun 2019 17:11:28 +0000 (13:11 -0400)]
Merge pull request #28308 from joke-lee/usage_dump

rgw: usage dump_unsigned instead dump_int

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #28172 from joke-lee/rgw-sts-bad-token
Casey Bodley [Thu, 20 Jun 2019 17:10:31 +0000 (13:10 -0400)]
Merge pull request #28172 from joke-lee/rgw-sts-bad-token

rgw: fix rgw crash and set correct error code

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
6 years agovstart_runner: upgrade the check for commands to be run as another user 28561/head
Rishabh Dave [Thu, 20 Jun 2019 16:05:38 +0000 (21:35 +0530)]
vstart_runner: upgrade the check for commands to be run as another user

Rectify the condition that checks if command to be issued as another
user using sudo is issued as a single argument after "-c".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28539 from dillaman/wip-40072
Mykola Golub [Thu, 20 Jun 2019 16:02:14 +0000 (19:02 +0300)]
Merge pull request #28539 from dillaman/wip-40072

librbd: improve journal performance to match expected degradation

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agostop.sh: add --crimson option 28676/head
Kefu Chai [Thu, 20 Jun 2019 14:15:18 +0000 (22:15 +0800)]
stop.sh: add --crimson option

so we can pkill crimson-osd if this option is specified

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28655 from dengchj/multisite_doc
Casey Bodley [Thu, 20 Jun 2019 13:36:34 +0000 (09:36 -0400)]
Merge pull request #28655 from dengchj/multisite_doc

doc: fixed --read-only argument value in multisite doc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge PR #28194 into master
Patrick Donnelly [Thu, 20 Jun 2019 13:27:04 +0000 (06:27 -0700)]
Merge PR #28194 into master

* refs/pull/28194/head:
test_volume_client: declare only one default for python version
test_volume_client: don't shadow class variable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: use consistent naming for paths 28663/head
Patrick Donnelly [Wed, 19 Jun 2019 19:46:26 +0000 (12:46 -0700)]
cephfs-shell: use consistent naming for paths

And some small changes to make some commands take variable arguments and fix
defaults.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: remove unnecessary instances of to_bytes
Patrick Donnelly [Wed, 19 Jun 2019 04:12:33 +0000 (21:12 -0700)]
cephfs-shell: remove unnecessary instances of to_bytes

cephfs binding already automatically converts paths and some arguments to
bytes.

Fixes: http://tracker.ceph.com/issues/40455
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: refactor list_items
Patrick Donnelly [Wed, 19 Jun 2019 03:57:29 +0000 (20:57 -0700)]
cephfs-shell: refactor list_items

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/cephfs: improve user-friendliness of DirResult
Patrick Donnelly [Wed, 19 Jun 2019 03:50:28 +0000 (20:50 -0700)]
pybind/cephfs: improve user-friendliness of DirResult

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/cephfs: avoid unicode check
Patrick Donnelly [Wed, 19 Jun 2019 03:38:26 +0000 (20:38 -0700)]
pybind/cephfs: avoid unicode check

py3 does not have the unicode built-in. Instead, simply try to do the encoding
and catch failures appropriately. If it quacks like a duck...

(Note that cython apparently cheats and allows the unicode check but this is
simpler.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28638 into master
Patrick Donnelly [Thu, 20 Jun 2019 13:08:47 +0000 (06:08 -0700)]
Merge PR #28638 into master

* refs/pull/28638/head:
qa: elide python version config
cephfs-shell: assert python3

Reviewed-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28498 from kamoltat/wip-mgr-progress-add-event-osd-marked-in
Kefu Chai [Thu, 20 Jun 2019 09:30:17 +0000 (17:30 +0800)]
Merge pull request #28498 from kamoltat/wip-mgr-progress-add-event-osd-marked-in

mgr/progress: Add recovery event when OSD marked in

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #28564 from ceph/store_statfs-log
Kefu Chai [Thu, 20 Jun 2019 09:26:30 +0000 (17:26 +0800)]
Merge pull request #28564 from ceph/store_statfs-log

log: fix store_statfs log line

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28621 from Aran85/fix-ec-rf
Kefu Chai [Thu, 20 Jun 2019 09:21:38 +0000 (17:21 +0800)]
Merge pull request #28621 from Aran85/fix-ec-rf

osd: accident of rollforward may need to mark pglog dirty

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agoMerge pull request #28656 from dvanders/zstd-upgrade
Kefu Chai [Thu, 20 Jun 2019 09:19:09 +0000 (17:19 +0800)]
Merge pull request #28656 from dvanders/zstd-upgrade

zstd: upgrade to v1.4.0

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/zabbix: encode string for Python 3 compatibility 28624/head
Nathan Cutler [Tue, 18 Jun 2019 08:10:30 +0000 (10:10 +0200)]
mgr/zabbix: encode string for Python 3 compatibility

Credits to Jochem Kuijpers for the fix.

Fixes: https://tracker.ceph.com/issues/36318
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agotest_volume_client: declare only one default for python version 28194/head
Rishabh Dave [Sat, 18 May 2019 14:05:42 +0000 (16:05 +0200)]
test_volume_client: declare only one default for python version

Fixes: http://tracker.ceph.com/issues/40460
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agovstart_runner: split unicode arguments into lists
Rishabh Dave [Fri, 14 Jun 2019 18:14:25 +0000 (23:44 +0530)]
vstart_runner: split unicode arguments into lists

Split not just string arguments but also unicode arguments into lists.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge pull request #28570 from xiexingguo/wip-objecter-direct-spgid
Xie Xingguo [Thu, 20 Jun 2019 03:15:44 +0000 (11:15 +0800)]
Merge pull request #28570 from xiexingguo/wip-objecter-direct-spgid

osdc/Objecter: _calc_target - inline spgid

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc: fixed --read-only argument value in multisite doc 28655/head
Chenjiong Deng [Wed, 19 Jun 2019 10:17:43 +0000 (18:17 +0800)]
doc: fixed --read-only argument value in multisite doc

Fixes: https://tracker.ceph.com/issues/40458
Signed-off-by: Chenjiong Deng <dengchenjiong@umcloud.com>
6 years agoMerge pull request #28568 from xiexingguo/wip-off-by-one-max-osd
Xie Xingguo [Thu, 20 Jun 2019 02:41:21 +0000 (10:41 +0800)]
Merge pull request #28568 from xiexingguo/wip-off-by-one-max-osd

mon/OSDMonitor: fix off-by-one when updating new_last_in_change

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28629 from xiexingguo/wip-osd-df-by-pool-name
Xie Xingguo [Thu, 20 Jun 2019 02:40:40 +0000 (10:40 +0800)]
Merge pull request #28629 from xiexingguo/wip-osd-df-by-pool-name

mgr, osd: 'osd df' by pool

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomon: Improve health status for backfill_toofull and recovery_toofull 28204/head
David Zafman [Wed, 22 May 2019 01:29:30 +0000 (18:29 -0700)]
mon: Improve health status for backfill_toofull and recovery_toofull

Treat backfull_toofull as a warning condition because it can resolve itself.
Includes test case for PG_BACKFILL_FULL
Includes test case for recovery_toofull / PG_RECOVERY_FULL

Fixes: https://tracker.ceph.com/issues/39555
Signed-off-by: David Zafman <dzafman@redhat.com>
6 years agoqa: elide python version config 28638/head
Patrick Donnelly [Tue, 18 Jun 2019 22:14:22 +0000 (15:14 -0700)]
qa: elide python version config

This test doesn't actually use the config and cephfs-shell is py3 only.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocephfs-shell: assert python3
Patrick Donnelly [Tue, 18 Jun 2019 22:11:58 +0000 (15:11 -0700)]
cephfs-shell: assert python3

There's little reason to support this new tool with python2.

Fixes: http://tracker.ceph.com/issues/40418
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28553 from trociny/wip-40071
Jason Dillaman [Thu, 20 Jun 2019 00:21:37 +0000 (20:21 -0400)]
Merge pull request #28553 from trociny/wip-40071

librbd: mirror image enable/disable should enable/disable journaling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>