]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoosd: For recovery get all possible shards to read on errors 17920/head
David Zafman [Fri, 22 Sep 2017 03:35:27 +0000 (20:35 -0700)]
osd: For recovery get all possible shards to read on errors

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Allow recovery to send additional reads
David Zafman [Fri, 22 Sep 2017 00:48:28 +0000 (17:48 -0700)]
osd: Allow recovery to send additional reads

For now it doesn't include non-acting OSDs
Added test for this case

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Allow modified options to existing setup functions
David Zafman [Thu, 21 Sep 2017 21:49:17 +0000 (14:49 -0700)]
test: Allow modified options to existing setup functions

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Use feature to get last array element
David Zafman [Wed, 27 Sep 2017 21:29:25 +0000 (14:29 -0700)]
test: Use feature to get last array element

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #17795 from jdurgin/wip-21428
Josh Durgin [Tue, 19 Sep 2017 23:43:24 +0000 (16:43 -0700)]
Merge pull request #17795 from jdurgin/wip-21428

osd: request new map from PG when needed

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoosd: request new map from PG when needed 17795/head
Josh Durgin [Tue, 19 Sep 2017 02:31:10 +0000 (22:31 -0400)]
osd: request new map from PG when needed

The fast dispatch refactor in 3cc48278bf0ee5c9535d04b60a661f988c50063b
eliminated the osdmap subscription in the ms_fast_dispatch path, which
meant ops could reach a PG without having the latest map. In a cluster
with few osdmap updates, where the monitor fails to send a new map to
an osd (it tries one random osd), this can result in indefinitely
blocked requests.

Fix this by adding an OSDService mechanism for scheduling a new osdmap
subscription request.

Fixes: http://tracker.ceph.com/issues/21428
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17607 from liewegas/wip-post-luminous-more-mon
Sage Weil [Tue, 19 Sep 2017 18:19:06 +0000 (13:19 -0500)]
Merge pull request #17607 from liewegas/wip-post-luminous-more-mon

mon: post-luminous cleanup (part 3 of ?)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16913 from liewegas/wip-20944
Sage Weil [Tue, 19 Sep 2017 18:00:33 +0000 (13:00 -0500)]
Merge pull request #16913 from liewegas/wip-20944

os/filestore: fix device/partition metadata detection

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #17427 from liewegas/wip-pg-num-limits
Sage Weil [Tue, 19 Sep 2017 17:57:10 +0000 (12:57 -0500)]
Merge pull request #17427 from liewegas/wip-pg-num-limits

mon/OSDMonitor: implement cluster pg limit

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17760 from liewegas/wip-21410-b
Sage Weil [Tue, 19 Sep 2017 17:31:44 +0000 (12:31 -0500)]
Merge pull request #17760 from liewegas/wip-21410-b

Revert "osd/OSDMap: allow bidirectional swap of pg-upmap-items"

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #15369 from rzarzynski/wip-rgw-custom-errmsgs-2
Matt Benjamin [Tue, 19 Sep 2017 16:09:38 +0000 (12:09 -0400)]
Merge pull request #15369 from rzarzynski/wip-rgw-custom-errmsgs-2

rgw: improve handling of Swift's error messages and limits

7 years agoMerge pull request #12704 from rzarzynski/wip-rgw-per-storage-policy-stats
Matt Benjamin [Tue, 19 Sep 2017 16:04:28 +0000 (12:04 -0400)]
Merge pull request #12704 from rzarzynski/wip-rgw-per-storage-policy-stats

rgw: add support for Swift's per storage policy statistics

7 years agoMerge pull request #17786 from neha-ojha/wip-cbt-teuthology-integration-cntd
Josh Durgin [Tue, 19 Sep 2017 15:35:10 +0000 (08:35 -0700)]
Merge pull request #17786 from neha-ojha/wip-cbt-teuthology-integration-cntd

