]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
4 years agocommon: add Windows implementation for system info getter
Lucian Petrut [Mon, 28 Oct 2019 10:15:31 +0000 (10:15 +0000)]
common: add Windows implementation for system info getter

common/util.cc provides some system info retrievers. This patch
covers the Windows implemention.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agocommon: add platform checks
Lucian Petrut [Fri, 18 Oct 2019 11:05:47 +0000 (11:05 +0000)]
common: add platform checks

O_CLOEXEC is not available on Windows. Subprocesses do not inherit
handles unless explicitly requested when creating the handle.
That being considered, we'll avoid setting this flag on Windows.

The zfs check will also be skipped for now.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agocommon: skip undefined open flags on Windows
Lucian Petrut [Fri, 18 Oct 2019 09:49:11 +0000 (09:49 +0000)]
common: skip undefined open flags on Windows

O_NOFOLLOW and O_DIRECTORY are not available on Windows.
We'll just skip those flags for now when converting flags.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoos: Add missing include
Lucian Petrut [Fri, 18 Oct 2019 09:19:32 +0000 (09:19 +0000)]
os: Add missing include

We'll need to explicitly include stddefs.h in order to
use size_t with Mingw.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agoMerge pull request #36259 from majianpeng/bluefs-reduce-ceph_clock_now
Kefu Chai [Sat, 25 Jul 2020 18:03:02 +0000 (02:03 +0800)]
Merge pull request #36259 from majianpeng/bluefs-reduce-ceph_clock_now

os/bluestore/BlueFS: reduce unnecessary ceph_clock_now().

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #33899 from rs-fabrica/rados_generic_options_usage_message
Kefu Chai [Sat, 25 Jul 2020 18:00:15 +0000 (02:00 +0800)]
Merge pull request #33899 from rs-fabrica/rados_generic_options_usage_message

rados: include generic options in usage message

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36115 from BenoitKnecht/diskprediction-local-array-shape
Kefu Chai [Sat, 25 Jul 2020 17:57:49 +0000 (01:57 +0800)]
Merge pull request #36115 from BenoitKnecht/diskprediction-local-array-shape

mgr/diskprediction_local: Fix array size error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #35306 from changchengx/blk
Kefu Chai [Sat, 25 Jul 2020 17:57:11 +0000 (01:57 +0800)]
Merge pull request #35306 from changchengx/blk

blk: add option to set device type to select blk driver

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36274 from xiexingguo/wip-peer-num-objects
Kefu Chai [Sat, 25 Jul 2020 17:54:29 +0000 (01:54 +0800)]
Merge pull request #36274 from xiexingguo/wip-peer-num-objects

osd/PeeringState: prevent peer's num_objects going negative

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: yanjun <yan.jun8@zte.com.cn>
4 years agoMerge pull request #36236 from tchaikov/wip-std-bind
Kefu Chai [Sat, 25 Jul 2020 10:22:08 +0000 (18:22 +0800)]
Merge pull request #36236 from tchaikov/wip-std-bind

test/librados_test_stub: use std::bind

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 years agoMerge pull request #36071 from rzarzynski/wip-crimson-errorator-assert-cleanup
Kefu Chai [Sat, 25 Jul 2020 06:41:33 +0000 (14:41 +0800)]
Merge pull request #36071 from rzarzynski/wip-crimson-errorator-assert-cleanup

crimson: improve assertions in errorator

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoosd/PeeringState: prevent peer's num_objects going negative
xie xingguo [Fri, 24 Jul 2020 01:57:40 +0000 (09:57 +0800)]
osd/PeeringState: prevent peer's num_objects going negative

Saw it in a teuthology run:

 -5645> 2020-07-20 04:34:32.067 7f351e329700  5 osd.5 pg_epoch: 667 ... exit Started/Primary/Active/Backfilling
 -5642> 2020-07-20 04:34:32.067 7f351e329700  5 osd.5 pg_epoch: 667 ... enter Started/Primary/Active/Recovered
 -5633> 2020-07-20 04:34:32.067 7f351e329700 20 osd.5 pg_epoch: 667 ... _update_calc_stats shard 5 primary objects 0 missing 0
 -5632> 2020-07-20 04:34:32.067 7f351e329700 20 osd.5 pg_epoch: 667 ... _update_calc_stats shard 3 objects -1 missing 1
 -5631> 2020-07-20 04:34:32.067 7f351e329700 20 osd.5 pg_epoch: 667 ... _update_calc_stats shard 6 objects 0 missing 0

