Commit Graph

114567 Commits

Author SHA1 Message Date
Michael Fritch
82598631c3
mgr/cephadm: merge NFSGanesha into NFSService class
these two classes really preform the same function

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-08-25 10:47:25 -06:00
Sebastian Wagner
7c49e4266a
Merge pull request #36757 from mgfritch/cephadm-raw-str-warn
mgr/cephadm: use raw string during `re.search`

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-25 18:31:33 +02:00
Michael Fritch
d61676f92d
cephadm: infer latest image with a valid tag
Fixes: https://tracker.ceph.com/issues/47134
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-08-25 08:29:23 -06:00
Kefu Chai
cdf5f29384
Merge pull request #36787 from tchaikov/wip-47031
crimson/osd: drop misdirected ops

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-08-25 22:14:42 +08:00
Sebastian Wagner
56f11c015a mgr/cephadm: PEP8tify cephadmservice.py
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-25 15:33:06 +02:00
Sebastian Wagner
83e4559fce mgr/cephadm: PEP8tify schedule.py
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-25 15:30:51 +02:00
Sebastian Wagner
fef1151a62 mgr/cephadm: PEP8tify inventory.py
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-25 15:29:36 +02:00
Sebastian Wagner
f82058f06b
Merge pull request #36738 from ShraddhaAg/cephadm-archive-logs
qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-25 15:18:58 +02:00
Avan Thakkar
330c75cb51 mgr/dashboard: redirect to original URL after successful login
Fixes: https://tracker.ceph.com/issues/45067

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit b5359a155c6ff7e92ab6c6ed16f7ff9fc76c76ea)
2020-08-25 17:37:24 +05:30
Stephan Müller
1bfb044518 cephadm: Update error message on host failure
Now the error message explains how to add the ssh key to the not
reachable host

Fixes: https://tracker.ceph.com/issues/46551
Signed-off-by: Stephan Müller <smueller@suse.com>
2020-08-25 12:58:17 +02:00
Kefu Chai
e307b9aefb crimson/osd: drop misdirected ops
see also `PrimaryLogPG::do_op()`, we should ignore the ops hitting us if
we are not supposed to serve them. this happens when the client is using
a stale osdmap.

Fixes: https://tracker.ceph.com/issues/47031
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-25 18:40:07 +08:00
Kefu Chai
1afc907d8c
Merge pull request #36778 from tchaikov/wip-cmake-fio
cmake: silence "detached HEAD" warning

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2020-08-25 17:16:22 +08:00
Xiubo Li
f923f9572a osdc/Journaler: do not call onsafe->complete() if onsafe is 0
Fixes: https://tracker.ceph.com/issues/47125
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-08-25 04:05:42 -04:00
Qiaowei Ren
6488e116c3 doc: update QATzip doc for removing snappy and lz4 support
This patch update the documentation about QAT acceleration for encryption
and compression.

QATZip provide the interfaces for several compression algorithm, including
deflate, snapp and lz4, but currently only deflate can be accelerated by QAT
hardware.

Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
2020-08-25 15:39:47 +08:00
Kefu Chai
47b76ce24e cmake: silence "detached HEAD" warning
git complains when checking out a tag in "detached HEAD", like:

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them
...

but this does not help, as, in general, we don't hack fio in Ceph,
so disable this warning. and also clone the repo in shallow mode
for the same reason -- we don't care about the whole history of
fio repo. we just use it for testing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-25 12:38:03 +08:00
Matthew Oliver
09eac4bef0 cephadm: auto wrap and unwrap ipv6 addresses
This patch attempts to simplify IPv6 support in cephadm by automatically
wrapping and unwrapping IPv6 addresses when required.

There are some asumptions though, if you are supplyings an IPv6 addrv
then it needs to be wrapped. But because you are specifiying, you should
know what your doing.

But in general, it means in bootstrap you should be able to supply ipv6
addresses wrapped or not so long as there isn't a post appended.