qa/suites/rados/perf: add optimized settings

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agorgw: rename the configurables for metadata limits to start with rgw_. 15369/head
Radoslaw Zarzynski [Tue, 19 Sep 2017 12:46:53 +0000 (14:46 +0200)]
rgw: rename the configurables for metadata limits to start with rgw_.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agorgw: calculate and print Swift's X-Account-Storage-Policy-* headers. 12704/head
Radoslaw Zarzynski [Wed, 28 Dec 2016 18:22:32 +0000 (19:22 +0100)]
rgw: calculate and print Swift's X-Account-Storage-Policy-* headers.

Fixes: http://tracker.ceph.com/issues/17932
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agorgw: bucket linking stores also the info about a placement rule.
Radoslaw Zarzynski [Wed, 28 Dec 2016 16:14:35 +0000 (17:14 +0100)]
rgw: bucket linking stores also the info about a placement rule.

Fixes: http://tracker.ceph.com/issues/17932
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agorgw: convey placement rule in RGWBucketEnt and cls_user_bucket_entry.
Radoslaw Zarzynski [Wed, 28 Dec 2016 16:12:50 +0000 (17:12 +0100)]
rgw: convey placement rule in RGWBucketEnt and cls_user_bucket_entry.

Fixes: http://tracker.ceph.com/issues/17932
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agorgw: clean-up around and implement the move semantics in RGWBucketEnt.
Radoslaw Zarzynski [Wed, 28 Dec 2016 14:54:42 +0000 (15:54 +0100)]
rgw: clean-up around and implement the move semantics in RGWBucketEnt.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #17508 from liewegas/wip-crushrule-convert
Kefu Chai [Tue, 19 Sep 2017 10:18:55 +0000 (18:18 +0800)]
Merge pull request #17508 from liewegas/wip-crushrule-convert

mon: more aggressively convert crush rulesets -> distinct rules

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17802 from ygtzf/option-default-value-error
Kefu Chai [Tue, 19 Sep 2017 09:18:08 +0000 (17:18 +0800)]
Merge pull request #17802 from ygtzf/option-default-value-error

doc: update default value of option mon_sync_timeout

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agodoc: update default value of option mon_sync_timeout 17802/head
Yao Guotao [Tue, 19 Sep 2017 08:47:00 +0000 (04:47 -0400)]
doc: update default value of option mon_sync_timeout

Signed-off-by: Yao Guotao <yaoguot@gmail.com>
7 years agoqa/suites/rados/perf: add optimized settings 17786/head
Neha Ojha [Mon, 18 Sep 2017 22:53:28 +0000 (15:53 -0700)]
qa/suites/rados/perf: add optimized settings

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #15273 from rzarzynski/wip-rgw-18977
Matt Benjamin [Mon, 18 Sep 2017 20:10:08 +0000 (16:10 -0400)]
Merge pull request #15273 from rzarzynski/wip-rgw-18977

rgw: list_objects() honors end_marker regardless of namespace.

7 years agoMerge pull request #17320 from rzarzynski/wip-rgw-21148
Matt Benjamin [Mon, 18 Sep 2017 19:51:43 +0000 (15:51 -0400)]
Merge pull request #17320 from rzarzynski/wip-rgw-21148

rgw: add support for Swift's reversed account listings

7 years agoMerge pull request #17777 from cbodley/wip-qa-hadoop
Yuri Weinstein [Mon, 18 Sep 2017 19:32:14 +0000 (12:32 -0700)]
Merge pull request #17777 from cbodley/wip-qa-hadoop

qa/rgw: hadoop-s3a suite targets centos_latest

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agoqa/rgw: hadoop suite targets centos_latest 17777/head
Casey Bodley [Mon, 18 Sep 2017 17:29:40 +0000 (13:29 -0400)]
qa/rgw: hadoop suite targets centos_latest

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: use overrides for hadoop version
Casey Bodley [Mon, 18 Sep 2017 17:28:22 +0000 (13:28 -0400)]
qa/rgw: use overrides for hadoop version

instead of having two separate tasks, add v27.yaml and v28.yaml with
overrides for hadoop_version

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17776 from smithfarm/wip-rh-74
Yuri Weinstein [Mon, 18 Sep 2017 17:17:15 +0000 (10:17 -0700)]
Merge pull request #17776 from smithfarm/wip-rh-74

