]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/dashboard: Update npm packages 30439/head
Tiago Melo [Mon, 26 Aug 2019 10:44:04 +0000 (10:44 +0000)]
mgr/dashboard: Update npm packages

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #30587 from sebastian-philipp/python-common-readme
Sebastian Wagner [Tue, 1 Oct 2019 10:05:00 +0000 (12:05 +0200)]
Merge pull request #30587 from sebastian-philipp/python-common-readme

python-common: Add small Readme

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge PR #30341 into master
Patrick Donnelly [Tue, 1 Oct 2019 08:21:16 +0000 (01:21 -0700)]
Merge PR #30341 into master

* refs/pull/30341/head:
cephfs-shell: better complain info, when deleting non-empty directory

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoMerge PR #30559 into master
Patrick Donnelly [Tue, 1 Oct 2019 08:17:53 +0000 (01:17 -0700)]
Merge PR #30559 into master

* refs/pull/30559/head:
mds: Reorganize class members in MDBalancer header

Reviewed-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge PR #30580 into master
Patrick Donnelly [Tue, 1 Oct 2019 08:15:54 +0000 (01:15 -0700)]
Merge PR #30580 into master

* refs/pull/30580/head:
client: don't ceph_abort on bad llseek whence value
client: remove Inode dir_contacts field

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30407 from joscollin/wip-B41841-yes-really-mean-it
Ramana Raja [Tue, 1 Oct 2019 07:35:33 +0000 (13:05 +0530)]
Merge pull request #30407 from joscollin/wip-B41841-yes-really-mean-it

mgr/volumes: protection for `fs volume rm` command

5 years agoMerge PR #30552 into master
Patrick Donnelly [Tue, 1 Oct 2019 03:46:14 +0000 (20:46 -0700)]
Merge PR #30552 into master

* refs/pull/30552/head:
cmake: fix libtsan detection
test: librados startup/shutdown racer test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #30630 from tchaikov/wip-build-on-centos8
Kefu Chai [Tue, 1 Oct 2019 02:57:16 +0000 (10:57 +0800)]
Merge pull request #30630 from tchaikov/wip-build-on-centos8

install-deps,rpm,do_cmake: build on RHEL/CentOS 8

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
5 years agoMerge pull request #30531 from alimaredia/wip-rgw-maven-version-update
Kefu Chai [Tue, 1 Oct 2019 02:45:23 +0000 (10:45 +0800)]
Merge pull request #30531 from alimaredia/wip-rgw-maven-version-update

qa: bump maven repo version in s3a_hadoop.py

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30615 from xiexingguo/wip-progress-time-remaining
Xie Xingguo [Tue, 1 Oct 2019 01:07:29 +0000 (09:07 +0800)]
Merge pull request #30615 from xiexingguo/wip-progress-time-remaining

mgr/progress: estimated remaining time for events

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30591 from xiexingguo/wip-balancer-throttler
Xie Xingguo [Mon, 30 Sep 2019 23:42:25 +0000 (07:42 +0800)]
Merge pull request #30591 from xiexingguo/wip-balancer-throttler

mgr/balancer: upmap_max_iterations -> upmap_max_optimizations; behave as it is per pool

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #29674 from athanatos/sjust/wip-fio-trace
Samuel Just [Mon, 30 Sep 2019 21:15:31 +0000 (14:15 -0700)]
Merge pull request #29674 from athanatos/sjust/wip-fio-trace

os/bluestore: expand lttng tracepoints, improve fio_ceph_objectstore backend

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: fix libtsan detection 30552/head
Jeff Layton [Mon, 30 Sep 2019 17:54:13 +0000 (13:54 -0400)]
cmake: fix libtsan detection

This variable is case-sensitive.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #30620 from votdev/issue_42069_validate_bucket_name
Lenz Grimmer [Mon, 30 Sep 2019 13:51:44 +0000 (13:51 +0000)]
Merge pull request #30620 from votdev/issue_42069_validate_bucket_name

mgr/dashboard: Bucket names cannot be formatted as IP address

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kai Wagner <kwagner@suse.com>
5 years agoMerge pull request #30647 from s0nea/wip-dashboard-fix-typo
Lenz Grimmer [Mon, 30 Sep 2019 13:44:40 +0000 (13:44 +0000)]
Merge pull request #30647 from s0nea/wip-dashboard-fix-typo