This will crash the choose_acting() procedure as it will mistakenly
think that peer 3 should continue to perform asynchronous recovery
(e.g., due to num_objects_missing = 1) in contrast to fully
backfill-recovered.

While I did not dig into the real cause, there are a couple of
possible explanations of how num_objects can be off. I think that
if a roll forward or log replay could delete something twice, maybe
there would be an undercount. Or maybe something as simple as a
corruption.

Since _update_calc_stats() is going to fix num_objects_missing
for that peer anyway, let's make sure it always starts with a
clean state.

Fixes: https://tracker.ceph.com/issues/46705
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
4 years agoMerge pull request #36121 from aclamk/wip-bluefs-log-replay-rescue
Neha Ojha [Fri, 24 Jul 2020 23:13:55 +0000 (16:13 -0700)]
Merge pull request #36121 from aclamk/wip-bluefs-log-replay-rescue

Rescue procedure for extremely large bluefs log

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #35909 from dzafman/wip-46275
Neha Ojha [Fri, 24 Jul 2020 21:47:44 +0000 (14:47 -0700)]
Merge pull request #35909 from dzafman/wip-46275

osd: Cancel in-progress scrubs (not user requested)

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agotest: Check for interuption of scrubs with nosrub/nodeep_scrub
David Zafman [Tue, 7 Jul 2020 01:02:08 +0000 (18:02 -0700)]
test: Check for interuption of scrubs with nosrub/nodeep_scrub

Signed-off-by: David Zafman <dzafman@redhat.com>
4 years agoosd: Cancel in-progress scrubs (not user requested)
David Zafman [Thu, 2 Jul 2020 17:05:57 +0000 (10:05 -0700)]
osd: Cancel in-progress scrubs (not user requested)

This change adds new scrubber.req_scrub to track user
requested scrubs, deep_scrub or repair.

Fixes: https://tracker.ceph.com/issues/46275
Signed-off-by: David Zafman <dzafman@redhat.com>
4 years agoosd: Arrange code so that it is clearer should not cause any change
David Zafman [Thu, 23 Jul 2020 16:40:54 +0000 (09:40 -0700)]
osd: Arrange code so that it is clearer should not cause any change

Signed-off-by: David Zafman <dzafman@redhat.com>
4 years agotest: mon-last-epoch-clean.sh fixed to avoid shell globbing
David Zafman [Tue, 21 Jul 2020 20:58:42 +0000 (13:58 -0700)]
test: mon-last-epoch-clean.sh fixed to avoid shell globbing

Signed-off-by: David Zafman <dzafman@redhat.com>
4 years agoosd: Fix dump_scrub_reservation usage
David Zafman [Thu, 9 Jul 2020 18:25:46 +0000 (11:25 -0700)]
osd: Fix dump_scrub_reservation usage

Signed-off-by: David Zafman <dzafman@redhat.com>
4 years agoMerge pull request #35376 from Devp00l/update-backport-doc
Laura Paduano [Fri, 24 Jul 2020 13:26:56 +0000 (15:26 +0200)]
Merge pull request #35376 from Devp00l/update-backport-doc

doc: Resolving conflicts with ceph-backport.sh

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agoMerge pull request #36238 from yuvalif/fix_zippet_notif_merge
Yuval Lifshitz [Fri, 24 Jul 2020 11:46:55 +0000 (14:46 +0300)]
Merge pull request #36238 from yuvalif/fix_zippet_notif_merge

rgw/notification: fix merge issues from zipper6

4 years agoMerge pull request #36268 from tchaikov/wip-crimson-msgr
Kefu Chai [Fri, 24 Jul 2020 10:17:14 +0000 (18:17 +0800)]
Merge pull request #36268 from tchaikov/wip-crimson-msgr

crimson/net: do not reset need_addr before learning it

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/net: do not reset need_addr before learning it
Kefu Chai [Thu, 23 Jul 2020 16:09:08 +0000 (00:09 +0800)]
crimson/net: do not reset need_addr before learning it

because we don't bind both v1 and v2 addresses, when monitor returns a
v1 peer address, as the client side, crimson-osd just drops the
connection. but this failed attempt to learn the myaddr resets
`need_addr`. and this prevents crimson-osd from learning the v2 address
returned by monitor.

