]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
4 years agolibrbd: whitelisted_laggy_clients -> allowlisted_laggy_clients
Sage Weil [Wed, 17 Jun 2020 19:44:55 +0000 (14:44 -0500)]
librbd: whitelisted_laggy_clients -> allowlisted_laggy_clients

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoosd/OSDCap: whitelisted -> allowed
Sage Weil [Wed, 17 Jun 2020 19:43:29 +0000 (14:43 -0500)]
osd/OSDCap: whitelisted -> allowed

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa: log-whitelist -> log-ignorelist
Sage Weil [Wed, 17 Jun 2020 19:33:57 +0000 (14:33 -0500)]
qa: log-whitelist -> log-ignorelist

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoblacklist -> blocklist
Sage Weil [Mon, 15 Jun 2020 15:27:03 +0000 (10:27 -0500)]
blacklist -> blocklist

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge PR #36394 into master
Patrick Donnelly [Mon, 24 Aug 2020 18:33:03 +0000 (11:33 -0700)]
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>
4 years agoMerge pull request #36772 from neha-ojha/wip-47119
Yuri Weinstein [Mon, 24 Aug 2020 18:28:21 +0000 (11:28 -0700)]
Merge pull request #36772 from neha-ojha/wip-47119

qa/suites/perf-basic/objectstore: remove filestore

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoqa/suites/perf-basic/objectstore: remove filestore
Neha Ojha [Mon, 24 Aug 2020 16:45:49 +0000 (09:45 -0700)]
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>
4 years agoMerge pull request #36760 from tchaikov/wip-qa-optional-args
Kefu Chai [Mon, 24 Aug 2020 12:03:04 +0000 (20:03 +0800)]
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>
4 years agoMerge pull request #36677 from bk201/wip-46986
Lenz Grimmer [Mon, 24 Aug 2020 11:34:50 +0000 (13:34 +0200)]
Merge pull request #36677 from bk201/wip-46986

mgr/dashboard: adjust cross button color in table filter chips

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
4 years agoMerge pull request #36737 from tchaikov/wip-crimson-more-ops
Kefu Chai [Mon, 24 Aug 2020 11:28:35 +0000 (19:28 +0800)]
Merge pull request #36737 from tchaikov/wip-crimson-more-ops

crimson/osd: implement append and omap-clear ops

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #36347 from rhcs-dashboard/wip-40767-master
Lenz Grimmer [Mon, 24 Aug 2020 11:22:08 +0000 (13:22 +0200)]
Merge pull request #36347 from rhcs-dashboard/wip-40767-master

mgr/dashboard: Placeholders for Documenting REST API

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agoMerge pull request #36765 from sebastian-philipp/man-cephadm-list-no-detail
Sebastian Wagner [Mon, 24 Aug 2020 10:25:39 +0000 (12:25 +0200)]
Merge pull request #36765 from sebastian-philipp/man-cephadm-list-no-detail

doc/man/cephadm: Add missing parameters for `ls`

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
4 years agocrimson/os/cyanstore: handle OP_RMATTR
Kefu Chai [Fri, 21 Aug 2020 08:15:08 +0000 (16:15 +0800)]
crimson/os/cyanstore: handle OP_RMATTR

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: avoid creating a throw-away object
Kefu Chai [Fri, 21 Aug 2020 07:44:59 +0000 (15:44 +0800)]
crimson/osd: avoid creating a throw-away object

for better readabilty and performnce

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: implement rm-xattr op
Kefu Chai [Fri, 21 Aug 2020 07:43:28 +0000 (15:43 +0800)]
crimson/osd: implement rm-xattr op

it is tested by test_rados.py:TestIoctx.test_xattrs_op, so let's
support this op in crimson as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: check for DNE object and return ENOENT in read ops
Kefu Chai [Fri, 21 Aug 2020 04:31:16 +0000 (12:31 +0800)]
crimson/osd: check for DNE object and return ENOENT in read ops

* omap_get_keys()
  this change addresses the failure of
  test_rados.py:TestIoctx.test_get_omap_keys
* omap_get_vals_by_keys()
  this change addresses the failure of
  test_rados.py:TestIoctx.test_get_omap_vals_by_keys