mgr/dashboard: fix small typos in description message

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #29925 from sebastian-philipp/run_tox-overwrite-build-dir
Kefu Chai [Mon, 30 Sep 2019 13:18:43 +0000 (21:18 +0800)]
Merge pull request #29925 from sebastian-philipp/run_tox-overwrite-build-dir

script/run_tox.sh: Don't overwrite the build dir

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: fix two small typos 30647/head
Tatjana Dehler [Mon, 30 Sep 2019 11:59:48 +0000 (13:59 +0200)]
mgr/dashboard: fix two small typos

Remove unnecessary blanks.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agoscript/run_tox.sh: Don't overwrite the Ceph's bulid dir 29925/head
Sebastian Wagner [Tue, 27 Aug 2019 08:36:43 +0000 (10:36 +0200)]
script/run_tox.sh: Don't overwrite the Ceph's bulid dir

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #30639 from tchaikov/wip-crimson-readable
Kefu Chai [Mon, 30 Sep 2019 09:51:04 +0000 (17:51 +0800)]
Merge pull request #30639 from tchaikov/wip-crimson-readable

crimson/osd: implement readable/lease related methods

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30644 from majianpeng/osd-remove-unused-func
Xie Xingguo [Mon, 30 Sep 2019 09:01:44 +0000 (17:01 +0800)]
Merge pull request #30644 from majianpeng/osd-remove-unused-func

osd: remove unused function

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30632 from xiexingguo/wip-kick-recovery-pri
Xie Xingguo [Mon, 30 Sep 2019 08:59:55 +0000 (16:59 +0800)]
Merge pull request #30632 from xiexingguo/wip-kick-recovery-pri

osd/PrimaryLogPG: always use strict priority ordering for kicked recovery ops

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30642 from Rjerk/wip-fix-doc
Kefu Chai [Mon, 30 Sep 2019 08:53:51 +0000 (16:53 +0800)]
Merge pull request #30642 from Rjerk/wip-fix-doc

doc/radosgw: fix typos

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoosd/PrimaryLogPG: add closing ")" in log 30639/head
Kefu Chai [Sun, 29 Sep 2019 17:19:43 +0000 (01:19 +0800)]
osd/PrimaryLogPG: add closing ")" in log

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd/pg: implement schedule_renew_lease()
Kefu Chai [Sun, 29 Sep 2019 17:19:07 +0000 (01:19 +0800)]
crimson/osd/pg: implement schedule_renew_lease()

see also d883db70282c406edaceb72a90ecddccd97a0161

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: implement ShardServices::get_hb_stamps()
Kefu Chai [Mon, 30 Sep 2019 08:20:37 +0000 (16:20 +0800)]
crimson/osd: implement ShardServices::get_hb_stamps()

PeeringState::proc_lease() requires a valid hb_stamps[0], which is in
turned maintained by `pl`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd/pg: implement queue_check_readable() and recheck_readable()
Kefu Chai [Sun, 29 Sep 2019 17:11:42 +0000 (01:11 +0800)]
crimson/osd/pg: implement queue_check_readable() and recheck_readable()

see also 7aec060e0aff4588ff51f744dd194d1c0f7793c2

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocommon/ceph_time: do not handle negative case
Kefu Chai [Sun, 29 Sep 2019 17:08:52 +0000 (01:08 +0800)]
common/ceph_time: do not handle negative case

this change partially reverts 353a0e5f, unlike `signedspan`,
`timespan::rep` is unsigned. so no need to handle negative case.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Bucket names cannot be formatted as IP address 30620/head
Volker Theile [Fri, 27 Sep 2019 11:04:48 +0000 (13:04 +0200)]
mgr/dashboard: Bucket names cannot be formatted as IP address

In general, bucket names should follow domain name constraints:
- Bucket names must be unique.
- Bucket names cannot be formatted as IP address.
- Bucket names can be between 3 and 63 characters long.
- Bucket names must not contain uppercase characters or underscores.
- Bucket names must start with a lowercase letter or number.
- Bucket names must be a series of one or more labels. Adjacent labels are separated by a single period (.). Bucket names can contain lowercase letters, numbers, and hyphens. Each label must start and end with a lowercase letter or a number.