tests: CentOS 7.4 is now the latest

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agotests: CentOS 7.4 is now the latest 17776/head
Nathan Cutler [Mon, 18 Sep 2017 16:01:17 +0000 (18:01 +0200)]
tests: CentOS 7.4 is now the latest

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #17372 from ceph/wip-doc-cephfs-pools
John Spray [Mon, 18 Sep 2017 10:37:28 +0000 (11:37 +0100)]
Merge pull request #17372 from ceph/wip-doc-cephfs-pools

doc: add example of setting pool in cephfs layout

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17318 from jcsp/wip-20899
John Spray [Mon, 18 Sep 2017 10:35:59 +0000 (11:35 +0100)]
Merge pull request #17318 from jcsp/wip-20899

mgr/prometheus: Fix for MDS metrics

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16762 from jcsp/wip-dashboard-trim
John Spray [Mon, 18 Sep 2017 10:34:18 +0000 (11:34 +0100)]
Merge pull request #16762 from jcsp/wip-dashboard-trim

mgr: remove unused static files from dashboard module

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomgr/dashboard: re-arrange static files 16762/head
John Spray [Mon, 18 Sep 2017 10:13:45 +0000 (06:13 -0400)]
mgr/dashboard: re-arrange static files

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: don't include remote js/css
John Spray [Mon, 18 Sep 2017 10:10:31 +0000 (06:10 -0400)]
mgr/dashboard: don't include remote js/css

This will help anyone running away from the internet.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: remove un-minified datatables source
John Spray [Wed, 2 Aug 2017 14:54:17 +0000 (15:54 +0100)]
mgr/dashboard: remove un-minified datatables source

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: remove non-minified bootstrap
John Spray [Wed, 2 Aug 2017 14:15:04 +0000 (15:15 +0100)]
mgr/dashboard: remove non-minified bootstrap

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: remove unneeded bits of AdminLTE
John Spray [Wed, 2 Aug 2017 14:11:07 +0000 (15:11 +0100)]
mgr/dashboard: remove unneeded bits of AdminLTE

AdminLTE is delivered in a handy all-in format,
but we don't need all this stuff at runtime.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17737 from ivancich/wip-pull-updated-dmclock
Kefu Chai [Sun, 17 Sep 2017 11:42:52 +0000 (19:42 +0800)]
Merge pull request #17737 from ivancich/wip-pull-updated-dmclock

osd: update dmclock library w git subtree pull

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17762 from yaozongyou/fix-typo-in-php-rst
Kefu Chai [Sat, 16 Sep 2017 18:00:50 +0000 (02:00 +0800)]
Merge pull request #17762 from yaozongyou/fix-typo-in-php-rst

doc: fix typo in php.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17763 from xiexingguo/wip-21409
Sage Weil [Sat, 16 Sep 2017 17:59:12 +0000 (12:59 -0500)]
Merge pull request #17763 from xiexingguo/wip-21409

qa: fix pool-quota related tests

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc: fix typo in php.rst 17762/head
Yao Zongyou [Sat, 16 Sep 2017 05:54:03 +0000 (13:54 +0800)]
doc: fix typo in php.rst

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agoqa: fix pool-quota related tests 17763/head
xie xingguo [Sat, 16 Sep 2017 02:04:56 +0000 (10:04 +0800)]
qa: fix pool-quota related tests

https://github.com/ceph/ceph/pull/17371 introduces support of
per-pool space-full flag, which turns out to set both
full and full_no_quota flags now if a pool is currently running out
of quota.

Actually this test is fragile as long as we keep appending new flags
at pool granularity, but let's not bother with that complexity now.

Fixes: http://tracker.ceph.com/issues/21409
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17615 from tchaikov/wip-osx
Kefu Chai [Sat, 16 Sep 2017 05:30:26 +0000 (13:30 +0800)]
Merge pull request #17615 from tchaikov/wip-osx

cmake,common: changes to port part of ceph to osx

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoclient: use st_mtimespec instea of st_mtime on osx 17615/head
Kefu Chai [Wed, 13 Sep 2017 09:44:35 +0000 (17:44 +0800)]
client: use st_mtimespec instea of st_mtime on osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg/msg_types: fix the dencoder of entity_addr_t
Kefu Chai [Wed, 13 Sep 2017 09:21:38 +0000 (17:21 +0800)]
msg/msg_types: fix the dencoder of entity_addr_t

