]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocephadm: rewrite call() with asyncio 39035/head
Kefu Chai [Sat, 23 Jan 2021 05:18:56 +0000 (13:18 +0800)]
cephadm: rewrite call() with asyncio

for better readability, also return 124 when subprocess times out

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39029 from dillaman/wip-48964
Mykola Golub [Sat, 23 Jan 2021 08:52:27 +0000 (10:52 +0200)]
Merge pull request #39029 from dillaman/wip-48964

ocf: add support for mapping images within an RBD namespace

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #39024 from dillaman/wip-librbd-q-release
Mykola Golub [Sat, 23 Jan 2021 08:51:24 +0000 (10:51 +0200)]
Merge pull request #39024 from dillaman/wip-librbd-q-release

librbd: bump minor version to match Q release

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #39034 from liewegas/fix-vstart-init-ceph
Kefu Chai [Sat, 23 Jan 2021 04:22:42 +0000 (12:22 +0800)]
Merge pull request #39034 from liewegas/fix-vstart-init-ceph

init-ceph: fix python and library paths for vstart

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38957 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Fri, 22 Jan 2021 23:37:48 +0000 (15:37 -0800)]
Merge pull request #38957 from yuriw/wip-yuriw-crontab-master

qa/tests: added pacific, changed octopus number of runs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoinit-ceph: fix python and library paths for vstart 39034/head
Sage Weil [Fri, 22 Jan 2021 20:47:54 +0000 (14:47 -0600)]
init-ceph: fix python and library paths for vstart

The current version does not result in a functional mgr after restarting
from a vstart cluster.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39013 from MahatiC/wip-ssd-doc
Jason Dillaman [Fri, 22 Jan 2021 20:45:56 +0000 (15:45 -0500)]
Merge pull request #39013 from MahatiC/wip-ssd-doc

doc: update rwl doc to include ssd config

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38942 from smithfarm/wip-bci-pacific
Nathan Cutler [Fri, 22 Jan 2021 19:53:48 +0000 (20:53 +0100)]
Merge pull request #38942 from smithfarm/wip-bci-pacific

script: make backport scripts know about pacific

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge PR #39003 into master v17.0.0
Sage Weil [Fri, 22 Jan 2021 18:33:52 +0000 (12:33 -0600)]
Merge PR #39003 into master

* refs/pull/39003/head:
cephadm: fix 2> syntax in unit.run

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
4 years agoqa/tests: moved 'master' runs to 'gibba' machines 38957/head
Yuri Weinstein [Fri, 22 Jan 2021 16:38:47 +0000 (08:38 -0800)]
qa/tests: moved 'master' runs to 'gibba' machines

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoMerge PR #38990 into master
Sage Weil [Fri, 22 Jan 2021 15:55:40 +0000 (09:55 -0600)]
Merge PR #38990 into master

* refs/pull/38990/head:
mgr/devicehealth: fix 'device monitoring on|off' return value

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoocf: add support for mapping images within an RBD namespace 39029/head
Jason Dillaman [Fri, 22 Jan 2021 15:29:29 +0000 (10:29 -0500)]
ocf: add support for mapping images within an RBD namespace

Support for RBD namespaces was not added to the OCF resource agent.
This commit fixes this oversight and also fixes a bug in handling
of the "rbd device list" output.

Fixes: https://tracker.ceph.com/issues/48964
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoscript: make backport scripts know about pacific 38942/head
Nathan Cutler [Mon, 18 Jan 2021 09:26:38 +0000 (10:26 +0100)]
script: make backport scripts know about pacific

Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agolibrbd: bump minor version to match Q release 39024/head
Jason Dillaman [Fri, 22 Jan 2021 13:35:22 +0000 (08:35 -0500)]
librbd: bump minor version to match Q release

This will assist layered projects like QEMU and libvirt
determine which features are supported.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38938 from rhcs-dashboard/rgw-user-validation
Ernesto Puerta [Fri, 22 Jan 2021 13:08:57 +0000 (14:08 +0100)]
Merge pull request #38938 from rhcs-dashboard/rgw-user-validation

mgr/dashboard: Fix for incorrect validation in rgw user form

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #39016 from sebastian-philipp/cephadm-mypy-status-none
Kefu Chai [Fri, 22 Jan 2021 11:46:42 +0000 (19:46 +0800)]
Merge pull request #39016 from sebastian-philipp/cephadm-mypy-status-none

