]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
7 years agomds: don't delay processing completed requests in replay queue
Yan, Zheng [Mon, 20 Nov 2017 00:29:12 +0000 (08:29 +0800)]
mds: don't delay processing completed requests in replay queue

Completed requests can also be in replay queue, they need to be processed
(treated as lookup request) in clientreplay stage. MDS will be stuck at
clientreplay stage if it delays processing requests of this type.

the bug was introduced by commit 0afbc033
(mds: don't rdlock locks in replica object while auth mds is recovering)

Fixes: http://tracker.ceph.com/issues/22163
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agoMerge pull request #18776 from JianyuLi/joa-mul-mds
Yan, Zheng [Sun, 19 Nov 2017 12:47:58 +0000 (20:47 +0800)]
Merge pull request #18776 from JianyuLi/joa-mul-mds

MDS: make popular counter decay at proper rate

7 years agoMerge pull request #18784 from taodd/client-bugfix
Yan, Zheng [Sun, 19 Nov 2017 12:47:09 +0000 (20:47 +0800)]
Merge pull request #18784 from taodd/client-bugfix

Client:Fix readdir bug

7 years agoMerge pull request #18786 from taodd/master
Yan, Zheng [Sun, 19 Nov 2017 12:46:22 +0000 (20:46 +0800)]
Merge pull request #18786 from taodd/master

Client: setattr should drop "Fs" rather than "As" for mtime and size

7 years agoMerge pull request #18836 from taodd/cephfs-hadoop
Yan, Zheng [Sun, 19 Nov 2017 12:44:43 +0000 (20:44 +0800)]
Merge pull request #18836 from taodd/cephfs-hadoop

MDS: correct the error msg when init mon client

7 years agoMerge pull request #18892 from taodd/client-bugfix2
Yan, Zheng [Sun, 19 Nov 2017 12:43:39 +0000 (20:43 +0800)]
Merge pull request #18892 from taodd/client-bugfix2

MDS: add null check before we push_back "onfinish"

7 years agoMerge pull request #18893 from taodd/mds-inotable-cleanup
Yan, Zheng [Sun, 19 Nov 2017 12:43:03 +0000 (20:43 +0800)]
Merge pull request #18893 from taodd/mds-inotable-cleanup

mds: simplify the code logic in replay_alloc_ids

7 years agoMerge pull request #18904 from taodd/mds-sesseionmap-cleanup
Yan, Zheng [Sun, 19 Nov 2017 12:40:48 +0000 (20:40 +0800)]
Merge pull request #18904 from taodd/mds-sesseionmap-cleanup

mds: get rid of the "if" check which is unnecessary inside a loop

7 years agoMerge pull request #19003 from dillaman/wip-22158
Mykola Golub [Sat, 18 Nov 2017 16:07:48 +0000 (18:07 +0200)]
Merge pull request #19003 from dillaman/wip-22158

librbd: set deleted parent pointer to null

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agolibrbd: set deleted parent pointer to null
Jason Dillaman [Sat, 18 Nov 2017 13:30:27 +0000 (08:30 -0500)]
librbd: set deleted parent pointer to null

Fixes: http://tracker.ceph.com/issues/22158
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18963 from amitkumar50/test-cov-test-9
Kefu Chai [Sat, 18 Nov 2017 13:14:16 +0000 (21:14 +0800)]
Merge pull request #18963 from amitkumar50/test-cov-test-9

test: Incorrect conversion to double

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18901 from jan--f/jan-crushtool-decompile-missing-ids
Kefu Chai [Sat, 18 Nov 2017 13:12:23 +0000 (21:12 +0800)]
Merge pull request #18901 from jan--f/jan-crushtool-decompile-missing-ids

tools/crushtool: skip device id if no name exists

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18939 from majianpeng/bluestore-reap-collection
Kefu Chai [Sat, 18 Nov 2017 13:10:52 +0000 (21:10 +0800)]
Merge pull request #18939 from majianpeng/bluestore-reap-collection

os/bluestore: fix the wrong usage for map_any

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #18913 from yaozongyou/wip-rados-add-touch-command
Kefu Chai [Sat, 18 Nov 2017 13:10:16 +0000 (21:10 +0800)]
Merge pull request #18913 from yaozongyou/wip-rados-add-touch-command

tools/rados: add touch command to change object modification time

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18848 from jcsp/wip-22098
Kefu Chai [Sat, 18 Nov 2017 13:08:29 +0000 (21:08 +0800)]
Merge pull request #18848 from jcsp/wip-22098

mgr/dashboard: fix audit log loading

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18847 from jcsp/wip-mgr-mon-upness
Kefu Chai [Sat, 18 Nov 2017 13:05:50 +0000 (21:05 +0800)]
Merge pull request #18847 from jcsp/wip-mgr-mon-upness

mgr/dashboard: show warnings if data is out of date or mons are down

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #18484 from Liuchang0812/wip-mgr-request-osd-metadata
Kefu Chai [Sat, 18 Nov 2017 13:04:37 +0000 (21:04 +0800)]
Merge pull request #18484 from Liuchang0812/wip-mgr-request-osd-metadata

mgr: request daemon's metadata when receiving a report from an unknown server

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18976 from yahooguntu/patch-1
Kefu Chai [Sat, 18 Nov 2017 12:57:56 +0000 (20:57 +0800)]
Merge pull request #18976 from yahooguntu/patch-1

udev: Fix typo in udev OSD rules file

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18944 from tchaikov/wip-dpdk-spdk
Kefu Chai [Sat, 18 Nov 2017 05:15:52 +0000 (13:15 +0800)]
Merge pull request #18944 from tchaikov/wip-dpdk-spdk

cmake: WITH_SPDK=ON by default

Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agomsg/async: rebase msg/async/dpdk to spdk/dpdk
chunmei [Mon, 13 Nov 2017 19:19:23 +0000 (11:19 -0800)]
msg/async: rebase msg/async/dpdk to spdk/dpdk

Signed-off-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agocmake: use BuildDPDK if libdpdk not found
Kefu Chai [Fri, 17 Nov 2017 05:47:52 +0000 (13:47 +0800)]
cmake: use BuildDPDK if libdpdk not found

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: add rte_mempool_{ring,stack} to Finddpdk.cmake
Kefu Chai [Tue, 10 Jan 2017 07:14:01 +0000 (15:14 +0800)]
cmake: add rte_mempool_{ring,stack} to Finddpdk.cmake

* also refactor it a little bit

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: BuildDPDK: do not build kernel modules
Kefu Chai [Wed, 15 Nov 2017 18:10:25 +0000 (02:10 +0800)]
cmake: BuildDPDK: do not build kernel modules

see also http://pkgs.fedoraproject.org/cgit/rpms/dpdk.git/tree/dpdk.spec

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: remove duplicated spdk linkage
Kefu Chai [Wed, 15 Nov 2017 13:15:08 +0000 (21:15 +0800)]
cmake: remove duplicated spdk linkage

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: refactor dpdk related code
Kefu Chai [Wed, 15 Nov 2017 12:57:56 +0000 (20:57 +0800)]
cmake: refactor dpdk related code

* move the check of `USE_CRYPTOPP` to $top_srcdir/CMakeLists.txt
* remove reference of DPDK_LIBRARY, it's defined nowhere
* move the dpdk code to a single place

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18988 from ceph/wip-rm22154
Andrew Schoen [Fri, 17 Nov 2017 20:36:42 +0000 (14:36 -0600)]
Merge pull request #18988 from ceph/wip-rm22154

ceph-disk: create deprecation warnings

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agodoc/ceph-volume create a migration section to help users coming from ceph-disk
Alfredo Deza [Fri, 17 Nov 2017 18:10:29 +0000 (13:10 -0500)]
doc/ceph-volume create a migration section to help users coming from ceph-disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-disk add deprecation warnings in favor of ceph-volume
Alfredo Deza [Fri, 17 Nov 2017 18:01:14 +0000 (13:01 -0500)]
ceph-disk add deprecation warnings in favor of ceph-volume

Signed-off-by: Alfredo Deza <adeza@redhat.com>
Fixes: http://tracker.ceph.com/issues/22154
7 years agoMerge pull request #18917 from ZVampirEM77/wip-em-copyobjdata-cleanup
Yuri Weinstein [Fri, 17 Nov 2017 17:55:29 +0000 (09:55 -0800)]
Merge pull request #18917 from ZVampirEM77/wip-em-copyobjdata-cleanup

rgw: cleanup unused parameters in RGWRados::copy_obj_data

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoudev: Fix typo in udev OSD rules file
Mitch Birti [Thu, 16 Nov 2017 22:27:20 +0000 (16:27 -0600)]
udev: Fix typo in udev OSD rules file

The rule for lockbox partitions had an invalid UUID for the "change" action.

Signed-off-by: Mitch Birti <yahooguntu@gmail.com>
7 years agoMerge pull request #18922 from Synesis-LLC/fix-22122
Yuri Weinstein [Fri, 17 Nov 2017 16:49:31 +0000 (08:49 -0800)]
Merge pull request #18922 from Synesis-LLC/fix-22122

rgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18956 from Jeegn-Chen/wip-issue-22129
Yuri Weinstein [Fri, 17 Nov 2017 16:48:37 +0000 (08:48 -0800)]
Merge pull request #18956 from Jeegn-Chen/wip-issue-22129

rgw: AWS v4 authorization work when INIT_MULTIPART is chunked

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge pull request #18984 from ceph/wip-cv-unittest-fix
Andrew Schoen [Fri, 17 Nov 2017 15:38:08 +0000 (09:38 -0600)]
Merge pull request #18984 from ceph/wip-cv-unittest-fix

ceph-volume tests.devices.lvm prepare isn't bluestore specific anymore

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #18968 from joscollin/wip-rgwadmin-rewrite
Casey Bodley [Fri, 17 Nov 2017 15:25:47 +0000 (10:25 -0500)]
Merge pull request #18968 from joscollin/wip-rgwadmin-rewrite

rgw: fix rewrite options usage text

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17797 from amitkumar50/cov-msg-3
Sage Weil [Fri, 17 Nov 2017 14:52:50 +0000 (08:52 -0600)]
Merge pull request #17797 from amitkumar50/cov-msg-3

msg: Initialize lkey,bound,port_cnt,num_chunk,gid_idx

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17874 from ShowingCloud/master
Sage Weil [Fri, 17 Nov 2017 14:51:07 +0000 (08:51 -0600)]
Merge pull request #17874 from ShowingCloud/master

ceph-bluestore-tool: check if bdev is empty on 'bluefs-bdev-expand'

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18090 from amitkumar50/test-cov-8
Sage Weil [Fri, 17 Nov 2017 14:49:59 +0000 (08:49 -0600)]
Merge pull request #18090 from amitkumar50/test-cov-8

test: checking negative returns from creat()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoceph-volume tests.devices.lvm prepare isn't bluestore specific anymore
Alfredo Deza [Fri, 17 Nov 2017 13:41:24 +0000 (08:41 -0500)]
ceph-volume tests.devices.lvm prepare isn't bluestore specific anymore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agocmake: WITH_SPDK=ON by default
Kefu Chai [Wed, 15 Nov 2017 12:57:25 +0000 (20:57 +0800)]
cmake: WITH_SPDK=ON by default

Signed-off-by: wanjun.lp <wanjun.lp@alibaba-inc.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agorpm,deb: add cunit1 as build dependency
Kefu Chai [Wed, 15 Nov 2017 12:56:12 +0000 (20:56 +0800)]
rpm,deb: add cunit1 as build dependency

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: build spdk/dpdk in cmake modules
Kefu Chai [Wed, 15 Nov 2017 12:54:46 +0000 (20:54 +0800)]
cmake: build spdk/dpdk in cmake modules

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: wanjun.lp <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agorgw: fix rewrite options usage text
Jos Collin [Thu, 16 Nov 2017 11:48:50 +0000 (17:18 +0530)]
rgw: fix rewrite options usage text

Fixed rewrite options usage text properly.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18950 from sknorr/fix-rn-typos
Jos Collin [Fri, 17 Nov 2017 04:53:12 +0000 (10:23 +0530)]
Merge pull request #18950 from sknorr/fix-rn-typos

doc: Fix typos in release notes

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17977 from cbodley/wip-rgw-beast-qa
Matt Benjamin [Thu, 16 Nov 2017 20:14:28 +0000 (15:14 -0500)]
Merge pull request #17977 from cbodley/wip-rgw-beast-qa

qa/rgw: add beast frontend to some rgw suites

7 years agoMerge PR #18600 into master
Patrick Donnelly [Thu, 16 Nov 2017 19:47:05 +0000 (11:47 -0800)]
Merge PR #18600 into master

* refs/pull/18600/head:
MDSMonitor: only clog changes to active

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
7 years agogithubmap: update contributors
Patrick Donnelly [Thu, 16 Nov 2017 19:47:05 +0000 (11:47 -0800)]
githubmap: update contributors

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18774 into master
Patrick Donnelly [Thu, 16 Nov 2017 19:45:59 +0000 (11:45 -0800)]
Merge PR #18774 into master

* refs/pull/18774/head:
mds: fix CDir::log_mark_dirty()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18887 from dillaman/wip-20789
Mykola Golub [Thu, 16 Nov 2017 17:32:42 +0000 (19:32 +0200)]
Merge pull request #18887 from dillaman/wip-20789

librbd: compare and write against a clone can result in failure

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18924 from ceph/wip-cv-filestore-devices
Andrew Schoen [Thu, 16 Nov 2017 16:47:14 +0000 (10:47 -0600)]
Merge pull request #18924 from ceph/wip-cv-filestore-devices

ceph-volume: allow using a device or partition for `lvm --data`

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #18700 from tianshan/fix_cls_bucket_head
Yuri Weinstein [Thu, 16 Nov 2017 16:31:16 +0000 (08:31 -0800)]
Merge pull request #18700 from tianshan/fix_cls_bucket_head

rgw: fix cls_bucket_head result order consistency

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18926 from theanalyst/wip-mp-jewel-fix
Yuri Weinstein [Thu, 16 Nov 2017 16:30:52 +0000 (08:30 -0800)]
Merge pull request #18926 from theanalyst/wip-mp-jewel-fix

rgw: set sync_from_all as true when no value is seen

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoceph-volume tests.functional create a common playbook directory for setups
Alfredo Deza [Thu, 16 Nov 2017 13:50:34 +0000 (08:50 -0500)]
ceph-volume tests.functional create a common playbook directory for setups

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume lvm prepare can accept devices for --data
Alfredo Deza [Tue, 14 Nov 2017 16:01:48 +0000 (11:01 -0500)]
doc/ceph-volume lvm prepare can accept devices for --data

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add setup playbook for xenial filestore
Alfredo Deza [Tue, 14 Nov 2017 13:42:27 +0000 (08:42 -0500)]
ceph-volume tests.functional add setup playbook for xenial filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add data device and journal to xenial filestore
Alfredo Deza [Tue, 14 Nov 2017 13:42:02 +0000 (08:42 -0500)]
ceph-volume tests.functional add data device and journal to xenial filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add setup playbook for xenial bluestore
Alfredo Deza [Tue, 14 Nov 2017 13:40:37 +0000 (08:40 -0500)]
ceph-volume tests.functional add setup playbook for xenial bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add raw data device to xenial bluestore
Alfredo Deza [Tue, 14 Nov 2017 13:40:18 +0000 (08:40 -0500)]
ceph-volume tests.functional add raw data device to xenial bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional tox.ini addition of setup playbook for partitions
Alfredo Deza [Tue, 14 Nov 2017 13:38:23 +0000 (08:38 -0500)]
ceph-volume tests.functional tox.ini addition of setup playbook for partitions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add raw data device to centos7 bluestore
Alfredo Deza [Tue, 14 Nov 2017 13:37:17 +0000 (08:37 -0500)]
ceph-volume tests.functional add raw data device to centos7 bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add setup playbook for centos7 bluestore
Alfredo Deza [Tue, 14 Nov 2017 13:36:36 +0000 (08:36 -0500)]
ceph-volume tests.functional add setup playbook for centos7 bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add setup playbook for centos7 filestore
Alfredo Deza [Tue, 14 Nov 2017 13:35:59 +0000 (08:35 -0500)]
ceph-volume tests.functional add setup playbook for centos7 filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add raw device to centos7 filestore
Alfredo Deza [Tue, 14 Nov 2017 13:35:42 +0000 (08:35 -0500)]
ceph-volume tests.functional add raw device to centos7 filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.common update --data flag to reflect device acceptance
Alfredo Deza [Mon, 13 Nov 2017 19:29:32 +0000 (14:29 -0500)]
ceph-volume lvm.common update --data flag to reflect device acceptance

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #18969 from vshankar/rbd-mirror-image-map-state-transition
Jason Dillaman [Thu, 16 Nov 2017 13:36:23 +0000 (08:36 -0500)]
Merge pull request #18969 from vshankar/rbd-mirror-image-map-state-transition

rbd-mirror: use next transition state to check transition completeness

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18960 from Liuchang0812/mailmap-update
Sage Weil [Thu, 16 Nov 2017 13:15:08 +0000 (07:15 -0600)]
Merge pull request #18960 from Liuchang0812/mailmap-update

.mailmap, .organizationmap: update JingChen, ZongyouYao, ShanchunLv's…

7 years agotest/librbd: disable compare and write if skipping partial discard
Jason Dillaman [Wed, 15 Nov 2017 13:24:50 +0000 (08:24 -0500)]
test/librbd: disable compare and write if skipping partial discard

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: refactor object write request state machines
Jason Dillaman [Thu, 9 Nov 2017 17:10:30 +0000 (12:10 -0500)]
librbd: refactor object write request state machines

Fixes: http://tracker.ceph.com/issues/20789
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: consolidate all object discard-related logic into single state machine
Jason Dillaman [Thu, 9 Nov 2017 15:24:08 +0000 (10:24 -0500)]
librbd: consolidate all object discard-related logic into single state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: simplify interface between object IO and copyup state machines
Jason Dillaman [Wed, 8 Nov 2017 17:31:28 +0000 (12:31 -0500)]
librbd: simplify interface between object IO and copyup state machines

The initial copyup was not receiving a write hint and the
code for hints was duplicated multiple times. Additionally,
the object map state should match the last executed write op.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: copyup state machine needs to handle empty write ops
Jason Dillaman [Thu, 9 Nov 2017 20:15:58 +0000 (15:15 -0500)]
librbd: copyup state machine needs to handle empty write ops

The compare-and-write object operation cannot be executed
concurrently within a copyup operation since the object might not
exist yet (if not performing a deep-copy).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: object cacher should re-use read state machine
Jason Dillaman [Tue, 7 Nov 2017 19:36:10 +0000 (14:36 -0500)]
librbd: object cacher should re-use read state machine

This adds support for sparse-reads and ensures all object reads
utilize a single, tested code path.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: refactor io::ObjectReadRequest
Jason Dillaman [Tue, 7 Nov 2017 17:24:44 +0000 (12:24 -0500)]
librbd: refactor io::ObjectReadRequest

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: default template parameter for C_SparseReadRequest
Jason Dillaman [Tue, 7 Nov 2017 19:17:25 +0000 (14:17 -0500)]
librbd: default template parameter for C_SparseReadRequest

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: reduce lock scope when assembling read results
Jason Dillaman [Tue, 7 Nov 2017 18:42:19 +0000 (13:42 -0500)]
librbd: reduce lock scope when assembling read results

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: ObjectReadRequest does not require buffer extents
Jason Dillaman [Tue, 7 Nov 2017 18:33:12 +0000 (13:33 -0500)]
librbd: ObjectReadRequest does not require buffer extents

The ReadResult wrapper requires the buffer extents to know
how to properly reconstruct the out buffer.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: templatize IO object request state machines
Jason Dillaman [Mon, 6 Nov 2017 23:35:42 +0000 (18:35 -0500)]
librbd: templatize IO object request state machines

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librados_test_stub: mocked remainder of IO ops used by librbd
Jason Dillaman [Sat, 11 Nov 2017 02:45:13 +0000 (21:45 -0500)]
test/librados_test_stub: mocked remainder of IO ops used by librbd

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librados_test_stub: simulate set_alloc_hint creating a non-existent file
Jason Dillaman [Fri, 10 Nov 2017 21:26:19 +0000 (16:26 -0500)]
test/librados_test_stub: simulate set_alloc_hint creating a non-existent file

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoFix typos in release notes
Stefan Knorr [Wed, 15 Nov 2017 16:55:33 +0000 (17:55 +0100)]
Fix typos in release notes

Signed-off-by: Stefan Knorr <sknorr@suse.de>
7 years agorbd-mirror: use next transition state to check transition completeness
Venky Shankar [Thu, 16 Nov 2017 11:57:36 +0000 (06:57 -0500)]
rbd-mirror: use next transition state to check transition completeness

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agotest: Incorrect conversion to double
amitkuma [Thu, 16 Nov 2017 12:00:21 +0000 (17:30 +0530)]
test: Incorrect conversion to double

Fixes the coverity issue:

CID 1417062 (#1 of 1): Result is not floating-point
(UNINTENDED_INTEGER_DIVISION)
integer_division: Dividing integer expressions 100 and temp
, and then converting the integer quotient to type double.
Any remainder, or fractional part of the quotient, is ignored.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #18952 from dillaman/wip-test-librbd
Mykola Golub [Thu, 16 Nov 2017 11:34:28 +0000 (13:34 +0200)]
Merge pull request #18952 from dillaman/wip-test-librbd

test/librbd: clean up for several mock function tests

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18947 from dillaman/wip-22131
Mykola Golub [Thu, 16 Nov 2017 11:32:46 +0000 (13:32 +0200)]
Merge pull request #18947 from dillaman/wip-22131

rbd-nbd: certain kernels may not discover resized block devices

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18909 from dillaman/wip-22120
Mykola Golub [Thu, 16 Nov 2017 11:30:18 +0000 (13:30 +0200)]
Merge pull request #18909 from dillaman/wip-22120

librbd: possible deadlock with synchronous maintenance operations

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18923 from dillaman/wip-21966
Mykola Golub [Thu, 16 Nov 2017 11:28:51 +0000 (13:28 +0200)]
Merge pull request #18923 from dillaman/wip-21966

librbd: prevent overflow of discard API result code

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agorgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc
Aleksei Gutikov [Tue, 14 Nov 2017 12:45:39 +0000 (15:45 +0300)]
rgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc

Call RGWRados::delete_bucket() from rgw_remove_bucket_bypass_gc()
instead of partial copy of code of RGWRados::delete_bucket().

Fix updating user stats after radosgw-admin bucket rm --purge-objects and --bypass-gc
Due to rgw_user(const std::string& s) was called incorrect version of rgw_bucket_sync_user_stats().

Fixes: http://tracker.ceph.com/issues/22122
Fixes: http://tracker.ceph.com/issues/19959
Signed-off-by: Aleksei Gutikov <aleksey.gutikov@synesis.ru>
7 years agoMerge pull request #18918 from ZVampirEM77/wip-em-rewrite-cmd
Jos Collin [Thu, 16 Nov 2017 04:55:32 +0000 (10:25 +0530)]
Merge pull request #18918 from ZVampirEM77/wip-em-rewrite-cmd

rgw: add rewrite cmd and options into radosgw-admin usage and doc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years ago.mailmap, .organizationmap: update JingChen, ZongyouYao, ShanchunLv's mailmap and...
Chang Liu [Thu, 16 Nov 2017 04:09:48 +0000 (12:09 +0800)]
.mailmap, .organizationmap: update JingChen, ZongyouYao, ShanchunLv's mailmap and affiliation

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agorgw: cleanup unused parameters in RGWRados::copy_obj_data
Enming Zhang [Tue, 14 Nov 2017 10:10:11 +0000 (18:10 +0800)]
rgw: cleanup unused parameters in RGWRados::copy_obj_data

src_obj, max_chunk_size, category and ptag are out
of use in RGWRados::copy_obj_data.

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agomgr: request daemon's metadata when receiving a report message from an unknown server
Chang Liu [Sat, 21 Oct 2017 15:35:47 +0000 (23:35 +0800)]
mgr: request daemon's metadata when receiving a report message from an unknown server

Fixes: http://tracker.ceph.com/issues/21687
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agorgw: add rewrite related cmd and parameter into radosgw-admin help info
Enming Zhang [Tue, 14 Nov 2017 11:37:53 +0000 (19:37 +0800)]
rgw: add rewrite related cmd and parameter into radosgw-admin help info

+ radosgw-admin object rewrite
+ radosgw-admin bucket rewrite
+ --min-rewrite-size
+ --max-rewrite-size
+ --min-rewrite-stripe-size

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
7 years agoMerge pull request #18808 from tchaikov/wip-qa-max-pg-per-osd
Josh Durgin [Thu, 16 Nov 2017 02:05:58 +0000 (18:05 -0800)]
Merge pull request #18808 from tchaikov/wip-qa-max-pg-per-osd

qa: do not wait for down/out osd for pg convergence

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #15788 from vshankar/mirror-ha-poolwatcher-policy
Jason Dillaman [Thu, 16 Nov 2017 01:24:32 +0000 (20:24 -0500)]
Merge pull request #15788 from vshankar/mirror-ha-poolwatcher-policy

rbd-mirror: track images in policy map in support of A/A

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agorgw: AWS v4 authorization work when INIT_MULTIPART is chunked
Jeegn Chen [Thu, 16 Nov 2017 01:12:24 +0000 (09:12 +0800)]
rgw: AWS v4 authorization work when INIT_MULTIPART is chunked

Add RGW_OP_INIT_MULTIPART as a the single chunk special case
like RGW_OP_COMPLETE_MULTIPART.

Fixes: http://tracker.ceph.com/issues/22129
Signed-off-by: Jeegn Chen <jeegnchen@gmail.com>
7 years agoMerge pull request #18953 from cbodley/wip-22139
Casey Bodley [Wed, 15 Nov 2017 23:24:59 +0000 (18:24 -0500)]
Merge pull request #18953 from cbodley/wip-22139

common: fix BoundedKeyCounter const_pointer_iterator

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agocommon: fix BoundedKeyCounter const_pointer_iterator
Casey Bodley [Wed, 15 Nov 2017 21:03:00 +0000 (16:03 -0500)]
common: fix BoundedKeyCounter const_pointer_iterator

with libc++, clang fails to compile a call to:

  vector::assign(const_pointer_iterator, const_pointer_iterator)

because const_pointer_iterator does not satisfy the InputIterator
concept. added the necessary typedefs for value_type and reference
to reflect the pointer type

Fixes: http://tracker.ceph.com/issues/22139
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest/librbd: fixed gmock uninteresting function call warnings
Jason Dillaman [Wed, 15 Nov 2017 20:46:24 +0000 (15:46 -0500)]
test/librbd: fixed gmock uninteresting function call warnings

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: eliminate sleeps within deep-copy mock tests
Jason Dillaman [Wed, 15 Nov 2017 20:35:22 +0000 (15:35 -0500)]
test/librbd: eliminate sleeps within deep-copy mock tests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18883 from cbodley/wip-22083+
Casey Bodley [Wed, 15 Nov 2017 19:51:14 +0000 (14:51 -0500)]
Merge pull request #18883 from cbodley/wip-22083+

rgw: set num_shards on 'radosgw-admin data sync init'

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agorgw: set num_shards on 'radosgw-admin data sync init'
Casey Bodley [Fri, 10 Nov 2017 19:27:59 +0000 (14:27 -0500)]
rgw: set num_shards on 'radosgw-admin data sync init'

Fixes: http://tracker.ceph.com/issues/22083
Signed-off-by: Casey Bodley <cbodley@redhat.com>