in this change, we reset need_addr only after it is learned from the
peer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36256 from tchaikov/wip-ceph-debug-docker-crimson
Kefu Chai [Fri, 24 Jul 2020 02:11:02 +0000 (10:11 +0800)]
Merge pull request #36256 from tchaikov/wip-ceph-debug-docker-crimson

ceph-debug-docker: add --flavor option

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoceph-debug-docker: add --flavor option
Kefu Chai [Thu, 23 Jul 2020 05:58:25 +0000 (13:58 +0800)]
ceph-debug-docker: add --flavor option

* add --flavor option, which is "default" by default, so one can, for
  example, pass "--flavor crimson" to ceph-debug-docker
* extract $repo_url to avoid repeating the shared bits between centos
  and debian derivatives envs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoos/bluestore/BlueFS: avoid useless ceph_clock_now() call.
Jianpeng Ma [Fri, 24 Jul 2020 00:52:14 +0000 (08:52 +0800)]
os/bluestore/BlueFS:  avoid useless ceph_clock_now() call.

The overhead of utime_t constructor utime_t()  is less than ceph_clock_now().

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
5 years agoMerge PR #36136 into master
Patrick Donnelly [Fri, 24 Jul 2020 00:12:43 +0000 (17:12 -0700)]
Merge PR #36136 into master

* refs/pull/36136/head:
qa/tasks/nfs:Add test for relative and just '/' pseudo path
mgr/nfs: Check if pseudo path is absolute path or just '/'

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #36239 from sebastian-philipp/cephadm-parallel-hosts
Sebastian Wagner [Thu, 23 Jul 2020 15:53:31 +0000 (17:53 +0200)]
Merge pull request #36239 from sebastian-philipp/cephadm-parallel-hosts

mgr/cephadm: create OSDs in parallel

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge pull request #35839 from mgfritch/cephadm-ignore-mon-mgr-svc-id
Sebastian Wagner [Thu, 23 Jul 2020 15:52:49 +0000 (17:52 +0200)]
Merge pull request #35839 from mgfritch/cephadm-ignore-mon-mgr-svc-id

python-common: clean-up ServiceSpec.service_id handling

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #36251 from neha-ojha/wip-fix-43888
Neha Ojha [Thu, 23 Jul 2020 14:36:47 +0000 (07:36 -0700)]
Merge pull request #36251 from neha-ojha/wip-fix-43888

osd/OSD.cc: remove osd_lock for bench

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
5 years agoMerge pull request #36261 from tchaikov/wip-unforty-seastar
Kefu Chai [Thu, 23 Jul 2020 14:26:11 +0000 (22:26 +0800)]
Merge pull request #36261 from tchaikov/wip-unforty-seastar

ceph.spec.in: cull _FORTIFY_SOURCE macro from CXXFLAGS for seastar

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #36252 from tchaikov/wip-doc-crimson
Kefu Chai [Thu, 23 Jul 2020 14:19:56 +0000 (22:19 +0800)]
Merge pull request #36252 from tchaikov/wip-doc-crimson

doc/dev/crimson: remove redundant options

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #36263 from tchaikov/wip-more-log-for-dashboard-test
Kefu Chai [Thu, 23 Jul 2020 13:13:44 +0000 (21:13 +0800)]
Merge pull request #36263 from tchaikov/wip-more-log-for-dashboard-test

mgr/dashboard: print more osd log when backend-api-tests fails

Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/dashboard: print more log when backend-api-tests fails
Kefu Chai [Thu, 23 Jul 2020 09:47:14 +0000 (17:47 +0800)]
mgr/dashboard: print more log when backend-api-tests fails

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36242 from dillaman/wip-46668
Mykola Golub [Thu, 23 Jul 2020 09:20:43 +0000 (12:20 +0300)]
Merge pull request #36242 from dillaman/wip-46668

librbd: flush all queued object IO from simple scheduler

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agodoc/dev/crimson: add more examples for seastar-addr2line
Kefu Chai [Thu, 23 Jul 2020 08:53:41 +0000 (16:53 +0800)]
doc/dev/crimson: add more examples for seastar-addr2line

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoceph.spec.in: cull _FORTIFY_SOURCE macro from CXXFLAGS for seastar
Kefu Chai [Thu, 23 Jul 2020 08:03:06 +0000 (16:03 +0800)]
ceph.spec.in: cull _FORTIFY_SOURCE macro from CXXFLAGS for seastar