* read()
  this change addresses the failure of
  test_rados.py:TestIoctx.test_write_ops

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: refactor PGBackend::read() to pass os and op
Kefu Chai [Fri, 21 Aug 2020 06:27:56 +0000 (14:27 +0800)]
crimson/osd: refactor PGBackend::read() to pass os and op

prepare for the table based op lookup/execution.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/pybind: remove object for testing after done with it
Kefu Chai [Fri, 21 Aug 2020 05:30:24 +0000 (13:30 +0800)]
test/pybind: remove object for testing after done with it

* add vertical spacing for better readability
* remove object for testing after done with it

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/cyanstore: handle OP_ZERO
Kefu Chai [Fri, 21 Aug 2020 05:28:15 +0000 (13:28 +0800)]
crimson/os/cyanstore: handle OP_ZERO

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: update oi.size after truncating an object
Kefu Chai [Fri, 21 Aug 2020 05:08:42 +0000 (13:08 +0800)]
crimson/osd: update oi.size after truncating an object

* update oi.size if object size changes after the object is truncated
* do not add a truncate op to trasaction of the size of object does
  not change because of truncate op.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: return rval which is negative
Kefu Chai [Thu, 20 Aug 2020 17:29:51 +0000 (01:29 +0800)]
crimson/osd: return rval which is negative

a less-than-zero rval indicates an error, and should not be normalized
to 0 if allows_returnvec() evaluates to false. probably we need a better
way to return a negative error code which does not fall into any known
error. but at this moment, grab the last rval and return it if it is
less than zero, can be used as a short term solution.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: implement cmp-ext op
Kefu Chai [Thu, 20 Aug 2020 17:28:07 +0000 (01:28 +0800)]
crimson/osd: implement cmp-ext op

it is tested by test_rados.py:TestIoctx.test_cmpext, so let's
support this op in crimson as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/cyanstore: handle OP_OMAP_CLEAR
Kefu Chai [Thu, 20 Aug 2020 13:06:24 +0000 (21:06 +0800)]
crimson/os/cyanstore: handle OP_OMAP_CLEAR

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: implement omap-clear op
Kefu Chai [Thu, 20 Aug 2020 12:52:11 +0000 (20:52 +0800)]
crimson/osd: implement omap-clear op

it is tested by test_rados.py:TestIoctx.test_clear_omap, so let's support
this op in crimson as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: implement append op
Kefu Chai [Thu, 20 Aug 2020 11:40:41 +0000 (19:40 +0800)]
crimson/osd: implement append op

it is tested by test_rados.py:TestIoctx.test_append, so let's support
this op in crimson as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoCODEOWNERS: Add cephadm man page to @ceph/orchestrators
Sebastian Wagner [Mon, 24 Aug 2020 08:30:12 +0000 (10:30 +0200)]
CODEOWNERS: Add cephadm man page to @ceph/orchestrators

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agodoc/man/cephadm: Add missing parameters for `ls`
Sebastian Wagner [Mon, 24 Aug 2020 08:28:07 +0000 (10:28 +0200)]
doc/man/cephadm: Add missing parameters for `ls`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #36755 from dillaman/wip-47050
Mykola Golub [Mon, 24 Aug 2020 08:08:57 +0000 (11:08 +0300)]
Merge pull request #36755 from dillaman/wip-47050

librbd: flush op was not properly waiting for queued IO

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #36521 from tchaikov/wip-rgw-optional
Kefu Chai [Sat, 22 Aug 2020 18:02:23 +0000 (02:02 +0800)]
Merge pull request #36521 from tchaikov/wip-rgw-optional

rgw: hold reloader using unique_ptr

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
4 years agoMerge pull request #36707 from dillaman/wip-47007
Mykola Golub [Sat, 22 Aug 2020 10:12:05 +0000 (13:12 +0300)]
Merge pull request #36707 from dillaman/wip-47007

rbd-mirror: peer setup can still race and fail creation of peer

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #36471 from dillaman/wip-41394
Mykola Golub [Sat, 22 Aug 2020 10:11:19 +0000 (13:11 +0300)]
Merge pull request #36471 from dillaman/wip-41394

