]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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_
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>
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_
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>
Sage Weil [Sat, 12 Aug 2017 18:03:58 +0000 (13:03 -0500)]
Merge pull request #15921 from joscollin/wip-CID1411830-Uninitialized-pointer-field
test/osd: Non-static class members not initialized in UnsetRedirectOp
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Jos Collin [Mon, 26 Jun 2017 14:07:14 +0000 (19:37 +0530)]
test/osd: Non-static class member not initialized in UnsetRedirectOp
Fixes the coverity scan report:
CID
1411830 : Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member completion is not initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member comp is not initialized in this constructor nor in any functions that it calls.
Signed-off-by: Jos Collin <jcollin@redhat.com>
Jos Collin [Sat, 12 Aug 2017 07:50:05 +0000 (07:50 +0000)]
Merge pull request #15922 from joscollin/wip-CID1411829-Uninitialized-scalar-field
test/osd: initialize Non-static class members in WeightedTestGenerator
Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Sat, 12 Aug 2017 02:55:34 +0000 (21:55 -0500)]
Merge pull request #16924 from liewegas/wip-20923
os/bluestore: fail early on very large objects
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Thu, 10 Aug 2017 19:03:34 +0000 (15:03 -0400)]
test/osd/safe-to-destroy.sh: test 'osd safe-to-destroy'
This is hard with workunits/cephtool/test.sh because we don't
control the whole cluster.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Aug 2017 18:06:02 +0000 (14:06 -0400)]
mgr: implement 'osd safe-to-destroy' and 'ok-to-stop' commands
An osd is safe to destroy if
- we have osd_stat for it
- osd_stat indicates no pgs stored
- all pgs are known
- no pgs map to it
An osd is ok ot stop if
- we have pg stats
- no pgs will drop below min_size
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Aug 2017 19:00:46 +0000 (15:00 -0400)]
mgr/ClusterState: record osd_stat for out osds too
I'm not quite sure why we were doing this. :/
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Aug 2017 18:05:10 +0000 (14:05 -0400)]
osd/osd_types: include number of locally stored PGs in osd_stat_t
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Aug 2017 22:13:40 +0000 (18:13 -0400)]
osd/OSDMap: add parse_osd_id_list helper
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 12 Aug 2017 02:36:53 +0000 (21:36 -0500)]
Merge pull request #16992 from liewegas/wip-20977
os/bluestore: do not segv on kraken upgrade debug print
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Sat, 12 Aug 2017 02:36:32 +0000 (21:36 -0500)]
Merge pull request #16993 from liewegas/wip-mimic
common: kick off mimic
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Sage Weil [Sat, 12 Aug 2017 02:35:35 +0000 (21:35 -0500)]
Merge pull request #16994 from liewegas/wip-20983
os/bluestore: fix clone dirty_range again
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Sat, 12 Aug 2017 02:34:48 +0000 (21:34 -0500)]
Merge pull request #16995 from liewegas/wip-20738
os/memstore: memstore_page_set=false
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Sage Weil [Sat, 12 Aug 2017 02:34:07 +0000 (21:34 -0500)]
Merge pull request #16996 from liewegas/wip-mgr-vs-clock-skew
qa/suites/rados/multimon: whitelist mgr down vs clock skew test
Greg Farnum [Fri, 11 Aug 2017 22:31:43 +0000 (15:31 -0700)]
mon: correctly print out mds versions (instead of mon ones)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Greg Farnum [Fri, 11 Aug 2017 22:10:01 +0000 (15:10 -0700)]
osd: be more precise about our asserts and cases when rebuilding missing sets and handling divergent priors
Fixes: http://tracker.ceph.com/issues/20985
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Gregory Farnum [Fri, 11 Aug 2017 21:25:16 +0000 (14:25 -0700)]
Merge pull request #16898 from amitkumar50/cov-messages-6
messages: Initialization of member variables
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Sage Weil [Fri, 11 Aug 2017 15:58:42 +0000 (11:58 -0400)]
os/bluestore: do not segv on kraken upgrade debug print
When loading an onode from kraken we have a compat path that calls
get_ref before the SharedBlob pointer is initialized. This is fine except
that if debugging is enabled the operator<< on the Blob will segv on
printing *b.shared_blob (which is NULL).
Fix operator<< to print something else if it is NULL. shared_blob does
get set up right after the call to decode() so having it be NULL at this
point is otherwise harmless.
Fixes: http://tracker.ceph.com/issues/20977
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 11 Aug 2017 17:42:02 +0000 (13:42 -0400)]
qa/suites/rados/multimon: whitelist mgr down vs clock skew test
Clock skew might make us fail the mgr.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 11 Aug 2017 17:31:51 +0000 (13:31 -0400)]
os/memstore: memstore_page_set=false
This regularly returns bad results, see http://tracker.ceph.com/issues/20738
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 11 Aug 2017 16:46:09 +0000 (12:46 -0400)]
os/bluestore: fix clone dirty_range again
If we are cloning a blob for a 1 byte logical extent then dirty_range_begin
will equal _end and we won't dirty the source onode (with possibly newly
shared blobs).
Fix by using a separate flag to indicate whether we are dirtying instead
of overloading the begin/end markers for this. Note that even if they
are equal dirty_range will still dirty the shard in question.
This is a result of
0ae5d92d42500e5ab08253a00bda47b957767ebc .
Fixes: http://tracker.ceph.com/issues/20983
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 11 Aug 2017 16:14:51 +0000 (12:14 -0400)]
include/rados: nautilus is next
Signed-off-by: Sage Weil <sage@redhat.com>