]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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 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>
8 years agoMerge pull request #14401 from dillaman/wip-rbd-import-fixes
Mykola Golub [Mon, 10 Apr 2017 19:23:53 +0000 (22:23 +0300)]
Merge pull request #14401 from dillaman/wip-rbd-import-fixes

rbd: correct issues with image importing

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14437 from cernceph/dvanders_mgrrotate
Sage Weil [Mon, 10 Apr 2017 19:20:32 +0000 (14:20 -0500)]
Merge pull request #14437 from cernceph/dvanders_mgrrotate

ceph-mgr: rotate logs on sighup

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoscript: serve-doc print the port we're serving 14438/head
Abhishek Lekshmanan [Mon, 10 Apr 2017 17:16:56 +0000 (19:16 +0200)]
script: serve-doc print the port we're serving

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoscript: build-doc use python2 only for virtualenv
Abhishek Lekshmanan [Mon, 10 Apr 2017 17:15:25 +0000 (19:15 +0200)]
script: build-doc use python2 only for virtualenv

This is because the sphinx-ditaa package and ceph's rbd/rgw/rados pybind
require python2

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: release notes for v10.2.7 Jewel 14295/head
Abhishek Lekshmanan [Mon, 3 Apr 2017 09:40:56 +0000 (11:40 +0200)]
doc: release notes for v10.2.7 Jewel

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #14413 from hansbogert/patch-3
Kefu Chai [Mon, 10 Apr 2017 16:25:25 +0000 (00:25 +0800)]
Merge pull request #14413 from hansbogert/patch-3

doc: rgw: remove mention of megabytes for quotas

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agologrotate.conf: also sighup the ceph-mgr 14437/head
Dan van der Ster [Mon, 10 Apr 2017 15:34:48 +0000 (17:34 +0200)]
logrotate.conf: also sighup the ceph-mgr

Tell ceph-mgr to reopen its logs postrotate.

Fixes: http://tracker.ceph.com/issues/19568
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
8 years agoceph_fuse.cc: fix 64/32bit detection 14426/head
Danny Al-Gaaf [Tue, 21 Feb 2017 15:50:13 +0000 (16:50 +0100)]
ceph_fuse.cc: fix 64/32bit detection

Fix for:

[src/ceph_fuse.cc:111]: (style) Condition 'sizeof(long)==4' is always false

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agolua_bufferlist.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:39:34 +0000 (16:39 +0100)]
lua_bufferlist.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoBitAllocator_test.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:25:00 +0000 (16:25 +0100)]
BitAllocator_test.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotest_librbd.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:24:43 +0000 (16:24 +0100)]
test_librbd.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw_rest_s3.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:24:26 +0000 (16:24 +0100)]
rgw_rest_s3.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoPrimaryLogPG.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:24:06 +0000 (16:24 +0100)]
PrimaryLogPG.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoosd/PG.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:23:40 +0000 (16:23 +0100)]
osd/PG.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoBitAllocator.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 15:23:12 +0000 (16:23 +0100)]
BitAllocator.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoMerge pull request #14430 from jcsp/wip-19566-monassert
Kefu Chai [Mon, 10 Apr 2017 15:31:06 +0000 (23:31 +0800)]
Merge pull request #14430 from jcsp/wip-19566-monassert

mon: avoid segfault in wait_auth_rotating

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoceph-mgr: reopen logs on SIGHUP
Dan van der Ster [Mon, 10 Apr 2017 15:29:05 +0000 (17:29 +0200)]
ceph-mgr: reopen logs on SIGHUP

Wire up the sighup_handler to reopen logs, like the other daemons.

Fixes: http://tracker.ceph.com/issues/19568
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
8 years agoMerge pull request #14428 from tchaikov/wip-ceph_objectstore_tool-kill-all
Kefu Chai [Mon, 10 Apr 2017 15:16:09 +0000 (23:16 +0800)]
Merge pull request #14428 from tchaikov/wip-ceph_objectstore_tool-kill-all

tests: ceph_objectstore_tool.py: kill all daemons

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #10636 from fullerdj/wip-djf-15069
John Spray [Mon, 10 Apr 2017 12:52:04 +0000 (13:52 +0100)]
Merge pull request #10636 from fullerdj/wip-djf-15069