seastar uses setjmp() and longjmp() to implement coroutine, but
longjmp() is defined as ____longjmp_chk() by GCC if _FORTIFY_SOURC is
defined. ____longjmp_chk() simply bails out with an error message if
the dest stack pointer is higher than the src stack pointer, or the dest
stack pointer is not in the sigaltstack. in the case of seastar, the dst
%sp is not necessarily higher than src stack pointer, and it's not
handling a signal for switching the thread context. that's why we have
the "longjmp causes uninitialized stack frame" error when running
crimson-osd on RHEL/CentOS 8 using the prebuilt rpm packages.

the optflags rpm macro adds -D_FORTIFY_SOURCE=2 to CFLAGS and CXXFLAGS,
so even seastar tries to pass -U_FORTIFY_SOURCE to GCC, there is chance
that cmake append CXXFLAGS at the end of the option list passed to GCC.
and this renders seastar's attempt to undefine _FORTIFY_SOURCE useless.

another way to address this issue is to undefine this macro in
seastar:src/core/thread.cc. but since seastar tries neutralize the macro
in its cmake script instead of source file, i assume they have their
considerations. let's drop it in the rpm recipe instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36225 from votdev/cephadm_fix_typos
Sebastian Wagner [Thu, 23 Jul 2020 08:01:39 +0000 (10:01 +0200)]
Merge pull request #36225 from votdev/cephadm_fix_typos

doc/cephadm: Fix typos in 'Cephadm Concepts' document.

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/nfs:Add test for relative and just '/' pseudo path
Varsha Rao [Tue, 21 Jul 2020 09:59:35 +0000 (15:29 +0530)]
qa/tasks/nfs:Add test for relative and just '/' pseudo path

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/nfs: Check if pseudo path is absolute path or just '/'
Varsha Rao [Thu, 16 Jul 2020 10:50:36 +0000 (16:20 +0530)]
mgr/nfs: Check if pseudo path is absolute path or just '/'

Fixes: https://tracker.ceph.com/issues/46565
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #36158 from dillaman/wip-45169
Mykola Golub [Thu, 23 Jul 2020 06:05:23 +0000 (09:05 +0300)]
Merge pull request #36158 from dillaman/wip-45169

immutable-object-cache: fixed crashes on start up

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #36240 from tchaikov/wip-ceph-debug-docker-el8
Kefu Chai [Thu, 23 Jul 2020 03:54:26 +0000 (11:54 +0800)]
Merge pull request #36240 from tchaikov/wip-ceph-debug-docker-el8

ceph-debug-docker: support centos 8

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #36203 into master
Patrick Donnelly [Thu, 23 Jul 2020 01:49:08 +0000 (18:49 -0700)]
Merge PR #36203 into master

* refs/pull/36203/head:
client: cleanup the fuse client code

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agodoc/dev/crimson: remove redundant options
Kefu Chai [Thu, 23 Jul 2020 01:39:30 +0000 (09:39 +0800)]
doc/dev/crimson: remove redundant options

`--smp` and `--cpuset` have been passed to crimson-osd by vstart.sh, so
no need to pass them when launching vstart.sh

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/mgr/orchestrator: add missing OSD service_id
Michael Fritch [Wed, 22 Jul 2020 22:35:32 +0000 (16:35 -0600)]
doc/mgr/orchestrator: add missing OSD service_id

example for deploying multiple specs via yaml was missing the service_id

Fixes: https://tracker.ceph.com/issues/46377
Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agopython-common: clean-up ServiceSpec.service_id handling
Michael Fritch [Tue, 30 Jun 2020 22:06:20 +0000 (16:06 -0600)]
python-common: clean-up ServiceSpec.service_id handling

service_id is required for iscsi, mds, nfs, osd, rgw.

any other service_type (mon, mgr, etc.) should not contain a service_id

Fixes: https://tracker.ceph.com/issues/46175
Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoosd/OSD.cc: remove osd_lock for bench
Neha Ojha [Fri, 17 Jul 2020 16:52:56 +0000 (16:52 +0000)]
osd/OSD.cc: remove osd_lock for bench

8987f94416f453829eae6dda08837ef5a42531c6 introduced the osd_lock for the
bench command. Taking the osd_lock in bench can lead to deadlocks, causing the
command to hang as seen in https://tracker.ceph.com/issues/43888.