librbd: using migration abort can result in the loss of data

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #36380 from dillaman/wip-46754
Mykola Golub [Sat, 22 Aug 2020 10:10:17 +0000 (13:10 +0300)]
Merge pull request #36380 from dillaman/wip-46754

rbd: retrieve global config overrides from the MONs

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #36751 from tchaikov/wip-redirect-stderr
Kefu Chai [Sat, 22 Aug 2020 08:59:14 +0000 (16:59 +0800)]
Merge pull request #36751 from tchaikov/wip-redirect-stderr

qa/tasks/ceph: create a log file before redirecting to it

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoqa/workunits/rados: quote optional args
Kefu Chai [Sat, 22 Aug 2020 08:11:28 +0000 (16:11 +0800)]
qa/workunits/rados: quote optional args

otherwise they will be escaped by shell

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/tasks/workunit: allow passing optional args to workunit
Kefu Chai [Sat, 22 Aug 2020 05:59:19 +0000 (13:59 +0800)]
qa/tasks/workunit: allow passing optional args to workunit

* add comment to _run_tests()
* use `os.path.commonpath()` instead using string matching directly
  for matching given workunit spec with executables.
* allow passing optional args to workunit

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36696 from tchaikov/wip-cmake-boost-zlib
Kefu Chai [Sat, 22 Aug 2020 04:49:15 +0000 (12:49 +0800)]
Merge pull request #36696 from tchaikov/wip-cmake-boost-zlib

cmake: link against ZLIB if statically linked against Boost

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #36710 from tchaikov/wip-ceph-pypath
Kefu Chai [Sat, 22 Aug 2020 04:48:34 +0000 (12:48 +0800)]
Merge pull request #36710 from tchaikov/wip-ceph-pypath

ceph: correct additional paths added to sys.path

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #36722 from tchaikov/wip-test-pybind
Kefu Chai [Sat, 22 Aug 2020 04:30:20 +0000 (12:30 +0800)]
Merge pull request #36722 from tchaikov/wip-test-pybind

test/pybind: label test_rados tests with attributes

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoqa/tasks/ceph: create a log file before redirecting to it
Kefu Chai [Fri, 21 Aug 2020 12:22:23 +0000 (20:22 +0800)]
qa/tasks/ceph: create a log file before redirecting to it

as it is shell who interprets ">>" and redirect the stderr to given
file, but the shell process is launched by ubuntu:ububunt without using
sudo, so the command fails with "Permission denied" failure. to address
this issue, in this change, a file with proper priviledges is created
beforehand using `install`, so shell is able to write to it.

also, instead of creating this file in `maybe_redirect_stderr()`, it
returns the command to create the log file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #36560 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:44:46 +0000 (18:44 -0700)]
Merge PR #36560 into master

* refs/pull/36560/head:
client: choose a random replica mds to send the request

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36681 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:44:06 +0000 (18:44 -0700)]
Merge PR #36681 into master

* refs/pull/36681/head:
mds: don't track change of config 'mds_replay_unsafe_with_closed_session'
mds: fix 'forward loop' when forward_all_requests_to_auth is set

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36673 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:42:50 +0000 (18:42 -0700)]
Merge PR #36673 into master

* refs/pull/36673/head:
mds: don't recover files after normal session close

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36632 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:41:35 +0000 (18:41 -0700)]
Merge PR #36632 into master

* refs/pull/36632/head:
mds: standy-replay mds remained in the "resolve" state after restart the active mds

Reviewed-by: Zheng Yan <zyan@redhat.com>
4 years agoMerge PR #36131 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:40:42 +0000 (18:40 -0700)]
Merge PR #36131 into master

* refs/pull/36131/head:
doc: document cephfs mirroring dev work
test: add tests for `ceph fs mirror` family of commands
mds: track filesystem mirror peers in fsmap

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36459 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:39:01 +0000 (18:39 -0700)]
Merge PR #36459 into master

* refs/pull/36459/head:
mds: dump granular cap info in mds_sessions
common: fix validate type CephBool cause 'invalid command json'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36598 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:38:09 +0000 (18:38 -0700)]
Merge PR #36598 into master

* refs/pull/36598/head:
mds: drop decoding as MDSMap in FSMap::decode()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36687 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:37:21 +0000 (18:37 -0700)]
Merge PR #36687 into master

