]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agorbd-mirror: load/update image map state machine 15691/head
Venky Shankar [Fri, 21 Jul 2017 05:15:06 +0000 (01:15 -0400)]
rbd-mirror: load/update image map state machine

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agorbd-mirror: track on-disk image to instance map
Venky Shankar [Mon, 31 Jul 2017 05:58:11 +0000 (01:58 -0400)]
rbd-mirror: track on-disk image to instance map

Signed-off-by: Venky Shankar <vshankar@redhat.com>
7 years agoMerge pull request #17070 from ktdreyer/rpm-macros-in-comments
Boris Ranto [Fri, 18 Aug 2017 09:33:45 +0000 (11:33 +0200)]
Merge pull request #17070 from ktdreyer/rpm-macros-in-comments

rpm: rm macros in comments

Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agoMerge pull request #17043 from renhwztetecs/renhw-wip-pgmap-pool
Kefu Chai [Fri, 18 Aug 2017 03:32:41 +0000 (11:32 +0800)]
Merge pull request #17043 from renhwztetecs/renhw-wip-pgmap-pool

mon/pgmap: update pool nearfull display

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17002 from mychoxin/yuanxin_adjust_blockdevice
Kefu Chai [Fri, 18 Aug 2017 03:22:14 +0000 (11:22 +0800)]
Merge pull request #17002 from mychoxin/yuanxin_adjust_blockdevice

os/bluestore: move aio_callback{,_priv} to base class BlockDevice

Reviewed-by: Pan Liu <liupan1111@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16940 from jcsp/wip-20955
Kefu Chai [Fri, 18 Aug 2017 03:14:37 +0000 (11:14 +0800)]
Merge pull request #16940 from jcsp/wip-20955

mgr: add missing call to pick_addresses

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16407 from dzafman/wip-20243
David Zafman [Fri, 18 Aug 2017 03:05:40 +0000 (20:05 -0700)]
Merge pull request #16407 from dzafman/wip-20243

osd: Improve size scrub error handling and ignore system attrs in xattr checking

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17062 from trociny/wip-qa-rbd-mirror-data-pool
Jason Dillaman [Thu, 17 Aug 2017 22:24:37 +0000 (18:24 -0400)]
Merge pull request #17062 from trociny/wip-qa-rbd-mirror-data-pool

qa/workunits/rbd: test data pool is mirrored correctly

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16517 from gohighsec/master
Jason Dillaman [Thu, 17 Aug 2017 22:10:47 +0000 (18:10 -0400)]
Merge pull request #16517 from gohighsec/master

rbd: check if an image is already mapped before rbd map

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16591 from PCzhangPC/fix7
Jason Dillaman [Thu, 17 Aug 2017 22:08:44 +0000 (18:08 -0400)]
Merge pull request #16591 from PCzhangPC/fix7

rbd: introduce commands of "image-meta ls/rm"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17073 from dillaman/wip-20567
Jason Dillaman [Thu, 17 Aug 2017 20:50:49 +0000 (16:50 -0400)]
Merge pull request #17073 from dillaman/wip-20567

rbd-mirror: Set the data pool correctly when creating images

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc: Update mirroring docs to mention data-pool configuration 17073/head
Adam Wolfe Gordon [Thu, 17 Aug 2017 15:20:30 +0000 (09:20 -0600)]
doc: Update mirroring docs to mention data-pool configuration

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
(cherry picked from commit 1e001c19e98ac1cd2428dd66f047ea4d6b2b01b1)

7 years agorbd-mirror: Set the data pool correctly when creating images
Adam Wolfe Gordon [Thu, 10 Aug 2017 19:31:38 +0000 (15:31 -0400)]
rbd-mirror: Set the data pool correctly when creating images

Previously the data-pool option was ignored by rbd-mirror, so when using
erasure coding data for the image on the secondary site would end up in
the metadata pool.

Configure the data-pool using the data-pool's name from the primary site
when creating images on the secondary site.

Fixes: http://tracker.ceph.com/issues/20567
Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
(cherry picked from commit dffaac83d19de544e279a530393b3998f1e1fbb4)

7 years agoMerge pull request #17069 from yuriw/wip_add_luminous
David Galloway [Thu, 17 Aug 2017 19:27:19 +0000 (15:27 -0400)]
Merge pull request #17069 from yuriw/wip_add_luminous

