]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomds: shut down finisher before objecter 13859/head
John Spray [Wed, 8 Mar 2017 12:13:46 +0000 (12:13 +0000)]
mds: shut down finisher before objecter

Some of the finisher contexts would try to call into Objecter.
We mostly are protected from this by mds_lock+the stopping
flag, but at the Filer level there's no mds_lock, so in the
case of file size probing we have a problem.

Fixes: http://tracker.ceph.com/issues/19204
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14468 from tchaikov/wip-show-me-fake-plugin
Kefu Chai [Thu, 13 Apr 2017 14:24:03 +0000 (22:24 +0800)]
Merge pull request #14468 from tchaikov/wip-show-me-fake-plugin

qa/workunits/ceph-helpers: display rejected string

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14234 from jcsp/wip-19406-dirhash
John Spray [Thu, 13 Apr 2017 11:01:28 +0000 (12:01 +0100)]
Merge pull request #14234 from jcsp/wip-19406-dirhash

tools/cephfs: set dir_layout when injecting inodes

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #14472 from joscollin/wip-warning-test
Kefu Chai [Thu, 13 Apr 2017 08:28:12 +0000 (16:28 +0800)]
Merge pull request #14472 from joscollin/wip-warning-test

test: add explicit braces to avoid ambiguous ‘else’ and to silence warnings

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14495 from tchaikov/wip-cmake-ctags-without-repo
Kefu Chai [Thu, 13 Apr 2017 07:35:09 +0000 (15:35 +0800)]
Merge pull request #14495 from tchaikov/wip-cmake-ctags-without-repo

cmake: do not try to add submodule to exclude list if .git is not around

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14404 from tchaikov/wip-another-mgr-command
Kefu Chai [Thu, 13 Apr 2017 05:57:42 +0000 (13:57 +0800)]
Merge pull request #14404 from tchaikov/wip-another-mgr-command

mon,mgr: move reweight-by-* to mgr

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocmake: do not try to add submodule to exclude list if .git is not around 14495/head
Kefu Chai [Thu, 13 Apr 2017 05:46:31 +0000 (13:46 +0800)]
cmake: do not try to add submodule to exclude list if .git is not around

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14445 from dillaman/wip-rbd-import-diff
Mykola Golub [Thu, 13 Apr 2017 05:00:05 +0000 (08:00 +0300)]
Merge pull request #14445 from dillaman/wip-rbd-import-diff

rbd: import-diff should discard any zeroed extents

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14474 from Wilhelmshaven/fix_non-exist_string
Matt Benjamin [Thu, 13 Apr 2017 01:00:59 +0000 (21:00 -0400)]
Merge pull request #14474 from Wilhelmshaven/fix_non-exist_string

rgw: avoid using null pointer in rgw_file.cc

8 years agoMerge pull request #14482 from trociny/wip-qa-diff
Jason Dillaman [Wed, 12 Apr 2017 20:43:21 +0000 (16:43 -0400)]
Merge pull request #14482 from trociny/wip-qa-diff

qa/workunits/rbd: diff.sh failed removing nonexistent file

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agotools/cephfs: set dir_layout when injecting inodes 14234/head
John Spray [Wed, 29 Mar 2017 18:38:37 +0000 (19:38 +0100)]
tools/cephfs: set dir_layout when injecting inodes

When we left this as zero, the MDS would interpret it was HASH_LINUX
rather than the default HASH_RJENKINS.  Potentially that
could cause problems if there perhaps were already dirfrags in
the metadata pool that were set up using rjenkins.  Mainly
it just seems more appropriate to explicitly set this field
rather than hit the fallback behaviour.

Related: http://tracker.ceph.com/issues/19406
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14463 from trociny/wip-19451
Jason Dillaman [Wed, 12 Apr 2017 19:02:16 +0000 (15:02 -0400)]
Merge pull request #14463 from trociny/wip-19451

pybind/rbd: add image metadata methods

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14471 from trociny/wip-19588
Jason Dillaman [Wed, 12 Apr 2017 19:01:56 +0000 (15:01 -0400)]
Merge pull request #14471 from trociny/wip-19588

