]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/dashboard: remove space after service name in the Hosts List table 35373/head
Kiefer Chang [Thu, 4 Jun 2020 06:05:06 +0000 (14:05 +0800)]
mgr/dashboard: remove space after service name in the Hosts List table

Fixes: https://tracker.ceph.com/issues/45870
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge PR #35263 into master
Patrick Donnelly [Thu, 4 Jun 2020 23:08:58 +0000 (16:08 -0700)]
Merge PR #35263 into master

* refs/pull/35263/head:
test_cephfs_shell: use StringIO instead of BytesIO

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agotest_cephfs_shell: use StringIO instead of BytesIO 35263/head
Rishabh Dave [Fri, 8 May 2020 17:58:27 +0000 (23:28 +0530)]
test_cephfs_shell: use StringIO instead of BytesIO

Code in qa/ uses both StringIO and BytesIO. Let's use StringIO
exclusively (unless necessary) for uniformity. The reason for using
StringIO over BytesIO is that tests mostly need stdout as string than
as bytes and StringIO is used more frequently used in qa/ code at this
point.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #35271 from bk201/refactor-template-cephadm
Sebastian Wagner [Thu, 4 Jun 2020 17:50:58 +0000 (19:50 +0200)]
Merge pull request #35271 from bk201/refactor-template-cephadm

mgr/cephadm: use jinja2 to render templates

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #33646 from ofriedma/wip-mkogan-ofriedma-add-cache-api
Casey Bodley [Thu, 4 Jun 2020 16:11:11 +0000 (12:11 -0400)]
Merge pull request #33646 from ofriedma/wip-mkogan-ofriedma-add-cache-api

rgw: Adding data cache and CDN capabilities

Reviewed-by: Mark Kogan <mkogan@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #35018 from sebastian-philipp/cephadm-rm-container
Sebastian Wagner [Thu, 4 Jun 2020 15:59:48 +0000 (17:59 +0200)]
Merge pull request #35018 from sebastian-philipp/cephadm-rm-container

cephadm: Manually remove containers

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35176 from aclamk/wip-prio-cache-name
Kefu Chai [Thu, 4 Jun 2020 15:01:46 +0000 (23:01 +0800)]
Merge pull request #35176 from aclamk/wip-prio-cache-name

common: PriorityCache's perf counters can have custom name

Reviewed-by: Mark Nelson <mnelson@redhat.com>
5 years agoMerge pull request #35299 from tspmelo/wip-ng-popover
Lenz Grimmer [Thu, 4 Jun 2020 14:55:48 +0000 (16:55 +0200)]
Merge pull request #35299 from tspmelo/wip-ng-popover

mgr/dashboard: Use ng-bootstrap for Popover

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agomgr/dashboard: Use ng-bootstrap for Popover 35299/head
Tiago Melo [Thu, 28 May 2020 19:19:19 +0000 (19:19 +0000)]
mgr/dashboard: Use ng-bootstrap for Popover

Fixes: https://tracker.ceph.com/issues/45753
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35348 from dillaman/wip-45714
Mykola Golub [Thu, 4 Jun 2020 10:57:01 +0000 (13:57 +0300)]
Merge pull request #35348 from dillaman/wip-45714

rbd-mirror: stop local journal replayer first during shut down

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35339 from dillaman/wip-45803
Mykola Golub [Thu, 4 Jun 2020 10:56:10 +0000 (13:56 +0300)]
Merge pull request #35339 from dillaman/wip-45803

rbd-mirror: don't hold (stale) copy of local image journal pointer

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35290 from tspmelo/wip-navs
Lenz Grimmer [Thu, 4 Jun 2020 09:17:34 +0000 (11:17 +0200)]
Merge pull request #35290 from tspmelo/wip-navs

mgr/dashboard: Migrate Tabs from ngx-bootstrap to ng-bootstrap

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34934 from tspmelo/wip-testbed-inject
Lenz Grimmer [Thu, 4 Jun 2020 09:16:47 +0000 (11:16 +0200)]
Merge pull request #34934 from tspmelo/wip-testbed-inject