Decreased amount of jobs on master, kraken, luminous runs

7 years agoMerge pull request #17040 from mdw-at-linuxbox/rgw-master-fix-plus
Matt Benjamin [Thu, 17 Aug 2017 18:54:51 +0000 (14:54 -0400)]
Merge pull request #17040 from mdw-at-linuxbox/rgw-master-fix-plus

Rgw master fix plus

7 years agorpm: rm macros in comments 17070/head
Ken Dreyer [Thu, 17 Aug 2017 15:19:38 +0000 (09:19 -0600)]
rpm: rm macros in comments

rpm expands all macros in a .spec file, even those in comments. Drop the
percent signs so rpm will not expand these.

This change silences rpmlint's warning about macros in comments.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
7 years agoMerge pull request #17066 from amitkumar50/cov-os-1
Gregory Farnum [Thu, 17 Aug 2017 17:21:15 +0000 (10:21 -0700)]
Merge pull request #17066 from amitkumar50/cov-os-1

os: Initializing uninitialized members aio_info

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoos: Initializing uninitialized members aio_info 17066/head
amitkuma [Thu, 17 Aug 2017 17:00:22 +0000 (22:30 +0530)]
os: Initializing uninitialized members aio_info

Fixes the coverity issue:

** 717332 Uninitialized pointer field
2. uninit_member: Non-static class member field iocb.data is not
initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member field iocb.key is not
initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member field iocb.__pad2 is not
initialized in this constructor nor in any functions that it calls.
8. uninit_member: Non-static class member field iocb.aio_lio_opcode
is not initialized in this constructor nor in any functions that it calls.
10. uninit_member: Non-static class member field iocb.aio_reqprio
is not initialized in this constructor nor in any functions that it calls.

CID 717332 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
12. uninit_member: Non-static class member field iocb.aio_fildes is not
initialized in this constructor nor in any functions that it calls.

Signed-off-by: Amit Kumar amitkuma@redhat.com
7 years agoDecreased amount of jobs on master, kraken, luminous runs 17069/head 17074/head
Yuri Weinstein [Thu, 17 Aug 2017 15:36:37 +0000 (08:36 -0700)]
Decreased amount of jobs on master, kraken, luminous runs

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #16896 from amitkumar50/cov-librado-2
Yuri Weinstein [Thu, 17 Aug 2017 14:42:10 +0000 (07:42 -0700)]
Merge pull request #16896 from amitkumar50/cov-librado-2

rados: Initializing members of librados/TestCase.h

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16939 from trociny/wip-nonlinux-fsx
Jason Dillaman [Thu, 17 Aug 2017 14:32:01 +0000 (10:32 -0400)]
Merge pull request #16939 from trociny/wip-nonlinux-fsx

test/librbd: make fsx build on non-linux platform

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17027 from joscollin/wip-cleanup-Wsign-compare
Xie Xingguo [Thu, 17 Aug 2017 11:53:02 +0000 (19:53 +0800)]
Merge pull request #17027 from joscollin/wip-cleanup-Wsign-compare

test/osd: silence warnings from -Wsign-compare

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoqa/workunits/rbd: test data pool is mirrored correctly 17062/head
Mykola Golub [Thu, 17 Aug 2017 07:58:18 +0000 (09:58 +0200)]
qa/workunits/rbd: test data pool is mirrored correctly

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge PR #16891 into master
Patrick Donnelly [Wed, 16 Aug 2017 21:42:09 +0000 (14:42 -0700)]
Merge PR #16891 into master

* refs/remotes/upstream/pull/16891/head:
mds/MDSDaemon: add 'is_valid=false' when failed to parse caps

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17022 from ceph/wip-doc-sans-gitbuilder
Gregory Farnum [Wed, 16 Aug 2017 17:09:53 +0000 (10:09 -0700)]
Merge pull request #17022 from ceph/wip-doc-sans-gitbuilder