mgr/cephadm: mypy says: dd.status can be None

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38999 from tchaikov/wip-crimson-bootstrap
Kefu Chai [Fri, 22 Jan 2021 11:45:30 +0000 (19:45 +0800)]
Merge pull request #38999 from tchaikov/wip-crimson-bootstrap

crimson/osd: fetch_config() before mkfs

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocephadm: fix 2> syntax in unit.run 39003/head
Sage Weil [Thu, 21 Jan 2021 15:10:51 +0000 (09:10 -0600)]
cephadm: fix 2> syntax in unit.run

We need a space between the command (which ends with a container name)
and the 2> or else the 2 is considered part of the command.  E.g.,

! /usr/bin/podman rm -f ceph-a9a8c7ee-5b72-11eb-8f93-001a4aab830c-mon.a2> /dev/null

Fixes: 1bed46e4b0094863a119df59c6ae5f254c2e211d
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agovstart.sh: print out osd mkfs command 38999/head
Kefu Chai [Fri, 22 Jan 2021 04:41:04 +0000 (12:41 +0800)]
vstart.sh: print out osd mkfs command

for better understanding the progress of vstart, and also allows
developer to repeat the command.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomon/MonClient: do not include unused header
Kefu Chai [Fri, 22 Jan 2021 02:35:00 +0000 (10:35 +0800)]
mon/MonClient: do not include unused header

MGetConfig.h is not used anywhere in this source file, so no need to
include it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: do not use __func__ in lambda
Kefu Chai [Fri, 22 Jan 2021 02:33:56 +0000 (10:33 +0800)]
crimson/os: do not use __func__ in lambda

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/mon: use switch case for checking return code
Kefu Chai [Fri, 22 Jan 2021 02:31:10 +0000 (10:31 +0800)]
crimson/mon: use switch case for checking return code

also, since seastar supports returning plain value instead a ready
future, let's return plain value. simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #32027 into master
Jan Fajerski [Fri, 22 Jan 2021 10:35:18 +0000 (11:35 +0100)]
Merge PR #32027 into master

* refs/pull/32027/head:
librados: avoid symbol versioning on Windows

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agomgr/cephadm: Minor pep8 fix 39016/head
Sebastian Wagner [Fri, 22 Jan 2021 10:32:40 +0000 (11:32 +0100)]
mgr/cephadm: Minor pep8 fix

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/cephadm: mypy says: dd.status can be None
Sebastian Wagner [Fri, 22 Jan 2021 10:32:31 +0000 (11:32 +0100)]
mgr/cephadm: mypy says: dd.status can be None

`DaemonDescription.status` is annotated
as `Optional[int]` and thus can be `None`

This is a conflict between c95ba878c66aae44816b1451049449685d444f0a
and 01f60cf4e0a751c314120c02956d4ff941eb71b4

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #38978 from liewegas/cephadm-daemon-health
Sebastian Wagner [Fri, 22 Jan 2021 09:40:00 +0000 (10:40 +0100)]
Merge pull request #38978 from liewegas/cephadm-daemon-health

mgr/cephadm: raise HEALTH_WARN when cephadm daemon in 'error' state

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #38967 from liewegas/wip-cephadm-pacific
Sebastian Wagner [Fri, 22 Jan 2021 09:36:25 +0000 (10:36 +0100)]
Merge pull request #38967 from liewegas/wip-cephadm-pacific

cephadm: latest stable release is now pacific

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #38739 from jecluis/wip-cephadm-splits
Sebastian Wagner [Fri, 22 Jan 2021 09:35:19 +0000 (10:35 +0100)]
Merge pull request #38739 from jecluis/wip-cephadm-splits

cephadm: splits bootstrap function, add context, drop global variables

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agodoc: update rwl doc to include ssd config 39013/head
Mahati Chamarthy [Fri, 22 Jan 2021 05:25:29 +0000 (10:55 +0530)]
doc: update rwl doc to include ssd config

... options.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
4 years agocrimson/osd: fetch_config() before mkfs
Kefu Chai [Thu, 21 Jan 2021 12:46:47 +0000 (20:46 +0800)]
crimson/osd: fetch_config() before mkfs

* fetch_config() before mkfs and starting osd
  for populating settings related to booting and transport layer
  before it starts.
* set fsid read from monitor before mkfs
  it's crucial to mkfs if osd is supposed to retrieve the fsid
  from monitor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/net: move implementation of dtor into .cc file