librbd: fix rbd_metadata_list and rbd_metadata_get

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14484 from dillaman/wip-librados-test-stub
Mykola Golub [Wed, 12 Apr 2017 18:04:42 +0000 (21:04 +0300)]
Merge pull request #14484 from dillaman/wip-librados-test-stub

test/librados_test_stub: fixed cls_cxx_map_get_keys/vals return value

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14375 from cbodley/wip-rgw-fetch-versioned-obj
Yehuda Sadeh [Wed, 12 Apr 2017 16:02:44 +0000 (09:02 -0700)]
Merge pull request #14375 from cbodley/wip-rgw-fetch-versioned-obj

8 years agoqa/suites: add mon-reweight-min-pgs-per-osd = 4 14404/head
Kefu Chai [Wed, 12 Apr 2017 15:29:08 +0000 (23:29 +0800)]
qa/suites: add mon-reweight-min-pgs-per-osd = 4

so we can run reweight commands in a small cluster with 3 OSD and 27
PGs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14476 from wjwithagen/wip-wjw-freebsd-ceph-disk-call-rc.d
Loic Dachary [Wed, 12 Apr 2017 15:04:35 +0000 (17:04 +0200)]
Merge pull request #14476 from wjwithagen/wip-wjw-freebsd-ceph-disk-call-rc.d

ceph-disk/ceph_disk/main.py: fix calling of the bsdrc init scripts

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agotest/librados_test_stub: fixed cls_cxx_map_get_keys/vals return value 14484/head
Jason Dillaman [Wed, 12 Apr 2017 14:47:28 +0000 (10:47 -0400)]
test/librados_test_stub: fixed cls_cxx_map_get_keys/vals return value

Fixes: http://tracker.ceph.com/issues/19597
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14399 from ifed01/wip-bluestore-better-better-reuse
Sage Weil [Wed, 12 Apr 2017 14:31:45 +0000 (09:31 -0500)]
Merge pull request #14399 from ifed01/wip-bluestore-better-better-reuse

os/bluestore: refactor small write handling to reuse blob more effect…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14422 from tchaikov/wip-19427
Sage Weil [Wed, 12 Apr 2017 14:28:38 +0000 (09:28 -0500)]
Merge pull request #14422 from tchaikov/wip-19427

mon/MonClient: make get_mon_log_message() atomic

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14439 from adamemerson/wip-warning-sign
Sage Weil [Wed, 12 Apr 2017 14:28:10 +0000 (09:28 -0500)]
Merge pull request #14439 from adamemerson/wip-warning-sign

misc: Warning Elimination

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/rbd: diff.sh failed removing nonexistent file 14482/head
Mykola Golub [Wed, 12 Apr 2017 14:18:52 +0000 (16:18 +0200)]
qa/workunits/rbd: diff.sh failed removing nonexistent file

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14347 from ukernel/wip-19501
John Spray [Wed, 12 Apr 2017 13:28:11 +0000 (14:28 +0100)]
Merge pull request #14347 from ukernel/wip-19501

mds: make C_MDSInternalNoop::complete() delete 'this'

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agorbd: import-diff should discard any zeroed extents 14445/head
Jason Dillaman [Tue, 11 Apr 2017 01:09:01 +0000 (21:09 -0400)]
rbd: import-diff should discard any zeroed extents

Sparse (zeroed) extents cannot be safely skipped. Instead, the
zeroed extent should be discarded from the image to ensure
the import remains consistent with the export.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14460 from dillaman/wip-qa-rbd-cli
Mykola Golub [Wed, 12 Apr 2017 12:44:25 +0000 (15:44 +0300)]
Merge pull request #14460 from dillaman/wip-qa-rbd-cli

qa/workunits: corrected issues with RBD cli test

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoceph-disk/ceph_disk/main.py: fix calling of the bsdrc init scripts 14476/head
Willem Jan Withagen [Wed, 12 Apr 2017 12:02:26 +0000 (14:02 +0200)]
ceph-disk/ceph_disk/main.py: fix calling of the bsdrc init scripts

 - rc.d/ceph does not really like the extra stop/start as las cmd.
 - And make Start and Stop look similar.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agotest: add explicit braces to avoid ambiguous ‘else’ and to silence warnings 14472/head