Update docs to remove gitbuilder and add shaman references

Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agodoc/rados/configuration comment out '...' on ini blocks 17022/head
Alfredo Deza [Wed, 16 Aug 2017 15:08:59 +0000 (11:08 -0400)]
doc/rados/configuration comment out '...' on ini blocks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/api comment out '...' on ini blocks
Alfredo Deza [Wed, 16 Aug 2017 15:06:49 +0000 (11:06 -0400)]
doc/rados/api comment out '...' on ini blocks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/install describe shaman urls and how to retrieve list and repo files
Alfredo Deza [Mon, 14 Aug 2017 16:27:21 +0000 (12:27 -0400)]
doc/install describe shaman urls and how to retrieve list and repo files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/install update international for non-US
Alfredo Deza [Mon, 14 Aug 2017 14:19:57 +0000 (10:19 -0400)]
doc/install update international for non-US

Use of "international" is ambiguous, for non-US users, international
could mean US.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/install remove repetitive dev release information for rpm distros
Alfredo Deza [Mon, 14 Aug 2017 14:15:14 +0000 (10:15 -0400)]
doc/install remove repetitive dev release information for rpm distros

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/install remove mention of autobuild key for dev packages
Alfredo Deza [Mon, 14 Aug 2017 14:09:13 +0000 (10:09 -0400)]
doc/install remove mention of autobuild key for dev packages

Dev packages are no longer signed, and the key is not used at all

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/install remove Apache and FastCGI instructions for RGW
Alfredo Deza [Mon, 14 Aug 2017 14:06:54 +0000 (10:06 -0400)]
doc/install remove Apache and FastCGI instructions for RGW

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: update repo-access to point to ceph-ci.git
Alfredo Deza [Mon, 14 Aug 2017 13:55:52 +0000 (09:55 -0400)]
doc: update repo-access to point to ceph-ci.git

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17025 from ceph/wip-doc-warnings
Alfredo Deza [Wed, 16 Aug 2017 12:52:43 +0000 (08:52 -0400)]
Merge pull request #17025 from ceph/wip-doc-warnings

fix sphinx build warnings and errors

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agodoc: fix short underline on release-notes 17025/head
Alfredo Deza [Wed, 16 Aug 2017 12:38:49 +0000 (08:38 -0400)]
doc: fix short underline on release-notes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #15597 from ceph/wip-19200
Kefu Chai [Wed, 16 Aug 2017 12:31:07 +0000 (20:31 +0800)]
Merge pull request #15597 from ceph/wip-19200