mgr/dashboard: Use TestBed.inject instead of TestBed.get

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agomgr/cephadm: refactor templating in services 35271/head
Kiefer Chang [Fri, 29 May 2020 09:23:01 +0000 (17:23 +0800)]
mgr/cephadm: refactor templating in services

Using Jinja2 to render configs for services:
- Grafana
- Alertmanager
- Prometheus
- NFS
- iSCSI

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/cephadm: add template engine Jinja2
Kiefer Chang [Fri, 29 May 2020 09:22:07 +0000 (17:22 +0800)]
mgr/cephadm: add template engine Jinja2

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge pull request #35359 from ceph/docs_fix_all_available_devices
Sebastian Wagner [Thu, 4 Jun 2020 08:06:52 +0000 (10:06 +0200)]
Merge pull request #35359 from ceph/docs_fix_all_available_devices

doc/cephadm: align to all-available-devices flag

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35279 from badone/wip-py2-fix-osd-scrub-repair.sh
Yuri Weinstein [Wed, 3 Jun 2020 18:12:21 +0000 (11:12 -0700)]
Merge pull request #35279 from badone/wip-py2-fix-osd-scrub-repair.sh

qa/*/osd-scrub-repair.sh: Convert to python3 print syntax

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35363 from tchaikov/wip-qa-cronjob
Kefu Chai [Wed, 3 Jun 2020 15:14:13 +0000 (23:14 +0800)]
Merge pull request #35363 from tchaikov/wip-qa-cronjob

qa/tests: do not pass "-t 2" to teuthology-suite when testing nautilus

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35326 from idryomov/wip-read-from-replica-ec
Kefu Chai [Wed, 3 Jun 2020 14:44:10 +0000 (22:44 +0800)]
Merge pull request #35326 from idryomov/wip-read-from-replica-ec

Objecter: don't attempt to read from non-primary on EC pools

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #35202 into master
Patrick Donnelly [Wed, 3 Jun 2020 14:43:08 +0000 (07:43 -0700)]
Merge PR #35202 into master

* refs/pull/35202/head:
qa: return a string via getfattr

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
5 years agoMerge pull request #35342 from shinhwagk/patch-2
Kefu Chai [Wed, 3 Jun 2020 14:42:22 +0000 (22:42 +0800)]
Merge pull request #35342 from shinhwagk/patch-2

cephadm: fix package is not running when enabler is not none

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge PR #35328 into master
Patrick Donnelly [Wed, 3 Jun 2020 14:41:09 +0000 (07:41 -0700)]
Merge PR #35328 into master

* refs/pull/35328/head:
qa/tasks/cephfs/test_scrub.py: use umount_wait to avoid ceph-fuse stuck

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35310 from dillaman/wip-librbd-io-image-dispatch
Mykola Golub [Wed, 3 Jun 2020 14:40:26 +0000 (17:40 +0300)]
Merge pull request #35310 from dillaman/wip-librbd-io-image-dispatch

librbd: fix IO processing deadlock and race conditions in image dispatcher

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35322 from tchaikov/wip-mgr-cephadm
Kefu Chai [Wed, 3 Jun 2020 14:39:31 +0000 (22:39 +0800)]
Merge pull request #35322 from tchaikov/wip-mgr-cephadm

mgr/cephadm: drop py2 compatible bits

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge pull request #35288 from ZhenLiu94/lznba
Kefu Chai [Wed, 3 Jun 2020 14:38:49 +0000 (22:38 +0800)]
Merge pull request #35288 from ZhenLiu94/lznba

ceph.in: add the missing right parenthesis in the help message

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35337 from rzarzynski/wip-crimson-pidfile-err-handling
Kefu Chai [Wed, 3 Jun 2020 14:36:40 +0000 (22:36 +0800)]
Merge pull request #35337 from rzarzynski/wip-crimson-pidfile-err-handling

global, osd/crimson: improve handling of the crimson-osd instance duplication

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Migrate Tabs from ngx-bootstrap to ng-bootstrap 35290/head
Tiago Melo [Fri, 22 May 2020 15:41:58 +0000 (15:41 +0000)]
mgr/dashboard: Migrate Tabs from ngx-bootstrap to ng-bootstrap

Using ng-bootstrap for Tabs will allow us to easily implement some new features
like only loading 1 tab at a time (already implemented here) and
saving/restoring last opened tab.

Modified the table component to use a clone of the columns list.
Making changes directly to columns var was causing problem when the table was
loaded a second time.

Fixes: https://tracker.ceph.com/issues/45017
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agodoc/cephadm: align to all-available-devices flag 35359/head
Joshua Schmid [Wed, 3 Jun 2020 10:26:16 +0000 (12:26 +0200)]
doc/cephadm: align to all-available-devices flag

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agolibrbd: clear pending flush contexts on shut down 35310/head
Jason Dillaman [Fri, 29 May 2020 13:22:26 +0000 (09:22 -0400)]
librbd: clear pending flush contexts on shut down

The IOs are already dispatched but are not cleared from the
container. This can result in an assertion failure in the destructor.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: dropped ImageRequestWQ temporary code from exclusive-lock dispatch
Jason Dillaman [Fri, 29 May 2020 13:20:40 +0000 (09:20 -0400)]
librbd: dropped ImageRequestWQ temporary code from exclusive-lock dispatch

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: restore missing flush on write-block logic
Jason Dillaman [Thu, 28 May 2020 21:59:39 +0000 (17:59 -0400)]
librbd: restore missing flush on write-block logic

When creating the new image dispatch layer, the original flush
upon write-block was dropped. This is resulting in some random race
conditions where object IO is still in-flight when the write-block
indicates it's complete.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: drop exclusive-lock image dispatch lock before acquiring lock
Jason Dillaman [Thu, 28 May 2020 13:17:04 +0000 (09:17 -0400)]
librbd: drop exclusive-lock image dispatch lock before acquiring lock

This avoids a potential race with the exclusive lock being acquired by
another thread while the image dispatch layer attempts to acquire it.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: exclusive lock image dispatch should not wait on IO when setting lock
Jason Dillaman [Wed, 27 May 2020 23:14:14 +0000 (19:14 -0400)]
librbd: exclusive lock image dispatch should not wait on IO when setting lock

IO from later dispatch layers might have caused the need to acquire the lock
(i.e. like an image refresh). In that case, the IO will be blocked waiting for
the exclusive lock to be acquired -- but will deadlock waiting for the IO
to flush.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorbd-mirror: track journal replay flush requests to prevent race 35348/head
Jason Dillaman [Wed, 3 Jun 2020 13:40:32 +0000 (09:40 -0400)]
rbd-mirror: track journal replay flush requests to prevent race

If a journal replay flush is in-progress when the ImageReplayer is stopped,
it can race and result in an assertion failure due to two attempted shutdowns
of the same journal replay state machine.

Fixes: https://tracker.ceph.com/issues/45409
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35051 from Devp00l/wip-44620
Lenz Grimmer [Wed, 3 Jun 2020 13:39:06 +0000 (15:39 +0200)]
Merge pull request #35051 from Devp00l/wip-44620

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoqa/tests: do not pass "-t 2" to teuthology-suite when testing nautilus 35363/head
Kefu Chai [Wed, 3 Jun 2020 12:55:02 +0000 (20:55 +0800)]
qa/tests: do not pass "-t 2" to teuthology-suite when testing nautilus

this change partially reverts
21dacc823be184718584c5fd3b647e87b3eeba42

see also #34171

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35360 from tchaikov/wip-rpm-cephfs-metrics
Kefu Chai [Wed, 3 Jun 2020 12:57:55 +0000 (20:57 +0800)]
Merge pull request #35360 from tchaikov/wip-rpm-cephfs-metrics

ceph.spec.in: claim ownership of include/cephfs/metrics

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph.spec.in: claim ownership of include/cephfs/metrics 35360/head
Kefu Chai [Wed, 3 Jun 2020 12:06:52 +0000 (20:06 +0800)]
ceph.spec.in: claim ownership of include/cephfs/metrics

otherwise, "osc build" fails like:

[ 5545s] libcephfs-devel-16.0.0-2172.ga59fb9ffac.x86_64.rpm: directories not owned by a package:
[ 5545s]  - /usr/include/cephfs/metrics

this addresses a regression introduced by
c669de12e076bcedf3fe6cfe52377713f06d7ceb

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoRevert "rbd-mirror: wait for events to replay before shut down journal replay"
Jason Dillaman [Wed, 3 Jun 2020 11:50:32 +0000 (07:50 -0400)]
Revert "rbd-mirror: wait for events to replay before shut down journal replay"

This reverts commit aeccb0330333aad08afea625325b12e01eff909b.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35352 from tchaikov/wip-vstart-runner-create-cluster-only
Kefu Chai [Wed, 3 Jun 2020 09:56:00 +0000 (17:56 +0800)]
Merge pull request #35352 from tchaikov/wip-vstart-runner-create-cluster-only

qa/tasks/vstart_runner: do not teardown test_path if "create-cluster-…

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/dashboard: Use TestBed.inject instead of TestBed.get 34934/head
Tiago Melo [Wed, 6 May 2020 17:50:43 +0000 (17:50 +0000)]
mgr/dashboard: Use TestBed.inject instead of TestBed.get

This new method has the same behavior, but is type safe.

Fixes: https://tracker.ceph.com/issues/45326
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35300 from tspmelo/wip-ng-typeahead
Lenz Grimmer [Wed, 3 Jun 2020 08:55:51 +0000 (10:55 +0200)]
Merge pull request #35300 from tspmelo/wip-ng-typeahead

mgr/dashboard: Use ng-bootstrap for Typeahead

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35031 from tspmelo/wip-get-current-summary
Lenz Grimmer [Wed, 3 Jun 2020 08:53:16 +0000 (10:53 +0200)]
Merge pull request #35031 from tspmelo/wip-get-current-summary

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35282 from bk201/wip-45735
Lenz Grimmer [Wed, 3 Jun 2020 08:50:37 +0000 (10:50 +0200)]
Merge pull request #35282 from bk201/wip-45735

monitoring: fixing some issues in RBD detail dashboard

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35320 from sebastian-philipp/cephadm-more-type-annotations
Sebastian Wagner [Wed, 3 Jun 2020 07:52:04 +0000 (09:52 +0200)]
Merge pull request #35320 from sebastian-philipp/cephadm-more-type-annotations

cephadm: Add a bunch of type annotations

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35262 from jmolmo/cephadm_shared_folders
Sebastian Wagner [Wed, 3 Jun 2020 07:51:31 +0000 (09:51 +0200)]
Merge pull request #35262 from jmolmo/cephadm_shared_folders

cephadm: Make easy manager modules development

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35069 from sebastian-philipp/qa-cephadm-add-rgw-and-iscsi
Sebastian Wagner [Wed, 3 Jun 2020 07:50:04 +0000 (09:50 +0200)]
Merge pull request #35069 from sebastian-philipp/qa-cephadm-add-rgw-and-iscsi

qa/cephadm: Add RGW

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34860 from jschmid1/host_spec_fixes
Sebastian Wagner [Wed, 3 Jun 2020 07:45:09 +0000 (09:45 +0200)]
Merge pull request #34860 from jschmid1/host_spec_fixes

python-common: only validate host_pattern if present

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/tasks/vstart_runner: do not teardown test_path if "create-cluster-only" 35352/head
Kefu Chai [Wed, 3 Jun 2020 01:39:26 +0000 (09:39 +0800)]
qa/tasks/vstart_runner: do not teardown test_path if "create-cluster-only"

otherwise we could be removing a "None" directory when tearing down the cluster,
and have following failure:

Exception ignored in: <bound method LocalContext.__del__ of <__main__.LocalContext object at 0x7f99fd4a6cc0>>
Traceback (most recent call last):
  File "../qa/tasks/vstart_runner.py", line 1189, in __del__
    shutil.rmtree(self.teuthology_config['test_path'])
  File "/tmp/tmp.mmM2ugspuR/venv/lib/python3.6/shutil.py", line 477, in rmtree
    onerror(os.lstat, path, sys.exc_info())
  File "/tmp/tmp.mmM2ugspuR/venv/lib/python3.6/shutil.py", line 475, in rmtree
    orig_st = os.lstat(path)
TypeError: lstat: path should be string, bytes or os.PathLike, not NoneType

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #34288 into master
Patrick Donnelly [Wed, 3 Jun 2020 01:57:28 +0000 (18:57 -0700)]
Merge PR #34288 into master

* refs/pull/34288/head:
mds: flag backtrace scrub failures for new files as okay

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35257 from athanatos/sjust/wip-lba-tree
Kefu Chai [Wed, 3 Jun 2020 01:47:17 +0000 (09:47 +0800)]
Merge pull request #35257 from athanatos/sjust/wip-lba-tree

crimson: TransactionManager and BtreeLBAManager initial implementations

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #34719 into master 35239/head
Patrick Donnelly [Wed, 3 Jun 2020 00:46:26 +0000 (17:46 -0700)]
Merge PR #34719 into master

* refs/pull/34719/head:
ceph-fuse: compatible with libfuse3.5 or higher
cmake: to get the header and library from specified path
libfuse: check the libfuse version from the pkconfig/fuse{3}.pc file

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #34776 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:44:21 +0000 (17:44 -0700)]
Merge PR #34776 into master

* refs/pull/34776/head:
mgr/volumes: Create subvolume with isolated rados namespace

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #34839 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:42:59 +0000 (17:42 -0700)]
Merge PR #34839 into master

* refs/pull/34839/head:
qa/cephfs: add FUSE module before running mount -t fusectl

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #34942 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:41:29 +0000 (17:41 -0700)]
Merge PR #34942 into master

* refs/pull/34942/head:
tools/cephfs: don't bind to public_addr

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35034 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:40:00 +0000 (17:40 -0700)]
Merge PR #35034 into master

* refs/pull/35034/head:
ceph_fuse: enable fuse_debug when the '-d' option is specified

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35057 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:38:46 +0000 (17:38 -0700)]
Merge PR #35057 into master

* refs/pull/35057/head:
pybind/ceph_volume_client: logger.warn() -> logger.warning()

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #35193 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:38:09 +0000 (17:38 -0700)]
Merge PR #35193 into master

* refs/pull/35193/head:
qa/tasks/mds_thrash: s/random.sample/random.choice/

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35234 into master
Patrick Donnelly [Wed, 3 Jun 2020 00:35:08 +0000 (17:35 -0700)]
Merge PR #35234 into master

* refs/pull/35234/head:
mds: cleanup uncommitted fragments before mds goes to active

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc/dev/seastore.rst: add a bit of information about lba tree etc 35257/head
Samuel Just [Wed, 27 May 2020 03:05:13 +0000 (20:05 -0700)]
doc/dev/seastore.rst: add a bit of information about lba tree etc

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore: add transaction_manager
Samuel Just [Wed, 27 May 2020 01:15:09 +0000 (18:15 -0700)]
crimson/os/seastore: add transaction_manager

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore: add lba_manager interface with btree_lba_manager impl
Samuel Just [Wed, 27 May 2020 01:14:47 +0000 (18:14 -0700)]
crimson/os/seastore: add lba_manager interface with btree_lba_manager impl

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/common: add fixed_kv_node_layout with tests
Samuel Just [Mon, 4 May 2020 18:51:21 +0000 (11:51 -0700)]
crimson/common: add fixed_kv_node_layout with tests

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/root_block: update to handle relative addresses
Samuel Just [Tue, 26 May 2020 18:17:59 +0000 (11:17 -0700)]
crimson/os/seastore/root_block: update to handle relative addresses

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/root_block: fix copy constructor
Samuel Just [Tue, 26 May 2020 18:17:14 +0000 (11:17 -0700)]
crimson/os/seastore/root_block: fix copy constructor

Otherwise, we don't appropriately initialize root.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cache: add read clean extents to cache
Samuel Just [Mon, 1 Jun 2020 19:01:40 +0000 (12:01 -0700)]
crimson/os/seastore/cache: add read clean extents to cache

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cache: remove unnecessary lambda capture
Samuel Just [Tue, 2 Jun 2020 23:52:13 +0000 (16:52 -0700)]
crimson/os/seastore/cache: remove unnecessary lambda capture

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cache.h: actually call complete_load
Samuel Just [Tue, 26 May 2020 18:15:42 +0000 (11:15 -0700)]
crimson/os/seastore/cache.h: actually call complete_load

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cache.h: only retire extent if not already retired and not fresh
Samuel Just [Tue, 26 May 2020 18:15:28 +0000 (11:15 -0700)]
crimson/os/seastore/cache.h: only retire extent if not already retired and not fresh

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cached_extent: add buffer sharing constructor
Samuel Just [Mon, 1 Jun 2020 19:02:35 +0000 (12:02 -0700)]
crimson/os/seastore/cached_extent: add buffer sharing constructor

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore/cached_extent.h: fix get_overlap
Samuel Just [Tue, 26 May 2020 18:18:47 +0000 (11:18 -0700)]
crimson/os/seastore/cached_extent.h: fix get_overlap

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocached_extent: add get_crc32 helper
Samuel Just [Fri, 29 May 2020 21:18:29 +0000 (14:18 -0700)]
cached_extent: add get_crc32 helper

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson: distinguish record and block relative paddrs
Samuel Just [Tue, 12 May 2020 04:02:07 +0000 (21:02 -0700)]
crimson: distinguish record and block relative paddrs

Blocks get read independently of the surrounding record,
so paddr's embedded directly in a block need to refer
to other blocks within the same record by a block_relative
addr relative to the block's own offset.  By contrast,
deltas to existing blocks need to use record_relative
addrs relative to the first block of the record.

This patch distinguishes the two kinds of relative paddr
(mainly for debugging purposes) and adapts cache, journal,
etc to use the appropriate types.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os: port abseil::Layout to C++17
Kefu Chai [Wed, 8 Apr 2020 09:22:19 +0000 (17:22 +0800)]
crimson/os: port abseil::Layout to C++17

and adapt it to our needs

* use C++17 instead of homebrew facilities
* use boost::beast::span for Span

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: import abseil::layout
Kefu Chai [Tue, 7 Apr 2020 08:46:51 +0000 (16:46 +0800)]
crimson: import abseil::layout

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinclude/byteorder.h: add _le signed types
Samuel Just [Thu, 21 May 2020 21:47:15 +0000 (14:47 -0700)]
include/byteorder.h: add _le signed types

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #26004 into master
Patrick Donnelly [Tue, 2 Jun 2020 20:55:18 +0000 (13:55 -0700)]
Merge PR #26004 into master

* refs/pull/26004/head:
mds: forward mds metrics to ceph manager w/ quering interfaces
mds: track per session client metrics
mds: record metrics from all MDSs in MDS rank 0
mds: non-rank based interface for sending message to an mds
mds: inter-mds ping-pong message and type
mgr: introduce query/report types for ceph metadata server
mds: new intra-mds message type for forwarding aggregated metrics
client: new message type for providing client side metrics

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35351 from neha-ojha/wip-45802
Casey Bodley [Tue, 2 Jun 2020 19:08:03 +0000 (15:08 -0400)]
Merge pull request #35351 from neha-ojha/wip-45802

qa/suites/rgw/multisite, qa/suites/rgw/crypt: whitelist PG_AVAILABILITY

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #34838 into master
Patrick Donnelly [Tue, 2 Jun 2020 19:01:49 +0000 (12:01 -0700)]
Merge PR #34838 into master

* refs/pull/34838/head:
vstart_runner: don't use namespaces by default
qa/cephfs: run nsenter commands with superuser privileges
qa/cephfs: look for mountpoint in cmdline file

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35349 from kshtsk/wip-teuthology-branch-master
Ilya Dryomov [Tue, 2 Jun 2020 17:39:38 +0000 (19:39 +0200)]
Merge pull request #35349 from kshtsk/wip-teuthology-branch-master

qa: add .teuthology_branch with `master` contents

Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoqa/suites/rgw/multisite, qa/suites/rgw/crypt: whitelist PG_AVAILABILITY 35351/head
Neha Ojha [Tue, 2 Jun 2020 16:58:22 +0000 (16:58 +0000)]
qa/suites/rgw/multisite, qa/suites/rgw/crypt: whitelist PG_AVAILABILITY

This follows b162541ac21e965a304ee6ffe604c43f22fa96c4.
The balancer was turned on by default in
d4fbaf7, as a result of which we might see
PG_AVAILABILITY health warnings when pg-upmap-items are applied.

Fixes: https://tracker.ceph.com/issues/45802
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa: add .teuthology_branch with `master` contents 35349/head
Kyr Shatskyy [Tue, 2 Jun 2020 17:05:30 +0000 (19:05 +0200)]
qa: add .teuthology_branch with `master` contents

This is follow up change for:

    teuthology-suite: automate -t argument default value
    https://github.com/ceph/teuthology/pull/1490

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoMerge pull request #35321 from tchaikov/wip-rgw-reshard-cleanup
Casey Bodley [Tue, 2 Jun 2020 16:36:34 +0000 (12:36 -0400)]
Merge pull request #35321 from tchaikov/wip-rgw-reshard-cleanup

rgw/reshard: use defined variable

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw/reshard: use defined variable 35321/head
Kefu Chai [Sat, 30 May 2020 04:51:14 +0000 (12:51 +0800)]
rgw/reshard: use defined variable

use the defined reference for more concise code, this silences the
warning like:
```
../src/rgw/rgw_reshard.cc:530:15: warning: unused variable ‘bucket’ [-Wunused-variable]
  530 |   rgw_bucket& bucket = bucket_info.bucket;
      |               ^~~~~~
```

also move `ret` close to where it is used for the first time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorbd-mirror: don't hold (stale) copy of local image journal pointer 35339/head
Jason Dillaman [Mon, 1 Jun 2020 18:09:34 +0000 (14:09 -0400)]
rbd-mirror: don't hold (stale) copy of local image journal pointer

The exclusive-lock manages its life cycle and can close the journal
at any point. This can result in rbd-mirror deferencing a freed pointer
or a journal state machine that is in an unexpected state.

Fixes: https://tracker.ceph.com/issues/45803
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #34782 into master
Patrick Donnelly [Tue, 2 Jun 2020 14:40:39 +0000 (07:40 -0700)]
Merge PR #34782 into master

* refs/pull/34782/head:
qa/tasks/cephfs/mount.py: remove netns name parsing in mountpoint setter
qa/tasks/vstart_runner.py: add kwargs parameter to ignore the ones it does not understand

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoglobal: don't override the pidfile-locking errno. 35337/head
Radoslaw Zarzynski [Mon, 1 Jun 2020 11:27:49 +0000 (13:27 +0200)]
global: don't override the pidfile-locking errno.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoglobal: mark pidfile_write() with [[nodiscard]].
Radoslaw Zarzynski [Fri, 29 May 2020 14:49:34 +0000 (16:49 +0200)]
global: mark pidfile_write() with [[nodiscard]].

The goal is to never implicitly ignore errors that the function can
return, particularly the failure on pidfile locking due to the file
being hold by another instance. This problem happened recently in
crimson-osd.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: die when cannot lock pidfile.
Radoslaw Zarzynski [Fri, 29 May 2020 14:43:46 +0000 (16:43 +0200)]
crimson/osd: die when cannot lock pidfile.

The motivation is to assert-with-human-readable-error on spawning
a crimson-osd with already occupied ID.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35264 from pritha-srivastava/wip-rgw-gc-urgent-data-overwrite
Casey Bodley [Tue, 2 Jun 2020 13:42:15 +0000 (09:42 -0400)]
Merge pull request #35264 from pritha-srivastava/wip-rgw-gc-urgent-data-overwrite

cls/rgw_gc: Clearing off urgent data in bufferlist, before

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
5 years agoMerge pull request #35249 from rhcs-dashboard/wip-45705-master
Lenz Grimmer [Tue, 2 Jun 2020 13:11:20 +0000 (15:11 +0200)]
Merge pull request #35249 from rhcs-dashboard/wip-45705-master

mgr/dashboard: add API team to CODEOWNERS

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35276 from tspmelo/wip-make-langs
Lenz Grimmer [Tue, 2 Jun 2020 13:07:46 +0000 (15:07 +0200)]
Merge pull request #35276 from tspmelo/wip-make-langs

mgr/dashboard: Fix dashboard languages make configuration

Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agovstart_runner: don't use namespaces by default 34838/head
Rishabh Dave [Tue, 2 Jun 2020 10:44:40 +0000 (16:14 +0530)]
vstart_runner: don't use namespaces by default

And add option --usens to vstart_runner.py to use namespaces.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agocephadm: fix package is not running when enabler is not none 35342/head
gk [Tue, 2 Jun 2020 05:34:57 +0000 (13:34 +0800)]
cephadm: fix package is not running when enabler is not none

Signed-off-by: shinhwagk <shanghai_sl@hotmail.com>
5 years agoqa/cephfs: run nsenter commands with superuser privileges
Rishabh Dave [Wed, 29 Apr 2020 18:10:16 +0000 (23:40 +0530)]
qa/cephfs: run nsenter commands with superuser privileges

And add a method that sets self.fuse_daemon.subproc.pid to the PID of
the process that doesn't have sudo in its arguments. For example, when
"sudo ceph-fuse /mnt/cephfs" is run on the shell, it launches process
with arguments "ceph-fuse /mnt/cephfs". The added method gets PID of
latter/child process and sets that as the fuse daemon's PID. Not doing
so kills the former/parent process but the not the child process.

Also, since we are around cleanup this method a bit.

Fixes: https://tracker.ceph.com/issues/45339
Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #35313 from sebastian-philipp/qa-py2-filenotfound
Sebastian Wagner [Tue, 2 Jun 2020 10:58:25 +0000 (12:58 +0200)]
Merge pull request #35313 from sebastian-philipp/qa-py2-filenotfound

qa/cephadm: FileNotFoundError doesn't exist in py2

Reviewed-by: Tim Serong <tserong@suse.com>
5 years agoMerge pull request #35281 from matthewoliver/cephadm_reset_stale_connections
Sebastian Wagner [Tue, 2 Jun 2020 10:57:52 +0000 (12:57 +0200)]
Merge pull request #35281 from matthewoliver/cephadm_reset_stale_connections

cephadm: Detect stale and then recreate connections

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34879 from Daniel-Pivonka/cephadm_bootstrap_apply_spec
Sebastian Wagner [Tue, 2 Jun 2020 10:54:38 +0000 (12:54 +0200)]
Merge pull request #34879 from Daniel-Pivonka/cephadm_bootstrap_apply_spec

mgr/cephadm: cephadm bootstrap add --apply-spec <cluster.yaml>

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35124 from jmolmo/wip-doc-update-devices
Sebastian Wagner [Tue, 2 Jun 2020 10:47:54 +0000 (12:47 +0200)]
Merge pull request #35124 from jmolmo/wip-doc-update-devices

doc: New section in device management

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35330 from yanghonggang/master
Kefu Chai [Tue, 2 Jun 2020 10:35:12 +0000 (18:35 +0800)]
Merge pull request #35330 from yanghonggang/master

msg/Message.cc: fix build error when WITH_BLKIN is on

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