]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agotest: Don't dump core when using EXPECT_DEATH 17390/head
Kefu Chai [Thu, 31 Aug 2017 08:48:22 +0000 (16:48 +0800)]
test: Don't dump core when using EXPECT_DEATH

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17358 from tchaikov/wip-doc-disable-ofp
Haomai Wang [Wed, 30 Aug 2017 06:35:04 +0000 (23:35 -0700)]
Merge pull request #17358 from tchaikov/wip-doc-disable-ofp

doc/dev/perf: add doc on disabling -fomit-frame-pointer

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #16357 from Blackclaws/master
Kefu Chai [Wed, 30 Aug 2017 05:44:50 +0000 (13:44 +0800)]
Merge pull request #16357 from Blackclaws/master

ceph-disk activate unlocks bluestore data partition

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16312 from tchaikov/wip-store-event-if-added
Kefu Chai [Wed, 30 Aug 2017 05:43:16 +0000 (13:43 +0800)]
Merge pull request #16312 from tchaikov/wip-store-event-if-added

common,mds,mgr,mon,osd: store event only if it's added

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/dev/perf: add doc on disabling -fomit-frame-pointer 17358/head
Kefu Chai [Wed, 30 Aug 2017 04:14:37 +0000 (12:14 +0800)]
doc/dev/perf: add doc on disabling -fomit-frame-pointer

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15847 from jan--f/doc-fix-multimds-cmds
Sage Weil [Wed, 30 Aug 2017 03:19:59 +0000 (22:19 -0500)]
Merge pull request #15847 from jan--f/doc-fix-multimds-cmds

doc: add allow_multimds and fs_name parameter

Reviewed-by: Yan, Zheng <zyan@redhat.com>
7 years agoMerge pull request #16210 from aclamk/fix-radosgw-nfs-sync-hint
Sage Weil [Wed, 30 Aug 2017 02:53:49 +0000 (21:53 -0500)]
Merge pull request #16210 from aclamk/fix-radosgw-nfs-sync-hint

rgw,nfs: Add hint to use -o sync when mouting

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge pull request #16542 from linuxbox2/wip-rados-urls
Sage Weil [Wed, 30 Aug 2017 02:34:32 +0000 (21:34 -0500)]
Merge pull request #16542 from linuxbox2/wip-rados-urls

librados.h:  add LIBRADOS_SUPPORTS_APP_METADATA

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17346 from idryomov/wip-krbd-xfstests-update
Jason Dillaman [Tue, 29 Aug 2017 22:28:48 +0000 (18:28 -0400)]
Merge pull request #17346 from idryomov/wip-krbd-xfstests-update

qa/suites/krbd: rbd_xfstests job overhaul

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16771 from yanyixing/fix-base
Sage Weil [Tue, 29 Aug 2017 22:25:33 +0000 (17:25 -0500)]
Merge pull request #16771 from yanyixing/fix-base

mgr/dashboard: fix pool size base conversion

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16988 from mikulely/wip-mstart
Sage Weil [Tue, 29 Aug 2017 22:17:06 +0000 (17:17 -0500)]
Merge pull request #16988 from mikulely/wip-mstart

mstart.sh: support read CLUSTERS_LIST from env var

Reviewed-by: Sage Weil <sage@redhat.com.>
7 years agoMerge pull request #17057 from mikulely/enhance-vstart
Sage Weil [Tue, 29 Aug 2017 22:13:21 +0000 (17:13 -0500)]
Merge pull request #17057 from mikulely/enhance-vstart

vstart.sh: quote cmd params when display executing cmd

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17092 from Liuchang0812/wip-man-kvstore-tool
Sage Weil [Tue, 29 Aug 2017 22:10:12 +0000 (17:10 -0500)]
Merge pull request #17092 from Liuchang0812/wip-man-kvstore-tool

doc: add ceph-kvstore-tool's man

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17119 from nrdmn/wip-dashboard-httproot
Sage Weil [Tue, 29 Aug 2017 22:07:41 +0000 (17:07 -0500)]
Merge pull request #17119 from nrdmn/wip-dashboard-httproot