Fixes: https://tracker.ceph.com/issues/42069
Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoosd: remove unused function 30644/head
Jianpeng Ma [Mon, 30 Sep 2019 05:38:27 +0000 (13:38 +0800)]
osd: remove unused function

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agoMerge PR #30396 into master
Patrick Donnelly [Mon, 30 Sep 2019 04:05:02 +0000 (21:05 -0700)]
Merge PR #30396 into master

* refs/pull/30396/head:
doc: document mds journaling

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30463 into master
Patrick Donnelly [Mon, 30 Sep 2019 04:02:56 +0000 (21:02 -0700)]
Merge PR #30463 into master

* refs/pull/30463/head:
vstart_runner: allow the use of it with kernel mounts

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc/radosgw: fix typo 30642/head
Liu Lan [Mon, 30 Sep 2019 03:16:40 +0000 (11:16 +0800)]
doc/radosgw: fix typo

Signed-off-by: Liu Lan <liulan@umcloud.com>
5 years agomgr/progress: estimated remaining time for events 30615/head
xie xingguo [Fri, 27 Sep 2019 08:04:05 +0000 (16:04 +0800)]
mgr/progress: estimated remaining time for events

Fixes: https://tracker.ceph.com/issues/40419
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30638 from uweigand/cmake-atomic-16byte
Kefu Chai [Sun, 29 Sep 2019 17:26:09 +0000 (01:26 +0800)]
Merge pull request #30638 from uweigand/cmake-atomic-16byte

cmake: Test for 16-byte atomic support on IBM Z

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: Test for 16-byte atomic support on IBM Z 30638/head
Ulrich Weigand [Sun, 29 Sep 2019 14:22:52 +0000 (16:22 +0200)]
cmake: Test for 16-byte atomic support on IBM Z

On IBM Z the Boost tagged pointer implementation cannot use
"pointer compression" as there are no unused bits in an address;
the whole 64-bit address space is available to user space code.

Instead, Boost uses 16-byte atomics.  This is always supported
on IBM Z, but depending on the particular compiler (version)
it may require linking against libatomic.  The existing checks
in CheckCxxAtomic.cmake do not catch this, however, as they only
test for (up to) 8-byte atomic support.

Fixed by adding a test for 16-byte atomic support on IBM Z.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
5 years agoMerge pull request #30617 from xiexingguo/wip-weird-daemon-key
Kefu Chai [Sun, 29 Sep 2019 10:11:40 +0000 (18:11 +0800)]
Merge pull request #30617 from xiexingguo/wip-weird-daemon-key

mgr: fix weird health-alert daemon key

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr: fix weird health-alert daemon key 30617/head
xie xingguo [Sun, 29 Sep 2019 06:15:07 +0000 (14:15 +0800)]
mgr: fix weird health-alert daemon key

Was:
  19 slow ops, oldest one blocked for 34 sec, daemons [osd,2,osd,4] have slow ops.

Now:
  153 slow ops, oldest one blocked for 38 sec, daemons [osd.3,osd.4,osd.5] have slow ops.

Fixes: https://tracker.ceph.com/issues/42079
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #29236 from liewegas/wip-read-hole-bypg
Kefu Chai [Sun, 29 Sep 2019 06:39:32 +0000 (14:39 +0800)]
Merge pull request #29236 from liewegas/wip-read-hole-bypg

osd: implement per-pg leases to avoid stale reads

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoosd/PrimaryLogPG: always use strict priority ordering for kicked recovery ops 30632/head
xie xingguo [Sun, 29 Sep 2019 05:50:37 +0000 (13:50 +0800)]
osd/PrimaryLogPG: always use strict priority ordering for kicked recovery ops

See 590c4979d40ea2073da8180140303ac067d87cc4 for the background of
this change.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30527 from uweigand/bloom-filter-endian
Kefu Chai [Sun, 29 Sep 2019 06:04:19 +0000 (14:04 +0800)]
Merge pull request #30527 from uweigand/bloom-filter-endian

common/bloom_filter: Fix endian issues

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30616 from ifed01/wip-ifed-fix-fsck
Kefu Chai [Sun, 29 Sep 2019 05:41:11 +0000 (13:41 +0800)]
Merge pull request #30616 from ifed01/wip-ifed-fix-fsck

