]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agorgw: dont use RGWOmapAppend for error_repo 34094/head
Casey Bodley [Tue, 31 Mar 2020 13:23:29 +0000 (09:23 -0400)]
rgw: dont use RGWOmapAppend for error_repo

the error_repo writes need to be synchronous

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: remove per-bucket-shard sync leases
Casey Bodley [Tue, 31 Mar 2020 13:23:27 +0000 (09:23 -0400)]
rgw: remove per-bucket-shard sync leases

bucket sync now gets a const pointer to the DataSyncShard's lease to
check whether the lease has expired

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: ContinuousLeaseCR::is_locked() is const
Casey Bodley [Tue, 31 Mar 2020 13:23:26 +0000 (09:23 -0400)]
rgw: ContinuousLeaseCR::is_locked() is const

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: ContinuousLeaseCR doesn't need locks/atomics
Casey Bodley [Tue, 31 Mar 2020 13:23:25 +0000 (09:23 -0400)]
rgw: ContinuousLeaseCR doesn't need locks/atomics

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: use objv_tracker to read/write bucket sync status
Casey Bodley [Tue, 31 Mar 2020 13:23:23 +0000 (09:23 -0400)]
rgw: use objv_tracker to read/write bucket sync status

use cls_version on bucket sync status to detect racing writes - whether
from other gateways, or from radosgw-admin commands like 'bucket sync'
or 'bucket sync init'

classes that require a non-null version tracker take it by reference

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: RadosRemoveCR takes objv_tracker
Casey Bodley [Tue, 31 Mar 2020 13:23:22 +0000 (09:23 -0400)]
rgw: RadosRemoveCR takes objv_tracker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: SimpleRadosReadAttrsCR takes objv_tracker
Casey Bodley [Tue, 31 Mar 2020 13:23:20 +0000 (09:23 -0400)]
rgw: SimpleRadosReadAttrsCR takes objv_tracker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: SysObj service applies objv on set_attrs
Casey Bodley [Tue, 31 Mar 2020 13:23:19 +0000 (09:23 -0400)]
rgw: SysObj service applies objv on set_attrs

like write(), we need to apply the writev back to readv

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: data sync no longer needs index_key_to_marker
Casey Bodley [Tue, 31 Mar 2020 13:23:17 +0000 (09:23 -0400)]
rgw: data sync no longer needs index_key_to_marker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: DataSyncSingleEntry loops based on progress
Casey Bodley [Tue, 31 Mar 2020 13:23:16 +0000 (09:23 -0400)]
rgw: DataSyncSingleEntry loops based on progress

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: DataSyncSingleEntry does not duplicate bucket sync
Casey Bodley [Tue, 31 Mar 2020 13:23:14 +0000 (09:23 -0400)]
rgw: DataSyncSingleEntry does not duplicate bucket sync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: DataSyncSingleEntry takes cached state
Casey Bodley [Tue, 31 Mar 2020 13:23:12 +0000 (09:23 -0400)]
rgw: DataSyncSingleEntry takes cached state

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agotest/rgw: add unittest_rgw_bucket_sync_cache
Casey Bodley [Tue, 31 Mar 2020 13:23:11 +0000 (09:23 -0400)]
test/rgw: add unittest_rgw_bucket_sync_cache

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add data sync cache for bucket shards
Casey Bodley [Tue, 31 Mar 2020 13:23:09 +0000 (09:23 -0400)]
rgw: add data sync cache for bucket shards

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: track last timestamp written for bucket sync
Casey Bodley [Tue, 31 Mar 2020 13:23:07 +0000 (09:23 -0400)]
rgw: track last timestamp written for bucket sync