Fixes: https://tracker.ceph.com/issues/43888
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35667 from jschmid1/cephadm_deterministic_simplescheduler
Sebastian Wagner [Wed, 22 Jul 2020 20:12:00 +0000 (22:12 +0200)]
Merge pull request #35667 from jschmid1/cephadm_deterministic_simplescheduler

mgr/cephadm: rework --dry-run/previews

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agolibrbd: flush all queued object IO from simple scheduler
Jason Dillaman [Wed, 22 Jul 2020 15:25:56 +0000 (11:25 -0400)]
librbd: flush all queued object IO from simple scheduler

Normally IO is tracked via the AioCompletion's async_op but the
scheduler will "complete" writes while the IO might be still
executing. Therefore, prior to shutting down this dispatch layer
we need to wait for all IO to complete.

Fixes: https://tracker.ceph.com/issues/46668
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36216 from sebastian-philipp/cephadm-fix-undefined-container_path
Sebastian Wagner [Wed, 22 Jul 2020 15:52:37 +0000 (17:52 +0200)]
Merge pull request #36216 from sebastian-philipp/cephadm-fix-undefined-container_path

cephadm: fix UnboundLocalError: `container_path`

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoceph-debug-docker: support centos 8
Kefu Chai [Wed, 22 Jul 2020 13:41:41 +0000 (21:41 +0800)]
ceph-debug-docker: support centos 8

* default to centos:8, as we've moved to centos:8 now
* do not assume that the base image is centos:7, use centos:8 if it is
  specified.
* install python3-* packages for centos:8 and install python36-*
  packages for centos:7. as el8 is now a python3 distro, and
  centos:7 now has python36.
* s/screen/tmux/. because screen is now offered by EPEL, while tmux
  is in BaseOS.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35694 from rhcs-dashboard/wip-45901-master
Laura Paduano [Wed, 22 Jul 2020 14:58:44 +0000 (16:58 +0200)]
Merge pull request #35694 from rhcs-dashboard/wip-45901-master

mgr/dashboard: increase API test coverage in API controllers

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agodoc: add notes about --dry-run
Joshua Schmid [Mon, 6 Jul 2020 09:59:49 +0000 (11:59 +0200)]
doc: add notes about --dry-run

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agomgr/cephadm: rework --dry-run/previews
Joshua Schmid [Wed, 10 Jun 2020 08:33:36 +0000 (10:33 +0200)]
mgr/cephadm: rework --dry-run/previews

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agoclient: cleanup the fuse client code
Xiubo Li [Wed, 22 Jul 2020 00:25:29 +0000 (08:25 +0800)]
client: cleanup the fuse client code

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agomgr/cephadm: create OSDs in parallel
Sebastian Wagner [Wed, 22 Jul 2020 12:45:09 +0000 (14:45 +0200)]
mgr/cephadm: create OSDs in parallel

Should speedup day 1 OSD creation by something like factor 10

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: move `forall_hosts()` to utils module
Sebastian Wagner [Wed, 22 Jul 2020 12:39:26 +0000 (14:39 +0200)]
mgr/cephadm: move `forall_hosts()` to utils module

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35866 from tchaikov/wip-qa-tempest-pin-openstackclients
Kefu Chai [Wed, 22 Jul 2020 12:38:54 +0000 (20:38 +0800)]
Merge pull request #35866 from tchaikov/wip-qa-tempest-pin-openstackclients

qa/keystone: pin python-openstackclient

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #36005 from p-se/log-prometheus-metric-gathering
Kefu Chai [Wed, 22 Jul 2020 11:52:12 +0000 (19:52 +0800)]
Merge pull request #36005 from p-se/log-prometheus-metric-gathering

mgr/prometheus: log time it takes to collect metrics

Reviewed-by: Boris Ranto <branto@redhat.com>
5 years agoqa/keystone: pin python-openstackclient and osc-lib
Kefu Chai [Wed, 1 Jul 2020 08:32:33 +0000 (16:32 +0800)]
qa/keystone: pin python-openstackclient and osc-lib

keystone's dependencies are installed using its tox.ini,
which in turn uses a constraints file of
https://releases.openstack.org/constraints/upper/ussuri,
and it pins cliff to 3.1.0, which is not able to fulfill the requirement
of osc-lib 2.2.0. as it needs needs cliff>=3.2.0. per
https://releases.openstack.org/ussuri/, the latest osc-lib for
ussuri is 2.0.0. and osc-lib>=2.0.0 is required by
python-openstackclient 2.5.1, so let's use it instead of using the latest
one.