cephfs: Permit recovering metadata into a new RADOS pool

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agomon: avoid segfault in wait_auth_rotating 14430/head
John Spray [Mon, 10 Apr 2017 12:00:41 +0000 (13:00 +0100)]
mon: avoid segfault in wait_auth_rotating

MonClient users should not be calling into MonClient
after calling shutdown().  However, MonClient should
assert out rather than proceeding to try and
follow a maybe-null pointer.

Related to http://tracker.ceph.com/issues/19566

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agotests: ceph_objectstore_tool.py: kill all daemons 14428/head
Kefu Chai [Sat, 8 Apr 2017 14:27:33 +0000 (22:27 +0800)]
tests: ceph_objectstore_tool.py: kill all daemons

init-ceph kills all daemons that can be identified by get_name_list() by
default, so no need to list them explicitly. also, without this change,
mgr is not stopped when the test finishes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosd/OSD.cc: use static_cast instead of c-style
Danny Al-Gaaf [Tue, 21 Feb 2017 14:56:31 +0000 (15:56 +0100)]
osd/OSD.cc: use static_cast instead of c-style

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw_rest_s3.cc: reorder checks in while loop
Danny Al-Gaaf [Tue, 21 Feb 2017 14:28:46 +0000 (15:28 +0100)]
rgw_rest_s3.cc: reorder checks in while loop

Fix for:

[src/rgw/rgw_rest_s3.cc:1224]: (style) Array index 'chunk_offset'
 is used before limits check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoAsyncMessenger.cc: fix FORWARD_NULL
Danny Al-Gaaf [Tue, 21 Feb 2017 13:31:53 +0000 (14:31 +0100)]
AsyncMessenger.cc: fix FORWARD_NULL

Use assert to ensure Message *m is not NULL.

Fix for:

CID 1399578 (#4 of 4): Dereference after null check (FORWARD_NULL)
 var_deref_model: Passing null pointer m to submit_message,
 which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agorgw_file.h: fix potential data race condition
Danny Al-Gaaf [Tue, 21 Feb 2017 12:55:40 +0000 (13:55 +0100)]
rgw_file.h: fix potential data race condition

Fix for:

CID 1399581 (#1 of 1): Data race condition (MISSING_LOCK)
 missing_lock: Accessing this->state.atime without holding lock
 rgw::RGWFileHandle.mtx. Elsewhere, "_ZN3rgw13RGWFileHandle5StateE.atime"
 is accessed with rgw::RGWFileHandle.mtx held 2 out of 3 times
 (2 of these accesses strongly imply that it is necessary).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agocls_rgw_client.h: Close resource leak
Danny Al-Gaaf [Mon, 20 Feb 2017 16:08:39 +0000 (17:08 +0100)]
cls_rgw_client.h: Close resource leak

Fix for:

CID 1395687 (#1 of 1): Resource leak (RESOURCE_LEAK)
CID 1395679 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable c going out of scope leaks the storage it
 points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agomount.ceph.c: fix resource leak
Danny Al-Gaaf [Mon, 20 Feb 2017 15:41:49 +0000 (16:41 +0100)]
mount.ceph.c: fix resource leak

Addressed issue:

CID 1219611 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable saw_name going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agotest_ipaddr.cc: fix UNINIT issues around sockaddr_in struct
Danny Al-Gaaf [Mon, 20 Feb 2017 14:56:40 +0000 (15:56 +0100)]
test_ipaddr.cc: fix UNINIT issues around sockaddr_in struct

Fix for:

CID 1396088 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396090 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396091 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396092 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396096 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396097 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396099 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396101 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396103 (#1 of 1): Uninitialized scalar variable (UNINIT)
CID 1396104 (#1 of 1): Uninitialized scalar variable (UNINIT)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
8 years agoMerge pull request #14280 from tone-zhang/bug_19442
Radoslaw Zarzynski [Mon, 10 Apr 2017 09:51:55 +0000 (11:51 +0200)]
Merge pull request #14280 from tone-zhang/bug_19442

rgw: fix response header of Swift API

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14378 from kestrels/wip-19454
Kefu Chai [Mon, 10 Apr 2017 08:01:26 +0000 (16:01 +0800)]
Merge pull request #14378 from kestrels/wip-19454

arch: fix build on PowerPC with FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agodocs: Clarify the relationship of min_size to EC pool recovery 14419/head
Brad Hubbard [Mon, 10 Apr 2017 05:14:20 +0000 (15:14 +1000)]
docs: Clarify the relationship of min_size to EC pool recovery

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14360 from joscollin/wip-Update-organizationmap
Brad Hubbard [Mon, 10 Apr 2017 02:34:44 +0000 (12:34 +1000)]
Merge pull request #14360 from joscollin/wip-Update-organizationmap

.organizationmap: Updated authors

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #13803 from trociny/wip-18785
Jason Dillaman [Sun, 9 Apr 2017 13:59:57 +0000 (09:59 -0400)]
Merge pull request #13803 from trociny/wip-18785

rbd-mirror: separate ImageReplayer handling from Replayer

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14406 from wjwithagen/wip-wjw-freebsd.readme
Kefu Chai [Sun, 9 Apr 2017 12:34:56 +0000 (20:34 +0800)]
Merge pull request #14406 from wjwithagen/wip-wjw-freebsd.readme

README.FreeBSD: Update the status

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: rgw: remove mention of megabytes for quotas 14413/head
Hans van den Bogert [Sun, 9 Apr 2017 11:21:18 +0000 (13:21 +0200)]
doc: rgw: remove mention of megabytes for quotas

Remove mention of confusing reference to megabytes in opening paragraph of "quota management".
To remove further confusion, mention that setting a size for '--max-size' is in bytes by default.

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
8 years agoREADME.FreeBSD: Update the status 14406/head
Willem Jan Withagen [Sat, 8 Apr 2017 16:31:13 +0000 (18:31 +0200)]
README.FreeBSD: Update the status

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #14397 from liewegas/wip-19541
Kefu Chai [Sun, 9 Apr 2017 07:59:59 +0000 (15:59 +0800)]
Merge pull request #14397 from liewegas/wip-19541

osd/PG: only correct filestore collection bits on load

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomsg/async/rdma: get_device() by ibv_context 14410/head
Amir Vadai [Thu, 23 Mar 2017 08:39:08 +0000 (10:39 +0200)]
msg/async/rdma: get_device() by ibv_context

This function will be used by RDMAConnCM

Issue: 995322
Change-Id: I52b684e8bbac14c1070801b2ba470c7c0dfe40b9
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agomsg/async/rdma: Pass specific ConnMgr info in constructor 14409/head
Amir Vadai [Thu, 30 Mar 2017 11:15:57 +0000 (14:15 +0300)]
msg/async/rdma: Pass specific ConnMgr info in constructor

Pass specific information for RDMAConnTCP (and later for RDMAConnCM) in
the constructor.
This makes set_accept_fd() redundant.

Issue: 995322
Change-Id: I10b4a626f180858465a378e886a238fe187180d5
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agoMerge pull request #14382 from zealoussnow/wip-0407
Sage Weil [Sat, 8 Apr 2017 18:28:23 +0000 (13:28 -0500)]
Merge pull request #14382 from zealoussnow/wip-0407

messages: fix return type name of MOSDMap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14405 from wjwithagen/wip-wjw-gitignore
Sage Weil [Sat, 8 Apr 2017 18:25:43 +0000 (13:25 -0500)]
Merge pull request #14405 from wjwithagen/wip-wjw-gitignore

gitignore: Ignore rejects by patch

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14261 from liewegas/wip-15386
Sage Weil [Sat, 8 Apr 2017 18:24:22 +0000 (13:24 -0500)]
Merge pull request #14261 from liewegas/wip-15386

ceph_test_librados_api_misc: fix stupid LibRadosMiscConnectFailure.ConnectFailure test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14130 from liewegas/wip-json-slash
Sage Weil [Sat, 8 Apr 2017 18:21:44 +0000 (13:21 -0500)]
Merge pull request #14130 from liewegas/wip-json-slash

common/escape: do not escape / in json

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #14198 from liewegas/wip-fs
Sage Weil [Sat, 8 Apr 2017 18:21:03 +0000 (13:21 -0500)]
Merge pull request #14198 from liewegas/wip-fs

qa/suites: drop 'fs' facet, and add 'objectstore' facet where missing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14255 from liewegas/wip-19430
Sage Weil [Sat, 8 Apr 2017 18:19:50 +0000 (13:19 -0500)]
Merge pull request #14255 from liewegas/wip-19430

osd/PrimaryLogPG: do not expect FULL_TRY ops to get resent

Reviewed-by: Josh Durgin <jdurgin@redhat.com>