bucket sync remembers the latest timestamp that it successfully wrote to
the bucket sync status. data sync can use this to make future decisions
without having to reread its sync status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: store timestamp in InitBucketShardSyncStatus
Casey Bodley [Tue, 31 Mar 2020 13:23:05 +0000 (09:23 -0400)]
rgw: store timestamp in InitBucketShardSyncStatus

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add struct data_sync_obligation
Casey Bodley [Tue, 31 Mar 2020 13:23:03 +0000 (09:23 -0400)]
rgw: add struct data_sync_obligation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add sync_single_entry() helper function
Casey Bodley [Tue, 31 Mar 2020 13:23:01 +0000 (09:23 -0400)]
rgw: add sync_single_entry() helper function

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: use optional for DataSyncShardMarkerTrack
Casey Bodley [Tue, 31 Mar 2020 13:22:59 +0000 (09:22 -0400)]
rgw: use optional for DataSyncShardMarkerTrack

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: parse bucket-shard before DataSyncSingleEntry
Casey Bodley [Tue, 31 Mar 2020 13:22:58 +0000 (09:22 -0400)]
rgw: parse bucket-shard before DataSyncSingleEntry

it's easier for DataSyncShard to handle parsing failures before calling
MarkerTrack::start() and DataSyncSingleEntry

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: data sync tracks timestamps for error repo
Casey Bodley [Tue, 31 Mar 2020 13:22:56 +0000 (09:22 -0400)]
rgw: data sync tracks timestamps for error repo

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add error repo primitives with timestamp comparisons
Casey Bodley [Tue, 31 Mar 2020 13:22:54 +0000 (09:22 -0400)]
rgw: add error repo primitives with timestamp comparisons

the sync error repo stores omap keys for each datalog entry that needs a
retry. this adds a new primitive for that, that also stores a timestamp
with each omap key, and will only allow overwrites/removals when a newer
timestamp is provided

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: DataSyncShardCR uses GetOmapVals
Casey Bodley [Tue, 31 Mar 2020 13:22:53 +0000 (09:22 -0400)]
rgw: DataSyncShardCR uses GetOmapVals

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: add CR for omap_get_vals()
Casey Bodley [Tue, 31 Mar 2020 13:22:51 +0000 (09:22 -0400)]
rgw: add CR for omap_get_vals()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: incremental bucket sync status stores timestamp
Casey Bodley [Tue, 31 Mar 2020 13:22:48 +0000 (09:22 -0400)]
rgw: incremental bucket sync status stores timestamp

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agocommon: add [coarse_]real_time support to ceph_json.h
Casey Bodley [Tue, 31 Mar 2020 13:22:46 +0000 (09:22 -0400)]
common: add [coarse_]real_time support to ceph_json.h

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: don't write to error repo for async notification failures
Casey Bodley [Tue, 31 Mar 2020 13:22:43 +0000 (09:22 -0400)]
rgw: don't write to error repo for async notification failures

async notifications are just hints, and don't imply an obligation to
sync the bucket shard. if we fail to sync, don't write it to the error
repo for retry. we'll see the change later when processing the datalog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: remove unused RGWWaitCR
Casey Bodley [Tue, 31 Mar 2020 13:22:11 +0000 (09:22 -0400)]
rgw: remove unused RGWWaitCR

coroutines that want to sleep should just call RGWCoroutine::wait()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33982 from cbodley/wip-cls-cmpomap
Casey Bodley [Mon, 13 Apr 2020 15:03:28 +0000 (11:03 -0400)]
Merge pull request #33982 from cbodley/wip-cls-cmpomap

cls/cmpomap: add cls module for CMPXATTR-like functionality in omap

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agooptions: add cmpomap to osd_class_load_list 33982/head
Casey Bodley [Wed, 1 Apr 2020 17:51:47 +0000 (13:51 -0400)]
options: add cmpomap to osd_class_load_list

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agotest: add ceph_test_cls_cmpomap
Casey Bodley [Sun, 15 Mar 2020 21:50:59 +0000 (17:50 -0400)]
test: add ceph_test_cls_cmpomap

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agocls/cmpomap: add cls module for CMPXATTR-like functionality in omap
Casey Bodley [Fri, 13 Mar 2020 20:09:50 +0000 (16:09 -0400)]
cls/cmpomap: add cls module for CMPXATTR-like functionality in omap