Kefu Chai [Thu, 21 Jan 2021 12:44:59 +0000 (20:44 +0800)]
crimson/net: move implementation of dtor into .cc file

ceph_assert() is expanded into 5 lines of code. it'd help to speed up
the compiling a little bit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/mon: add mon::Client::wait_for_config()
Kefu Chai [Thu, 21 Jan 2021 12:40:06 +0000 (20:40 +0800)]
crimson/mon: add mon::Client::wait_for_config()

just for waiting for monmap and config from mon. crimson-osd needs this
for populating settings related to booting and transport layer before it
starts.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/mon: fallback to msgr v2 for unbound msgr
Kefu Chai [Thu, 21 Jan 2021 12:35:55 +0000 (20:35 +0800)]
crimson/mon: fallback to msgr v2 for unbound msgr

so, for instance, if we want to connect to monitor without bind to any
address, we can try to use the v2 addresses advertised in monmap or
local settings, instead of being unable to connect to mon because we are
using an `entity_addr_t::TYPE_NONE` address which is returned by
`entity_addrvec_t::front()` if the addrvec is empty.

see also AsyncMessenger::should_use_msgr2().

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/mon: print out entity addr type when non peer address matches
Kefu Chai [Thu, 21 Jan 2021 07:27:24 +0000 (15:27 +0800)]
crimson/mon: print out entity addr type when non peer address matches

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39010 from mdw-at-linuxbox/wip-master-barbicany2021
Casey Bodley [Thu, 21 Jan 2021 22:42:38 +0000 (17:42 -0500)]
Merge pull request #39010 from mdw-at-linuxbox/wip-master-barbicany2021

qa/tasks/barbican.py: fix year2021 problem

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #39008 from mdw-at-linuxbox/wip-master-vaultunzip
Casey Bodley [Thu, 21 Jan 2021 22:42:09 +0000 (17:42 -0500)]
Merge pull request #39008 from mdw-at-linuxbox/wip-master-vaultunzip

qa/tasks/vault.py: unzip: try harder to find a working unzip.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38988 from orozery/librbd-crypto-empty-copyup
Jason Dillaman [Thu, 21 Jan 2021 20:07:01 +0000 (15:07 -0500)]
Merge pull request #38988 from orozery/librbd-crypto-empty-copyup

librbd: don't restart empty copyups in crypto layer

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38985 from orozery/rbd-nbd-luks2-blksize
Jason Dillaman [Thu, 21 Jan 2021 20:06:20 +0000 (15:06 -0500)]
Merge pull request #38985 from orozery/rbd-nbd-luks2-blksize

tools/rbd-nbd: change block size to 4K for LUKS2 images

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38983 from orozery/qa-qemu-rbd-encryption
Jason Dillaman [Thu, 21 Jan 2021 20:05:30 +0000 (15:05 -0500)]
Merge pull request #38983 from orozery/qa-qemu-rbd-encryption

qa/tasks/rbd: increase image size of encrypted disks

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/dashboard: Fix for incorrect validation in rgw user form 38938/head
Nizamudeen A [Sun, 17 Jan 2021 06:56:15 +0000 (12:26 +0530)]
mgr/dashboard: Fix for incorrect validation in rgw user form

The rgw users create form doesnt validate the username correctly if the username is a tenated one. For eg. Consider there is a user called tenate$sample. Now I am trying to create another user and I entered tenate$sample as username. But it doesn't async validate the username as existing. Instead it just shows the green tick and once the submit button is clicked it'll show the user as existing.

Fixes: https://tracker.ceph.com/issues/48907
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoqa/tasks/barbican.py: fix year2021 problem 39010/head
Marcus Watts [Thu, 14 Jan 2021 20:41:49 +0000 (15:41 -0500)]
qa/tasks/barbican.py: fix year2021 problem

The expiration timestamp was hard-coded as
2020-12-31T19:14:44.180394
which is now in the past.  Instead, use a timestamp
90 minutes in the future.

Fixes: https://tracker.ceph.com/issues/48919
Signed-off-by: Marcus Watts <mwatts@redhat.com>
4 years agoqa/tasks/vault.py: unzip: try harder to find a working unzip. 39008/head
Marcus Watts [Wed, 13 Jan 2021 05:17:38 +0000 (00:17 -0500)]
qa/tasks/vault.py: unzip: try harder to find a working unzip.