Jos Collin [Wed, 12 Apr 2017 09:18:43 +0000 (14:48 +0530)]
test: add explicit braces to avoid ambiguous ‘else’ and to silence warnings

The following warning appears during make for several files in the test submodule:
warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]

Fixed the review comment too.

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #14467 from badone/wip-debug-mon-features-api-removal-cleanup
Brad Hubbard [Wed, 12 Apr 2017 10:10:29 +0000 (20:10 +1000)]
Merge pull request #14467 from badone/wip-debug-mon-features-api-removal-cleanup

mon: Tidy up removal of debug mon features

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/ceph-helpers: do not error out if is_clean 14468/head
Kefu Chai [Wed, 12 Apr 2017 09:31:52 +0000 (17:31 +0800)]
qa/workunits/ceph-helpers: do not error out if is_clean

it would be a race otherwise, because we cannot be sure that the cluster
pgs are not all clean or not when run_osd() returns, but we can be sure
that they are expected to active+clean after a while. that's what
wait_for_clean() does.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: avoid using null pointer in rgw_file.cc 14474/head
lihongjie [Wed, 12 Apr 2017 09:18:01 +0000 (17:18 +0800)]
rgw: avoid using null pointer in rgw_file.cc

When rgw_fh doesn't exist, we should not use rgw_fh->full_object_name().

Signed-off-by: lihongjie <lihongjie@cmss.chinamobile.com>
8 years agopybind/rbd: add image metadata methods 14463/head
Mykola Golub [Tue, 11 Apr 2017 20:34:34 +0000 (22:34 +0200)]
pybind/rbd: add image metadata methods

Fixes: http://tracker.ceph.com/issues/19451
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: fix rbd_metadata_list and rbd_metadata_get 14471/head
Mykola Golub [Tue, 11 Apr 2017 20:31:43 +0000 (22:31 +0200)]
librbd: fix rbd_metadata_list and rbd_metadata_get

- properly check for val_len in rbd_metadata_list
- don't expect output buffers are zero pre-filled

Fixes: http://tracker.ceph.com/issues/19588
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoqa/workunits/ceph-helpers: display rejected string
Kefu Chai [Wed, 12 Apr 2017 04:33:53 +0000 (12:33 +0800)]
qa/workunits/ceph-helpers: display rejected string

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14361 from ShiqiCooperation/master
Haomai Wang [Wed, 12 Apr 2017 07:41:29 +0000 (15:41 +0800)]
Merge pull request #14361 from ShiqiCooperation/master

mailmap: shiqi affiliation

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14446 from badone/wip-cppcheck-errors
Brad Hubbard [Wed, 12 Apr 2017 06:25:18 +0000 (16:25 +1000)]
Merge pull request #14446 from badone/wip-cppcheck-errors

Wip cppcheck errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest: Suppress cppcheck error 14446/head
Brad Hubbard [Tue, 11 Apr 2017 01:54:32 +0000 (11:54 +1000)]
test: Suppress cppcheck error

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14419 from badone/wip-doc-pg-states-min_size
Sage Weil [Wed, 12 Apr 2017 02:10:35 +0000 (21:10 -0500)]
Merge pull request #14419 from badone/wip-doc-pg-states-min_size

docs: Clarify the relationship of min_size to EC pool recovery

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomon: Tidy up removal of debug mon features 14467/head
Brad Hubbard [Wed, 12 Apr 2017 00:47:38 +0000 (10:47 +1000)]
mon: Tidy up removal of debug mon features

545bc83 removed most of the plumbing for the debug mon features admin
socket commands but failed to remove the register/unregister command
pairs. This means the monitor asserts if an attempt is made to use any
of these commands.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14290 from wjwithagen/wip-wjw-freebsd-procprefix
Yuri Weinstein [Tue, 11 Apr 2017 22:07:45 +0000 (15:07 -0700)]
Merge pull request #14290 from wjwithagen/wip-wjw-freebsd-procprefix

