Commit Graph

119070 Commits

Author SHA1 Message Date
Yuri Weinstein
63777b7f9d
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>
2021-01-22 15:37:48 -08:00
Sage Weil
62592227f6 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>
2021-01-22 14:48:25 -06:00
Adam C. Emerson
340a2836a3 rgw: Initialize logs on layout initialization
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2021-01-22 15:46:42 -05:00
Jason Dillaman
eb8aea93b0
Merge pull request #39013 from MahatiC/wip-ssd-doc
doc: update rwl doc to include ssd config

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2021-01-22 15:45:56 -05:00
Nathan Cutler
0029d52cf9
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>
2021-01-22 20:53:48 +01:00
Sage Weil
3d7761bd59 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>
2021-01-22 12:33:52 -06:00
Yuri Weinstein
5b05122123 qa/tests: moved 'master' runs to 'gibba' machines
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2021-01-22 08:59:32 -08:00
lixiaoy1
d1e80348c7 librbd/cmake: add library dependency for pwl_cache
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
2021-01-22 11:10:15 -05:00
Sage Weil
8db0dc8e09 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>
2021-01-22 09:55:40 -06:00
Jason Dillaman
2a23a92aaf 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>
2021-01-22 10:29:29 -05:00
Nathan Cutler
7221f6405c script: make backport scripts know about pacific
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2021-01-22 15:21:29 +01:00
Jason Dillaman
8010dfa23e 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>
2021-01-22 08:35:22 -05:00
Ernesto Puerta
5a0d452356
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>
2021-01-22 14:08:57 +01:00
Lucian Petrut
784e0356ca rbd: fix offset overflow on Windows
The rbd-wnbd daemon overflows when writing passed 4GB as the
offset field incorrectly uses uint32_t (initial versions of the
rbd-wnbd proposal used block increments).

This change updates the IO offset type to use uint64_t.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2021-01-22 11:50:25 +00:00
Lucian Petrut
4b94acad0c rbd: use ceph_memzero_s instead of explicit_bzero
explicit_bzero isn't available on Windows. We'll use the portable
ceph_memzero_s function instead.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2021-01-22 11:50:00 +00:00
Lucian Petrut
057660aec9 compat: add win32 endianness helpers
The new QCOW migration helpers are using functions such as "be64toh",
which aren't provided by MINGW, breaking the "rbd" tool on Windows.

We'll define those endianness related helpers in compat.h

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2021-01-22 11:49:53 +00:00
Kefu Chai
71711b56db
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>
2021-01-22 19:46:42 +08:00
Kefu Chai
eab2a7cf07
Merge pull request #38999 from tchaikov/wip-crimson-bootstrap
crimson/osd: fetch_config() before mkfs

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-01-22 19:45:30 +08:00
Sage Weil
ce4743f72e 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: 1bed46e4b0
Signed-off-by: Sage Weil <sage@newdream.net>
2021-01-22 19:11:39 +08:00
Kefu Chai
2d63bc0fbd 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>
2021-01-22 18:54:29 +08:00
Kefu Chai
37dc3ea9c2 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>
2021-01-22 18:54:28 +08:00
Kefu Chai
237cbc9ba5 crimson/os: do not use __func__ in lambda
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-01-22 18:54:28 +08:00
Kefu Chai
71229d557d 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>
2021-01-22 18:54:28 +08:00
Jan Fajerski
1f9cabf8a8 Merge PR #32027 into master
* refs/pull/32027/head:
	librados: avoid symbol versioning on Windows

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2021-01-22 11:35:18 +01:00
Sebastian Wagner
2df47b88ab mgr/cephadm: Minor pep8 fix
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-01-22 11:32:40 +01:00
Sebastian Wagner
fb19769503 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 c95ba878c6
and 01f60cf4e0

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-01-22 11:32:31 +01:00
Juan Miguel Olmo Martínez
9b9934f75b
cephadm: Fix iscsi client caps (allow mgr <service status> calls)
iSCSI daemons need to execute <ceph service status> command

Fixes: https://tracker.ceph.com/issues/48925

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2021-01-22 11:09:15 +01:00
Sebastian Wagner
e27cc8183e
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>
2021-01-22 10:40:00 +01:00
Sebastian Wagner
b8e49ea914
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>
2021-01-22 10:36:25 +01:00
Sebastian Wagner
6200f4c42e
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>
2021-01-22 10:35:19 +01:00
Sebastian Wagner
4ca11ae50d mgr/cephadm: minor pep8 fixes
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-01-22 10:19:50 +01:00
Sebastian Wagner
eb1a40c3ea mgr/cephadm: Properly handle JSON Decode error
Fixes 6d759fb5de

I.e. don't use `out`, until it is acutally defined

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-01-22 10:19:41 +01:00
Aashish Sharma
06cc0d8743 mgr/dashboard: trigger alert if some nodes have a MTU different than the median value
This PR intends to alert a user if a specific network is configured with a custom MTU

Fixes: https://tracker.ceph.com/issues/48748
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
2021-01-22 11:20:13 +05:30
Mahati Chamarthy
23327ce374 doc: update rwl doc to include ssd config
... options.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2021-01-22 10:59:18 +05:30
Kefu Chai
84b2e06794 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>
2021-01-22 13:07:48 +08:00
Kefu Chai
c54bcf660f 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>
2021-01-22 13:07:48 +08:00
Kefu Chai
9a248da3fe 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>
2021-01-22 13:07:48 +08:00
Kefu Chai
264e710a37 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>
2021-01-22 13:07:48 +08:00
Kefu Chai
51c8ffff6d crimson/mon: print out entity addr type when non peer address matches
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-01-22 13:07:48 +08:00
Casey Bodley
3cdd3d18a1
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>
2021-01-21 17:42:38 -05:00
Casey Bodley
e36b72f4f0
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>
2021-01-21 17:42:09 -05:00
Adam C. Emerson
78ece45796 rgw: Since we aren't using these anyway
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2021-01-21 17:17:39 -05:00
Jason Dillaman
8d86249a8e
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>
2021-01-21 15:07:01 -05:00
Jason Dillaman
21bc198918
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>
2021-01-21 15:06:20 -05:00
Jason Dillaman
410c40ee53
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>
2021-01-21 15:05:30 -05:00
Nizamudeen A
3c2e8e4f9a 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>
2021-01-22 00:38:41 +05:30
Marcus Watts
b1fac2224b 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>
2021-01-21 13:31:27 -05:00
Marcus Watts
5258b20bf0 qa/tasks/keystone.py: centos-8 bindep fix
The upstream git repository for keystone contains a dependency
for "python34-devel" which only exists in centos 7.
For centos 8, the correct package is "python36-devel".
So, patch bindep.txt before running bindep.

Fixes: https://tracker.ceph.com/issues/48920
Signed-off-by: Marcus Watts <mwatts@redhat.com>
2021-01-21 13:30:55 -05:00
Marcus Watts
ed664a4d0b 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>
2021-01-21 12:35:01 -05:00
Harish Munjulur
b32153a4ed
Merge pull request #38691 from soumyakoduri/lc_fixes
rgw/lc: Fix use-after-free in RGWLC::process
2021-01-21 09:25:06 -08:00