]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/dashboard: Update dev documentation URL 31724/head
Tatjana Dehler [Tue, 19 Nov 2019 08:38:14 +0000 (09:38 +0100)]
mgr/dashboard: Update dev documentation URL

Update the developer documentation URL because the
old one is only returning "403 Forbidden".

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #31546 from zjcmszh/execute
Kefu Chai [Tue, 19 Nov 2019 06:36:07 +0000 (14:36 +0800)]
Merge pull request #31546 from zjcmszh/execute

pybind/rados: add WriteOp::execute()

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30968 from majianpeng/osd-optimze-send_message_osd_cluster
Kefu Chai [Tue, 19 Nov 2019 06:35:14 +0000 (14:35 +0800)]
Merge pull request #30968 from majianpeng/osd-optimze-send_message_osd_cluster

osd: optimize send_message to peers

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31550 from wido/issue-42761
Kefu Chai [Tue, 19 Nov 2019 06:28:25 +0000 (14:28 +0800)]
Merge pull request #31550 from wido/issue-42761

systemd: Wait 5 seconds before attempting a restart of an OSD

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #31623 from badone/wip-tracker-42387-extend-admin-socket-timeout
Kefu Chai [Tue, 19 Nov 2019 06:25:37 +0000 (14:25 +0800)]
Merge pull request #31623 from badone/wip-tracker-42387-extend-admin-socket-timeout

common/admin_socket: Increase socket timeouts

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31241 from zjcmszh/add_rados_create_pool2
Kefu Chai [Tue, 19 Nov 2019 06:24:49 +0000 (14:24 +0800)]
Merge pull request #31241 from zjcmszh/add_rados_create_pool2

pybind/rados/rados.pyx: improve Rados.create_pool()

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31617 from Devp00l/wip-42776
Kefu Chai [Tue, 19 Nov 2019 06:23:35 +0000 (14:23 +0800)]
Merge pull request #31617 from Devp00l/wip-42776

mgr/dashboard: Fix pool renaming functionality

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #31515 from drunkard/master
Kefu Chai [Tue, 19 Nov 2019 01:25:23 +0000 (09:25 +0800)]
Merge pull request #31515 from drunkard/master

doc: typo fix in doc/dev/dev_cluster_deployement.rst: s/hostanme/hostname/

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31541 from BlackLotus/master
Kefu Chai [Tue, 19 Nov 2019 01:24:08 +0000 (09:24 +0800)]
Merge pull request #31541 from BlackLotus/master

added a remark to always use powers of two for pg_num

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31685 from liewegas/fix-mgr-shutdown
Sage Weil [Mon, 18 Nov 2019 22:54:27 +0000 (16:54 -0600)]
Merge pull request #31685 from liewegas/fix-mgr-shutdown

mgr: _exit(0) from signal handler even if we are standby

5 years agoMerge pull request #31695 from liewegas/wip-cd-simpler-bootstrap
Sage Weil [Mon, 18 Nov 2019 22:09:13 +0000 (16:09 -0600)]
Merge pull request #31695 from liewegas/wip-cd-simpler-bootstrap

ceph-daemon: bootstrap: make --output-* args optional