provides a cmp_vals() op similar to librados' omap_cmp(), but with full
support for the comparison modes and operations from cmpxattr(). if any
of the requested key/value comparisons are unsuccessful, the op fails
with -ECANCELED

cmp_vals() can be composed with other ops like set_omap_vals() to make
make them conditional on the successful comparison of all existing values

also provides cmp_set_vals() and cmp_rm_keys(), which apply a mutation
to only the keys that compare successfully. these enable batch
operations where, unlike cmp_vals() + set_omap_vals(), you don't want
one failed comparison to prevent operations on unrelated keys

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoobjclass: add cls_cxx_map_get_vals_by_keys
Casey Bodley [Fri, 13 Mar 2020 18:42:28 +0000 (14:42 -0400)]
objclass: add cls_cxx_map_get_vals_by_keys

add an objclass api for CEPH_OSD_OP_OMAPGETVALSBYKEYS

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoobjclass: expose cls_cxx_map_get_val in header
Casey Bodley [Sun, 15 Mar 2020 23:02:06 +0000 (19:02 -0400)]
objclass: expose cls_cxx_map_get_val in header

this was defined in osd/objclass.cc but not declared in objclass/objclass.h

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agobuffer: add missing != operator for bufferlist
Casey Bodley [Mon, 16 Mar 2020 15:58:51 +0000 (11:58 -0400)]
buffer: add missing != operator for bufferlist

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agobuffer: comparison operators take const bufferlist&
Casey Bodley [Mon, 16 Mar 2020 15:58:00 +0000 (11:58 -0400)]
buffer: comparison operators take const bufferlist&

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34455 from jtlayton/wip-44963
Jeff Layton [Mon, 13 Apr 2020 11:22:06 +0000 (07:22 -0400)]
Merge pull request #34455 from jtlayton/wip-44963

client: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps

5 years agoMerge pull request #33761 from jtlayton/wip-44441
Jeff Layton [Mon, 13 Apr 2020 11:20:40 +0000 (07:20 -0400)]
Merge pull request #33761 from jtlayton/wip-44441

doc: document wsync and nowsync mount options in mount.ceph(8)

5 years agoMerge pull request #34231 from majianpeng/bluefs-fix-invalidate-cache-bug
Kefu Chai [Mon, 13 Apr 2020 03:03:32 +0000 (11:03 +0800)]
Merge pull request #34231 from majianpeng/bluefs-fix-invalidate-cache-bug

os/bluestore: don't foreget invalidate cache of FileReaderBuffer.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #34272 into master
Sage Weil [Sun, 12 Apr 2020 22:33:57 +0000 (17:33 -0500)]
Merge PR #34272 into master

* refs/pull/34272/head:
mgr/PyModuleRegistry: ignore 'obsolete' modules
qa/suites/fs/upgrade: start with msgr2
qa/suites/fs/upgrade: s/mimic/nautilus/
qa/suites/upgrade: whitelist when orchestrator_cli can't be loaded
qa/standalone/mon/msgr-v2-transition: remove test
mon/MgrMonitor: disable orchestrator_cli if >= octopus
qa/suites/ugprade: remove mimic -> pacific upgrade tests
qa/standalone/mon/misc: update TEST_mon_features
mon/MgrMap: use always_on_modules from most recent release
mon/MonCommands: require-osd-release pacific
qa/suites/rados/thrash-old-clients: adjust octopus package list for el7
doc/dev/release-kickoff-checklist: include ceph-build change
qa/workunits/cephtool/test.sh: fix require-osd-release test
mon/MgrMonitor: define mgr modules for pacific
doc/dev/release-checklists: generalize
doc/dev/release-kickoff-checklist: quotes
qa/suites/rados/thrash-old-clients/1-install/octopus
qa/releases/pacific.yaml
mds/cephfs_features: CEPHFS_CURRENT_RELEASE
doc/dev/release-kickoff-checklist: a few other items
osd: remove redundant check
mon/OSDMonitor: make pacific changes
mon/mon_types: add mon pacific feature
include/ceph_features: define SERVER_PACIFIC
include/ceph_features: fix whitespace
mon: persistent INCOMPAT_PACIFIC item
ceph-volume: __release__ == pacific
script: update backport scripts for now-released octopus
common: pacific release constants
doc/dev/release-kickoff-checklist
src/ceph_release: pacific, 16, dev
CMakeLists: 16.0.0

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #34525 from Dmole/patch-5
Sebastian Wagner [Sat, 11 Apr 2020 19:24:00 +0000 (21:24 +0200)]
Merge pull request #34525 from Dmole/patch-5