pybind/mgr/dashboard: add url_prefix

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17135 from amitkumar50/cov-tools-1
Sage Weil [Tue, 29 Aug 2017 22:06:11 +0000 (17:06 -0500)]
Merge pull request #17135 from amitkumar50/cov-tools-1

tools: Initialization of *server, command variables

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17143 from smithfarm/wip-50-too-short
Sage Weil [Tue, 29 Aug 2017 22:05:08 +0000 (17:05 -0500)]
Merge pull request #17143 from smithfarm/wip-50-too-short

doc: SubmittingPatches: clarify PR title section

7 years agoMerge pull request #17177 from liupan1111/wip-fix-rm
Sage Weil [Tue, 29 Aug 2017 20:59:59 +0000 (15:59 -0500)]
Merge pull request #17177 from liupan1111/wip-fix-rm

osd: allow FULL_TRY after failsafe

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17220 from amitkumar50/cov-test-2
Sage Weil [Tue, 29 Aug 2017 20:59:32 +0000 (15:59 -0500)]
Merge pull request #17220 from amitkumar50/cov-test-2

test: Check to avoid divide by zero

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17313 from mslovy/wip-fix-storetest
Sage Weil [Tue, 29 Aug 2017 20:58:54 +0000 (15:58 -0500)]
Merge pull request #17313 from mslovy/wip-fix-storetest

os: kstore fix unittest for FiemapHole

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17329 from xiexingguo/wip-21162
Sage Weil [Tue, 29 Aug 2017 20:58:21 +0000 (15:58 -0500)]
Merge pull request #17329 from xiexingguo/wip-21162

mon/OSDMonitor: make 'osd crush rule rename' idempotent

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17296 from amitkumar50/cov-test-4
Sage Weil [Tue, 29 Aug 2017 20:38:10 +0000 (15:38 -0500)]
Merge pull request #17296 from amitkumar50/cov-test-4

test: assert check for negative returns

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17297 from amitkumar50/cov-os-2
Sage Weil [Tue, 29 Aug 2017 20:37:31 +0000 (15:37 -0500)]
Merge pull request #17297 from amitkumar50/cov-os-2

os: Removing dead code from LFNIndex.cc

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17334 from chenliuzhong/modify-fault_rang-parameter-in-reshard
Sage Weil [Tue, 29 Aug 2017 20:29:14 +0000 (15:29 -0500)]
Merge pull request #17334 from chenliuzhong/modify-fault_rang-parameter-in-reshard

os/bluestore: ExtentMap::reshard - fix wrong shard length

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
7 years agoMerge pull request #17337 from scienceluo/wip-luo-fix-cinder-conf-branch
Sage Weil [Tue, 29 Aug 2017 20:25:04 +0000 (15:25 -0500)]
Merge pull request #17337 from scienceluo/wip-luo-fix-cinder-conf-branch

doc: move glance_api_version option to the right place

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17341 from amitkumar50/cov-common-1
Sage Weil [Tue, 29 Aug 2017 20:24:29 +0000 (15:24 -0500)]
Merge pull request #17341 from amitkumar50/cov-common-1

common: logically dead code inside shunique_lock.h

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16915 from theanalyst/doc-12.2.0-major-changes
Sage Weil [Tue, 29 Aug 2017 18:54:01 +0000 (13:54 -0500)]
Merge pull request #16915 from theanalyst/doc-12.2.0-major-changes

doc: 12.2.0 major release announcements

7 years agodoc: release notes: changelog for 12.2.0 16915/head
Abhishek Lekshmanan [Tue, 29 Aug 2017 09:16:46 +0000 (11:16 +0200)]
doc: release notes: changelog for 12.2.0

Amalgamated all the dev & RC changelogs + the changelog we saw post
12.1.4 into one large 12.2.0 changelog.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #17308 from jcsp/wip-21157
Sage Weil [Tue, 29 Aug 2017 16:34:37 +0000 (11:34 -0500)]
Merge pull request #17308 from jcsp/wip-21157

mgr: fix crash in MonCommandCompletion