if we install cliff==3.1.0 along with python-openstackclient==5.2.1,
we will have following error, as `CommandManager.add_command_group()`
method was added to cliff in 3.2.0. see
https://opendev.org/openstack/cliff/commit/8477c4dbd0cf651b9b4ba4a4934de69d5942bfc2,
so cliff failed to work with the latest openstackclient, like:

2020-06-29T17:26:23.402 INFO:teuthology.orchestra.run.smithi039.stderr:'CommandManager' object has no attribute 'add_command_group'
2020-06-29T17:26:23.402 INFO:teuthology.orchestra.run.smithi039.stderr:Traceback (most recent call last):
2020-06-29T17:26:23.403 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/cliff/app.py", line 264, in run
2020-06-29T17:26:23.403 INFO:teuthology.orchestra.run.smithi039.stderr:    self.initialize_app(remainder)
2020-06-29T17:26:23.403 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/openstackclient/shell.py", line 133, in
initialize_app
2020-06-29T17:26:23.403 INFO:teuthology.orchestra.run.smithi039.stderr:    super(OpenStackShell, self).initialize_app(argv)
2020-06-29T17:26:23.403 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/osc_lib/shell.py", line 442, in initialize_app
2020-06-29T17:26:23.404 INFO:teuthology.orchestra.run.smithi039.stderr:    self._load_plugins()
2020-06-29T17:26:23.404 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/openstackclient/shell.py", line 104, in
_load_plugins
2020-06-29T17:26:23.404 INFO:teuthology.orchestra.run.smithi039.stderr:    self.command_manager.add_command_group(cmd_group)
2020-06-29T17:26:23.404 INFO:teuthology.orchestra.run.smithi039.stderr:AttributeError: 'CommandManager' object has no attribute 'add_command_group'
2020-06-29T17:26:23.404 INFO:teuthology.orchestra.run.smithi039.stderr:Traceback (most recent call last):
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/osc_lib/shell.py", line 134, in run
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:    ret_val = super(OpenStackShell, self).run(argv)
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/cliff/app.py", line 264, in run
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:    self.initialize_app(remainder)
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/openstackclient/shell.py", line 133, in
initialize_app
2020-06-29T17:26:23.405 INFO:teuthology.orchestra.run.smithi039.stderr:    super(OpenStackShell, self).initialize_app(argv)
2020-06-29T17:26:23.406 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/osc_lib/shell.py", line 442, in initialize_app
2020-06-29T17:26:23.406 INFO:teuthology.orchestra.run.smithi039.stderr:    self._load_plugins()
2020-06-29T17:26:23.406 INFO:teuthology.orchestra.run.smithi039.stderr:  File "/home/ubuntu/cephtest/keystone/.tox/venv/lib/python3.6/site-packages/openstackclient/shell.py", line 104, in
_load_plugins
2020-06-29T17:26:23.406 INFO:teuthology.orchestra.run.smithi039.stderr:    self.command_manager.add_command_group(cmd_group)
2020-06-29T17:26:23.406 INFO:teuthology.orchestra.run.smithi039.stderr:AttributeError: 'CommandManager' object has no attribute 'add_command_group'

in this change the openstackclients version is pin'ed to the
latest stable of 5.2.1. will have a separated PR to bump up
the cliff version on teuthology side.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36094 from varshar16/wip-vstart-cephadm-rm-stale-image
Sebastian Wagner [Wed, 22 Jul 2020 10:28:11 +0000 (12:28 +0200)]
Merge pull request #36094 from varshar16/wip-vstart-cephadm-rm-stale-image

vstart: Remove old ceph images if new cluster is deployed

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #36198 from tchaikov/wip-test-drop-py2
Kefu Chai [Wed, 22 Jul 2020 09:38:01 +0000 (17:38 +0800)]
Merge pull request #36198 from tchaikov/wip-test-drop-py2

rpm,deb,qa,python-common,test: drop python2 support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agorgw/notification: fix merge issues from zipper6
Yuval Lifshitz [Wed, 22 Jul 2020 09:21:20 +0000 (12:21 +0300)]
rgw/notification: fix merge issues from zipper6