doc: Update index.rst

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #32297 from varshar16/wip-mgr-nfs-ganesha-exports
Sebastian Wagner [Sat, 11 Apr 2020 19:22:56 +0000 (21:22 +0200)]
Merge pull request #32297 from varshar16/wip-mgr-nfs-ganesha-exports

Create and delete exports for nfs ganesha with mgr volume

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/PyModuleRegistry: ignore 'obsolete' modules 34272/head
Sage Weil [Sat, 11 Apr 2020 14:51:46 +0000 (09:51 -0500)]
mgr/PyModuleRegistry: ignore 'obsolete' modules

Old modules may be in the mgrmap (and always_on) but no longer exist.  Do
not try to load those or raise errors about them.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoUpdate index.rst 34525/head
Tim [Sat, 11 Apr 2020 12:25:51 +0000 (08:25 -0400)]
Update index.rst

clean up "only only"

Signed-off-by: Tim <elatllat@gmail.com>
5 years agoMerge pull request #34348 from ifed01/wip-ifed-fix-enforce
Kefu Chai [Sat, 11 Apr 2020 04:32:34 +0000 (12:32 +0800)]
Merge pull request #34348 from ifed01/wip-ifed-fix-enforce

os/bluestore: apply bluestore_debug_enforce_settings when choosing mi…

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34421 from ifed01/wip-ifed-kill-buf-in-read
Kefu Chai [Sat, 11 Apr 2020 04:28:10 +0000 (12:28 +0800)]
Merge pull request #34421 from ifed01/wip-ifed-kill-buf-in-read

os/bluestore: kill buf param in BlueFS::read

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
5 years agoMerge pull request #34468 from tchaikov/wip-mgr-telegraph
Kefu Chai [Sat, 11 Apr 2020 04:26:37 +0000 (12:26 +0800)]
Merge pull request #34468 from tchaikov/wip-mgr-telegraph

mgr/telegraf: catch FileNotFoundError exception

Reviewed-by: Wido den Hollander <wido@42on.com>
5 years agoMerge pull request #34084 from sebastian-philipp/cephadm-host-ls-offline
Sebastian Wagner [Fri, 10 Apr 2020 20:56:20 +0000 (22:56 +0200)]
Merge pull request #34084 from sebastian-philipp/cephadm-host-ls-offline

mgr/cephadm: enhance `host ls`

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #34382 from mgfritch/cephadm-nfs-grace
Sebastian Wagner [Fri, 10 Apr 2020 20:50:42 +0000 (22:50 +0200)]
Merge pull request #34382 from mgfritch/cephadm-nfs-grace

cephadm: add config required for ganesha grace

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #34488 from tchaikov/wip-dmclock
Kefu Chai [Fri, 10 Apr 2020 16:46:06 +0000 (00:46 +0800)]
Merge pull request #34488 from tchaikov/wip-dmclock

dmclock: pick up change to s/uint/unsigned/

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #34508 from tchaikov/wip-45022
Kefu Chai [Fri, 10 Apr 2020 11:34:03 +0000 (19:34 +0800)]
Merge pull request #34508 from tchaikov/wip-45022