Fixes: https://tracker.ceph.com/issues/46922
Signed-off-by: Matthew Oliver <moliver@suse.com>
2020-08-25 11:23:43 +10:00
Yan, Zheng
cc19fc624b mds/OpenFileTable: add option that disables dirfrags prefetch
Dirfrags prefetch may speedup rejoin stage of mds recovery. But it may
use lots of memory and cause mds out of memory.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:56 +08:00
Yan, Zheng
3e7c5b4077 mds: use parent/d_name in cap_reconnect_t to speedup MDCache::open_ino()
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:55 +08:00
Yan, Zheng
7f43840fd3 client: encode inode's parent/d_name in cap_reconnect_t
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:55 +08:00
Yan, Zheng
44f67be02b mds: explicitly track files with client writeable ranges
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:55 +08:00
Yan, Zheng
8c56adabb3 mds: properly set CLIENTWRITEABLE flag for imported caps
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:55 +08:00
Yan, Zheng
994017b615 mds: in-place update projected inode's client ranges
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-08-25 08:39:54 +08:00
pcuzner
5fbfeaadba
Merge pull request #36336 from pcuzner/ceph-volume-lsm
ceph-volume: add libstoragemgmt support
2020-08-25 11:23:28 +12:00
Paul Cuzner
225cbd8d79 cephadm: remove py2 from test_adoption
Since cephadm is py3 based, and py2 is EOL this patch
removes the py2 test iteration from test_adoption.sh

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
2020-08-25 10:51:26 +12:00
Patrick Donnelly
d83dc481dc
Merge PR #36684 into master
* refs/pull/36684/head:
	qa/tasks/nfs: Test mounting of export created with nfs command
	qa/tasks/nfs: Add helper method to check nfs cluster status
	qa/tasks/nfs: Cleanup created filesystem
	qa/tasks/nfs: Remove unused port status function and 'stdin' keyword argument

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-24 13:18:13 -07:00
Jason Dillaman
d7dfb8e37c librbd: support reverting to legacy blacklist op via neorados API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-08-24 19:53:08 +00:00
Ernesto Puerta
6f8c30b1bc mgr/dashboard: remove racially insensitive terms
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
2227121391 librbd: RESTORE_SOURCE_WHITELIST -> ALLOWED_RESTORE_SOURCES
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
be32269fd3 journal, librbd: whitelisted_laggy_clients -> ignored_laggy_clients
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Patrick Donnelly
b5bff49a58 *: convert more blacklist to blocklist
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-24 19:53:08 +00:00
Patrick Donnelly
1690d3814e librbd: convert WHITELIST to ALLOWLIST
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-24 19:53:08 +00:00
Patrick Donnelly
c4f5de0058 *: convert EBLACKLISTED to EBLOCKLISTED
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
f466294d94 test/librados_test_stub/TestMemIoCtxImpl.cc: blacklist -> blocklist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
c0a358670a qa/suites/rados/thrash: log-whitelist -> log-ignorelist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
01fb7e7f7b qa/suites/krbd/thrash: log-whitelist -> log-ignorelist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
a8c7efab2d qa/suites/multimds: log-whitelist -> log-ignorelist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
240280aed9 test/librbd/managed_lock/test_mock_BreakRequest.cc: blacklist -> blocklist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Neha Ojha
0d5770526f test/librados_test_stub/TestRadosClient.cc: blacklist -> blocklist
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Sage Weil
2e27a54c80 mon/ConfigMonitor: handle renamed config options
Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
269b949ab4 librados: fall back to legacy blacklist command if blocklist gets EINVAL
I would have expected ENOSYS or EOPNOTSUPP or similar, but the mon returns
EINVAL on an unrecognized command

Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
c7244e7aad misc language changes: whitelist -> ignore etc
Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
5465c77d5f librbd: whitelisted_laggy_clients -> allowlisted_laggy_clients
Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
ea404dc049 osd/OSDCap: whitelisted -> allowed
Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
2ee9365d0b qa: log-whitelist -> log-ignorelist
Signed-off-by: Sage Weil <sage@newdream.net>
2020-08-24 19:53:08 +00:00
Sage Weil
dfd01d7653 blacklist -> blocklist
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 19:53:08 +00:00
Patrick Donnelly
02813988a6
Merge PR #36394 into master
* refs/pull/36394/head:
	qa: add method run ceph cluster command with better interface
	cephfs: allow only "good" characters

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-24 11:33:03 -07:00
Yuri Weinstein
08a601e054
Merge pull request #36772 from neha-ojha/wip-47119
qa/suites/perf-basic/objectstore: remove filestore

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2020-08-24 11:28:21 -07:00
Jason Dillaman
590afaff4e librbd: drop deferred AsioEngine destruction
Commit 90bd1d7a85 removed the need to
defer deletion of the AsioEngine but missed removing the original
code.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-08-24 13:32:33 -04:00
Neha Ojha
d8c1dfcd4b qa/suites/perf-basic/objectstore: remove filestore
There is no point testing performance on filestore anymore.
It has already been removed from objectstore backends in rados/perf.

Fixes: https://tracker.ceph.com/issues/47119
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-08-24 09:45:49 -07:00
Kefu Chai
103fd4af21
Merge pull request #36760 from tchaikov/wip-qa-optional-args
qa/tasks/workunit: allow passing optional args to workunit

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-08-24 20:03:04 +08:00