os/bluestore: fix invalid stray shared blob detection in fsck.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30625 from tchaikov/wip-42087
Kefu Chai [Sun, 29 Sep 2019 05:38:27 +0000 (13:38 +0800)]
Merge pull request #30625 from tchaikov/wip-42087

mgr/BaseMgrStandbyModule: drop GIL in ceph_get_module_option()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoRevert "osd: give recovery ops initialized by client op a higher priority"
xie xingguo [Sun, 29 Sep 2019 01:57:22 +0000 (09:57 +0800)]
Revert "osd: give recovery ops initialized by client op a higher priority"

This reverts commit c0f87e0f91539d4d12dad5bddf95a97457a21c67.

The 'osd_op_queue_cut_off' config option determines which level of
high priority ops should use strict priority ordering and may change
from time to time. Since the main strategy of 'osd_kick_recovery_op_priority'
is to simply follow up 'osd_op_queue_cut_off', we can instead make a direct
use of 'osd_op_queue_cut_off' to achieve the same thing explicitly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agocrimson/osd: fix osdpg build 29236/head
Sage Weil [Sat, 28 Sep 2019 16:51:09 +0000 (11:51 -0500)]
crimson/osd: fix osdpg build

These are stubs; the reschule one (at minimum) probably needs a meaningful
implementation in order for the PG to peer in some cases.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc: document new 'laggy' and 'wait' pg states
Sage Weil [Fri, 27 Sep 2019 21:53:54 +0000 (16:53 -0500)]
doc: document new 'laggy' and 'wait' pg states

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc: stale reads notes
Sage Weil [Sat, 17 May 2014 00:40:57 +0000 (17:40 -0700)]
doc: stale reads notes

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: skip wait state if osd set is empty
Sage Weil [Tue, 24 Sep 2019 17:05:24 +0000 (12:05 -0500)]
osd/PeeringState: skip wait state if osd set is empty

If there are no down OSDs from prior intervals, then the normal peering
process will end up contacting all of the prior OSDs and ensuring that
their prior interval is terminated during peering.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: make proc_lease, recalc_readable_until more verbose
Sage Weil [Tue, 24 Sep 2019 16:39:41 +0000 (11:39 -0500)]
osd/PeeringState: make proc_lease, recalc_readable_until more verbose

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd: is_replica() -> is_nonprimary()
Sage Weil [Mon, 23 Sep 2019 19:46:07 +0000 (14:46 -0500)]
osd: is_replica() -> is_nonprimary()

The 'replica' term does not map well onto EC pools.  More importantly,
the implementation is often wrong for EC pools, where role may be 0 or 1
for EC pools independent of whether the OSD is the primary or not.

Introduce 'nonprimary' to mean an acting osd that is not the primary.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: piggyback pg_lease on MOSDPGLog
Sage Weil [Tue, 6 Aug 2019 03:22:15 +0000 (22:22 -0500)]
osd/PeeringState: piggyback pg_lease on MOSDPGLog

We only do this for primary -> replica, so we only need to proc_lease()
from the replica states.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: piggyback lease and ack on activation messages
Sage Weil [Tue, 6 Aug 2019 22:04:44 +0000 (17:04 -0500)]
osd/PeeringState: piggyback lease and ack on activation messages

The lease goes out with the MOSDPGLog or info, and the ack comes back with
the info.

We no longer need to renew the lease explicitly in
all_activated_and_committed() because we *just* piggybacked on activation.
We can just wait for the normal renew event to fire.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: renew before activate messages; send after activated
Sage Weil [Tue, 6 Aug 2019 03:05:38 +0000 (22:05 -0500)]
osd/PeeringState: renew before activate messages; send after activated

We want to renew before we prepeare or send activate messages so that we
have the opportunity to include leases in them (coming soon!).

And we do not want to send explicit lease messages until we know that the
peers have activate.  In particular, we want to avoid queueing a notify
(via pending_activators) and then sending a lease that will arrive before
it.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: notice 'dead' prior_readable OSDs
Sage Weil [Mon, 15 Jul 2019 21:14:14 +0000 (16:14 -0500)]
osd/PeeringState: notice 'dead' prior_readable OSDs