5 years agomgr/dashboard: Remove title from sparkline tooltips (#31645)
Lenz Grimmer [Mon, 18 Nov 2019 17:04:21 +0000 (17:04 +0000)]
mgr/dashboard: Remove title from sparkline tooltips (#31645)

mgr/dashboard: Remove title from sparkline tooltips

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #31689 from tchaikov/wip/workunits/cephtool/test.sh
Kefu Chai [Mon, 18 Nov 2019 15:23:21 +0000 (23:23 +0800)]
Merge pull request #31689 from tchaikov/wip/workunits/cephtool/test.sh

qa/workunits/cephtool/test.sh: a handful fixes

Reviewed-by: Sage Weil <sweil@redhat.com>
5 years agoMerge pull request #30397 from MahatiC/wip-ref-counting
Jason Dillaman [Mon, 18 Nov 2019 15:07:08 +0000 (10:07 -0500)]
Merge pull request #30397 from MahatiC/wip-ref-counting

librbd: add reference counting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoqa/suites/rados: whitelist health warnings 31689/head
Kefu Chai [Mon, 18 Nov 2019 14:23:06 +0000 (22:23 +0800)]
qa/suites/rados: whitelist health warnings

in cephtool/test.sh, we

ceph fs set cephfs inline_data {1,0}

so the health check fails when the test ends, like

mon.a (mon.0) 3498 : cluster [WRN] Health check failed: 1 filesystem
with deprecated feature inline_data (FS_INLINE_DATA_DEPRECATED)" in
cluster log

so, before we remove the test, we need to whitelist this warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31688 from smithfarm/wip-bci-clean-print
Nathan Cutler [Mon, 18 Nov 2019 13:30:11 +0000 (14:30 +0100)]
Merge pull request #31688 from smithfarm/wip-bci-clean-print

backport-create-issue: flush line before overprinting

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoqa/workunits/cephtool/test.sh: set min_{bytes,pgs}_per_osd for reweight
Kefu Chai [Mon, 18 Nov 2019 12:31:05 +0000 (20:31 +0800)]
qa/workunits/cephtool/test.sh: set min_{bytes,pgs}_per_osd for reweight

otherwise ceph-mgr will refuse to perform reweight

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: create pool with power-of-2 pg num
Kefu Chai [Mon, 18 Nov 2019 11:47:18 +0000 (19:47 +0800)]
qa/workunits/cephtool/test.sh: create pool with power-of-2 pg num

otherwise wait_for_health() fails like:

wait_for_health:  ceph health detail
HEALTH_WARN 1 pool(s) have non-power-of-two pg_num
[WRN] POOL_PG_NUM_NOT_POWER_OF_TWO: 1 pool(s) have non-power-of-two pg_num
    pool 'rbd' pg_num 10 is not a power of two
../qa/workunits/cephtool/../../standalone/ceph-helpers.sh:1613: wait_for_health:  return 1

the failure was found when testing test_mon_pg().

this behavior was introduced by 6e46b1c0e50ad377d5db058e0452b0d956b3fad6

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: use "ceph compact" in test_mon_deprecated_commands()
Kefu Chai [Mon, 18 Nov 2019 10:51:29 +0000 (18:51 +0800)]
qa/workunits/cephtool/test.sh: use "ceph compact" in test_mon_deprecated_commands()

both "compact" and "scrub" are now cli command, so we cannot issue them
using "tell" anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31710 from votdev/ignore_ssh_config
Sebastian Wagner [Mon, 18 Nov 2019 12:29:53 +0000 (13:29 +0100)]
Merge pull request #31710 from votdev/ignore_ssh_config

mgr/ssh: Ignore ssh-config file

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/ssh: Ignore ssh-config file 31710/head
Volker Theile [Mon, 18 Nov 2019 10:40:32 +0000 (11:40 +0100)]
mgr/ssh: Ignore ssh-config file

Ignore the ssh-config file that is created when working with the Vagrant box.

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoqa/workunits/cephtool/test.sh: use "sessions" in test_mon_tell()
Kefu Chai [Mon, 18 Nov 2019 07:36:21 +0000 (15:36 +0800)]
qa/workunits/cephtool/test.sh: use "sessions" in test_mon_tell()

"version" is not an asok command anymore in the sense that it's served
by registered asock hook. so in this change, we replace "version" with
"sessions", so we can verify that audit channel does not the dispatched
"sessions" command sent from ceph cli.

also, restructure the test as a loop for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: use tell instead of --admin-daemon for asok commands
Kefu Chai [Mon, 18 Nov 2019 04:23:31 +0000 (12:23 +0800)]
qa/workunits/cephtool/test.sh: use tell instead of --admin-daemon for asok commands

ceph cli will be able to route the command to the target daemon when
handling "tell" commands.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: remove heap cli tests
Kefu Chai [Mon, 18 Nov 2019 04:10:17 +0000 (12:10 +0800)]
qa/workunits/cephtool/test.sh: remove heap cli tests

"heap" cli commands are removed in the big asok/tell cleanup, they are now
asock commands.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/man/ceph: "heap" is now an asok command
Kefu Chai [Mon, 18 Nov 2019 04:03:14 +0000 (12:03 +0800)]
doc/man/ceph: "heap" is now an asok command

after the big asok/tell cleanup, "heap" is now an asok command, so
update the manpage accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: fix iec/si tests
Kefu Chai [Sat, 16 Nov 2019 16:28:40 +0000 (00:28 +0800)]
qa/workunits/cephtool/test.sh: fix iec/si tests

tests all IEC and SI units related test with a tier pool. as
`target_max_objects` and `target_size_bytes` only apply to tier
pools. so, for the sake of simplicity, tests all of them using
a tier pool.

introduced by 9095f67e

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-daemon: bootstrap: fix example shell command 31695/head
Sage Weil [Mon, 18 Nov 2019 00:27:23 +0000 (18:27 -0600)]
ceph-daemon: bootstrap: fix example shell command

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: default output file names
Sage Weil [Sun, 17 Nov 2019 23:49:21 +0000 (17:49 -0600)]
ceph-daemon: default output file names

- These are reasonable names that a user would probably want
- If they run bootstrap in /etc/ceph then they are already installed in
  the right location
- This means that the bootstrap command has only 1 (!) required argument
  (--mon-ip or equivalent)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31637 from carletes/patch-1
Kefu Chai [Sun, 17 Nov 2019 17:53:40 +0000 (01:53 +0800)]
Merge pull request #31637 from carletes/patch-1

src/msg/async/net_handler.cc: Fix compilation

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31543 from tchaikov/wip/cmake/librt
Kefu Chai [Sun, 17 Nov 2019 17:51:28 +0000 (01:51 +0800)]
Merge pull request #31543 from tchaikov/wip/cmake/librt

cmake: detect librt for POSIX time functions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agoMerge pull request #31532 from tchaikov/wip-42742
Kefu Chai [Sat, 16 Nov 2019 17:16:29 +0000 (01:16 +0800)]
Merge pull request #31532 from tchaikov/wip-42742

msg/async/rdma: do not init mutex before lockdeps is ready

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoMerge pull request #31506 from Yan-waller/wip-walle-191109-fixomapentries
Kefu Chai [Sat, 16 Nov 2019 17:14:34 +0000 (01:14 +0800)]
Merge pull request #31506 from Yan-waller/wip-walle-191109-fixomapentries

common/options: decrease the default max_omap_entries_per_request

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #31310 from badone/wip-tracker-42477-reinstate-o-outfile
Kefu Chai [Sat, 16 Nov 2019 17:12:12 +0000 (01:12 +0800)]
Merge pull request #31310 from badone/wip-tracker-42477-reinstate-o-outfile

tools/rados: Unmask '-o' to restore original behaviour

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31469 from p-se/wip-pse-summary-reload-traceback
Kefu Chai [Sat, 16 Nov 2019 17:10:11 +0000 (01:10 +0800)]
Merge pull request #31469 from p-se/wip-pse-summary-reload-traceback

mgr/dashboard: KeyError on dashboard reload

Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #31399 from zy751713126/osd_stat
Kefu Chai [Sat, 16 Nov 2019 17:07:37 +0000 (01:07 +0800)]
Merge pull request #31399 from zy751713126/osd_stat

mon/OSDMonitor: fix format error ceph osd stat --format json

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31427 from zy751713126/osd_status
Kefu Chai [Sat, 16 Nov 2019 17:03:47 +0000 (01:03 +0800)]
Merge pull request #31427 from zy751713126/osd_status

pybind/mgr: Cancel output color control

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #31560 from rosinL/wip-fix-incorrect-pg-pool-sum
Kefu Chai [Sat, 16 Nov 2019 16:54:25 +0000 (00:54 +0800)]
Merge pull request #31560 from rosinL/wip-fix-incorrect-pg-pool-sum

mon/PGMap: fix incorrect pg_pool_sum when delete pool

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31158 from zjcmszh/test_remove
Kefu Chai [Sat, 16 Nov 2019 16:53:30 +0000 (00:53 +0800)]
Merge pull request #31158 from zjcmszh/test_remove

test/pybind/test_rados.py: test test_operate_aio_write_op()

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30717 from rzarzynski/wip-bug-42026
Kefu Chai [Sat, 16 Nov 2019 16:51:15 +0000 (00:51 +0800)]
Merge pull request #30717 from rzarzynski/wip-bug-42026

msg/async: perform the v2 resets in proper EventCenter

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31517 from changchengx/rdma_gid
Kefu Chai [Sat, 16 Nov 2019 16:49:14 +0000 (00:49 +0800)]
Merge pull request #31517 from changchengx/rdma_gid

msg/async/rdma: add an option for choosing different RoCE protocol

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agobackport-create-issue: flush line before overprinting 31688/head
Nathan Cutler [Sat, 16 Nov 2019 06:53:01 +0000 (07:53 +0100)]
backport-create-issue: flush line before overprinting

When iterating over "Pending Backport" issues, the script displays
a message for each issue, like so:

    Examining issue#53432 (345/543)

Since a newline is not printed, each subsequent message overwrites
the previous one. But the last one remained on the screen and was
being overwritten by a shorter log message, leaving behind an
unwanted artifact:

    INFO:root:Processed 334 issues)

Fixes: 8495d37695d43ea38e1b70851e4a6127ebb4fc76
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge PR #31620 into master
Sage Weil [Fri, 15 Nov 2019 23:14:22 +0000 (17:14 -0600)]
Merge PR #31620 into master

* refs/pull/31620/head:
mgr: handle race with finisher after shutdown

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr: _exit(0) from signal handler even if we are standby 31685/head
Sage Weil [Fri, 15 Nov 2019 23:10:41 +0000 (17:10 -0600)]
mgr: _exit(0) from signal handler even if we are standby

In 3d360b97ed7dead8e9a5f602cfaf61ab7b41e531 a signal handler was added to
shut down modules and associated clients cleanly, but the standby case
was left ignoring the signal completely.

Fixes: https://tracker.ceph.com/issues/42744
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31681 from ifed01/wio-ifed-fix-fio
Igor Fedotov [Fri, 15 Nov 2019 21:25:55 +0000 (00:25 +0300)]
Merge pull request #31681 from ifed01/wio-ifed-fix-fio

test/fio: handle nullptr when parsing throttle params

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #31025 from scarvalhojr/ssevault2
Casey Bodley [Fri, 15 Nov 2019 18:53:32 +0000 (13:53 -0500)]
Merge pull request #31025 from scarvalhojr/ssevault2

rgw: improvements to SSE-KMS with Vault

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agotest/fio: handle nullptr when throttle params parsing 31681/head
Igor Fedotov [Fri, 15 Nov 2019 17:37:07 +0000 (20:37 +0300)]
test/fio: handle nullptr when throttle params parsing

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #31671 from sebastian-philipp/pybind-mgr-exclude-tests
Nathan Cutler [Fri, 15 Nov 2019 16:04:41 +0000 (17:04 +0100)]
Merge pull request #31671 from sebastian-philipp/pybind-mgr-exclude-tests

pybind/mgr: Exclude tests/

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge PR #31486 into master
Sage Weil [Fri, 15 Nov 2019 15:48:28 +0000 (09:48 -0600)]
Merge PR #31486 into master

* refs/pull/31486/head:
ceph-daemon: add standalone `adopt` tests

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31618 from dsavineau/ceph_daemon_rename_podman_vars
Sebastian Wagner [Fri, 15 Nov 2019 15:26:30 +0000 (16:26 +0100)]
Merge pull request #31618 from dsavineau/ceph_daemon_rename_podman_vars

ceph-daemon: replace podman variables by container

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agopybind/mgr: Exclude tests/ 31671/head
Sebastian Wagner [Fri, 15 Nov 2019 13:29:42 +0000 (14:29 +0100)]
pybind/mgr: Exclude tests/

Fixes: d6c10192c61a59f6a77d04a9d601c9df2f72d07f
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #31666 from hrchu/origin/patch-2
Kefu Chai [Fri, 15 Nov 2019 12:13:41 +0000 (20:13 +0800)]
Merge pull request #31666 from hrchu/origin/patch-2

doc: Update mailing lists

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31667 from tchaikov/wip/run-cbt-sh/fs.aio-max-nr
Kefu Chai [Fri, 15 Nov 2019 11:37:29 +0000 (19:37 +0800)]
Merge pull request #31667 from tchaikov/wip/run-cbt-sh/fs.aio-max-nr

script/run-cbt.sh: set fs.aio-max-nr for seastar

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoscript/run-cbt.sh: set fs.aio-max-nr for seastar 31667/head
Kefu Chai [Fri, 15 Nov 2019 09:55:53 +0000 (17:55 +0800)]
script/run-cbt.sh: set fs.aio-max-nr for seastar

seastar requires 11027 for each reactor, so we need at least

fs.aio-max-nr = 11027 * n_osd

but to make it simple and to take the needs of other applications using
aio on the machine, we increase the number of io context to 32768,
and always set this setting no matter if we are starting a vstart
cluster with classic osd or crimson osd

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31523 from sebastian-philipp/ssh-make-check
Sebastian Wagner [Fri, 15 Nov 2019 08:43:21 +0000 (09:43 +0100)]
Merge pull request #31523 from sebastian-philipp/ssh-make-check

mgr/ssh: add make check integration

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
5 years agodoc: Update mailing lists 31666/head
hrchu [Fri, 15 Nov 2019 07:13:09 +0000 (15:13 +0800)]
doc: Update mailing lists

Signed-off-by: hrchu <petertc.chu@gmail.com>
5 years agoMerge PR #31509 into master
Patrick Donnelly [Fri, 15 Nov 2019 05:51:46 +0000 (21:51 -0800)]
Merge PR #31509 into master

* refs/pull/31509/head:
client: remove unused variable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoclient: remove unused variable 31509/head
su_nan@inspur.com [Thu, 14 Nov 2019 01:49:30 +0000 (09:49 +0800)]
client: remove unused variable

the flock and cond are useless variables in Client::_read_sync,remove useless variables

Fixes: https://tracker.ceph.com/issues/42720
Signed-off-by: su_nan@inspur.com <su_nan@inspur.com>
5 years agoMerge pull request #31643 from liewegas/fix-empty-crash
Dan Mick [Thu, 14 Nov 2019 22:21:57 +0000 (14:21 -0800)]
Merge pull request #31643 from liewegas/fix-empty-crash

mgr/crash: behave when posted crash has no backtrace

5 years agosrc/msg/async/net_handler.cc: Fix compilation 31637/head
Carlos Valiente [Thu, 14 Nov 2019 18:27:50 +0000 (18:27 +0000)]
src/msg/async/net_handler.cc: Fix compilation

On a Cray system I'm working on, it seems that `SO_PRIORITY` is defined,
but `IPTOS_CLASS_CS6` is not. Without this patch, compilation fails at
line 150:

```
r = ::setsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio));
```

because the variable `r` is not defined (originally it is defined inside
the `#ifdef IPTOS_CLASS_CS6` block).

Fixes: https://tracker.ceph.com/issues/42821
Signed-off-by: Carlos Valiente <carlos.valiente@ecmwf.int>
5 years agoMerge PR #31626 into master
Patrick Donnelly [Thu, 14 Nov 2019 19:13:09 +0000 (11:13 -0800)]
Merge PR #31626 into master

* refs/pull/31626/head:
test_cephfs_shell: initialize stderr for run_cephfs_shell_cmd()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31460 into master
Patrick Donnelly [Thu, 14 Nov 2019 19:06:10 +0000 (11:06 -0800)]
Merge PR #31460 into master

* refs/pull/31460/head:
cephfs-shell: print helpful message when conf file is not found

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30385 from ZVampirEM77/acl-detailed-err-msg
Casey Bodley [Thu, 14 Nov 2019 18:22:44 +0000 (13:22 -0500)]
Merge pull request #30385 from ZVampirEM77/acl-detailed-err-msg

rgw: add detailed error message for PutACLs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30470 from dongbula/bf-fix-usage-keyiter-update
Casey Bodley [Thu, 14 Nov 2019 18:21:22 +0000 (13:21 -0500)]
Merge pull request #30470 from dongbula/bf-fix-usage-keyiter-update

RGW: fix an endless loop error when to show usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30574 from zhangsw/rgw-fix-compress
Casey Bodley [Thu, 14 Nov 2019 18:21:02 +0000 (13:21 -0500)]
Merge pull request #30574 from zhangsw/rgw-fix-compress

rgw: compression info should be same during multipart uploading

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30575 from mkogan1/wip-rgw-resharding-mem
Casey Bodley [Thu, 14 Nov 2019 18:13:00 +0000 (13:13 -0500)]
Merge pull request #30575 from mkogan1/wip-rgw-resharding-mem

rgw: when resharding store progress json

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agomgr/dashboard: Remove title from sparkline tooltips 31645/head
Tiago Melo [Thu, 14 Nov 2019 17:42:34 +0000 (16:42 -0100)]
mgr/dashboard: Remove title from sparkline tooltips

Title was never being defined in sparklines and
was always displayed as 'undefined'.

Since they are not needed for this type of chart, we are simply going to remove
them.

Fixes: https://tracker.ceph.com/issues/41656
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #31632 from tspmelo/wip-rbd-timezone
Lenz Grimmer [Thu, 14 Nov 2019 17:33:36 +0000 (17:33 +0000)]
Merge pull request #31632 from tspmelo/wip-rbd-timezone

mgr/dashboard: Fix error in unit test caused by timezone

Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #29004 from zhangsw/rgw-cleanup-taggingop
Casey Bodley [Thu, 14 Nov 2019 16:45:27 +0000 (11:45 -0500)]
Merge pull request #29004 from zhangsw/rgw-cleanup-taggingop

rgw: remove re-defined is_tagging_op in RGWHandler_REST_Bucket_S3

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #31582 into master
Sage Weil [Thu, 14 Nov 2019 16:35:31 +0000 (10:35 -0600)]
Merge PR #31582 into master

* refs/pull/31582/head:
global: disable THP for Ceph daemons

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
5 years agoMerge PR #31584 into master
Sage Weil [Thu, 14 Nov 2019 16:33:24 +0000 (10:33 -0600)]
Merge PR #31584 into master

* refs/pull/31584/head:
common/options: osd_crush_chooseleaf_type is CLUSTER_CREATE
mon/ConfigMonitor: do not assimilate CLUSTER_CREATE options
common/ceph_context: observe container_image so we don't get warnings

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #31621 into master
Sage Weil [Thu, 14 Nov 2019 16:30:53 +0000 (10:30 -0600)]
Merge PR #31621 into master

* refs/pull/31621/head:
os/bluestore: consolidate extents from the same device only

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr/crash: behave when posted crash has no backtrace 31643/head
Sage Weil [Thu, 14 Nov 2019 16:28:47 +0000 (10:28 -0600)]
mgr/crash: behave when posted crash has no backtrace

This is the case when the qa/tasks/mgr/test_crash.py test runs, and could
happen in the real world too, perhaps, if someone fed us wonky input.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: replace podman variables by container 31618/head
Dimitri Savineau [Wed, 13 Nov 2019 16:47:59 +0000 (11:47 -0500)]
ceph-daemon: replace podman variables by container

There's no logic to use variables with podman prefix when we can use both
docker and podman.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
5 years agomgr/ssh: add make check integration 31523/head
Sebastian Wagner [Mon, 11 Nov 2019 10:51:14 +0000 (11:51 +0100)]
mgr/ssh: add make check integration

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #31436 from dang/wip-dang-zipper-3
Casey Bodley [Thu, 14 Nov 2019 15:18:08 +0000 (10:18 -0500)]
Merge pull request #31436 from dang/wip-dang-zipper-3

rgw: Project Zipper - Bucket

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #30754 into master
Patrick Donnelly [Thu, 14 Nov 2019 14:14:11 +0000 (06:14 -0800)]
Merge PR #30754 into master

* refs/pull/30754/head:
doc/cephfs: merge fstab doc with respective mount docs
doc: add systemd unit part for FUSE mounts in fstab doc
doc: update and improve "mount using kernel driver" doc
doc: update and improve "mount using FUSE" doc

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31631 into master
Sage Weil [Thu, 14 Nov 2019 14:08:19 +0000 (08:08 -0600)]
Merge PR #31631 into master

* refs/pull/31631/head:
ceph-daemon: Add more type hints

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #31561 from sebastian-philipp/orchestrator-remove-cli-tox
Sebastian Wagner [Thu, 14 Nov 2019 13:44:01 +0000 (14:44 +0100)]
Merge pull request #31561 from sebastian-philipp/orchestrator-remove-cli-tox

mgr/orchestrator_cli: remove tox and move test to parent dir

Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agocmake: detect librt for POSIX time functions 31543/head
Kefu Chai [Mon, 11 Nov 2019 22:55:40 +0000 (06:55 +0800)]
cmake: detect librt for POSIX time functions

per clock_gettime(3),

> On POSIX systems on which these functions are available, the symbol
> _POSIX_TIMERS is defined in <unistd.h> to a value greater than 0.

and

> Most systems require the program be linked with the librt library to
> use these functions.

so, we should detect this symbol and link against librt for using these
functions.

in this change, librt is linked for checking the existence of
clock_gettime(), if it exists. RT_LIBRARY is defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/orchestrator: remove tox and move test to parent dir 31561/head
Sebastian Wagner [Tue, 12 Nov 2019 10:48:54 +0000 (11:48 +0100)]
mgr/orchestrator: remove tox and move test to parent dir

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/dashboard: Fix error in unit test caused by timezone 31632/head
Tiago Melo [Thu, 14 Nov 2019 10:48:23 +0000 (09:48 -0100)]
mgr/dashboard: Fix error in unit test caused by timezone

Unit test was only accepting positive timezones

Fixes: https://tracker.ceph.com/issues/42812
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoceph-daemon: Add more type hints 31631/head
Thomas Bechtold [Thu, 14 Nov 2019 09:55:15 +0000 (10:55 +0100)]
ceph-daemon: Add more type hints

Commit 7ce26be7a3448 started to add type hints. This commit continues
that and adds the missing type hints.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
5 years agotest_cephfs_shell: initialize stderr for run_cephfs_shell_cmd() 31626/head
Rishabh Dave [Wed, 13 Nov 2019 13:22:18 +0000 (18:52 +0530)]
test_cephfs_shell: initialize stderr for run_cephfs_shell_cmd()

Since teuthology initializes stderr to None by default, absence of this
breaks the tests accessing stderr of commands executed within the test
when the execution is using teuthology.

Fixes: https://tracker.ceph.com/issues/42806
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agocommon/admin_socket: Increase socket timeouts 31623/head
Brad Hubbard [Thu, 14 Nov 2019 05:07:32 +0000 (15:07 +1000)]
common/admin_socket: Increase socket timeouts

With the move of the 'bench' command to the admin socket the recv
timeout is being exceeded in testing due to the duration of the command.

Fixes: https://tracker.ceph.com/issues/42387
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agodoc/cephfs: merge fstab doc with respective mount docs 30754/head
Rishabh Dave [Mon, 4 Nov 2019 13:44:07 +0000 (19:14 +0530)]
doc/cephfs: merge fstab doc with respective mount docs

Fixes: https://tracker.ceph.com/issues/42601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-daemon: add standalone `adopt` tests 31486/head
Michael Fritch [Wed, 13 Nov 2019 23:28:21 +0000 (16:28 -0700)]
ceph-daemon: add standalone `adopt` tests

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoglobal: disable THP for Ceph daemons 31582/head
Patrick Donnelly [Tue, 12 Nov 2019 22:50:52 +0000 (14:50 -0800)]
global: disable THP for Ceph daemons

Ceph is known to suffer from memory fragmentation due to transparent
huge pages (THP). This is indicated by RSS usage above configured memory
targets and is only observable when the distribution default for THP is
"always", which is the default in the upstream kernel if
CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is unset.

For now, enabling THP is currently discouraged until selective use of
THP by Ceph is implemented via madvise. We will need to consider both
defaults for THP so madvise calls to both enable and disable THP will
need implemented.

All credit to Mark Nelson for doing the legwork identifying this issue
and potential solutions.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Mark Nelson <mnelson@redhat.com>
5 years agomgr: handle race with finisher after shutdown 31620/head
Patrick Donnelly [Wed, 13 Nov 2019 19:00:44 +0000 (11:00 -0800)]
mgr: handle race with finisher after shutdown

The module is deleted when modules is cleared. The notify method is
called on a destructed class.

Fixes: https://tracker.ceph.com/issues/42744
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #31614 into master
Sage Weil [Wed, 13 Nov 2019 19:14:12 +0000 (13:14 -0600)]
Merge PR #31614 into master

* refs/pull/31614/head:
ceph-daemon: use `-e` instead of `--env`

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoos/bluestore: consolidate extents from the same device only 31621/head
Igor Fedotov [Wed, 13 Nov 2019 19:09:53 +0000 (22:09 +0300)]
os/bluestore: consolidate extents from the same device only

Presumably Fixes: https://tracker.ceph.com/issues/42223

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #31613 into master
Sage Weil [Wed, 13 Nov 2019 18:59:57 +0000 (12:59 -0600)]
Merge PR #31613 into master

* refs/pull/31613/head:
mgr/ssh: fix redeploy

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #31609 into master
Sage Weil [Wed, 13 Nov 2019 18:35:03 +0000 (12:35 -0600)]
Merge PR #31609 into master

* refs/pull/31609/head:
ceph-daemon: Add basic mypy support

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #31601 from tchaikov/wip/install-newer-binutils-on-xenial
Kefu Chai [Wed, 13 Nov 2019 17:03:47 +0000 (01:03 +0800)]
Merge pull request #31601 from tchaikov/wip/install-newer-binutils-on-xenial

install-deps.sh: install binutils 2.28 for xenial

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
5 years agomgr/dashboard: Fix pool renaming functionality 31617/head
Stephan Müller [Wed, 13 Nov 2019 12:16:55 +0000 (13:16 +0100)]
mgr/dashboard: Fix pool renaming functionality

The problem was that, if a pool was renamed the routine to update tried
to work on the old pool name and didn't used the info that the pool got
renamed, therefore an error occurred in the UI saying that the pool
could not be found.

Fixes: https://tracker.ceph.com/issues/42776
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agomgr/dashboard: Fix pg_num counts in pool API tests
Stephan Müller [Wed, 13 Nov 2019 12:15:42 +0000 (13:15 +0100)]
mgr/dashboard: Fix pg_num counts in pool API tests

To prevent the not a number of two cluster health warning, all created
pools now have a pg_num that is a power of two.

Fixes: https://tracker.ceph.com/issues/42776
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agomgr/dashboard: Refactor pool API tests
Stephan Müller [Wed, 13 Nov 2019 16:11:54 +0000 (17:11 +0100)]
mgr/dashboard: Refactor pool API tests

Renamed "__create_pool" to "__yield_pool" to make it's purpose clearer
and added a description.

Split up create pool test into three different tests.
Used "__yield_pool" for creation tests, too.

Fixes: https://tracker.ceph.com/issues/42776
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agoMerge PR #31602 into master
Sage Weil [Wed, 13 Nov 2019 16:18:58 +0000 (10:18 -0600)]
Merge PR #31602 into master

* refs/pull/31602/head:
mgr/ssh: annotate object representation

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoceph-daemon: use `-e` instead of `--env` 31614/head
Michael Fritch [Wed, 13 Nov 2019 16:10:10 +0000 (09:10 -0700)]
ceph-daemon: use `-e` instead of `--env`

Older versions of podman don't allow intermixing `-e` and `--env`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoinstall-deps.sh: remove the cleanup for kitware repo 31601/head
Kefu Chai [Wed, 13 Nov 2019 12:41:05 +0000 (20:41 +0800)]
install-deps.sh: remove the cleanup for kitware repo

it was used for removing the kitware repo, and in
7265b55d094a639be50a567d3be92fba94c04786, we switched to a rebuilt
version hosted in chacra, and it was more than two months ago,
presumably, none builder has kitware repo anymore. so, let's remove
the cleanup code.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinstall-deps.sh: install binutils 2.28 for xenial
Kefu Chai [Wed, 13 Nov 2019 12:11:53 +0000 (20:11 +0800)]
install-deps.sh: install binutils 2.28 for xenial

ld 2.26 segment faults when linking librados.so in
https://github.com/ceph/ceph/pull/16715 .

while ld 2.28 always survives.
binutils 2.28 is rebuilt and uploaded to chacra
binutils/master/7fa393306ed8b93019d225548474c0540b8928f7/ubuntu/xenial,

so let's use it instead.

the source deb package comes from
http://ppa.launchpad.net/jonathonf/binutils/ubuntu

i tried to use the binutils 2.30 source package from bionic,
but it has build dependency of dpkg-dev (>= 1.19.0.5) which cannot be
fulfilled on xenial. so without more changes, we cannot get
binutils 2.30 built on xenial using this source package.

Fixes: https://tracker.ceph.com/issues/42596
Signed-off-by: Kefu Chai <kchai@redhat.com>