The existing logic uses "python -m zipfile" to unzip files.
This will (most likely) fail on CentOS 8-Stream , where python
defaults to 'unset' (see man unversioned-python).

So: try harder: try unzip, python3, and python in that order,
to find something that can unzip files.

Fixes: https://tracker.ceph.com/issues/48921
Signed-off-by: Marcus Watts <mwatts@redhat.com>
4 years agoMerge pull request #38691 from soumyakoduri/lc_fixes
Harish Munjulur [Thu, 21 Jan 2021 17:25:06 +0000 (09:25 -0800)]
Merge pull request #38691 from soumyakoduri/lc_fixes

rgw/lc: Fix use-after-free in RGWLC::process

4 years agoMerge pull request #38465 from IlsooByun/fix_lc_infinite_loop
Harish Munjulur [Thu, 21 Jan 2021 17:24:51 +0000 (09:24 -0800)]
Merge pull request #38465 from IlsooByun/fix_lc_infinite_loop

rgw: lc: fix infinite loop in bucket_lc_prepare

4 years agoMerge pull request #36698 from vshankar/wip-cephfs-mirror-tests
Venky Shankar [Thu, 21 Jan 2021 04:16:51 +0000 (09:46 +0530)]
Merge pull request #36698 from vshankar/wip-cephfs-mirror-tests

cephfs-mirror: teuthology task and tests

4 years agoMerge pull request #35993 from vshankar/wip-fs-mirror-interface
Venky Shankar [Thu, 21 Jan 2021 04:15:41 +0000 (09:45 +0530)]
Merge pull request #35993 from vshankar/wip-fs-mirror-interface

pybind/mgr/mirroring: directory snapshot mirror support

4 years agoMerge pull request #38991 from cbodley/wip-rgw-perm-state-valgrind
Casey Bodley [Wed, 20 Jan 2021 22:05:30 +0000 (17:05 -0500)]
Merge pull request #38991 from cbodley/wip-rgw-perm-state-valgrind

rgw: fix reference to temporary in perm_state ctor

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38817 from ideepika/fix-interactive-error
Sage Weil [Wed, 20 Jan 2021 21:21:15 +0000 (15:21 -0600)]
Merge pull request #38817 from ideepika/fix-interactive-error

qa/tasks/ceph: do not update info.yaml if ctx.archive is not set

4 years agoMerge pull request #38941 from sseshasa/wip-48906-async-rec-min-cost-fix
Neha Ojha [Wed, 20 Jan 2021 20:37:44 +0000 (12:37 -0800)]
Merge pull request #38941 from sseshasa/wip-48906-async-rec-min-cost-fix

osd: Remove override for osd_async_recovery_min_cost for mclock profiles

Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agorgw: avoid (rgw_file) illegal access to stack memory 38991/head
Matt Benjamin [Tue, 12 Jan 2021 22:13:28 +0000 (17:13 -0500)]
rgw: avoid (rgw_file) illegal access to stack memory

Fixes: https://tracker.ceph.com/issues/48941
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agomgr/devicehealth: fix 'device monitoring on|off' return value 38990/head
Sage Weil [Wed, 20 Jan 2021 18:34:55 +0000 (12:34 -0600)]
mgr/devicehealth: fix 'device monitoring on|off' return value

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #38987 from cbodley/wip-qa-rgw-valgrind-supp-tls
Casey Bodley [Wed, 20 Jan 2021 18:22:56 +0000 (13:22 -0500)]
Merge pull request #38987 from cbodley/wip-qa-rgw-valgrind-supp-tls

valgrind: update suppression for _dl_allocate_tls

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agolibrbd: don't restart empty copyups in crypto layer 38988/head
Or Ozeri [Wed, 20 Jan 2021 16:43:47 +0000 (18:43 +0200)]
librbd: don't restart empty copyups in crypto layer

This commit fixes a bug where an empty parent copyup is restarted indefinitely.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agoMerge pull request #38966 from rzarzynski/wip-qa-rgw-no-valgrind-early-exit
Casey Bodley [Wed, 20 Jan 2021 16:08:38 +0000 (11:08 -0500)]
Merge pull request #38966 from rzarzynski/wip-qa-rgw-no-valgrind-early-exit