If we see that a prior_readable_down_osd is known to be dead, we can
remove it from the set.  And if the set is empty, we can skip the rest of
our waiting period and leave the WAIT state.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/PeeringState: track down OSDs relevant to prior_readable_until_ub
Sage Weil [Tue, 23 Jul 2019 19:07:59 +0000 (14:07 -0500)]
osd/PeeringState: track down OSDs relevant to prior_readable_until_ub

Keep track of which OSDs from the prior set we care about that affect
the prior_readable_until_ub.  Note that it is only the *down* OSDs that
we have to track here, since everything in the *probe* set we will already
contact during peering (they are still up), guaranteeing that those PGs
are aware of the interval change and are no longer readable in the prior
interval.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/singleton-nomsg/osd_stale_reads.yaml
Sage Weil [Tue, 16 Jul 2019 18:50:28 +0000 (13:50 -0500)]
qa/suites/rados/singleton-nomsg/osd_stale_reads.yaml

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodo_cmake.sh: disable amqp and rdma on RHEL/CentOS 8 30630/head
Kefu Chai [Sat, 28 Sep 2019 14:19:08 +0000 (22:19 +0800)]
do_cmake.sh: disable amqp and rdma on RHEL/CentOS 8

RHEL/CentOS 8 does not offer librabbitmq-devel, libibverbs-devel and
librdmacm-devel at this moment. so disable these features now.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodo_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGS
Kefu Chai [Sat, 28 Sep 2019 14:15:15 +0000 (22:15 +0800)]
do_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGS

so we can extend ARGS in a more unified way

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoceph.spec.in: disable "make check" for rhel8
Kefu Chai [Sat, 28 Sep 2019 14:01:31 +0000 (22:01 +0800)]
ceph.spec.in: disable "make check" for rhel8

following packages are not available on RHEL/CentOS 8, they are for
dashboard unit tests. so disable all python packages for dashboard
tests for now:

python-cherrypy
python-coverage
python-pecan
python-routes
python-tox
xmlsec1-devel

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoceph.spec.in: disable cephfs_java and amqp_endpoint if RHEL8
Kefu Chai [Sat, 28 Sep 2019 13:57:29 +0000 (21:57 +0800)]
ceph.spec.in: disable cephfs_java and amqp_endpoint if RHEL8

RHEL/CentOS 8 does not offer junit and sharutils yet, so disable
cephfs_java on rhel8 at this moment.

RHEL/CentOS 8 does not offer librabbitmq-devel yet, so disable
amqp_endpoint on rhel8 at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinstall-deps.sh: only install python-srpm-macros for required macros
Kefu Chai [Sat, 28 Sep 2019 13:34:06 +0000 (21:34 +0800)]
install-deps.sh: only install python-srpm-macros for required macros

the reason why we need to install these macros is to solve the
egg-chicken problem -- to set `_python_buildid` and `python3_pkgversion`
so that we can prepare the build dependencies and install them. in which,
`_python_buildid` is defined using `python3_pkgversion`. this macro is
offered by python-srpm-macros.

the other macros, like `python3_sitelib` and `__python3` are offered by
`python3-rpm-macros`.

this change also avoid the issue if we install `*rpm-macros` on CentOS8:

Error:
 Problem: package R-rpm-macros-1.1.0-2.el8.noarch requires /usr/bin/Rscript, but none of the providers can be installed
  - package R-rpm-macros-1.1.0-2.el8.noarch requires R-core, but none of the providers can be installed
  - conflicting requests
  - nothing provides libRblas.so()(64bit) needed by R-core-3.6.1-1.el8.x86_64
  - nothing provides openblas-Rblas needed by R-core-3.6.1-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30441 from anthonyeleven/master
Kefu Chai [Sat, 28 Sep 2019 08:05:05 +0000 (16:05 +0800)]
Merge pull request #30441 from anthonyeleven/master

osd: Change osd op queue cut off default to high

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #30581 from liewegas/wip-write-returns
Kefu Chai [Sat, 28 Sep 2019 08:03:11 +0000 (16:03 +0800)]
Merge pull request #30581 from liewegas/wip-write-returns

osd: allow rados write ops to return data and error codes

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #30454 from trociny/wip-41891
Kefu Chai [Sat, 28 Sep 2019 08:01:37 +0000 (16:01 +0800)]
Merge pull request #30454 from trociny/wip-41891