selinux: add "type http_cache_port_t" in require section

Reviewed-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
5 years agoMerge pull request #34494 from idryomov/wip-krbd-unmap-spacing
Ilya Dryomov [Fri, 10 Apr 2020 08:29:57 +0000 (10:29 +0200)]
Merge pull request #34494 from idryomov/wip-krbd-unmap-spacing

tests: update unmap.t for table spacing changes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoselinux: add "type http_cache_port_t" in require section 34508/head
Kefu Chai [Fri, 10 Apr 2020 06:27:48 +0000 (14:27 +0800)]
selinux: add "type http_cache_port_t" in require section

this addresses the regression introduced by
611a2a7ce1713cf92797b19d8a9a93a7dfc68fa5

Fixes: https://tracker.ceph.com/issues/45022
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34499 from ceph/wip-rtd
Kefu Chai [Fri, 10 Apr 2020 01:43:28 +0000 (09:43 +0800)]
Merge pull request #34499 from ceph/wip-rtd

doc: enable Read the Docs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34487 from tchaikov/wip-test-cronjob-py3
Kefu Chai [Fri, 10 Apr 2020 01:42:42 +0000 (09:42 +0800)]
Merge pull request #34487 from tchaikov/wip-test-cronjob-py3

qa/tests: pass "-t 2" to teuthology-suite when testing non-master bra…

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agodoc: add in-doc search from read the docs 34499/head
Kefu Chai [Thu, 9 Apr 2020 15:14:42 +0000 (23:14 +0800)]
doc: add in-doc search from read the docs

readthedocs-sphinx-search features better user experience than the
builtin search offered by sphinx

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc: use plantweb as fallback of sphinx-ditaa
Kefu Chai [Thu, 9 Apr 2020 13:25:39 +0000 (21:25 +0800)]
doc: use plantweb as fallback of sphinx-ditaa

RTD does not support installing system packages, the only ways to install
dependencies are setuptools and pip. while ditaa is a tool written in
Java. so we need to find a native python tool allowing us to render ditaa
images. plantweb is able to the web service for rendering the ditaa
diagram. so let's use it as a fallback if "ditaa" is not around.

also start a new line after the directive, otherwise planweb server will
return 500 at seeing the diagram.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/cephadm: add CACHEINODE and EXPORT_DEFAULTS sections 34382/head
Michael Fritch [Thu, 9 Apr 2020 20:49:14 +0000 (14:49 -0600)]
mgr/cephadm: add CACHEINODE and EXPORT_DEFAULTS sections

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agomgr/cephadm: add config required for ganesha grace
Michael Fritch [Thu, 2 Apr 2020 19:12:40 +0000 (13:12 -0600)]
mgr/cephadm: add config required for ganesha grace

adds minimal config for ganesha-rados-grace

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm: add userid during grace add/remove
Michael Fritch [Thu, 2 Apr 2020 16:31:39 +0000 (10:31 -0600)]
cephadm: add userid during grace add/remove

ganesha-rados-grace needs a rados userid to add/remove from the grace db

Mar 27 10:05:25 host1 bash[11684]: rados_connect: -13
Mar 27 10:05:25 host1 bash[11684]: Can't connect to cluster: -13

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34502 from ceph/kalebskeithley-patch-1-2
Daniel Gryniewicz [Thu, 9 Apr 2020 18:24:09 +0000 (14:24 -0400)]
Merge pull request #34502 from ceph/kalebskeithley-patch-1-2

Update ceph.te

5 years agoMerge pull request #34484 from cbodley/wip-sub-spawn
Matt Benjamin [Thu, 9 Apr 2020 18:17:52 +0000 (14:17 -0400)]
Merge pull request #34484 from cbodley/wip-sub-spawn

spawn: update submodule

5 years agoUpdate ceph.te 34502/head
kalebskeithley [Thu, 9 Apr 2020 17:00:57 +0000 (13:00 -0400)]
Update ceph.te