* refs/pull/36687/head:
client: use ccap_string to show caps in more user friendly

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36697 into master
Patrick Donnelly [Sat, 22 Aug 2020 01:35:56 +0000 (18:35 -0700)]
Merge PR #36697 into master

* refs/pull/36697/head:
messages,mds: Fix decoding of enum types on big-endian systems

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agocrimson/osd: update size of object after writing to object
Kefu Chai [Thu, 20 Aug 2020 11:39:15 +0000 (19:39 +0800)]
crimson/osd: update size of object after writing to object

in the writesame op implemented in
6f7d1a435c1e80ee7ad6a9fca898d686255cc206, we failed to update the OI of
object after appending to it, in this change `oi.size` is updated
accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #36472 into master
Patrick Donnelly [Fri, 21 Aug 2020 23:12:32 +0000 (16:12 -0700)]
Merge PR #36472 into master

* refs/pull/36472/head:
qa/workunits/fs: add test for subvolume
mds: don't move inode with nlink > 1 to global snaprealm if it's in subvolume
mds: disallow hardlink across subvolume
mds: disallow across subvolume rename
mds: disallow creating snapshot on descendent directory of subvolume
mds: add vxattr that marks/clears subvolume flag

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa: add method run ceph cluster command with better interface
Rishabh Dave [Mon, 17 Aug 2020 09:58:12 +0000 (15:28 +0530)]
qa: add method run ceph cluster command with better interface

This new method should allow better control on the process launched by
the passed command. This is achieved by allowing arguments provided by
teuthology.orchestra.run.run().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
4 years agolibrbd: flush requests could race past initiation of write ops
Jason Dillaman [Fri, 21 Aug 2020 14:37:41 +0000 (10:37 -0400)]
librbd: flush requests could race past initiation of write ops

Now that IO is being processed by multiple threads, it's possible
that a write operation that was issued prior to a flush would not
have been started prior to the processing of the flush.

Fixes: https://tracker.ceph.com/issues/47050
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd: reset collection state after move operation
Jason Dillaman [Fri, 21 Aug 2020 14:36:55 +0000 (10:36 -0400)]
librbd: reset collection state after move operation

A technical requirement of move operations requires that the collection
be reset to a known state before being used again.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #35789 from Reperator/fix-ceph-objectstore-tool-docs
Kefu Chai [Fri, 21 Aug 2020 10:31:20 +0000 (18:31 +0800)]
Merge pull request #35789 from Reperator/fix-ceph-objectstore-tool-docs

doc/man/8/ceph-objectstore-tool.rst: remove duplicate lines

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36742 from hulksmaaash/patch-2
Kefu Chai [Fri, 21 Aug 2020 10:26:46 +0000 (18:26 +0800)]
Merge pull request #36742 from hulksmaaash/patch-2

doc/rados: remove statement that ISA plugin only works on Intel chips

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36496 from Daniel-Pivonka/cephadm-44926
Sebastian Wagner [Fri, 21 Aug 2020 09:40:17 +0000 (11:40 +0200)]
Merge pull request #36496 from Daniel-Pivonka/cephadm-44926

mgr/cephadm: rgw update period after realm, zone creation

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #36716 from jmolmo/dashboard_ports_2
Sebastian Wagner [Fri, 21 Aug 2020 09:39:52 +0000 (11:39 +0200)]
Merge pull request #36716 from jmolmo/dashboard_ports_2

cephadm: Allow users to use a custom dashboard ssl port

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #36721 from ceph/47036-sass-colors-typescript
Lenz Grimmer [Fri, 21 Aug 2020 09:12:33 +0000 (11:12 +0200)]
Merge pull request #36721 from ceph/47036-sass-colors-typescript

mgr/dashboard: use SASS colors in TypeScript

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
4 years agoMerge pull request #36735 from rhcs-dashboard/fix-this-week-endpoint
Lenz Grimmer [Fri, 21 Aug 2020 09:10:18 +0000 (11:10 +0200)]
Merge pull request #36735 from rhcs-dashboard/fix-this-week-endpoint

mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in dashboard

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agotest/pybind: remove object for testing after done with it
Kefu Chai [Fri, 21 Aug 2020 05:30:24 +0000 (13:30 +0800)]
test/pybind: remove object for testing after done with it