qa/task/rgw: instruct Valgrind to don't exit on first error.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agovalgrind: update suppression for _dl_allocate_tls 38987/head
Casey Bodley [Wed, 20 Jan 2021 14:59:03 +0000 (09:59 -0500)]
valgrind: update suppression for _dl_allocate_tls

in the rgw suite, there's an extra allocate_dtv() call in this stack.
add a ... to match it

  <stack>
    <frame>
      <ip>0x4C3321A</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>calloc</fn>
      <dir>/builddir/build/BUILD/valgrind-3.16.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>760</line>
    </frame>
    <frame>
      <ip>0x4012341</ip>
      <obj>/usr/lib64/ld-2.28.so</obj>
      <fn>allocate_dtv</fn>
    </frame>
    <frame>
      <ip>0x4012CD1</ip>
      <obj>/usr/lib64/ld-2.28.so</obj>
      <fn>_dl_allocate_tls</fn>
    </frame>
    <frame>
      <ip>0x101C7F32</ip>
      <obj>/usr/lib64/libpthread-2.28.so</obj>
      <fn>pthread_create@@GLIBC_2.2.5</fn>
    </frame>
    <frame>
      <ip>0x6F14E64</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>Thread::try_create(unsigned long)</fn>
    </frame>

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agocephadm: fix stuff 38739/head
Joao Eduardo Luis [Wed, 20 Jan 2021 12:46:52 +0000 (11:46 -0100)]
cephadm: fix stuff

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: annotate variable type for mypy
Joao Eduardo Luis [Sat, 16 Jan 2021 15:33:43 +0000 (14:33 -0100)]
cephadm: annotate variable type for mypy

mypy was complaining about the type of the variable being None, later on
on assignment with an int.

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm/test: support context class
Joao Eduardo Luis [Thu, 14 Jan 2021 15:35:33 +0000 (14:35 -0100)]
cephadm/test: support context class

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: have context handle config options
Joao Eduardo Luis [Fri, 15 Jan 2021 10:55:04 +0000 (09:55 -0100)]
cephadm: have context handle config options

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: drop ctx class from where we don't need it
Joao Eduardo Luis [Thu, 14 Jan 2021 15:34:55 +0000 (14:34 -0100)]
cephadm: drop ctx class from where we don't need it

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm/bootstrap: move mon net discovery to function
Joao Eduardo Luis [Thu, 31 Dec 2020 01:55:25 +0000 (01:55 +0000)]
cephadm/bootstrap: move mon net discovery to function

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: don't forget ipv6 behind
Joao Eduardo Luis [Thu, 31 Dec 2020 01:48:42 +0000 (01:48 +0000)]
cephadm: don't forget ipv6 behind

Fixes a bug introduced earlier in the patchset. It's just too hard to go
back and fix it up with the right commit.

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split-off config work on bootstrap
Joao Eduardo Luis [Thu, 31 Dec 2020 01:44:44 +0000 (01:44 +0000)]
cephadm: split-off config work on bootstrap

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split-off dashboard setup on bootstrap
Joao Eduardo Luis [Thu, 31 Dec 2020 01:28:05 +0000 (01:28 +0000)]
cephadm: split-off dashboard setup on bootstrap

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split-off ssh preparations on bootstrap
Joao Eduardo Luis [Thu, 31 Dec 2020 01:21:05 +0000 (01:21 +0000)]
cephadm: split-off ssh preparations on bootstrap

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split-off mgr creation
Joao Eduardo Luis [Thu, 31 Dec 2020 01:07:55 +0000 (01:07 +0000)]
cephadm: split-off mgr creation

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split mon prepare and create
Joao Eduardo Luis [Thu, 31 Dec 2020 01:05:48 +0000 (01:05 +0000)]
cephadm: split mon prepare and create

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: move configuration out of the way
Joao Eduardo Luis [Thu, 31 Dec 2020 00:41:48 +0000 (00:41 +0000)]
cephadm: move configuration out of the way

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm/bootstrap: spin-off waiting for mon
Joao Eduardo Luis [Wed, 30 Dec 2020 19:29:19 +0000 (19:29 +0000)]
cephadm/bootstrap: spin-off waiting for mon

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split some of bootstrap to other functions
Joao Eduardo Luis [Wed, 30 Dec 2020 19:19:03 +0000 (19:19 +0000)]
cephadm: split some of bootstrap to other functions

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: fix linting/types issues
Joao Eduardo Luis [Wed, 30 Dec 2020 13:23:32 +0000 (13:23 +0000)]
cephadm: fix linting/types issues

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: split main into an init function
Joao Eduardo Luis [Wed, 30 Dec 2020 10:22:30 +0000 (10:22 +0000)]
cephadm: split main into an init function

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agocephadm: introduce context, drop global variables
Joao Eduardo Luis [Tue, 29 Dec 2020 19:23:01 +0000 (19:23 +0000)]
cephadm: introduce context, drop global variables

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agoqa/tasks/rbd: increase image size of encrypted disks 38983/head
Or Ozeri [Wed, 20 Jan 2021 10:59:06 +0000 (12:59 +0200)]
qa/tasks/rbd: increase image size of encrypted disks