see commit: e51d0e092dd23967c039e26ee06f1ed62eae4d11

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
5 years agoMerge pull request #35579 from pcuzner/wip-prometheus-diskinfo
Boris Ranto [Wed, 22 Jul 2020 08:27:41 +0000 (10:27 +0200)]
Merge pull request #35579 from pcuzner/wip-prometheus-diskinfo

mgr/prometheus: add disk metadata to occupation metric

Signed-off-by: Boris Ranto <branto@redhat.com>
5 years agotest/librados_test_stub: use std::bind
Kefu Chai [Wed, 22 Jul 2020 08:15:51 +0000 (16:15 +0800)]
test/librados_test_stub: use std::bind

replace boost::bind() with std::bind(), the use of the Boost
placeholders in the default namespace is deprecated. let's take
this opportunity to use its counterpart in standard library

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36117 from tspmelo/wip-angular-10
Laura Paduano [Wed, 22 Jul 2020 08:00:54 +0000 (10:00 +0200)]
Merge pull request #36117 from tspmelo/wip-angular-10

mgr/dashboard: Update Angular v10

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agodoc/cephadm: Fix typos in 'Cephadm Concepts' document.
Volker Theile [Wed, 22 Jul 2020 08:00:18 +0000 (10:00 +0200)]
doc/cephadm: Fix typos in 'Cephadm Concepts' document.

Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #36098 from s0nea/wip-doc-dashboard-nfs-issue
Laura Paduano [Wed, 22 Jul 2020 07:59:11 +0000 (09:59 +0200)]
Merge pull request #36098 from s0nea/wip-doc-dashboard-nfs-issue

doc/mgr/dashboard: add note about known NFS issue

Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #36205 from ceph/navbar-padding
Laura Paduano [Wed, 22 Jul 2020 07:52:31 +0000 (09:52 +0200)]
Merge pull request #36205 from ceph/navbar-padding

mgr/dashboard: fix navigation sidebar elements alignment

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #36194 from wjwithagen/wjw-fix-preforker
Kefu Chai [Wed, 22 Jul 2020 07:27:18 +0000 (15:27 +0800)]
Merge pull request #36194 from wjwithagen/wjw-fix-preforker

common: include <signal.h> in Preforker.h

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agorpm,deb: drop python3-six dependency
Kefu Chai [Sun, 19 Jul 2020 09:45:58 +0000 (17:45 +0800)]
rpm,deb: drop python3-six dependency

it's not used anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopython-common: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:41:22 +0000 (17:41 +0800)]
python-common: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/test_orchestrator: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:41:09 +0000 (17:41 +0800)]
pybind/mgr/test_orchestrator: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/rook: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:40:48 +0000 (17:40 +0800)]
pybind/mgr/rook: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/orchestrator: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:40:36 +0000 (17:40 +0800)]
pybind/mgr/orchestrator: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/k8sevents: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:40:24 +0000 (17:40 +0800)]
pybind/mgr/k8sevents: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopybind/mgr/cephadm: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:40:12 +0000 (17:40 +0800)]
pybind/mgr/cephadm: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks: drop python2 support from rgw related tests
Kefu Chai [Sun, 19 Jul 2020 09:39:11 +0000 (17:39 +0800)]
qa/tasks: drop python2 support from rgw related tests

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/samba: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:38:09 +0000 (17:38 +0800)]
qa/tasks/samba: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/rbd: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:37:57 +0000 (17:37 +0800)]
qa/tasks/rbd: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/mgr/dashboard: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:36:52 +0000 (17:36 +0800)]
qa/tasks/mgr/dashboard: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Update Angular v10
Tiago Melo [Tue, 7 Jul 2020 22:12:09 +0000 (22:12 +0000)]
mgr/dashboard: Update Angular v10

Fixes: https://tracker.ceph.com/issues/46509
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35981 from trociny/wip-45268
Jason Dillaman [Tue, 21 Jul 2020 19:29:22 +0000 (15:29 -0400)]
Merge pull request #35981 from trociny/wip-45268

librbd: don't resend async_complete if watcher is unregistered

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36149 from adamemerson/wip-warn-more
Adam C. Emerson [Tue, 21 Jul 2020 16:39:02 +0000 (12:39 -0400)]
Merge pull request #36149 from adamemerson/wip-warn-more