Fixes: https://tracker.ceph.com/issues/45022
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
5 years agodoc/conf.py: exclude pybindings docs from build for RTD
Kefu Chai [Thu, 9 Apr 2020 08:51:06 +0000 (16:51 +0800)]
doc/conf.py: exclude pybindings docs from build for RTD

because it'd difficult to prepare (dummy) librados,libcephfs and librbd for
their python bindings in the building environment offered by Read the Docs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34314 from ishanrai05/html-cleanup
Lenz Grimmer [Thu, 9 Apr 2020 14:15:50 +0000 (16:15 +0200)]
Merge pull request #34314 from ishanrai05/html-cleanup

mgr/dashboard: Clean up HTML

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34223 from liewegas/cephadm-dashboard-grafana-ssl-verify
Sebastian Wagner [Thu, 9 Apr 2020 14:10:57 +0000 (16:10 +0200)]
Merge pull request #34223 from liewegas/cephadm-dashboard-grafana-ssl-verify

mgr/cephadm: disable dashboard's grafana cert ssl_verify if we generate it

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34454 from mgfritch/cephadm-osd-fsid-test
Sebastian Wagner [Thu, 9 Apr 2020 14:07:34 +0000 (16:07 +0200)]
Merge pull request #34454 from mgfritch/cephadm-osd-fsid-test

qa/workunits/cephadm/test_cephadm.sh: add fsid to ceph-volume cmds

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34249 from mgfritch/cephadm-nfs-common-config
Sebastian Wagner [Thu, 9 Apr 2020 14:05:59 +0000 (16:05 +0200)]
Merge pull request #34249 from mgfritch/cephadm-nfs-common-config

mgr/cephadm: nfs common config

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #34485 from mgfritch/cephadm-no-func
Sebastian Wagner [Thu, 9 Apr 2020 14:03:36 +0000 (16:03 +0200)]
Merge pull request #34485 from mgfritch/cephadm-no-func

cephadm: show error when no command is specified

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34411 from votdev/issue_44589
Lenz Grimmer [Thu, 9 Apr 2020 11:25:11 +0000 (13:25 +0200)]
Merge pull request #34411 from votdev/issue_44589

mgr/dashboard: lint error on plugins/debug.py

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agotests: update unmap.t for table spacing changes 34494/head
Ilya Dryomov [Thu, 9 Apr 2020 10:41:34 +0000 (12:41 +0200)]
tests: update unmap.t for table spacing changes