osd: fix possible crash on sending dynamic perf stats report

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30544 from tchaikov/wip-check-getentropy-at-runtime
Kefu Chai [Sat, 28 Sep 2019 03:19:06 +0000 (11:19 +0800)]
Merge pull request #30544 from tchaikov/wip-check-getentropy-at-runtime

auth/Crypto: fallback to /dev/urandom if getentropy() fails

Reviewed-by: Chang Liu <liuchang0812@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/BaseMgrStandbyModule: drop GIL in ceph_get_module_option() 30625/head
Kefu Chai [Fri, 27 Sep 2019 18:25:44 +0000 (02:25 +0800)]
mgr/BaseMgrStandbyModule: drop GIL in ceph_get_module_option()

always drop GIL when performing block ops

Fixes: https://tracker.ceph.com/issues/42087
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/balancer: add per pool concurrent optimization limit 30591/head
xie xingguo [Thu, 26 Sep 2019 07:32:04 +0000 (15:32 +0800)]
mgr/balancer: add per pool concurrent optimization limit

the main point is that in general we have physical isolated storage
pools in our products, so the cluster-wide target_max_misplaced_ratio
option would not make much sense in such case.
Introducing a fine-grained alternate throttling mechanism instead make
things much better now!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agomgr/balancer: upmap_max_iterations -> upmap_max_optimizations
xie xingguo [Thu, 26 Sep 2019 03:02:56 +0000 (11:02 +0800)]
mgr/balancer: upmap_max_iterations -> upmap_max_optimizations

With osd_calc_pg_upmaps_aggressively on we might have to iterate
hundreds or thousands of times to figure out an optimization,
but upmap_max_optimizations will remain a hard limit for the
total optimizations that can be returned.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agofio_ceph_objectstore: add option to cycle throttle values during test 29674/head
Samuel Just [Fri, 26 Jul 2019 22:16:11 +0000 (15:16 -0700)]
fio_ceph_objectstore: add option to cycle throttle values during test

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agofio_ceph_objectstore: add check_files option to validate object existence/size
Samuel Just [Fri, 26 Jul 2019 22:14:47 +0000 (15:14 -0700)]
fio_ceph_objectstore: add check_files option to validate object existence/size

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agobluestore: revamp tracepoints, add sampling
Samuel Just [Fri, 9 Aug 2019 19:00:26 +0000 (12:00 -0700)]
bluestore: revamp tracepoints, add sampling

This patch adds per-io bluestore specific tracepoints detailing the
throttle state at queue time as well as state latencies during
execution.  Additionally, bluestore_throttle_trace_rate will limit
the rate at which ios have tracepoints emitted.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agobluestore: consolidate state transitions and throttles into BlueStoreThrottle
Samuel Just [Fri, 21 Jun 2019 00:45:06 +0000 (17:45 -0700)]
bluestore: consolidate state transitions and throttles into BlueStoreThrottle

This will make it easier to have a single place to emit trace information.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agosrc/kv: add support for fetching implementation specific properties
Samuel Just [Fri, 26 Jul 2019 22:02:56 +0000 (15:02 -0700)]
src/kv: add support for fetching implementation specific properties

Only implemented for rocksdb for now.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocommon/Throttle: maintain count even if disabled
Samuel Just [Tue, 4 Jun 2019 23:48:12 +0000 (16:48 -0700)]
common/Throttle: maintain count even if disabled

Otherwise, it will behave incorrectly if enabled dynamically.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agomsg/async: fix timestamp members specific to EVENTTRACE
Samuel Just [Fri, 21 Jun 2019 00:48:27 +0000 (17:48 -0700)]
msg/async: fix timestamp members specific to EVENTTRACE

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocommon/EventTrace: default to log level 30 for text logging
Samuel Just [Fri, 21 Jun 2019 00:47:55 +0000 (17:47 -0700)]
common/EventTrace: default to log level 30 for text logging

By nature, these tend to be extremely high volume.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years ago*/CMakeLists: add EVENTTRACE as cmakedefine, require LTTNG
Samuel Just [Fri, 21 Jun 2019 00:46:21 +0000 (17:46 -0700)]
*/CMakeLists: add EVENTTRACE as cmakedefine, require LTTNG

Because EVENTTRACE now implies LTTNG, also cleanup EVENTTRACE
conditions to assume LTTNG.