improve the interoperability between freebsd/osx and GNU/Linux, because
the their layouts of sockaddr_storage are different, and we use the
one of linux as the wire format. so need to convert it on freebsd/osx
side.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17698 from liewegas/wip-bluestore-big-allocations
Sage Weil [Sat, 16 Sep 2017 02:48:27 +0000 (21:48 -0500)]
Merge pull request #17698 from liewegas/wip-bluestore-big-allocations

os/bluestore: allocate entire write in one go

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrc32c: pass integer param by uint64_t
Kefu Chai [Wed, 13 Sep 2017 09:20:05 +0000 (17:20 +0800)]
crc32c: pass integer param by uint64_t

the assembly is expecting 64bits input, so make this explicit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrc32c: mach-o 64 follows the same calling convention as elf64 does
Kefu Chai [Wed, 13 Sep 2017 07:28:08 +0000 (15:28 +0800)]
crc32c: mach-o 64 follows the same calling convention as elf64 does

so reuse the register-parameter/variable mappings

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/encoding/readable.sh: use sysctl -n hw.ncpu instead of nproc on osx also
Kefu Chai [Wed, 13 Sep 2017 05:09:40 +0000 (13:09 +0800)]
test/encoding/readable.sh: use sysctl -n hw.ncpu instead of nproc on osx also

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: check for fdatasync() on non osx
Kefu Chai [Wed, 13 Sep 2017 04:17:30 +0000 (12:17 +0800)]
cmake: check for fdatasync() on non osx

on osx, fdatasync() is a syscall without userspace wrapper.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomds: use the best-effort if procfs is not available
Kefu Chai [Wed, 13 Sep 2017 04:03:37 +0000 (12:03 +0800)]
mds: use the best-effort if procfs is not available

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: allows undefined symbol in plugin on osx
Kefu Chai [Wed, 13 Sep 2017 03:40:21 +0000 (11:40 +0800)]
cmake: allows undefined symbol in plugin on osx

clang on osx erros out when linking a dynamic library if any symbols is
missing by default. so disable this behavior.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: disable plugins using isa-l on osx
Kefu Chai [Wed, 13 Sep 2017 03:23:21 +0000 (11:23 +0800)]
cmake: disable plugins using isa-l on osx

clang on osx emits functions with leading underscore, but the isa-l
assembly's functions have no leading underscore. we could label the
function declaration like `int foo asm("foo")` to remove the leading
underscore, but isa-l is a git submodule, let do this later. and in the
meanwhile, disable this plugin on osx.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrc32: label assembler functions without leading underscore
Kefu Chai [Wed, 13 Sep 2017 03:09:49 +0000 (11:09 +0800)]
crc32: label assembler functions without leading underscore

clang onder osx adds leading undescore to the function names to be
ABI compatible. but the assembly code does not do so. so we need to
control the name using gcc/clang extension. see
https://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Asm-Labels.html#Asm-Labels

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocompat: consolidate definitions of osx and freebsd
Kefu Chai [Sun, 10 Sep 2017 18:00:44 +0000 (02:00 +0800)]
compat: consolidate definitions of osx and freebsd

on osx, ENODATA = 96, so we need to fix it. also define
CLOCK_MONOTONIC_COARSE and CLOCK_REALTIME_COARSE for osx, ceph_time.h
defines this also, but i don't want to include compat.h in ceph_time.h
at this moment.

and silence the warning of
 #warning ENODATA already defined to a value different from 87 (ENOATRR), refining to fix
because it is fired everywhere on osx when "compat.h" is included.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg/msg_types: fix the denc of sockaddr_storage on freebsd/osx
Kefu Chai [Sun, 10 Sep 2017 13:38:56 +0000 (21:38 +0800)]
msg/msg_types: fix the denc of sockaddr_storage on freebsd/osx