Introduced in 4d42b4c5a0ed ("common/TextTable: default to 2 spaces
separating columns") and 41f003518a07 ("common/TextTable: only pad
between columns").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #34452 from rhcs-dashboard/fix-44923-master
Lenz Grimmer [Thu, 9 Apr 2020 10:20:41 +0000 (12:20 +0200)]
Merge pull request #34452 from rhcs-dashboard/fix-44923-master

mgr/dashboard: use FQDN for failover redirection

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #34471 from idryomov/wip-rbd-fio-rstrip
Ilya Dryomov [Thu, 9 Apr 2020 09:37:14 +0000 (11:37 +0200)]
Merge pull request #34471 from idryomov/wip-rbd-fio-rstrip

qa/tasks/rbd_fio: unbreak after the conversion from StringIO

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoreadthedocs: add .readthedocs.yml
Kefu Chai [Thu, 9 Apr 2020 07:35:15 +0000 (15:35 +0800)]
readthedocs: add .readthedocs.yml

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34408 from dillaman/wip-44727
Mykola Golub [Thu, 9 Apr 2020 07:13:57 +0000 (10:13 +0300)]
Merge pull request #34408 from dillaman/wip-44727

rbd-mirror: improved replication statistics

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agodmclock: pick up change to s/uint/unsigned/ 34488/head
Kefu Chai [Thu, 9 Apr 2020 04:30:30 +0000 (12:30 +0800)]
dmclock: pick up change to s/uint/unsigned/

to address the FTBFS with musl libc which does not define uint.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tests: pass "-t 2" to teuthology-suite when testing non-master branches 34487/head
Kefu Chai [Thu, 9 Apr 2020 03:18:58 +0000 (11:18 +0800)]
qa/tests: pass "-t 2" to teuthology-suite when testing non-master branches

-t is an alias of "--teuthology-branch" which defaults to master. we
have a "py2" branch in teuthology. that branch is compatible with
python2, and the teuthology-worker is executed in a Python2 environment,
so all qa suites tested using "py2" branch of teuthology should work
fine as long as they are Python2 compatible. currently, all LTS branches
are compatible with Python2, and only master is also compatible with
Python3. but we plan to migrate master and octopus' qa suites to
python3 to ease the pain of maintainance in long term.

to achieve this goal, in this change, all non-master branches are now
tested using the "py2" teuthology branch.

once the python3 compatible changes are backported to octopus, "-t 2"
options will be removed from the command lines testing octopus.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34264 from tchaikov/wip-qa-py3
Kefu Chai [Thu, 9 Apr 2020 02:08:44 +0000 (10:08 +0800)]
Merge pull request #34264 from tchaikov/wip-qa-py3

qa/tasks: be python3 compatible

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34284 from liewegas/followon-34266-cleanup
Kefu Chai [Thu, 9 Apr 2020 00:39:27 +0000 (08:39 +0800)]
Merge pull request #34284 from liewegas/followon-34266-cleanup

mgr/DaemonServer: add missing ceph_abort

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/suites/fs/upgrade: start with msgr2
Sage Weil [Wed, 8 Apr 2020 20:46:36 +0000 (15:46 -0500)]
qa/suites/fs/upgrade: start with msgr2

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: show error when no command is specified 34485/head
Michael Fritch [Wed, 8 Apr 2020 20:42:12 +0000 (14:42 -0600)]
cephadm: show error when no command is specified

Traceback (most recent call last):
  File "./cephadm", line 4452, in <module>
    if args.func != command_check_host:
AttributeError: 'Namespace' object has no attribute 'func'

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoqa/workunits/cephadm/test_cephadm.sh: use fsid during dump_log 34454/head
Michael Fritch [Wed, 8 Apr 2020 19:35:02 +0000 (13:35 -0600)]
qa/workunits/cephadm/test_cephadm.sh: use fsid during dump_log

needed when running with multiple ceph clusters

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34414 from yuvalif/add_timeout_to_http_client
Casey Bodley [Wed, 8 Apr 2020 19:35:11 +0000 (15:35 -0400)]
Merge pull request #34414 from yuvalif/add_timeout_to_http_client

rgw/http: add timeout to http client

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agospawn: update submodule 34484/head
Casey Bodley [Wed, 8 Apr 2020 18:40:09 +0000 (14:40 -0400)]
spawn: update submodule

pulls in fixes for exception handling, and support for multiple return
values with std::tuple<>

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34463 from jan--f/c-v-batch-filter-check-lvs-before-access
Jan Fajerski [Wed, 8 Apr 2020 16:07:06 +0000 (18:07 +0200)]
Merge pull request #34463 from jan--f/c-v-batch-filter-check-lvs-before-access

ceph-volume/batch: check lvs list before access

5 years agoMerge pull request #34472 from jan--f/c-v-noninteractive-batch-idempotency-all-filtered
Jan Fajerski [Wed, 8 Apr 2020 15:14:24 +0000 (17:14 +0200)]
Merge pull request #34472 from jan--f/c-v-noninteractive-batch-idempotency-all-filtered

ceph-volume/batch: return success when all devices are filtered

5 years agorbd-mirror: fixed race condition with snapshot sync and shutdown 34408/head
Jason Dillaman [Tue, 7 Apr 2020 16:13:46 +0000 (12:13 -0400)]
rbd-mirror: fixed race condition with snapshot sync and shutdown

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoceph-volume/batch: return success when all devices are filtered 34472/head
Jan Fajerski [Wed, 8 Apr 2020 09:55:57 +0000 (11:55 +0200)]
ceph-volume/batch: return success when all devices are filtered

batch should only return an error if some (but not all) devices are
filtered. When only some devices are filtered the resulting osd layout
could look very different from what a user expects. If all devies are
filtered just return success.

Fixes: https://tracker.ceph.com/issues/44994
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
5 years agoqa/suites/fs/upgrade: s/mimic/nautilus/
Sage Weil [Mon, 6 Apr 2020 21:32:03 +0000 (16:32 -0500)]
qa/suites/fs/upgrade: s/mimic/nautilus/

Also rename 3-compat_client/mimic -> pacific to match the min_client
setting (the naming here confuses me...).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/upgrade: whitelist when orchestrator_cli can't be loaded
Sage Weil [Fri, 3 Apr 2020 22:41:32 +0000 (17:41 -0500)]
qa/suites/upgrade: whitelist when orchestrator_cli can't be loaded

This happens because mgrs may start before mons, or before mons have
published a new mgrmap that disables orchestrator_cli.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/standalone/mon/msgr-v2-transition: remove test
Sage Weil [Wed, 1 Apr 2020 13:31:09 +0000 (08:31 -0500)]
qa/standalone/mon/msgr-v2-transition: remove test

v2 was introduced in nautilus, and we don't support mimic -> pacific
upgrades (only mimic -> octopus).  This test can be removed!

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MgrMonitor: disable orchestrator_cli if >= octopus
Sage Weil [Wed, 1 Apr 2020 13:28:53 +0000 (08:28 -0500)]
mon/MgrMonitor: disable orchestrator_cli if >= octopus

Fixes: https://tracker.ceph.com/issues/44883
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/ugprade: remove mimic -> pacific upgrade tests
Sage Weil [Wed, 1 Apr 2020 13:19:16 +0000 (08:19 -0500)]
qa/suites/ugprade: remove mimic -> pacific upgrade tests

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/standalone/mon/misc: update TEST_mon_features
Sage Weil [Tue, 31 Mar 2020 21:55:50 +0000 (16:55 -0500)]
qa/standalone/mon/misc: update TEST_mon_features

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MgrMap: use always_on_modules from most recent release
Sage Weil [Tue, 31 Mar 2020 21:47:54 +0000 (16:47 -0500)]
mon/MgrMap: use always_on_modules from most recent release

If our release isn't in the always_on_map, say because you just upgraded,
then start with the modules from the last/most recent release.  This
should be sufficient to allow an upgrade when the mon is still the old
release and the mgrmap doesn't tell us what modules we should be enabling.

(Arguably, the always_on_modules should be enshrined in the MgrMap itself
and not in the mon?)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MonCommands: require-osd-release pacific
Sage Weil [Tue, 31 Mar 2020 21:37:44 +0000 (16:37 -0500)]
mon/MonCommands: require-osd-release pacific

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/thrash-old-clients: adjust octopus package list for el7
Sage Weil [Tue, 31 Mar 2020 21:36:13 +0000 (16:36 -0500)]
qa/suites/rados/thrash-old-clients: adjust octopus package list for el7

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc/dev/release-kickoff-checklist: include ceph-build change
Sage Weil [Tue, 31 Mar 2020 13:10:35 +0000 (08:10 -0500)]
doc/dev/release-kickoff-checklist: include ceph-build change

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephtool/test.sh: fix require-osd-release test
Sage Weil [Tue, 31 Mar 2020 12:57:29 +0000 (07:57 -0500)]
qa/workunits/cephtool/test.sh: fix require-osd-release test

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomon/MgrMonitor: define mgr modules for pacific
Sage Weil [Tue, 31 Mar 2020 01:49:27 +0000 (20:49 -0500)]
mon/MgrMonitor: define mgr modules for pacific

Signed-off-by: Sage Weil <sage@redhat.com>