Warning Cleanup

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <jdillaman@redhat.com>
5 years agoMerge pull request #36206 from idryomov/wip-read-from-replica-log-msgs
Ilya Dryomov [Tue, 21 Jul 2020 13:11:58 +0000 (15:11 +0200)]
Merge pull request #36206 from idryomov/wip-read-from-replica-log-msgs

osd/PrimaryLogPG: fix up replica read log messages

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
5 years agoqa/tasks/fs: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:36:29 +0000 (17:36 +0800)]
qa/tasks/fs: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:35:16 +0000 (17:35 +0800)]
qa/tasks: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/cephfs: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:35:47 +0000 (17:35 +0800)]
qa/tasks/cephfs: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/cephadm: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 09:35:30 +0000 (17:35 +0800)]
qa/tasks/cephadm: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/rgw/rgw_multi: drop python2 support
Kefu Chai [Sun, 19 Jul 2020 08:50:44 +0000 (16:50 +0800)]
test/rgw/rgw_multi: drop python2 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34059 from Songweibin/wip-objectmap-invalid
Jason Dillaman [Tue, 21 Jul 2020 11:38:06 +0000 (07:38 -0400)]
Merge pull request #34059 from Songweibin/wip-objectmap-invalid

librbd: don't set objectmap invalid when load objectmap timed out

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36212 from tspmelo/wip-cypress-gpu
Laura Paduano [Tue, 21 Jul 2020 09:20:34 +0000 (11:20 +0200)]
Merge pull request #36212 from tspmelo/wip-cypress-gpu

mgr/dashboard: E2E: Fix random failures

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #36153 from votdev/increase_icon_border
Laura Paduano [Tue, 21 Jul 2020 08:49:48 +0000 (10:49 +0200)]
Merge pull request #36153 from votdev/increase_icon_border

mgr/dashboard: Display cluster status in favicon

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #35850 from sebastian-philipp/cephadm-set-paused-health
Sebastian Wagner [Tue, 21 Jul 2020 08:43:41 +0000 (10:43 +0200)]
Merge pull request #35850 from sebastian-philipp/cephadm-set-paused-health

mgr/cephadm: Add CEPHADM_PAUSED to test_cli

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #36147 from mgfritch/cephadm-service-fixup-mypy
Sebastian Wagner [Tue, 21 Jul 2020 08:21:23 +0000 (10:21 +0200)]
Merge pull request #36147 from mgfritch/cephadm-service-fixup-mypy

mgr/cephadm: clean-up service module type checking

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/dashboard: fix navigation sidebar elements alignment
Nizamudeen A [Mon, 20 Jul 2020 06:53:27 +0000 (12:23 +0530)]
mgr/dashboard: fix navigation sidebar elements alignment

Currently the navigation sidebar elements are not aligned properly with the three bars for opening and closing the sidebar. This PR address that minor cleanup.

Fixes: https://tracker.ceph.com/issues/46621
Signed-off-by: Nizamudeen A <nia@redhat.com>
5 years agoblk: change configuration name to avoid miss hint
Changcheng Liu [Wed, 15 Jul 2020 14:11:12 +0000 (22:11 +0800)]
blk: change configuration name to avoid miss hint

"bluestore_ioring" has the hint that it only affect bluestore when
it uses KernelDevice/HMSMRDevice driver. However, it also affects
librbd when librbd use blk driver and "bluestore_ioring" is configured
in global section.
Refine the name to avoid this hint.

Suggested-by: Kefu Chai <kefu@redhat.com>
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoblk: add configuration to be set to select block driver
Changcheng Liu [Thu, 16 Jul 2020 10:24:49 +0000 (18:24 +0800)]
blk: add configuration to be set to select block driver

Besides blk's internal policy to auto select block drvier,
it need supply one configuration to let user to select the
driver for specific requirement.

Suggested-by: Kefu Chai <kefu@redhat.com>
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoblk: split detect supported device and create driver
Changcheng Liu [Wed, 15 Jul 2020 09:33:40 +0000 (17:33 +0800)]
blk: split detect supported device and create driver

Use detect_device_type to detect the devices supported by driver.
Use create_with_type to create driver according to the device.

Suggested-by: Kefu Chai <kefu@redhat.com>
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agolibrbd: propagate an error back when failed to invalidating
songweibin [Tue, 24 Mar 2020 14:14:42 +0000 (22:14 +0800)]
librbd: propagate an error back when failed to invalidating

Signed-off-by: songweibin <song.weibin@zte.com.cn>