the layout of sockaddr_in and sockaddr_in6 are different on
GNU/Linux and FreeBSD/OSX:
 - on GNU/Linux, sockaddr does not have sa_len,
 - on GNU/Linux, sockaddr* use a 16 bit integer for sa_family, but
   on FreeBSD, a 32bit integer is used.
so we need to be more care when memcpy() between sockaddr_storage()
and ceph_sockaddr_storage().

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg/msg_types: consolidate sockaddr_storage dencoders
Kefu Chai [Sun, 10 Sep 2017 08:10:27 +0000 (16:10 +0800)]
msg/msg_types: consolidate sockaddr_storage dencoders

utilize ceph_sockaddr_storage on FreeBSD and osx to perform the
dencoding, to improve the readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: do not pass --exclude-libs on osx
Kefu Chai [Sun, 10 Sep 2017 04:35:46 +0000 (12:35 +0800)]
cmake: do not pass --exclude-libs on osx

it is not supported by osx linker

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocrc32c: only add qualifiers for elf64 format
Kefu Chai [Sat, 9 Sep 2017 18:45:24 +0000 (02:45 +0800)]
crc32c: only add qualifiers for elf64 format

they are not understood by non-elf formats

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: compile Mach-O format instead of ELF on OSX
Kefu Chai [Sat, 9 Sep 2017 18:36:41 +0000 (02:36 +0800)]
cmake: compile Mach-O format instead of ELF on OSX

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: link against libresolv on OSX
Kefu Chai [Sat, 9 Sep 2017 18:26:35 +0000 (02:26 +0800)]
cmake: link against libresolv on OSX

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotime: use mach_absolute_time() for monotonic time
Kefu Chai [Sat, 9 Sep 2017 17:19:28 +0000 (01:19 +0800)]
time: use mach_absolute_time() for monotonic time

* use mach_absolute_time() for monotonic time
  mach_absolute_time() is faster and monotonic, see
  https://developer.apple.com/library/content/qa/qa1398/_index.html

  for its implementation, see
  https://opensource.apple.com/source/xnu/xnu-3248.60.10/libsyscall/wrappers/mach_absolute_time.s

  it's using rdtsc.
* and remove unnecessary headers from ceph_time.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: remove unnecessary linkage of librt
Kefu Chai [Sat, 9 Sep 2017 16:49:15 +0000 (00:49 +0800)]
cmake: remove unnecessary linkage of librt

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: do not link against librt on osx
Kefu Chai [Sat, 9 Sep 2017 16:48:37 +0000 (00:48 +0800)]
cmake: do not link against librt on osx

as osx does not offer librt

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/util: port collect_sys_info() to osx
Kefu Chai [Sat, 9 Sep 2017 16:15:18 +0000 (00:15 +0800)]
common/util: port collect_sys_info() to osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomsg/simple: port to osx
Kefu Chai [Sat, 9 Sep 2017 15:08:27 +0000 (23:08 +0800)]
msg/simple: port to osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/fd: port dump_open_fds() to osx
Kefu Chai [Sat, 9 Sep 2017 14:45:27 +0000 (22:45 +0800)]
common/fd: port dump_open_fds() to osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: move MemoryModel.cc to $mds_srcs
Kefu Chai [Sat, 9 Sep 2017 14:41:15 +0000 (22:41 +0800)]
cmake: move MemoryModel.cc to $mds_srcs

as it is only used by mds.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoglobal/signal_handler: port get_name_by_pid() to osx
Kefu Chai [Sat, 9 Sep 2017 14:40:12 +0000 (22:40 +0800)]
global/signal_handler: port get_name_by_pid() to osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: check for osx using `APPLE` not `DARWIN`
Kefu Chai [Sat, 9 Sep 2017 14:16:36 +0000 (22:16 +0800)]
cmake: check for osx using `APPLE` not `DARWIN`

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos,common: check __APPLE__ for osx not DARWIN
Kefu Chai [Sat, 9 Sep 2017 14:12:04 +0000 (22:12 +0800)]
os,common: check __APPLE__ for osx not DARWIN

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/io_priority: include <errno.h> on osx
Kefu Chai [Sat, 9 Sep 2017 13:45:44 +0000 (21:45 +0800)]
common/io_priority: include <errno.h> on osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/
Kefu Chai [Sat, 9 Sep 2017 13:18:53 +0000 (21:18 +0800)]
cmake: s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/