* add vertical spacing for better readability
* remove object for testing after done with it

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/pybind: label test_rados tests with attributes
Kefu Chai [Wed, 19 Aug 2020 17:03:41 +0000 (01:03 +0800)]
test/pybind: label test_rados tests with attributes

so we can pick the tests selectively. currently, some features are not
supported by crimson. but we will cover more and more of them. so
attaching different labels to tests cases helps us to run these tests
selectively.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/workunits/rados: pass options down to test_rados.py
Kefu Chai [Wed, 19 Aug 2020 17:06:10 +0000 (01:06 +0800)]
qa/workunits/rados: pass options down to test_rados.py

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36740 from varshar16/wip-fix-nfs-bug-47009
Sebastian Wagner [Fri, 21 Aug 2020 07:58:12 +0000 (09:58 +0200)]
Merge pull request #36740 from varshar16/wip-fix-nfs-bug-47009

qa/tasks/nfs: Change the mds name and delete created nfs clusters

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.
4 years agoMerge pull request #36694 from shun-s/fix-linger-op-stray
Kefu Chai [Fri, 21 Aug 2020 07:33:14 +0000 (15:33 +0800)]
Merge pull request #36694 from shun-s/fix-linger-op-stray

osdc: fix lingerOp stray

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
4 years agomgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in...
Avan Thakkar [Thu, 20 Aug 2020 09:32:33 +0000 (15:02 +0530)]
mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in dashboard

Fixes: https://tracker.ceph.com/issues/47049
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
4 years agoMerge pull request #36465 from majianpeng/bluefs-avoid-flush-much-data
Kefu Chai [Fri, 21 Aug 2020 01:57:27 +0000 (09:57 +0800)]
Merge pull request #36465 from majianpeng/bluefs-avoid-flush-much-data

os/bluestore/BlueRocksEnv: Avoid flushing too much data at once.

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
4 years agoMerge pull request #36593 from gregsfortytwo/wip-46914
Kefu Chai [Fri, 21 Aug 2020 01:53:25 +0000 (09:53 +0800)]
Merge pull request #36593 from gregsfortytwo/wip-46914

mon: mark pgtemp messages as no_reply more consistenly in preprocess_…

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #36675 from tchaikov/wip-fix-option-typo
Kefu Chai [Fri, 21 Aug 2020 01:52:40 +0000 (09:52 +0800)]
Merge pull request #36675 from tchaikov/wip-fix-option-typo

common/options: fix a typo in option description

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #35613 from changchengx/str_list
Kefu Chai [Fri, 21 Aug 2020 01:51:28 +0000 (09:51 +0800)]
Merge pull request #35613 from changchengx/str_list

use for_each_substr to avoid redundant operation by calling get_str_set

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36573 from changchengx/osdmonitor
Kefu Chai [Fri, 21 Aug 2020 01:50:11 +0000 (09:50 +0800)]
Merge pull request #36573 from changchengx/osdmonitor

mon: use string_veiw to glimpse string and remove unused variable

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36680 from tchaikov/wip-mgr-disk-predict
Kefu Chai [Fri, 21 Aug 2020 01:46:54 +0000 (09:46 +0800)]
Merge pull request #36680 from tchaikov/wip-mgr-disk-predict

pybind/mgr/diskprediction_cloud: remove mgr-diskprediction-cloud

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
Reviewed-By: Zac Dover <zac.dover@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agoMerge pull request #36534 from changchengx/formatter
Kefu Chai [Fri, 21 Aug 2020 01:45:03 +0000 (09:45 +0800)]
Merge pull request #36534 from changchengx/formatter

common/Formatter: don't construct string if string_view work

Reviewed-By: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36420 from qwren/qat-compressor
Kefu Chai [Fri, 21 Aug 2020 01:42:18 +0000 (09:42 +0800)]
Merge pull request #36420 from qwren/qat-compressor

compressor: fix compile error for QAT

Reviewed-By: Kefu Chai <kchai@redhat.com>
4 years agodoc/rados: remove statement that ISA plugin only works on Intel chips
Robbie Williamson [Thu, 20 Aug 2020 20:45:36 +0000 (15:45 -0500)]
doc/rados: remove statement that ISA plugin only works on Intel chips