Also add missing eventtrace dependencies to rbd and
test/objectstore.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agofio_ceph_objectstore: clean up formatted output, add option to write to file
Samuel Just [Wed, 12 Jun 2019 21:26:42 +0000 (14:26 -0700)]
fio_ceph_objectstore: clean up formatted output, add option to write to file

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #30526 from uweigand/endian-private
Kefu Chai [Fri, 27 Sep 2019 18:05:29 +0000 (02:05 +0800)]
Merge pull request #30526 from uweigand/endian-private

include,os: Make ceph_le member private

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agobloom-filter: Remove POD overloads for insert and contains 30527/head
Ulrich Weigand [Fri, 27 Sep 2019 17:38:33 +0000 (19:38 +0200)]
bloom-filter: Remove POD overloads for insert and contains

These are not used in Ceph code currently, and should not
be used in the future either, since any use will introduce
byte-order dependent behavior.  Remove them to prevent
accidental use.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
5 years agobloom-filter: Improve test cases
Ulrich Weigand [Fri, 27 Sep 2019 17:37:11 +0000 (19:37 +0200)]
bloom-filter: Improve test cases

The integer bloom filter test cases do not really match typical usage
of the bloom filter in actual Ceph code.  In particular:

- the tests use consecutive integer ranges, while Ceph code uses
  hash values uniformly distributed over the uint32_t space;

- the tests pass "int" to the insert and contains functions, which
  causes the generic C++ POD type overload to be selected instead
  of the uint32_t overload that is used by Ceph code.  The POD
  overload is dependent on host byte order, and behaves actually
  different from the uint32_t overload on little-endian systems.

To fix these issues, this patch changes the integer tests to
always pass in uint32_t (instead of int), and to use results
of a pseudo-random number generator instead of consecutive
sequences.  (We assume the period of the generator is long
enough that all values generated within one test instance
are distinct.)

This not only makes the test pass on both big- and little-endian
hosts now, but it also allows tightening of the allowable actual
false positive rates, as they now match much closer the expected
values.

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
5 years agoMerge PR #30525 into master
Sage Weil [Fri, 27 Sep 2019 17:08:37 +0000 (12:08 -0500)]
Merge PR #30525 into master

* refs/pull/30525/head:
qa/tasks/ceph.conf.template: disable power-of-2 warning
qa/standalone/mon/health-mute: use power of 2 for pg_num
osd/OSDMap: remove remaining g_conf() usage
PendingReleaseNotes: add note for 14.2.5 so we can backport this
osd/OSDMap: health alert for non-power-of-two pg_num

Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge PR #30431 into master
Sage Weil [Fri, 27 Sep 2019 15:11:58 +0000 (10:11 -0500)]
Merge PR #30431 into master