selinux: Allow nvme devices

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc exclude man_index when not building man pages
Alfredo Deza [Tue, 15 Aug 2017 18:42:52 +0000 (14:42 -0400)]
doc exclude man_index when not building man pages

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: create an index/toctree only for man pages
Alfredo Deza [Tue, 15 Aug 2017 18:13:13 +0000 (14:13 -0400)]
doc: create an index/toctree only for man pages

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: exclude mgr from man pages, define a man index.rst
Alfredo Deza [Tue, 15 Aug 2017 18:11:06 +0000 (14:11 -0400)]
doc: exclude mgr from man pages, define a man index.rst

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/release-notes use new ref label for erasure code profiles
Alfredo Deza [Tue, 15 Aug 2017 15:51:49 +0000 (11:51 -0400)]
doc/release-notes use new ref label for erasure code profiles

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations use new ref labels in health-checks
Alfredo Deza [Tue, 15 Aug 2017 15:51:25 +0000 (11:51 -0400)]
doc/rados/operations use new ref labels in health-checks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add a ref label to erasure code profiles
Alfredo Deza [Tue, 15 Aug 2017 15:51:08 +0000 (11:51 -0400)]
doc/rados/operations add a ref label to erasure code profiles

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add a ref label to pool application
Alfredo Deza [Tue, 15 Aug 2017 15:50:46 +0000 (11:50 -0400)]
doc/rados/operations add a ref label to pool application

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations use new ref label in health-checks
Alfredo Deza [Tue, 15 Aug 2017 15:17:14 +0000 (11:17 -0400)]
doc/rados/operations use new ref label in health-checks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add ref label for placement group number
Alfredo Deza [Tue, 15 Aug 2017 15:16:56 +0000 (11:16 -0400)]
doc/rados/operations add ref label for placement group number

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/api/python document required_state manually
Alfredo Deza [Tue, 15 Aug 2017 14:59:53 +0000 (10:59 -0400)]
doc/rados/api/python document required_state manually

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoadmin: bump sphinx to 1.6
Alfredo Deza [Tue, 15 Aug 2017 13:12:27 +0000 (09:12 -0400)]
admin: bump sphinx to 1.6

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations use the new ref label for crush map tunables
Alfredo Deza [Tue, 15 Aug 2017 12:43:00 +0000 (08:43 -0400)]
doc/rados/operations use the new ref label for crush map tunables

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add label for crush map tunables for ref linking
Alfredo Deza [Tue, 15 Aug 2017 12:42:10 +0000 (08:42 -0400)]
doc/rados/operations add label for crush map tunables for ref linking

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/cephfs add label to health messages for use in refs linking
Alfredo Deza [Tue, 15 Aug 2017 12:41:33 +0000 (08:41 -0400)]
doc/cephfs add label to health messages for use in refs linking

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoadmin: do not allow errors or warnings from doc build
Alfredo Deza [Tue, 15 Aug 2017 11:48:51 +0000 (07:48 -0400)]
admin: do not allow errors or warnings from doc build

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations include pg-repair document in the toctree
Alfredo Deza [Tue, 15 Aug 2017 11:38:59 +0000 (07:38 -0400)]
doc/rados/operations include pg-repair document in the toctree

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agopybind fix rbd trash_move docstring, needed a newline
Alfredo Deza [Mon, 14 Aug 2017 23:19:41 +0000 (19:19 -0400)]
pybind fix rbd trash_move docstring, needed a newline

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agopybind: fix invalid doctring in Rados.require_state
Alfredo Deza [Mon, 14 Aug 2017 23:07:18 +0000 (19:07 -0400)]
pybind: fix invalid doctring in Rados.require_state

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add missing link for crush pdf
Alfredo Deza [Mon, 14 Aug 2017 22:58:57 +0000 (18:58 -0400)]
doc/rados/operations add missing link for crush pdf

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/operations add newline after definition
Alfredo Deza [Mon, 14 Aug 2017 22:57:06 +0000 (18:57 -0400)]
doc/rados/operations add newline after definition

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/radosgw add newline after field list
Alfredo Deza [Mon, 14 Aug 2017 22:54:07 +0000 (18:54 -0400)]
doc/radosgw add newline after field list

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/radosgw fix missing newline on definition
Alfredo Deza [Mon, 14 Aug 2017 22:51:58 +0000 (18:51 -0400)]
doc/radosgw fix missing newline on definition

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados/api remove '*' in automethod call
Alfredo Deza [Mon, 14 Aug 2017 22:45:50 +0000 (18:45 -0400)]
doc/rados/api remove '*' in automethod call

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/logging fix unexpected indent in paragraph
Alfredo Deza [Mon, 14 Aug 2017 22:39:39 +0000 (18:39 -0400)]
doc/logging fix unexpected indent in paragraph

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: bump the max depth of the toctree, so that it can find nested indexes
Alfredo Deza [Mon, 14 Aug 2017 22:27:43 +0000 (18:27 -0400)]
doc: bump the max depth of the toctree, so that it can find nested indexes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc escape and remove invalid chars in release notes, causing sphinx errors
Alfredo Deza [Mon, 14 Aug 2017 21:38:08 +0000 (17:38 -0400)]
doc escape and remove invalid chars in release notes, causing sphinx errors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rados use func reference for rados_set_alloc_hint linking
Alfredo Deza [Mon, 14 Aug 2017 20:37:07 +0000 (16:37 -0400)]
doc/rados use func reference for  rados_set_alloc_hint linking

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #16967 from liewegas/wip-upgrade-health
Kefu Chai [Wed, 16 Aug 2017 11:44:36 +0000 (19:44 +0800)]
Merge pull request #16967 from liewegas/wip-upgrade-health

mon: fix legacy health checks in 'ceph status' during upgrade; fix jewel-x upgrade combo

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomon/pgmap: update pool nearfull display 17043/head
huanwen ren [Wed, 16 Aug 2017 07:38:34 +0000 (15:38 +0800)]
mon/pgmap: update pool nearfull display

if "pool full" and "pool nearfull" show the same,
we will not be able to distinguish between these two scenes in health check.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agoradosgw: fix small sized chunked uploads with s3 17040/head
Marcus Watts [Wed, 16 Aug 2017 01:57:06 +0000 (21:57 -0400)]
radosgw: fix small sized chunked uploads with s3