ISA-L supports aarch64 (Arm), not just Intel processors, as does Ceph (see #32171).

Signed-off-by: Robbie Williamson <robbie.williamson@arm.com>
4 years agomon: mark pgtemp messages as no_reply more consistently in preprocess_pgtemp
Greg Farnum [Wed, 12 Aug 2020 23:44:11 +0000 (23:44 +0000)]
mon: mark pgtemp messages as no_reply more consistently in preprocess_pgtemp

If a message is forwarded, it's conceivable the leader's and peon's evaluation
will disagree about whether the message is useful or not, which could result
in the leader ignoring it and the peon having a dangling forwarded message.
Fix this by marking the op as no_reply whenever ignoring it.

Fixes: https://tracker.ceph.com/issues/46914
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
4 years agoqa/tasks/nfs: Instead of 'orch ls' use 'orch ps'
Varsha Rao [Thu, 20 Aug 2020 14:36:47 +0000 (14:36 +0000)]
qa/tasks/nfs: Instead of 'orch ls' use 'orch ps'

Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agorbd: delay parsing of default kernel map options
Jason Dillaman [Tue, 4 Aug 2020 18:51:29 +0000 (14:51 -0400)]
rbd: delay parsing of default kernel map options

It now connects to the cluster to retrieve any global config
overrides before processing the default map options.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agorbd: 'list' action should connect to cluster before querying config
Jason Dillaman [Tue, 4 Aug 2020 18:39:36 +0000 (14:39 -0400)]
rbd: 'list' action should connect to cluster before querying config

This will allow global config overrides for the max concurrent ops to
be applied prior to listing the images.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agorbd: drop querying of RBD default features
Jason Dillaman [Tue, 4 Aug 2020 18:28:21 +0000 (14:28 -0400)]
rbd: drop querying of RBD default features

These will be computed internally by librbd using any potential
global configuration overrides.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agorbd: delay determination of default pool name
Jason Dillaman [Tue, 4 Aug 2020 18:03:59 +0000 (14:03 -0400)]
rbd: delay determination of default pool name

Wait until after the CLI has connected to the cluster and therefore
has received all global configuration overrides.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agorbd: let librados finish initializing the global context
Jason Dillaman [Thu, 30 Jul 2020 17:12:20 +0000 (13:12 -0400)]
rbd: let librados finish initializing the global context

librados will retrieve a bootstrap config update from the MONs
after connecting and then finish initializing the context. In
general, non-primitive config options cannot be updated after
initialization is complete. This prevents the rbd CLI from
supporting non-primitive config overrides from the MON.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agomon/MonClient: apply MON config before finishing bootstrap
Jason Dillaman [Thu, 30 Jul 2020 17:00:22 +0000 (13:00 -0400)]
mon/MonClient: apply MON config before finishing bootstrap

In general, non-primitive config options cannot be updated after
the service threads have been marked as running. In librados, this
happens after the MonClient bootstrap process. However, the configs
received from the MON were applied in a separate thread which can
race with librados marking the service threads as running.

Now the received MON configs will be applied within the context of
the bootstrap function call instead of deferring to a separate
thread.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoqa/suites/rados/test_orch_cli: Change mds name
Varsha Rao [Thu, 20 Aug 2020 14:28:57 +0000 (14:28 +0000)]
qa/suites/rados/test_orch_cli: Change mds name

As MDS name should not start with numeric digit.

Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agoqa/tasks/nfs: Delete nfs cluster after exports are created
Varsha Rao [Thu, 20 Aug 2020 12:09:33 +0000 (12:09 +0000)]
qa/tasks/nfs: Delete nfs cluster after exports are created

Fixes: https://tracker.ceph.com/issues/47009
Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agoMerge pull request #36477 from p-se/fix-downstream-alertmanager
Sebastian Wagner [Thu, 20 Aug 2020 12:24:43 +0000 (14:24 +0200)]
Merge pull request #36477 from p-se/fix-downstream-alertmanager

cephadm: Support custom alertmanager container

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agocephadm: Allow users to use a custom dashboard ssl port
Juan Miguel Olmo Martínez [Wed, 19 Aug 2020 10:11:28 +0000 (12:11 +0200)]
cephadm: Allow users to use a custom dashboard ssl port

This modification allows the user to create a new bootstrap cluster using a predefined SSl port for the dashboard.
If firewall is enabled, any new manager daemon deployed in new hosts will take care of open the required ports for all the services enabled in the manager.

Two new parameters for cephadm tool (aka binary or standalone):
Command bootstrap:
--ssl-dashboard-port SSL_DASHBOARD_PORT
                      Port number used to connect with dashboard using SSL
Command deploy:
--tcp-ports TCP_PORTS
                      List of tcp ports to open in the host firewall

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #35756 from ShyamsundarR/tr-46163
Ramana Raja [Thu, 20 Aug 2020 11:23:11 +0000 (16:53 +0530)]
Merge pull request #35756 from ShyamsundarR/tr-46163

mgr/volumes: Use snapshot root directory attrs when creating clone root

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
4 years agocephfs: allow only "good" characters
Rishabh Dave [Fri, 31 Jul 2020 13:01:57 +0000 (18:31 +0530)]
cephfs: allow only "good" characters

Allow only [A-Za-z0-9-_.] characters for FS, volume, subvolume and
subvolume group names and add test for the same.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge pull request #36485 from adk3798/cephadm-44252
Sebastian Wagner [Thu, 20 Aug 2020 09:18:26 +0000 (11:18 +0200)]
Merge pull request #36485 from adk3798/cephadm-44252

mgr/cephadm: mgr or mds scale-down should prefer non-active daemons

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoqa/workunits/fs: add test for subvolume
Yan, Zheng [Wed, 5 Aug 2020 15:31:03 +0000 (23:31 +0800)]
qa/workunits/fs: add test for subvolume

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agomds: don't move inode with nlink > 1 to global snaprealm if it's in subvolume
Yan, Zheng [Wed, 5 Aug 2020 09:31:57 +0000 (17:31 +0800)]
mds: don't move inode with nlink > 1 to global snaprealm if it's in subvolume

Fixes: https://tracker.ceph.com/issues/46074
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agomds: disallow hardlink across subvolume
Yan, Zheng [Wed, 5 Aug 2020 08:04:30 +0000 (16:04 +0800)]
mds: disallow hardlink across subvolume

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agomds: disallow across subvolume rename
Yan, Zheng [Wed, 5 Aug 2020 07:37:20 +0000 (15:37 +0800)]
mds: disallow across subvolume rename

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agomds: disallow creating snapshot on descendent directory of subvolume
Yan, Zheng [Wed, 5 Aug 2020 07:33:10 +0000 (15:33 +0800)]
mds: disallow creating snapshot on descendent directory of subvolume

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agomds: add vxattr that marks/clears subvolume flag
Yan, Zheng [Tue, 4 Aug 2020 13:26:26 +0000 (21:26 +0800)]
mds: add vxattr that marks/clears subvolume flag

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
4 years agoMerge pull request #36723 from tchaikov/wip-osd-writesame
Kefu Chai [Thu, 20 Aug 2020 03:03:32 +0000 (11:03 +0800)]
Merge pull request #36723 from tchaikov/wip-osd-writesame

crimson/osd: support writesame op

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge PR #36711 into master
Patrick Donnelly [Thu, 20 Aug 2020 02:10:54 +0000 (19:10 -0700)]
Merge PR #36711 into master

* refs/pull/36711/head:
Revert "vstart_runner: rotate logs between testcases"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoRevert "vstart_runner: rotate logs between testcases"
Ernesto Puerta [Wed, 19 Aug 2020 08:36:05 +0000 (10:36 +0200)]
Revert "vstart_runner: rotate logs between testcases"

Fixes: https://tracker.ceph.com/issues/47032
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agocrimson/osd: write log when sending "osd_failure" msg
Kefu Chai [Wed, 19 Aug 2020 17:02:14 +0000 (01:02 +0800)]
crimson/osd: write log when sending "osd_failure" msg

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: support writesame op
Kefu Chai [Wed, 19 Aug 2020 16:59:37 +0000 (00:59 +0800)]
crimson/osd: support writesame op

it is tested by TestIoctx.test_aio_writesame. so let's implement it as
well.

Signed-off-by: Kefu Chai <kchai@redhat.com>