Reviewed-by: Tim Serong <tserong@suse.com>
7 years agoMerge pull request #17312 from cbodley/wip-21155
Kefu Chai [Tue, 29 Aug 2017 16:14:21 +0000 (00:14 +0800)]
Merge pull request #17312 from cbodley/wip-21155

qa: create_cache_pool no longer runs 'pool application enable'

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17125 from xiexingguo/wip-add-bucket-with-loc
Yuri Weinstein [Tue, 29 Aug 2017 16:12:43 +0000 (09:12 -0700)]
Merge pull request #17125 from xiexingguo/wip-add-bucket-with-loc

mon/OSDMonitor: add location option for "crush add-bucket" command

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17239 from zmedico/PGPool-update-eliminate-expensive-union_of
Yuri Weinstein [Tue, 29 Aug 2017 16:12:25 +0000 (09:12 -0700)]
Merge pull request #17239 from zmedico/PGPool-update-eliminate-expensive-union_of

osd/PG: PGPool::update: avoid expensive union_of

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17276 from yuyuyu101/wip-mon-loop
Yuri Weinstein [Tue, 29 Aug 2017 16:11:53 +0000 (09:11 -0700)]
Merge pull request #17276 from yuyuyu101/wip-mon-loop

msg/async: don't stuck into resetsession/retrysession loop

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17288 from yuyuyu101/wip-21143
Yuri Weinstein [Tue, 29 Aug 2017 16:11:03 +0000 (09:11 -0700)]
Merge pull request #17288 from yuyuyu101/wip-21143

msg/async: don't kill connection if replacing

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agocommon: logically dead code inside shunique_lock.h 17341/head
amitkuma [Tue, 29 Aug 2017 15:46:50 +0000 (21:16 +0530)]
common: logically dead code inside shunique_lock.h

Fixes the coverity issue:

** 1352097 Structurally dead code