This commit increases the rbd image sizes in used by qemu to support the storage requirements of the luks encryption header.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agotools/rbd-nbd: change block size to 4K for LUKS2 images 38985/head
Or Ozeri [Wed, 20 Jan 2021 13:36:10 +0000 (15:36 +0200)]
tools/rbd-nbd: change block size to 4K for LUKS2 images

This commit sets the NBD device block size to 4K for images encrypted using LUKS2 (whose sector size is by default 4K(.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agoMerge pull request #38945 from sebastian-philipp/qa-cephadm-smoke-yaml
Sebastian Wagner [Wed, 20 Jan 2021 11:48:50 +0000 (12:48 +0100)]
Merge pull request #38945 from sebastian-philipp/qa-cephadm-smoke-yaml

qa/cephadm: Add yaml output to smoke test

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #38954 from sebastian-philipp/orchestrator-disallow-untyped
Sebastian Wagner [Wed, 20 Jan 2021 11:46:56 +0000 (12:46 +0100)]
Merge pull request #38954 from sebastian-philipp/orchestrator-disallow-untyped

mgr/orchestrator: disallow_untyped_defs = True

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #38946 from sebastian-philipp/cephadm-pyright-fix-node-exporter
Sebastian Wagner [Wed, 20 Jan 2021 11:45:01 +0000 (12:45 +0100)]
Merge pull request #38946 from sebastian-philipp/cephadm-pyright-fix-node-exporter

cephadm: Fix node-exporter deployment.

Reviewed-by: Daniel-Pivonka <dpivonka@redhat.com>
4 years agoMerge pull request #38968 from dillaman/wip-rbd-error
Mykola Golub [Wed, 20 Jan 2021 08:13:14 +0000 (10:13 +0200)]
Merge pull request #38968 from dillaman/wip-rbd-error

rbd: deprecation warning should be printed to stderr

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #38934 from ifed01/wip-ifed-fix-48776
Neha Ojha [Wed, 20 Jan 2021 01:55:30 +0000 (17:55 -0800)]
Merge pull request #38934 from ifed01/wip-ifed-fix-48776

os/bluestore: fix deferred_queue locking

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38959 from badone/wip-valgrind-tracker-48918
Neha Ojha [Tue, 19 Jan 2021 23:24:29 +0000 (15:24 -0800)]
Merge pull request #38959 from badone/wip-valgrind-tracker-48918

osd: initialise m_interval_start

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agomgr/cephadm: raise HEALTH_WARN when cephadm daemon in 'error' state 38978/head
Sage Weil [Tue, 19 Jan 2021 22:49:08 +0000 (16:49 -0600)]
mgr/cephadm: raise HEALTH_WARN when cephadm daemon in 'error' state

If cephadm daemons are not happy we should raise a warning.  Aside from
being an important part of the user experience, this will also help us
catch teuthology test errors.

Fixes: https://tracker.ceph.com/issues/45628
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #38944 from orozery/qa-qemu-rbd-encryption
Jason Dillaman [Tue, 19 Jan 2021 22:34:26 +0000 (17:34 -0500)]
Merge pull request #38944 from orozery/qa-qemu-rbd-encryption

qa/tasks/rbd: test qemu on top of rbd encryption

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agomgr/cephadm: fix host maintenance health check update
Sage Weil [Tue, 19 Jan 2021 22:31:25 +0000 (16:31 -0600)]
mgr/cephadm: fix host maintenance health check update

We need to update the self.health_checks dict and use that or else we
will clobber any other exising checks.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #38628 from ceph/wip-release-html
David Galloway [Tue, 19 Jan 2021 20:40:05 +0000 (15:40 -0500)]
Merge pull request #38628 from ceph/wip-release-html

script/ceph-release-notes: --html flag to output PRs in HTML

4 years ago:qa/tasks/rbd: test qemu on top of rbd encryption 38944/head
Or Ozeri [Thu, 14 Jan 2021 15:03:42 +0000 (17:03 +0200)]
:qa/tasks/rbd: test qemu on top of rbd encryption

This commit adds new qemu xfstests workloads that run on top of librbd luks1/luks2 encryption.
This is currently done via nbd, instead of the qemu rbd driver.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agorbd: deprecation warning should be printed to stderr 38968/head
Jason Dillaman [Tue, 19 Jan 2021 16:46:38 +0000 (11:46 -0500)]
rbd: deprecation warning should be printed to stderr

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agocephadm: latest stable release is now pacific 38967/head
Sage Weil [Tue, 19 Jan 2021 16:12:58 +0000 (10:12 -0600)]
cephadm: latest stable release is now pacific

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/task/rgw: instruct Valgrind to don't exit on first error. 38966/head
Radoslaw Zarzynski [Tue, 19 Jan 2021 14:23:56 +0000 (15:23 +0100)]
qa/task/rgw: instruct Valgrind to don't exit on first error.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agomgr/orchestrator: ignore Liskov substitution principle violation 38954/head
Sebastian Wagner [Mon, 18 Jan 2021 15:27:18 +0000 (16:27 +0100)]
mgr/orchestrator: ignore Liskov substitution principle violation

Right now, we're violating the Liskov substitution principle by deriving from `Orchestrator` but `process` takes a sub class of `Completion`:
See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides

The idea is to make Orchestrator a type constructor with `CompletionT` as argument, but this is not supported by mypy: https://github.com/python/typing/issues/548

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/orchestrator: disallow_untyped_defs = True
Sebastian Wagner [Mon, 18 Jan 2021 15:02:38 +0000 (16:02 +0100)]
mgr/orchestrator: disallow_untyped_defs = True

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agotest: cephfs-mirror teuthology task and test yamls 36698/head
Venky Shankar [Tue, 4 Aug 2020 09:05:51 +0000 (05:05 -0400)]
test: cephfs-mirror teuthology task and test yamls

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agotest: add tests for mirroring module w/ daemon verification
Venky Shankar [Tue, 18 Aug 2020 09:33:33 +0000 (05:33 -0400)]
test: add tests for mirroring module w/ daemon verification

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agotest: optionally create a backup filesystem on startup
Venky Shankar [Tue, 18 Aug 2020 09:32:38 +0000 (05:32 -0400)]
test: optionally create a backup filesystem on startup

Also filter out client-id's starting with "mirror" when
cleaning leftover auth-ids since teuthology would be
configured to create client.mirror and client.mirror_remote
clients before executing mirroring tests.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agopybind/mgr/mirroring: interface to mirror CephFS directory snapshots 35993/head
Venky Shankar [Thu, 9 Jul 2020 10:43:47 +0000 (06:43 -0400)]
pybind/mgr/mirroring: interface to mirror CephFS directory snapshots

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agopybind/mgr/mgr_util: make RTimer calss reusable
Venky Shankar [Thu, 9 Jul 2020 10:43:04 +0000 (06:43 -0400)]
pybind/mgr/mgr_util: make RTimer calss reusable

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agoosd: initialise m_interval_start 38959/head
Brad Hubbard [Tue, 19 Jan 2021 02:11:45 +0000 (12:11 +1000)]
osd: initialise m_interval_start

Fixes: https://tracker.ceph.com/issues/48918
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #37925 from liu-chunmei/seastore_omap_tree
Kefu Chai [Tue, 19 Jan 2021 04:23:18 +0000 (12:23 +0800)]
Merge pull request #37925 from liu-chunmei/seastore_omap_tree

crimson/seastore: add omap tree implementation

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38890 from cbodley/wip-qa-rgw-https-clients
Casey Bodley [Mon, 18 Jan 2021 20:02:10 +0000 (15:02 -0500)]
Merge pull request #38890 from cbodley/wip-qa-rgw-https-clients

qa/rgw: don't add a certificate for nonexistent rgw.client.1

Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agoqa/tests: added pacific, changed octopus number of runs
Yuri Weinstein [Mon, 18 Jan 2021 18:47:55 +0000 (10:47 -0800)]
qa/tests: added pacific, changed octopus number of runs

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>