* s/-Wl,-export-dynamic/$CMAKE_EXE_EXPORTS_C_FLAG/
  this address the issue on osx:

    ld: unknown option: --export-dynamic

  because ld on osx does not support `-export-dynamic`, it supports
  `-export_dynamic` though.

  CMAKE_EXE_EXPORTS_C_FLAG is set to -Wl,-export-dynamic on FreeBSD
  and GNU/Linux.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17718 from kungf/scrub_loadavg
Kefu Chai [Sat, 16 Sep 2017 01:56:13 +0000 (09:56 +0800)]
Merge pull request #17718 from kungf/scrub_loadavg

osd: get loadavg per cpu for scrub load threshold check

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17704 from liewegas/wip-osd-deq
Kefu Chai [Sat, 16 Sep 2017 01:55:34 +0000 (09:55 +0800)]
Merge pull request #17704 from liewegas/wip-osd-deq

osd: minor optimizations for op wq

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #17666 from david-z/wip-objectore-tool
Kefu Chai [Sat, 16 Sep 2017 01:54:06 +0000 (09:54 +0800)]
Merge pull request #17666 from david-z/wip-objectore-tool

tools/ceph-objectstore-tool: split filestore directories offline to target hash level

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17748 from tchaikov/wip-mon-constness
Kefu Chai [Sat, 16 Sep 2017 01:53:33 +0000 (09:53 +0800)]
Merge pull request #17748 from tchaikov/wip-mon-constness

mon: more constness

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17727 from tchaikov/wip-pybind-cleanup
Kefu Chai [Sat, 16 Sep 2017 01:52:03 +0000 (09:52 +0800)]
Merge pull request #17727 from tchaikov/wip-pybind-cleanup

pybind: remove unused get_ceph_version()

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17749 from tchaikov/wip-vstart
Kefu Chai [Sat, 16 Sep 2017 01:51:18 +0000 (09:51 +0800)]
Merge pull request #17749 from tchaikov/wip-vstart

vstart.sh: simplify the objectstore related logic

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
7 years agoMerge pull request #17418 from Songweibin/wip-osdmap-full-try
Kefu Chai [Sat, 16 Sep 2017 01:50:17 +0000 (09:50 +0800)]
Merge pull request #17418 from Songweibin/wip-osdmap-full-try

rados: support python API of "set_osdmap_full_try"

Reviewed-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17295 from david-z/wip-compress-scrub-warning
Kefu Chai [Sat, 16 Sep 2017 01:48:06 +0000 (09:48 +0800)]
Merge pull request #17295 from david-z/wip-compress-scrub-warning

mon: Compress the warnings of pgs not scrubbed or deep-scrubbed

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17732 from Songweibin/wip-fix-comments
Jos Collin [Sat, 16 Sep 2017 01:04:57 +0000 (01:04 +0000)]
Merge pull request #17732 from Songweibin/wip-fix-comments

doc,os,osdc: drop and modify comments

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17675 from theanalyst/doc-rgw-reshard
Sage Weil [Fri, 15 Sep 2017 21:25:34 +0000 (16:25 -0500)]
Merge pull request #17675 from theanalyst/doc-rgw-reshard

doc: rgw: add a note for resharding in 12.2.1 docs

7 years agodoc: rgw: add a note for resharding in 12.2.1 docs 17675/head
Abhishek Lekshmanan [Fri, 15 Sep 2017 21:20:27 +0000 (23:20 +0200)]
doc: rgw: add a note for resharding in 12.2.1 docs

Since we're now enabling dynamic resharding, mention  this in release
notes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge PR #17701 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:35 +0000 (14:12 -0700)]
Merge PR #17701 into master

* refs/remotes/upstream/pull/17701/head:
qa/cephfs: Fix error in test_filtered_df

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17694 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:33 +0000 (14:12 -0700)]
Merge PR #17694 into master