CID 1352097 (#1 of 1): Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: return ceph::shunique_lock<...

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17254 from joscollin/wip-cleanup-rgw-override
Casey Bodley [Tue, 29 Aug 2017 14:10:49 +0000 (10:10 -0400)]
Merge pull request #17254 from joscollin/wip-cleanup-rgw-override

rgw: add missing override in list_keys_init()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/suites/krbd: new rbd_xfstests job definition 17346/head
Ilya Dryomov [Fri, 18 Aug 2017 15:49:03 +0000 (17:49 +0200)]
qa/suites/krbd: new rbd_xfstests job definition

ext4 seems to be a better choice for our purposes -- less test churn,
rather small and reliable exclude list.

All excluded tests but generic/050 fail with no krbd in the mix, most
have popped up on linux-ext4 list at least once.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa/tasks/rbd.xfstests: take exclude list from yaml
Ilya Dryomov [Thu, 17 Aug 2017 13:35:42 +0000 (15:35 +0200)]
qa/tasks/rbd.xfstests: take exclude list from yaml

Different filesystems (and further, different configurations of the
same filesystem) need different exclude lists.  Hard coding the list in
a wrapper script is inflexible.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa/run_xfstests.sh: quit building xfstests on test nodes
Ilya Dryomov [Wed, 16 Aug 2017 09:47:19 +0000 (11:47 +0200)]
qa/run_xfstests.sh: quit building xfstests on test nodes

xfstests is a pain to build on trusty, xenial and centos7 with a single
script.  It is also very sensitive to dependencies, which again need to
be managed on all those distros -- different sets of supported commands
and switches, some versions have known bugs, etc.

Download a pre-built, statically linked tarball and use it instead.
The tarball was generated using xfstests-bld by Ted Ts'o, with a number
of tweaks by myself (mostly concerning the build environment).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa/run_xfstests.sh: drop *_MKFS_OPTIONS variables
Ilya Dryomov [Wed, 16 Aug 2017 09:47:19 +0000 (11:47 +0200)]
qa/run_xfstests.sh: drop *_MKFS_OPTIONS variables

AFAICT ./check doesn't query EXT4_MKFS_OPTIONS or BTRFS_MKFS_OPTIONS,
We don't need anything special for xfs, so remove all of them to avoid
confusion.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa/run_xfstests.sh: kill FS_TYPE variable
Ilya Dryomov [Wed, 16 Aug 2017 09:47:19 +0000 (11:47 +0200)]
qa/run_xfstests.sh: kill FS_TYPE variable

./check expects FSTYP, so use that throughout.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoqa: create_cache_pool no longer runs 'pool application enable' 17312/head
Casey Bodley [Mon, 28 Aug 2017 14:14:03 +0000 (10:14 -0400)]
qa: create_cache_pool no longer runs 'pool application enable'

Fixes: http://tracker.ceph.com/issues/21155
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17311 from hjwsm1989/wip-monop-tracker
Sage Weil [Tue, 29 Aug 2017 13:40:16 +0000 (08:40 -0500)]
Merge pull request #17311 from hjwsm1989/wip-monop-tracker

mon: use ceph_clock_now if message is self-generated

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17330 from xiexingguo/wip-class-rename-idempotent
Sage Weil [Tue, 29 Aug 2017 13:38:53 +0000 (08:38 -0500)]
Merge pull request #17330 from xiexingguo/wip-class-rename-idempotent

mon/OSDMonitor: make 'osd crush class rename' idempotent

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16863 from mikulely/fix-curl-referer
Yehuda Sadeh [Tue, 29 Aug 2017 13:38:45 +0000 (16:38 +0300)]
Merge pull request #16863 from mikulely/fix-curl-referer

rgw: fix opslog can't record referrer when using curl as client

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #16860 from mikulely/fix-opslog
Yehuda Sadeh [Tue, 29 Aug 2017 13:33:42 +0000 (16:33 +0300)]
Merge pull request #16860 from mikulely/fix-opslog

rgw: fix opslog cannot record remote_addr

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #16933 from amitkumar50/cov-rgw-3
Yehuda Sadeh [Tue, 29 Aug 2017 13:31:14 +0000 (16:31 +0300)]
Merge pull request #16933 from amitkumar50/cov-rgw-3

rgw: Initialize is_master, max_aio, size

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #17185 from oritwas/wip-rgw-20777
Yehuda Sadeh [Tue, 29 Aug 2017 12:45:23 +0000 (15:45 +0300)]
Merge pull request #17185 from oritwas/wip-rgw-20777

rgw-admin: require --yes-i-really-mean-it when using --inconsistent_index

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agodoc: 12.2.0 major release announcements
Abhishek Lekshmanan [Thu, 24 Aug 2017 12:40:33 +0000 (14:40 +0200)]
doc: 12.2.0 major release announcements

Reordered the RC releases sections back to their respective components,
added a ceph-mon section, added links to documentation wherever
possible, and a few forgotten RGW announcements. Also cleared up the
PendingReleaseNotes upto this point

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoos/bluestore:reshard-fix wrong shard length 17334/head
chenliuzhong [Tue, 29 Aug 2017 06:28:01 +0000 (02:28 -0400)]
os/bluestore:reshard-fix wrong shard length

change fault_range parameter from 'needs_reshard_end' to 'needs_reshard_end-needs_reshard_begin'
be given needs_reshard_end may be out of bounds

Signed-off-by: chenliuzhong <liuzhong.chen@easystack.cn>
7 years agodoc: move glance_api_version option to the right place 17337/head
Luo Kexue [Tue, 29 Aug 2017 09:09:41 +0000 (17:09 +0800)]
doc: move glance_api_version option to the right place

Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
7 years agopybind: fix filesystem page's pool size display 16771/head
yanyx [Thu, 3 Aug 2017 06:25:35 +0000 (14:25 +0800)]
pybind: fix filesystem page's pool size display

Signed-off-by: Yixing Yan <yanyx@umcloud.com>
7 years agopybind: using default column text-align same as others
yanyx [Thu, 3 Aug 2017 03:54:32 +0000 (11:54 +0800)]
pybind: using default column text-align same as others

Signed-off-by: Yixing Yan <yanyx@umcloud.com>
7 years agopybind: fix health page's pool size display
yanyx [Thu, 3 Aug 2017 03:53:05 +0000 (11:53 +0800)]
pybind: fix health page's pool size display

Signed-off-by: Yixing Yan <yanyx@umcloud.com>
7 years agoMerge pull request #16774 from yanyixing/fix-sidenav
Kefu Chai [Tue, 29 Aug 2017 08:29:16 +0000 (16:29 +0800)]
Merge pull request #16774 from yanyixing/fix-sidenav

mgr/dashboard: fix rbd's pool sub menu

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agovstart.sh: quote cmd params when display executing cmd 17057/head
Jiaying Ren [Thu, 17 Aug 2017 04:11:32 +0000 (12:11 +0800)]
vstart.sh: quote cmd params when display executing cmd

vstart.sh will echo executed cmd to the stdout:

/root/jiaying/ceph/build/bin/radosgw -c /root/jiaying/ceph/build/ceph.conf --log-file=/root/jiaying/ceph/build/out/rgw.j.log --debug-ms=1 -n client.rgw --rgw_frontends=civetweb port=8000

As params contain whitespaces, pasting the above cmd into the shell didn't start rgw
on the port 8000. Now the vstart.sh output is like the following:

'/root/jiaying/ceph/build/bin/radosgw' '-c' '/root/jiaying/ceph/build/ceph.conf' '--log-file=/root/jiaying/ceph/build/out/rgw.j.log' '--debug-ms=1' '-n' 'client.rgw' '--rgw_frontends=civetweb port=8000'

We can paste above cmd to the shell to restart rgw, it's more convenient for debugging.

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
7 years agoMerge pull request #17283 from liupan1111/wip-final-nbd
Mykola Golub [Tue, 29 Aug 2017 06:34:32 +0000 (09:34 +0300)]
Merge pull request #17283 from liupan1111/wip-final-nbd

rbd-nbd: cleanup for NBDServer shut down

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agodoc: add ceph-kvstore-tool's man 17092/head
liuchang0812 [Fri, 18 Aug 2017 13:52:52 +0000 (21:52 +0800)]
doc: add ceph-kvstore-tool's man

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
7 years agoMerge pull request #17269 from liewegas/wip-health
Kefu Chai [Tue, 29 Aug 2017 03:32:04 +0000 (11:32 +0800)]
Merge pull request #17269 from liewegas/wip-health

mon: fix two stray legacy get_health() callers

Reviewed-by: Kefu Chai <kchai@redhat.com
7 years agoMerge pull request #17328 from tchaikov/wip-kill-gcc-warning
Josh Durgin [Tue, 29 Aug 2017 03:26:31 +0000 (20:26 -0700)]
Merge pull request #17328 from tchaikov/wip-kill-gcc-warning

test/unittest_pg_log: silence gcc warning

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17146 from shangzhong/wip-add-line-break
Sage Weil [Tue, 29 Aug 2017 02:58:28 +0000 (21:58 -0500)]
Merge pull request #17146 from shangzhong/wip-add-line-break

common: add line break for "ceph daemon TYPE.ID version"

Reviewed-by: huanwen ren <ren.huanwen@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17091 from liupan1111/wip-txc-add
Sage Weil [Tue, 29 Aug 2017 02:56:32 +0000 (21:56 -0500)]
Merge pull request #17091 from liupan1111/wip-txc-add

os/bluestore: support calculate cost when using spdk.

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17251 from Songweibin/wip-unused-variable
Sage Weil [Tue, 29 Aug 2017 02:55:52 +0000 (21:55 -0500)]
Merge pull request #17251 from Songweibin/wip-unused-variable

os/bluestore: drop unused param "what" in apply()

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomon/OSDMonitor: make 'osd crush class rename' idempotent 17330/head
xie xingguo [Tue, 29 Aug 2017 01:33:51 +0000 (09:33 +0800)]
mon/OSDMonitor: make 'osd crush class rename' idempotent

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/unittest_pg_log: silence gcc warning 17328/head
Kefu Chai [Tue, 29 Aug 2017 02:16:12 +0000 (10:16 +0800)]
test/unittest_pg_log: silence gcc warning

this silences following warning:

In file included from ceph/src/test/osd/TestPGLog.cc:24:0:
ceph/src/googletest/googletest/include/gtest/gtest.h:430:16:
warning: ‘virtual void testing::Test::SetUp()’ was hidden
[-Woverloaded-virtual]
   virtual void SetUp();
                ^~~~~
ceph/src/test/osd/TestPGLog.cc:2703:8: warning:   by ‘void
PGLogTrimTest::SetUp(unsigned int, unsigned int, unsigned int)’
[-Woverloaded-virtual]
   void SetUp(unsigned min_entries, unsigned max_entries, unsigned
dup_track) {
        ^~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17326 from neha-ojha/wip-21023-contd
Kefu Chai [Tue, 29 Aug 2017 02:02:55 +0000 (10:02 +0800)]
Merge pull request #17326 from neha-ojha/wip-21023-contd

doc: fix order of options in osd new

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17180 from tchaikov/wip-literals-for-options
Kefu Chai [Tue, 29 Aug 2017 01:25:33 +0000 (09:25 +0800)]
Merge pull request #17180 from tchaikov/wip-literals-for-options

common/options: use user-defined literals for default values

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #16066 from tanghaodong25/bluefs-sync-write
Kefu Chai [Tue, 29 Aug 2017 01:12:47 +0000 (09:12 +0800)]
Merge pull request #16066 from tanghaodong25/bluefs-sync-write

os/bluestore/BlueFS: don't need wait for aio when using _sync_write

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #15479 from yonghengdexin735/wip-zzz-const
Kefu Chai [Tue, 29 Aug 2017 01:11:58 +0000 (09:11 +0800)]
Merge pull request #15479 from yonghengdexin735/wip-zzz-const

messages/MDentryLink: add const to member function

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17256 from scienceluo/wip-luo-add-log-branch
Kefu Chai [Tue, 29 Aug 2017 01:11:22 +0000 (09:11 +0800)]
Merge pull request #17256 from scienceluo/wip-luo-add-log-branch

auth: add err reason for log info in load function

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: make 'osd crush rule rename' idempotent 17329/head
xie xingguo [Tue, 29 Aug 2017 00:21:07 +0000 (08:21 +0800)]
mon/OSDMonitor: make 'osd crush rule rename' idempotent

Fixes: http://tracker.ceph.com/issues/21162
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agodoc: fix order of options in osd new 17326/head
Neha Ojha [Mon, 28 Aug 2017 22:59:19 +0000 (15:59 -0700)]
doc: fix order of options in osd new

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #17307 from liewegas/wip-powercycle-slow-trim
Sage Weil [Mon, 28 Aug 2017 18:14:16 +0000 (13:14 -0500)]
Merge pull request #17307 from liewegas/wip-powercycle-slow-trim

qa/suites/powercycle/osd/whitelist_health: whitelist slow trimming

7 years agoqa/suites/powercycle/osd/whitelist_health: whitelist more 17307/head
Sage Weil [Mon, 28 Aug 2017 13:38:58 +0000 (09:38 -0400)]
qa/suites/powercycle/osd/whitelist_health: whitelist more

"2017-08-26 16:09:27.704418 mon.a mon.0 172.21.15.169:6789/0 876 : cluster [WRN] MDS health message (mds.0): Behind on trimming (66/30)" in cluster log

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16857 from yanyixing/chartfix
John Spray [Mon, 28 Aug 2017 17:28:34 +0000 (18:28 +0100)]
Merge pull request #16857 from yanyixing/chartfix

pybind: fix chart size become bigger when refresh

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoos: Removing dead code from LFNIndex.cc 17297/head
amitkuma [Mon, 28 Aug 2017 16:46:18 +0000 (22:16 +0530)]
os: Removing dead code from LFNIndex.cc

Fixes the coverity issue:

** 1394832 Logically dead code
cannot_single: At condition r, the value of r
cannot be equal to 0.
dead_error_condition: The condition r must be true.
CID 1394832 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach the expression
-22 inside this statement: return r ? 0 : -22;.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoos:kstore fix unittest for FiemapHole 17313/head
Ning Yao [Mon, 28 Aug 2017 15:48:50 +0000 (15:48 +0000)]
os:kstore fix unittest for FiemapHole

kstore always return [0, object_size] regardless of offset and length

Signed-off-by: Ning Yao <yaoning@unitedstack.com>
7 years agotest: Check to avoid divide by zero 17220/head
amitkuma [Thu, 24 Aug 2017 18:02:46 +0000 (23:32 +0530)]
test: Check to avoid divide by zero

Fixes the coverity issue:

** 1219467 Division or modulo by zero
CID 1219467 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
74. divide_by_zero: In expression 100 / atoi(args[i + 1U]), division
 by expression atoi(args[i + 1U]) which may be zero has undefined behavior.

Signed-off-by: Amit Kumar amitkuma@redhat.com
7 years agotest: assert check for negetive returns 17296/head
amitkuma [Mon, 28 Aug 2017 15:43:37 +0000 (21:13 +0530)]
test: assert check for negetive returns

Fixes the coverity issue:

** 1395371 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returs a negative number.
2. var_assign: Assigning: signed variable fd = open

** 1395427 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returns a negative number.
2. var_assign: Assigning: signed variable fd = open

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17267 from linuxbox2/wip-lock-qlane
Matt Benjamin [Mon, 28 Aug 2017 15:01:03 +0000 (11:01 -0400)]
Merge pull request #17267 from linuxbox2/wip-lock-qlane

rgw_file:  fix LRU lane lock in evict_block()

7 years agomon: use ceph_clock_now if message is self-generated 17311/head
huangjun [Mon, 28 Aug 2017 14:52:37 +0000 (22:52 +0800)]
mon: use ceph_clock_now if message is self-generated

Signed-off-by: huangjun <huangjun@xsky.com>
7 years agomgr: fix crash in MonCommandCompletion 17308/head
John Spray [Mon, 28 Aug 2017 14:08:12 +0000 (10:08 -0400)]
mgr: fix crash in MonCommandCompletion

Fixes: http://tracker.ceph.com/issues/21157
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17293 from tchaikov/wip-jewel-x-singleton
Sage Weil [Mon, 28 Aug 2017 13:55:18 +0000 (08:55 -0500)]
Merge pull request #17293 from tchaikov/wip-jewel-x-singleton

qa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17019 from dachary/wip-doc-ceph-disk
Kefu Chai [Mon, 28 Aug 2017 11:17:33 +0000 (19:17 +0800)]
Merge pull request #17019 from dachary/wip-doc-ceph-disk

doc: document ceph-disk prepare class hierarchy

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals 17293/head
Kefu Chai [Mon, 28 Aug 2017 07:19:10 +0000 (15:19 +0800)]
qa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals

See-also: d5d5d7d1
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17284 from liupan1111/wip-nvme-cleanup
Pan Liu [Mon, 28 Aug 2017 02:01:58 +0000 (10:01 +0800)]
Merge pull request #17284 from liupan1111/wip-nvme-cleanup

bluestore/NVMEDevice: code cleanup

7 years agoMerge pull request #17253 from hjwsm1989/fix-qa-bug
Xie Xingguo [Mon, 28 Aug 2017 00:35:01 +0000 (08:35 +0800)]
Merge pull request #17253 from hjwsm1989/fix-qa-bug

qa: fix the potential delay of pg state change

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomsg/async: don't kill connection if replacing 17288/head
Haomai Wang [Sun, 27 Aug 2017 20:37:18 +0000 (13:37 -0700)]
msg/async: don't kill connection if replacing

when existing connection is replacing, then meet send error, we can't kill
this existing connection. otherwise, when peer side reconnect, we will detect
reset condition and send resetsession to make peer discard messages.

Fixes: http://tracker.ceph.com/issues/21143
Signed-off-by: Haomai Wang <haomai@xsky.com>
7 years agobluestore/NVMEDevice: remove useless IOSegment, and set 17284/head
Pan Liu [Sun, 27 Aug 2017 15:14:12 +0000 (23:14 +0800)]
bluestore/NVMEDevice: remove useless IOSegment, and set
dpdk_thread_adaptor as static.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@intel.com>
7 years agobluestore/NVMEDevice: remove useless aio_stop in class NVMEDevice
Pan Liu [Sun, 27 Aug 2017 15:06:55 +0000 (23:06 +0800)]
bluestore/NVMEDevice: remove useless aio_stop in class NVMEDevice

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agoos/bluestore/NVMEDevice: remove not used BufferedExtents.
Pan Liu [Sun, 27 Aug 2017 15:03:15 +0000 (23:03 +0800)]
os/bluestore/NVMEDevice: remove not used BufferedExtents.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agorbd-nbd: don't need call "stop()" seperately, and ~NBDServer will do it. 17283/head
Pan Liu [Sun, 27 Aug 2017 12:45:10 +0000 (20:45 +0800)]
rbd-nbd: don't need call "stop()" seperately, and ~NBDServer will do it.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
7 years agoMerge pull request #17055 from dillaman/wip-21017
Jason Dillaman [Sun, 27 Aug 2017 12:39:18 +0000 (08:39 -0400)]
Merge pull request #17055 from dillaman/wip-21017

mgr/dashboard: fix duplicate images listed on iSCSI status page

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17216 from Yan-waller/wip-walle-0824imagectx
Jason Dillaman [Sun, 27 Aug 2017 12:33:35 +0000 (08:33 -0400)]
Merge pull request #17216 from Yan-waller/wip-walle-0824imagectx

test/librbd: fix mock method macro of set_journal_policy

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agomsg/async: don't stuck into resetsession/retrysession loop 17276/head
Haomai Wang [Sun, 27 Aug 2017 05:09:54 +0000 (22:09 -0700)]
msg/async: don't stuck into resetsession/retrysession loop

if exist connection's connect_seq is zero and state is STANDBY and peer
connection is new, we will reply with RETRYSESSION and make peer connection
incr connect_seq. Then we receive connect.connect_seq==1, but
existing->connect_seq is still zero, so RESETSESSION tag replied.

RESET->RETRY->RESET loop is forever

Signed-off-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17275 from ceph/revert-17268-wip-21089
Sage Weil [Sun, 27 Aug 2017 02:22:04 +0000 (21:22 -0500)]
Merge pull request #17275 from ceph/revert-17268-wip-21089

Revert "os/bluestore: compensate for bad freelistmanager size/blocks metadata"

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16494 from asomers/bin_bash
Kefu Chai [Sun, 27 Aug 2017 02:14:14 +0000 (10:14 +0800)]
Merge pull request #16494 from asomers/bin_bash

misc: Fix bash path in shebangs

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoRevert "os/bluestore: compensate for bad freelistmanager size/blocks metadata" 17275/head
Xie Xingguo [Sun, 27 Aug 2017 02:12:46 +0000 (10:12 +0800)]
Revert "os/bluestore: compensate for bad freelistmanager size/blocks metadata"

7 years agoMerge pull request #17268 from liewegas/wip-21089
Xie Xingguo [Sun, 27 Aug 2017 01:38:14 +0000 (09:38 +0800)]
Merge pull request #17268 from liewegas/wip-21089

os/bluestore: compensate for bad freelistmanager size/blocks metadata

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17271 from xiexingguo/wip-ls-by-class
Xie Xingguo [Sun, 27 Aug 2017 01:36:09 +0000 (09:36 +0800)]
Merge pull request #17271 from xiexingguo/wip-ls-by-class

mon/MonCommands: fix copy-and-paste error

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17272 from scienceluo/wip-luo-silence-buiding-warning-branch
Xie Xingguo [Sun, 27 Aug 2017 01:34:58 +0000 (09:34 +0800)]
Merge pull request #17272 from scienceluo/wip-luo-silence-buiding-warning-branch

common: silence jenkins's buiding warning in obj_bencher.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>