* refs/pull/30431/head:
pybind/ceph_argparse: add :int or :float to numerical args
pybind/ceph_argparse: simplify osd name and target types
pybind/ceph_argparse: prefer field names to types in help output
pybind/ceph_argparse: more concise n=N '...'
pybind/ceph_argparse: [] (not {}) around optional args

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agomgr/dashboard: Support minimum password complexity rules (#29532)
Lenz Grimmer [Fri, 27 Sep 2019 13:54:17 +0000 (13:54 +0000)]
mgr/dashboard: Support minimum password complexity rules (#29532)

mgr/dashboard: Support minimum password complexity rules

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agomgr/dashboard: CephFS snapshots/quota REST API (#30256)
Lenz Grimmer [Fri, 27 Sep 2019 13:45:28 +0000 (13:45 +0000)]
mgr/dashboard: CephFS snapshots/quota REST API (#30256)

mgr/dashboard: CephFS snapshots/quota REST API

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge PR #30577 into master
Sage Weil [Fri, 27 Sep 2019 13:22:27 +0000 (08:22 -0500)]
Merge PR #30577 into master

* refs/pull/30577/head:
qa/suites/rados/thrash-old-clients: tolerate MON_DOWN

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #30599 from votdev/issue_41797_url_prefix
Lenz Grimmer [Fri, 27 Sep 2019 12:31:32 +0000 (12:31 +0000)]
Merge pull request #30599 from votdev/issue_41797_url_prefix

mgr/dashboard: Configuring an URL prefix does not work as expected

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agovstart_runner: allow the use of it with kernel mounts 30463/head
Jeff Layton [Wed, 18 Sep 2019 12:09:25 +0000 (08:09 -0400)]
vstart_runner: allow the use of it with kernel mounts

Add a new command-line switch to allow it to use the kernel client
instead, and add all of the machinery to handle local kcephfs mounts.

Document this in the developer guide, along with the appropriate scary
warnings about using this on a machine that you care about. While we're
in there, also correct a typo about FUSE configuration.

Fixes: https://tracker.ceph.com/issues/41910
Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agoos/bluestore: fix invalid stray shared blob detection in fsck. 30616/head
Igor Fedotov [Fri, 27 Sep 2019 10:51:54 +0000 (13:51 +0300)]
os/bluestore: fix invalid stray shared blob detection in fsck.

This is a regression, caused by https://github.com/ceph/ceph/pull/30264

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #30597 from smithfarm/wip-opensuse-15.1
Nathan Cutler [Fri, 27 Sep 2019 09:59:10 +0000 (11:59 +0200)]
Merge pull request #30597 from smithfarm/wip-opensuse-15.1

qa/distros/all: add openSUSE 15.1, drop openSUSE 12.2

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
5 years agoMerge pull request #30430 from smithfarm/wip-release-schedule-14.2.4
Nathan Cutler [Fri, 27 Sep 2019 09:58:32 +0000 (11:58 +0200)]
Merge pull request #30430 from smithfarm/wip-release-schedule-14.2.4

doc/releases/schedule.rst: add 14.2.3, 14.2.4, 15.0.0 and drop dumpling

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agodoc: protection for 'fs volume rm' command 30407/head
Jos Collin [Fri, 20 Sep 2019 09:28:12 +0000 (14:58 +0530)]
doc: protection for 'fs volume rm' command

Fixes: https://github.com/ceph/ceph/pull/30381#discussion_r324866953
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoqa/tasks: add/update tests for --yes-i-really-mean-it
Jos Collin [Tue, 17 Sep 2019 06:46:35 +0000 (12:16 +0530)]
qa/tasks: add/update tests for --yes-i-really-mean-it

Fixes: https://tracker.ceph.com/issues/41841
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agomgr/volumes: protection for 'fs volume rm' command
Jos Collin [Mon, 16 Sep 2019 13:24:24 +0000 (18:54 +0530)]
mgr/volumes: protection for 'fs volume rm' command

Fixes: https://tracker.ceph.com/issues/41841
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge pull request #30478 from votdev/issue_41930_standby_dashboard
Lenz Grimmer [Fri, 27 Sep 2019 09:37:37 +0000 (09:37 +0000)]
Merge pull request #30478 from votdev/issue_41930_standby_dashboard

mgr/dashboard: Standby Dashboards don't handle all requests properly

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agopython-common: Add small Readme 30587/head
Sebastian Wagner [Thu, 26 Sep 2019 09:33:56 +0000 (11:33 +0200)]
python-common: Add small Readme

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #30501 from liewegas/bugfix-41913
Kefu Chai [Fri, 27 Sep 2019 08:16:37 +0000 (16:16 +0800)]
Merge pull request #30501 from liewegas/bugfix-41913

ceph-objectstore-tool: better error message if pgid and object do not match

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agodoc: document mds journaling 30396/head
Venky Shankar [Mon, 16 Sep 2019 09:26:22 +0000 (14:56 +0530)]
doc: document mds journaling

Fixes: http://tracker.ceph.com/issues/41783
Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge pull request #30518 from liewegas/wip-mon-less-snap-metadata
Kefu Chai [Fri, 27 Sep 2019 07:04:38 +0000 (15:04 +0800)]
Merge pull request #30518 from liewegas/wip-mon-less-snap-metadata

mon/OSDMonitor: clean up removed_snap keys

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30530 from dzafman/wip-42015
Kefu Chai [Fri, 27 Sep 2019 07:01:39 +0000 (15:01 +0800)]
Merge pull request #30530 from dzafman/wip-42015

osd: Remove unused osdmap flags full, nearfull from output

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30406 into master
Patrick Donnelly [Fri, 27 Sep 2019 06:49:42 +0000 (23:49 -0700)]
Merge PR #30406 into master

* refs/pull/30406/head:
doc: move MDS deployment from main quick start to CephFS quick start
doc: update CephFS Quick Start doc

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>