* refs/remotes/upstream/pull/17694/head:
qa/cephfs: kill mount if it gets evicted by mds
qa/cephfs: fix test_evict_client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17681 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:31 +0000 (14:12 -0700)]
Merge PR #17681 into master

* refs/remotes/upstream/pull/17681/head:
mon: remove mdsmap-derived perf counters

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17676 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:29 +0000 (14:12 -0700)]
Merge PR #17676 into master

* refs/remotes/upstream/pull/17676/head:
qa/tasks/cephfs: Whitelist POOL_APP_NOT_ENABLED for test_misc

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17671 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:27 +0000 (14:12 -0700)]
Merge PR #17671 into master

* refs/remotes/upstream/pull/17671/head:
messages: Initilization of left memebers

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17670 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:25 +0000 (14:12 -0700)]
Merge PR #17670 into master

* refs/remotes/upstream/pull/17670/head:
messages: Initialization of member variables

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17652 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:23 +0000 (14:12 -0700)]
Merge PR #17652 into master

* refs/remotes/upstream/pull/17652/head:
client: use unsigned trim_caps count

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge PR #17598 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:22 +0000 (14:12 -0700)]
Merge PR #17598 into master

* refs/remotes/upstream/pull/17598/head:
messages: Initialization of members MMDSCacheRejion

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17595 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:20 +0000 (14:12 -0700)]
Merge PR #17595 into master

* refs/remotes/upstream/pull/17595/head:
ceph-fuse: should free array using "delete[]"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
7 years agogithubmap: update contributors
Patrick Donnelly [Fri, 15 Sep 2017 21:12:19 +0000 (14:12 -0700)]
githubmap: update contributors

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17542 into master
Patrick Donnelly [Fri, 15 Sep 2017 21:12:04 +0000 (14:12 -0700)]
Merge PR #17542 into master

* refs/remotes/upstream/pull/17542/head:
client: Delete onsafe

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoRevert "osd/OSDMap: allow bidirectional swap of pg-upmap-items" 17760/head
Sage Weil [Fri, 15 Sep 2017 20:52:28 +0000 (16:52 -0400)]
Revert "osd/OSDMap: allow bidirectional swap of pg-upmap-items"

This reverts commit 09af9b8afb40cc8aa629501582a75e03edf0bf2e.

We need to prevent duplicates in the final result.  For example, we
can currently take
 [1,2,3] and apply [(1,2)] and get [2,2,3]
or
 [1,2,3] and apply [(3,2)] and get [1,2,2]

The rest of the system is not prepared to handle duplicates in the
result set like this.

The reverted commit was intended to allow

 [1,2,3] and [(1,2),(2,1)] to get [2,1,3]

to reorder primaries.  First, this bidirectional swap is hard to implement
in a way that also prevents dups.  For example,
 [1,2,3] and [(1,4),(2,3),(3,4)] would give [4,3,4]
but would we just drop the last step we'd have [4,3,3] which
is also invalid, etc.  Simpler to just not handle bidirectional
swaps.  In practice, they are not needed: if you just want to choose
a different primary then use primary_affinity, or pg_upmap
(not pg_upmap_items).

Fixes: http://tracker.ceph.com/issues/21410
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17709 from liewegas/wip-bluestore-repair
Sage Weil [Fri, 15 Sep 2017 20:35:03 +0000 (15:35 -0500)]
Merge pull request #17709 from liewegas/wip-bluestore-repair

ceph-bluestore-tool: better fsck/repair, bluefs-bdev-{expand,sizes}

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomon/OSDMonitor: drop old upgrade guards; make upgrades stop at O 17607/head
Sage Weil [Fri, 8 Sep 2017 19:04:57 +0000 (15:04 -0400)]
mon/OSDMonitor: drop old upgrade guards; make upgrades stop at O

We may not end up doing this but it keeps a template for how the
guard worked before in the code for future reference.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoinclude/ceph_features: define SERVER_O
Sage Weil [Fri, 8 Sep 2017 19:04:34 +0000 (15:04 -0400)]
include/ceph_features: define SERVER_O

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: app labels unconditional
Sage Weil [Fri, 8 Sep 2017 19:00:46 +0000 (15:00 -0400)]
mon: app labels unconditional

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