core: Prefix /proc/ with FreeBSD emulation

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14362 from majianpeng/fs-remove-redundant-code
Yuri Weinstein [Tue, 11 Apr 2017 22:06:44 +0000 (15:06 -0700)]
Merge pull request #14362 from majianpeng/fs-remove-redundant-code

os/fs/FS.cc: remove the redundant code.

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14462 from pdinnen/patch-2
Sage Weil [Tue, 11 Apr 2017 22:00:39 +0000 (17:00 -0500)]
Merge pull request #14462 from pdinnen/patch-2

doc: correct arguments for ceph tell osd.N bench

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: correct arguments for ceph tell osd.N bench 14462/head
Patrick Dinnen [Tue, 11 Apr 2017 19:57:11 +0000 (15:57 -0400)]
doc: correct arguments for ceph tell osd.N bench

Signed-off-by: Patrick Dinnen pdinnen@gmail.com
8 years agoMerge pull request #14461 from dmick/master
Josh Durgin [Tue, 11 Apr 2017 19:35:48 +0000 (12:35 -0700)]
Merge pull request #14461 from dmick/master

stop.sh: boilerplate error (don't stop mon when stopping mgr)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agostop.sh: boilerplate error (don't stop mon when stopping mgr) 14461/head
Dan Mick [Tue, 11 Apr 2017 01:35:12 +0000 (18:35 -0700)]
stop.sh: boilerplate error (don't stop mon when stopping mgr)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMerge pull request #14376 from cbodley/wip-rgw-forward-canned-acl
Orit Wasserman [Tue, 11 Apr 2017 17:30:33 +0000 (20:30 +0300)]
Merge pull request #14376 from cbodley/wip-rgw-forward-canned-acl

rgw: fix for EINVAL errors on forwarded bucket put_acl requests
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #13105 from rjfd/wip-18481
Jason Dillaman [Tue, 11 Apr 2017 15:24:21 +0000 (11:24 -0400)]
Merge pull request #13105 from rjfd/wip-18481

librbd: deferred image deletion

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoqa/workunits: corrected issues with RBD cli test 14460/head
Jason Dillaman [Tue, 11 Apr 2017 15:18:29 +0000 (11:18 -0400)]
qa/workunits: corrected issues with RBD cli test

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14355 from cbodley/wip-19505
Casey Bodley [Tue, 11 Apr 2017 15:13:04 +0000 (11:13 -0400)]
Merge pull request #14355 from cbodley/wip-19505

rgw: allow larger payload for period commit

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14319 from cbodley/wip-19488
Casey Bodley [Tue, 11 Apr 2017 15:12:44 +0000 (11:12 -0400)]
Merge pull request #14319 from cbodley/wip-19488

rgw: multisite: fixes for zonegroup redirect

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14343 from Liuchang0812/wip-rgw-read-user-buckets
Casey Bodley [Tue, 11 Apr 2017 15:11:41 +0000 (11:11 -0400)]
Merge pull request #14343 from Liuchang0812/wip-rgw-read-user-buckets

rgw: update is_truncated in function rgw_read_user_buckets

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14438 from theanalyst/fix/build-doc
Kefu Chai [Tue, 11 Apr 2017 14:10:37 +0000 (22:10 +0800)]
Merge pull request #14438 from theanalyst/fix/build-doc

script: build-doc/serve-doc fixes

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14455 from optimistyzy/411_1
Sage Weil [Tue, 11 Apr 2017 13:47:40 +0000 (08:47 -0500)]
Merge pull request #14455 from optimistyzy/411_1

os/bluestore/NVMEDevice: fix the compilation issue for collect_metadata

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13698 from ukernel/wip-multimds-misc
John Spray [Tue, 11 Apr 2017 13:06:19 +0000 (14:06 +0100)]
Merge pull request #13698 from ukernel/wip-multimds-misc

mds: miscellaneous multimds fixes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14453 from trociny/wip-test_mock_InstanceWatcher
Jason Dillaman [Tue, 11 Apr 2017 12:10:20 +0000 (08:10 -0400)]
Merge pull request #14453 from trociny/wip-test_mock_InstanceWatcher

test/rbd_mirror: race in TestMockInstanceWatcher on destroy

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agopybind: librbd: added trash API to python RBD binding 13105/head
Ricardo Dias [Mon, 27 Mar 2017 14:34:26 +0000 (15:34 +0100)]
pybind: librbd: added trash API to python RBD binding

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agoqa/workunits/rbd: cli testing of rbd trash commands
Ricardo Dias [Thu, 2 Mar 2017 15:29:36 +0000 (15:29 +0000)]
qa/workunits/rbd: cli testing of rbd trash commands

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: added image-id optional to Info command
Ricardo Dias [Fri, 24 Mar 2017 13:50:52 +0000 (13:50 +0000)]
rbd: added image-id optional to Info command

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: Added image-id optional to Snap commands
Ricardo Dias [Mon, 10 Apr 2017 13:32:46 +0000 (14:32 +0100)]
rbd: Added image-id optional to Snap commands

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: added image_id param to Utils::init_and_open_image
Ricardo Dias [Mon, 10 Apr 2017 13:31:54 +0000 (14:31 +0100)]
rbd: added image_id param to Utils::init_and_open_image

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: added group image remove by id to CLI
Ricardo Dias [Mon, 10 Apr 2017 13:26:52 +0000 (14:26 +0100)]
rbd: added group image remove by id to CLI

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agolibrbd: added group image remove by id to API
Ricardo Dias [Mon, 10 Apr 2017 13:26:21 +0000 (14:26 +0100)]
librbd: added group image remove by id to API

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: added CLI support for trash operations
Ricardo Dias [Fri, 24 Feb 2017 18:37:43 +0000 (18:37 +0000)]
rbd: added CLI support for trash operations

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agolibrbd: added trash methods to API
Ricardo Dias [Fri, 24 Feb 2017 18:36:55 +0000 (18:36 +0000)]
librbd: added trash methods to API

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agolibrbd: open image gets name from directory or trash
Ricardo Dias [Fri, 24 Feb 2017 18:35:31 +0000 (18:35 +0000)]
librbd: open image gets name from directory or trash

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agolibrbd: added open an image by id to API
Ricardo Dias [Fri, 24 Feb 2017 18:00:00 +0000 (18:00 +0000)]
librbd: added open an image by id to API

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agocls_rbd: methods to manipulate the rbd_trash object
Ricardo Dias [Fri, 24 Feb 2017 17:57:04 +0000 (17:57 +0000)]
cls_rbd: methods to manipulate the rbd_trash object

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agobluestore/NVMEDevice: fix the compilation issue for collect_metadata 14455/head
Ziye Yang [Tue, 11 Apr 2017 10:31:36 +0000 (18:31 +0800)]
bluestore/NVMEDevice: fix the compilation issue for collect_metadata

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
8 years agotest/rbd_mirror: race in TestMockInstanceWatcher on destroy 14453/head
Mykola Golub [Tue, 11 Apr 2017 09:55:59 +0000 (11:55 +0200)]
test/rbd_mirror: race in TestMockInstanceWatcher on destroy

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14295 from theanalyst/release/10.2.7/notes
Loic Dachary [Tue, 11 Apr 2017 09:44:29 +0000 (11:44 +0200)]
Merge pull request #14295 from theanalyst/release/10.2.7/notes

doc: release notes for v10.2.7 Jewel

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14441 from theanalyst/doc/changelog/v10.2.7
Loic Dachary [Tue, 11 Apr 2017 09:43:15 +0000 (11:43 +0200)]
Merge pull request #14441 from theanalyst/doc/changelog/v10.2.7

doc: add changelog for v10.2.7

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #14426 from tchaikov/wip-13562-kefu
Kefu Chai [Tue, 11 Apr 2017 09:41:56 +0000 (17:41 +0800)]
Merge pull request #14426 from tchaikov/wip-13562-kefu

misc: SCA fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest: Silence cppcheck memory leak warnings in ceph_test_rados_api_io
Brad Hubbard [Tue, 11 Apr 2017 01:40:38 +0000 (11:40 +1000)]
test: Silence cppcheck memory leak warnings in ceph_test_rados_api_io

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agodenc: Silence cppcheck uninitialised variable errors
Brad Hubbard [Tue, 11 Apr 2017 01:34:37 +0000 (11:34 +1000)]
denc: Silence cppcheck uninitialised variable errors

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agocommon: Restructure cppcheck suppresions
Brad Hubbard [Tue, 11 Apr 2017 01:33:03 +0000 (11:33 +1000)]
common: Restructure cppcheck suppresions

Some of the suppressions are currently redundant and some need to be
changed.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agocrypto: Suppress cppcheck error
Brad Hubbard [Tue, 11 Apr 2017 01:28:35 +0000 (11:28 +1000)]
crypto: Suppress cppcheck error

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoblkdev: Suppress cppcheck error
Brad Hubbard [Tue, 11 Apr 2017 01:27:01 +0000 (11:27 +1000)]
blkdev: Suppress cppcheck error

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agolibrados: Since a pragma push was removed, get rid of that pop 14439/head
Adam C. Emerson [Mon, 10 Apr 2017 21:02:13 +0000 (17:02 -0400)]
librados: Since a pragma push was removed, get rid of that pop

Don't you think the plural of pragma should be pragmata?

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agocmake: Make -Wno-unknown-pragmas common to all compilers
Adam C. Emerson [Mon, 10 Apr 2017 20:47:29 +0000 (16:47 -0400)]
cmake: Make -Wno-unknown-pragmas common to all compilers

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agobluestore: Remove unused expression in statement
Adam C. Emerson [Mon, 10 Apr 2017 20:28:14 +0000 (16:28 -0400)]
bluestore: Remove unused expression in statement

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agofilestore: Fix uninitialized return
Adam C. Emerson [Mon, 10 Apr 2017 19:59:30 +0000 (15:59 -0400)]
filestore: Fix uninitialized return

In some error conditions we were returning the value of an
uninitialized variable.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agorbd: Remove pessimizing move
Adam C. Emerson [Mon, 10 Apr 2017 19:55:23 +0000 (15:55 -0400)]
rbd: Remove pessimizing move

Do not std::move returned values.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agocls: Fix order of operations of std::string constructor
Adam C. Emerson [Mon, 10 Apr 2017 19:35:23 +0000 (15:35 -0400)]
cls: Fix order of operations of std::string constructor

Presumably the intent was to create a string with 128 '1's, rather than
a string with 49 '\200's.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agorgw: Remove pessimizing move of return values
Adam C. Emerson [Mon, 10 Apr 2017 17:12:08 +0000 (13:12 -0400)]
rgw: Remove pessimizing move of return values

C++ performs copy elision of return values if:

1. The value is a local declared in the function (i.e. not a
   parameter)
2. The type of the value in the return statement is, modulo
   const-value qualification, identical to the return type of the
   function.

An RValue reference to a type is not identical, modulo const-value
qualification, to the type it is a reference to.

Do not std::move local values in the return statement unless the value
is a parameter or you will make the compiler perform a copy it would
iotherwise avoid.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agorgw: Make AuthResult::get_completer return rvalue reference
Adam C. Emerson [Mon, 10 Apr 2017 17:09:57 +0000 (13:09 -0400)]
rgw: Make AuthResult::get_completer return rvalue reference

Since we are explicitly moving the completer out of the AuthResult
and allowing the client to have ownership of it, simply return an
rvalue reference rather than moving into a temporary that is itself
returned.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agomsg: Remove pessimizing move
Adam C. Emerson [Mon, 10 Apr 2017 17:02:43 +0000 (13:02 -0400)]
msg: Remove pessimizing move

Do not std::move the result of a function returning a value.

(Once could reasonably std::move the result of a function returning an
lvalue reference, but *not* that of one returning a value.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agoosd: The shard_id_t constructor takes an int8_t
Adam C. Emerson [Mon, 10 Apr 2017 17:01:40 +0000 (13:01 -0400)]
osd: The shard_id_t constructor takes an int8_t

So pass it -1 rather than 255 to avoid an implicit conversion warning.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agomonc: Remove pessimizing move
Adam C. Emerson [Mon, 10 Apr 2017 15:48:57 +0000 (11:48 -0400)]
monc: Remove pessimizing move

Calling std::move on on a function returning a value can interfere
with RVO. At best it has no effect, but can actively interfere with
Copy/Move Elision and make code less efficient.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agoMerge pull request #13940 from Adirl/out
Haomai Wang [Tue, 11 Apr 2017 01:13:03 +0000 (09:13 +0800)]
Merge pull request #13940 from Adirl/out

msg/async/rdma: Update fix broken compilation

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14409 from Adirl/conn_info
Haomai Wang [Tue, 11 Apr 2017 01:11:39 +0000 (09:11 +0800)]
Merge pull request #14409 from Adirl/conn_info

msg/async/rdma: RDMA-CM, Pass specific ConnMgr info in constructor

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14410 from Adirl/get_device
Haomai Wang [Tue, 11 Apr 2017 01:10:26 +0000 (09:10 +0800)]
Merge pull request #14410 from Adirl/get_device

msg/async/rdma: RDMA-CM, get_device() by ibv_context

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13073 from chardan/jfw-wip-15475-admin_heap_command
Sage Weil [Mon, 10 Apr 2017 21:24:14 +0000 (16:24 -0500)]
Merge pull request #13073 from chardan/jfw-wip-15475-admin_heap_command

osd: add "heap *" admin command

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14235 from nvedant07/bug_fix_3
Sage Weil [Mon, 10 Apr 2017 21:23:18 +0000 (16:23 -0500)]
Merge pull request #14235 from nvedant07/bug_fix_3

rados: more info added to pool deletion error

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14022 from batrick/admin-socket-close-error
Sage Weil [Mon, 10 Apr 2017 21:22:59 +0000 (16:22 -0500)]
Merge pull request #14022 from batrick/admin-socket-close-error

common: do not print error when asok is closed

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14292 from joscollin/wip-radosacl-warning
Sage Weil [Mon, 10 Apr 2017 21:22:37 +0000 (16:22 -0500)]
Merge pull request #14292 from joscollin/wip-radosacl-warning

tools: warning, ‘%.16x’ directive output truncated writing 16 bytes into a region of size 9.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14301 from Andrey1994/master
Sage Weil [Mon, 10 Apr 2017 21:22:21 +0000 (16:22 -0500)]
Merge pull request #14301 from Andrey1994/master

build: Add Virtuozzo Linux support

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14336 from Adirl/fix_sockaddr
Sage Weil [Mon, 10 Apr 2017 21:22:07 +0000 (16:22 -0500)]
Merge pull request #14336 from Adirl/fix_sockaddr

src/msg/async: Update fix broken compilation for Posix

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agodoc: add changelog for v10.2.7 14441/head
Abhishek Lekshmanan [Mon, 10 Apr 2017 20:33:23 +0000 (22:33 +0200)]
doc: add changelog for v10.2.7

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoMerge pull request #14039 from dachary/wip-19307-set-deviceclass
Yuri Weinstein [Mon, 10 Apr 2017 20:30:32 +0000 (13:30 -0700)]
Merge pull request #14039 from dachary/wip-19307-set-deviceclass

mon/OSDMonitor: osd crush set-device-class

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14208 from dachary/wip-crush-uniform-weights
Yuri Weinstein [Mon, 10 Apr 2017 20:28:41 +0000 (13:28 -0700)]
Merge pull request #14208 from dachary/wip-crush-uniform-weights

crush: bucket: crush_add_uniform_bucket_item should check for uniformity

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14209 from dachary/wip-crush-create-default-tunables
Yuri Weinstein [Mon, 10 Apr 2017 20:27:32 +0000 (13:27 -0700)]
Merge pull request #14209 from dachary/wip-crush-create-default-tunables

crush: builder: creating crush map with optimal configurations

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