The logic to compute the number of bytes to copy with a chunked file
upload was failing to take into account the amount of data that had been
consumed, but was still pending in the parse buffer.  This would cause
strange behavior ranging from "just works" to "fails".  There was also a
strange "works, one byte at a time" mode.  Using the correct stream_pos
offset eliminates the bad behavior.

This fix also adds debug statements to make the correct behavior easier to see.

Fixes: http://tracker.ceph.com/issues/21003
Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agoMerge pull request #17012 from joscollin/wip-rgw-todo-warning
Gregory Farnum [Tue, 15 Aug 2017 22:03:09 +0000 (15:03 -0700)]
Merge pull request #17012 from joscollin/wip-rgw-todo-warning

rgw: Drop #warning TODO

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #17037 from theanalyst/release-notes-12-1-4
Abhishek L [Tue, 15 Aug 2017 21:01:03 +0000 (23:01 +0200)]
Merge pull request #17037 from theanalyst/release-notes-12-1-4

doc: release notes for v12.1.4 Luminous

Reviewed-By: Gregory Farnum <gfarnum@redhat.com>
Reviewed-By: Ken Dreyer <ktdreyer@redhat.com>
7 years agodoc: release notes for v12.1.4 Luminous 17037/head
Abhishek Lekshmanan [Tue, 15 Aug 2017 15:12:09 +0000 (17:12 +0200)]
doc: release notes for v12.1.4 Luminous

Adding the bits of changelog that went in post 12.1.3, one of the PRs
was directly cherry-picked onto Luminous and hence does not have a PR
reference.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #16808 from liupan1111/wip-add-report
Pan Liu [Tue, 15 Aug 2017 14:02:04 +0000 (22:02 +0800)]
Merge pull request #16808 from liupan1111/wip-add-report

test/fio: generate db histogram to help debug rocksdb performance

7 years agotest/osd: silence warnings from -Wsign-compare 17027/head
Jos Collin [Tue, 15 Aug 2017 04:15:32 +0000 (09:45 +0530)]
test/osd: silence warnings from -Wsign-compare

The following warning appears during build:

In file included from ceph/src/test/osd/TestOSDMap.cc:2:0:
ceph/src/googletest/googletest/include/gtest/gtest.h: In instantiation of 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = long unsigned int]':
ceph/src/googletest/googletest/include/gtest/gtest.h:1421:23:   required from 'static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = long unsigned int; bool lhs_is_null_literal = false]'
ceph/src/test/osd/TestOSDMap.cc:456:3:   required from here
ceph/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (lhs == rhs) {
           ^
Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoradosgw: fix zero sized chunked uploads with s3
Marcus Watts [Tue, 15 Aug 2017 03:56:21 +0000 (23:56 -0400)]
radosgw: fix zero sized chunked uploads with s3

s3 allows for zero sized objects, which can be
created using chunked uploads.  It is important to
call "recv_body (and ChunkMeta::create_next()) even
on zero sized objects, so that the proper chunk signature
can be presented at signature verification time.

Fixes: http://tracker.ceph.com/issues/21000
Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agorgw: replace '+' with "%20" in canonical query string for s3 v4 auth.
Zhang Shaowen [Tue, 4 Jul 2017 09:18:11 +0000 (17:18 +0800)]
rgw: replace '+' with "%20" in canonical query string for s3 v4 auth.

( note: this patch modified: now replaces "+" with " ".  mwatts@redhat.com )

Fixes: http://tracker.ceph.com/issues/20501
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
7 years agoMerge pull request #16987 from dzafman/wip-pidfile
David Zafman [Tue, 15 Aug 2017 01:22:00 +0000 (18:22 -0700)]
Merge pull request #16987 from dzafman/wip-pidfile

test: Fix and enable test_pidfile.sh

Reviewed-by: Loic Dachary <ldachary@redhat.com>
7 years agoMerge pull request #17016 from chuanhong-wang/dev_rdma_dead_lock
Haomai Wang [Tue, 15 Aug 2017 01:07:18 +0000 (09:07 +0800)]
Merge pull request #17016 from chuanhong-wang/dev_rdma_dead_lock

Fix a dead lock when doing rdma performance test by fio

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #16649 from ztczll/zlrgw
Casey Bodley [Mon, 14 Aug 2017 20:08:51 +0000 (16:08 -0400)]
Merge pull request #16649 from ztczll/zlrgw

rgw: remove unused variables

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16971 from scienceluo/wip-luo-fix-deadcode-branch
Jason Dillaman [Mon, 14 Aug 2017 15:19:11 +0000 (11:19 -0400)]
Merge pull request #16971 from scienceluo/wip-luo-fix-deadcode-branch

rbd: fix logically dead code in function list_process_image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
7 years agoMerge pull request #17000 from gregsfortytwo/wip-20985-divergent-handling
Gregory Farnum [Mon, 14 Aug 2017 13:53:53 +0000 (06:53 -0700)]
Merge pull request #17000 from gregsfortytwo/wip-20985-divergent-handling

osd: be more precise about our asserts and cases when rebuilding missing sets

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16753 from ceph/wip-fix-ppc64
Boris Ranto [Mon, 14 Aug 2017 13:41:28 +0000 (15:41 +0200)]
Merge pull request #16753 from ceph/wip-fix-ppc64

Fix ppc64 support for ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16934 from amitkumar50/cov-librbd-2
Jason Dillaman [Mon, 14 Aug 2017 13:08:29 +0000 (09:08 -0400)]
Merge pull request #16934 from amitkumar50/cov-librbd-2

librbd: Initializing members image,operation,journal

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoselinux: Allow nvme devices 15597/head
Boris Ranto [Fri, 9 Jun 2017 12:38:28 +0000 (14:38 +0200)]
selinux: Allow nvme devices

This commit allows nvme devices which use a different label than
standard block devices.

Fixes: http://tracker.ceph.com/issues/19200
Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agoFix a dead lock when running fio: "RDMADispatcher::polling_stop" hold the lock and... 17016/head
chuanhong.wang [Mon, 14 Aug 2017 08:49:28 +0000 (08:49 +0000)]
Fix a dead lock when running fio: "RDMADispatcher::polling_stop" hold the lock and wait
"RDMADispatcher::polling" ending, then RDMADispatcher::polling can't hold the lock and
can't end its work.

Signed-off-by: Wang Chuanhong <chuanhong.wang@163.com>
7 years agorgw: Drop #warning TODO 17012/head
Jos Collin [Mon, 14 Aug 2017 06:02:55 +0000 (11:32 +0530)]
rgw: Drop #warning TODO

Drop "#warning TODO" from rgw_crypt.cc,  as the tracker is created for this requirement and the
corresponding PR is in progress for a long time.

Tracker: http://tracker.ceph.com/issues/19851
PR: https://github.com/ceph/ceph/pull/14498

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16976 from liewegas/wip-osd-empty 17017/head
Sage Weil [Sun, 13 Aug 2017 19:02:44 +0000 (14:02 -0500)]
Merge pull request #16976 from liewegas/wip-osd-empty

mgr: implement 'osd safe-to-destroy' and 'osd ok-to-stop' commands

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16625 from Yan-waller/wip-walle-0727testlibrados
Sage Weil [Sun, 13 Aug 2017 19:02:22 +0000 (14:02 -0500)]
Merge pull request #16625 from Yan-waller/wip-walle-0727testlibrados

test/librados: reorder ASSERT_EQ() arguments

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16883 from liewegas/wip-20939
Sage Weil [Sun, 13 Aug 2017 18:59:43 +0000 (13:59 -0500)]
Merge pull request #16883 from liewegas/wip-20939

crush,mon: fix weight-set vs crush device classes

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoqa/suites/rados/objectstore/objectstore: less debug
Sage Weil [Sun, 13 Aug 2017 18:41:43 +0000 (14:41 -0400)]
qa/suites/rados/objectstore/objectstore: less debug

Saw an ENOSPC.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17007 from alex-mikheev/wip_rdma_notify_fix
Haomai Wang [Sun, 13 Aug 2017 12:13:59 +0000 (20:13 +0800)]
Merge pull request #17007 from alex-mikheev/wip_rdma_notify_fix

src/msg/rdma: fixes failure on assert in notify()

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agosrc/msg/rdma: fixes failure on assert in notify() 17007/head
Alex Mikheev [Sun, 13 Aug 2017 10:55:32 +0000 (10:55 +0000)]
src/msg/rdma: fixes failure on assert in notify()

The commit fixes incorrect eventfd handling introduced in
2e75b876d1e8e9c2ac556808f958fcbfeaad7d52

Signed-off-by: Alex Mikheev <alexm@mellanox.com>
7 years agomds/MDSDaemon: add 'is_valid=false' when failed to parse caps 16891/head
Yanhu Cao [Tue, 8 Aug 2017 10:55:54 +0000 (18:55 +0800)]
mds/MDSDaemon: add 'is_valid=false' when failed to parse caps

Fixes: http://tracker.ceph.com/issues/20990
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
7 years agoMerge pull request #16978 from gmayyyha/mgr-ms-verify-auth
Yuri Weinstein [Sat, 12 Aug 2017 21:45:28 +0000 (14:45 -0700)]
Merge pull request #16978 from gmayyyha/mgr-ms-verify-auth

mgr/DaemonServer.cc: add 'is_valid=false' when decode caps error

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #16906 from liewegas/wip-bluestore-stupid
Sage Weil [Sat, 12 Aug 2017 21:10:31 +0000 (16:10 -0500)]
Merge pull request #16906 from liewegas/wip-bluestore-stupid

os/bluestore: switch default allocator to stupid; test both bitmap and stupid in qa

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush/CrushWrapper: fixing timing of removal in remove_item_under 16883/head
Sage Weil [Sat, 12 Aug 2017 19:19:45 +0000 (15:19 -0400)]
crush/CrushWrapper: fixing timing of removal in remove_item_under

Do it after we reweight, not before

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocrush/CrushWrapper: fix iterator invalidation in cleanup_dead_classes
Sage Weil [Sat, 12 Aug 2017 18:45:42 +0000 (14:45 -0400)]
crush/CrushWrapper: fix iterator invalidation in cleanup_dead_classes

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocrush/CrushWrapper: keep weights and/or ids null if empty
Sage Weil [Wed, 9 Aug 2017 21:27:49 +0000 (17:27 -0400)]
crush/CrushWrapper: keep weights and/or ids null if empty

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocrush/builder: fix ENOENT when removing last bucket item
Sage Weil [Wed, 9 Aug 2017 21:25:12 +0000 (17:25 -0400)]
crush/builder: fix ENOENT when removing last bucket item

We were decrementing size and then breaking out ENOENT condition check.
Fix by decrementing size only after we break out of the loop and verify
we found the item.

Fix a follow-on bug by avoiding realloc when we have 0 items left.  This case
was never exercised before due to the ENOENT issue; now we return explicitly.
It's really not necessary to realloc at all, probably, since these are very
small arrays, but in any case leaving a single item allocation there in place of
a 0-length allocation is fine.  (And the 0-length allocation behvaior on realloc
is undefined.. may either return a pointer or NULL.)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17005 from liewegas/wip-verify-slowness
Sage Weil [Sat, 12 Aug 2017 18:19:23 +0000 (13:19 -0500)]
Merge pull request #17005 from liewegas/wip-verify-slowness

qa/suites/rados/verify/validater/valgrind: whitelist PG_

7 years agoqa/suites/rados/verify/validater/valgrind: whitelist PG_ 17005/head
Sage Weil [Sat, 12 Aug 2017 18:18:59 +0000 (14:18 -0400)]
qa/suites/rados/verify/validater/valgrind: whitelist PG_

Peering might be slow due to valgrind.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17004 from liewegas/wip-clock-skew-whitelist
Sage Weil [Sat, 12 Aug 2017 18:15:50 +0000 (13:15 -0500)]
Merge pull request #17004 from liewegas/wip-clock-skew-whitelist

qa/suites/rados/multimon/tasks/mon_lock_with_skew: whitelist PG_

7 years agoqa/suites/rados/multimon/tasks/mon_lock_with_skew: whitelist PG_ 17004/head
Sage Weil [Sat, 12 Aug 2017 18:15:15 +0000 (14:15 -0400)]
qa/suites/rados/multimon/tasks/mon_lock_with_skew: whitelist PG_

Default pool pgs not up because mons too broken for OSDs to peer.

Signed-off-by: Sage Weil <sage@redhat.com>