]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocephadm: Make ceph-iscsi SSL aware 34658/head
Matthew Oliver [Tue, 21 Apr 2020 03:38:46 +0000 (13:38 +1000)]
cephadm: Make ceph-iscsi SSL aware

Ceph-iscsi's `rbd-target-api.py` supports listening over SSL if you
provide an SSL cert and key. Originally the script is opinionated and
requires these files to be named `/etc/ceph/iscsi-gateway.{crt,key}`.

When dealing with containers, having to place files inside a container to
enable SSL isn't very clean. To make things easier, like RGW, you can
now place the SSL cert and key data in the mon config-key store.

This will mean there are 2 ways to enable SSL in ceph-iscsi via orch/cephadm.

1. Push the SSL key and cert into the mon config-key under the keys, and
   then make sure api_secure is enabled (requires json):

  iscsi/{clientname}/iscsi-gateway.crt
  iscsi/{clientname}/iscsi-gateway.key

2. Provide the SSL key and cert in the json you pass the orchestrator and
   it'll push them up for you.

Also lockdown the caps so the container can only access iscsi ssl
key/certs.

Signed-off-by: Matthew Oliver <moliver@suse.com>
5 years agoMerge pull request #34616 from ifed01/wip-ifed-fix-upgrade-super 34263/head
Yuri Weinstein [Wed, 29 Apr 2020 16:24:02 +0000 (09:24 -0700)]
Merge pull request #34616 from ifed01/wip-ifed-fix-upgrade-super

os/bluestore: invoke _prepare_ondisk_format_super as the last op

Reviewed-by: Greg Farnum <gfarnum@redhat
5 years agoMerge pull request #33462 from s0nea/wip-dashboard-telemetry-report
Lenz Grimmer [Wed, 29 Apr 2020 15:22:50 +0000 (17:22 +0200)]
Merge pull request #33462 from s0nea/wip-dashboard-telemetry-report

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agomgr/dashboard: add telemetry report component 33462/head
Tatjana Dehler [Fri, 21 Feb 2020 09:08:10 +0000 (10:08 +0100)]
mgr/dashboard: add telemetry report component

Add a telemetry component in order to give the user the
possibility to configure the telemetry module in a more
guided fashion. The component offers broader explanations,
shows a preview of the generated report and asks the user
to accept the license before enabling the module.

Fixes: https://tracker.ceph.com/issues/43956
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agomgr/dashboard: handle `textarea` and add tooltip
Tatjana Dehler [Fri, 17 Apr 2020 12:49:05 +0000 (14:49 +0200)]
mgr/dashboard: handle `textarea` and add tooltip

Enhance `Copy2ClipboardButtonDirective` in order to
handle `textarea`s and copy a formatted input.
Add a tooltip to the button, too.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #34818 from idryomov/wip-krbd-tempfile-fixes
Ilya Dryomov [Wed, 29 Apr 2020 13:38:48 +0000 (15:38 +0200)]
Merge pull request #34818 from idryomov/wip-krbd-tempfile-fixes

qa/tasks/rbd{,_fio}: update NamedTemporaryFile usage for python3

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/telemetry: refactor/enhance CLI commands
Tatjana Dehler [Tue, 7 Apr 2020 15:18:27 +0000 (17:18 +0200)]
mgr/telemetry: refactor/enhance CLI commands

1. Move the implementations of the `on` and `off`
command into dedicated methods so that they can
be accessed by other mgr modules via `mgr.remote`.

2. Add a `show-all` command to return the report
and device report at once. Also add a method
`get_report` to make the reports accessible for
other mgr modules as mentioned above.

3. Add two  minor changes and a note where the
gathered data can be found to the Telemetry docu
file.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #34580 from bk201/wip-45106
Lenz Grimmer [Wed, 29 Apr 2020 12:42:47 +0000 (14:42 +0200)]
Merge pull request #34580 from bk201/wip-45106

Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34587 from rhcs-dashboard/async_user_name
Lenz Grimmer [Wed, 29 Apr 2020 12:00:11 +0000 (14:00 +0200)]
Merge pull request #34587 from rhcs-dashboard/async_user_name

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #34733 from sebastian-philipp/cepahdm-15.2.2-release-notes
Sebastian Wagner [Wed, 29 Apr 2020 11:07:56 +0000 (13:07 +0200)]
Merge pull request #34733 from sebastian-philipp/cepahdm-15.2.2-release-notes

PendingReleaseNotes: Add Cephadm for >15.2.1

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #34682 from rhcs-dashboard/fix-45183-master
Lenz Grimmer [Wed, 29 Apr 2020 10:27:32 +0000 (12:27 +0200)]
Merge pull request #34682 from rhcs-dashboard/fix-45183-master

Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34251 from JackSlateur/doc-os-recommendations
Kefu Chai [Wed, 29 Apr 2020 09:43:39 +0000 (17:43 +0800)]
Merge pull request #34251 from JackSlateur/doc-os-recommendations

doc/start/os-recommendations.rst: add Octopus' platform

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/start/os-recommendations.rst: add opensuse, comment centos7 34251/head
Alexandre Bruyelles [Wed, 29 Apr 2020 09:12:20 +0000 (11:12 +0200)]
doc/start/os-recommendations.rst: add opensuse, comment centos7

Signed-off-by: Alexandre Bruyelles <jack@jack.fr.eu.org>
5 years agoPendingReleaseNotes: Add Cephadm for >15.2.1 34733/head
Sebastian Wagner [Fri, 24 Apr 2020 11:47:03 +0000 (13:47 +0200)]
PendingReleaseNotes: Add Cephadm for >15.2.1

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34590 from zdover23/wip-doc-cidr-network-troubleshooting2
Sebastian Wagner [Wed, 29 Apr 2020 08:45:51 +0000 (10:45 +0200)]
Merge pull request #34590 from zdover23/wip-doc-cidr-network-troubleshooting2

ceph/doc: Add guidance for cidr network troubleshooting

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34729 from votdev/issue_43081_show_prom_alerts_in_navbar
Lenz Grimmer [Wed, 29 Apr 2020 08:31:47 +0000 (10:31 +0200)]
Merge pull request #34729 from votdev/issue_43081_show_prom_alerts_in_navbar

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34747 from varshar16/wip-doc-remove-duplicate-ps
Sebastian Wagner [Wed, 29 Apr 2020 07:53:36 +0000 (09:53 +0200)]
Merge pull request #34747 from varshar16/wip-doc-remove-duplicate-ps

doc/mgr/orchestrator: Remove duplicate ps from support table

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34704 from jap/big-endian-day-operator
Kefu Chai [Wed, 29 Apr 2020 03:16:46 +0000 (11:16 +0800)]
Merge pull request #34704 from jap/big-endian-day-operator

osd: Make the _day operator"" internals big-endian.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #34812 from rzarzynski/wip-osd-drop-statechart-from-pgh
Kefu Chai [Wed, 29 Apr 2020 03:15:56 +0000 (11:15 +0800)]
Merge pull request #34812 from rzarzynski/wip-osd-drop-statechart-from-pgh

osd: drop unneeded inclusion of boost::statechart in PG.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34813 from rzarzynski/wip-osd-fix-typo-pglog
Kefu Chai [Wed, 29 Apr 2020 00:24:14 +0000 (08:24 +0800)]
Merge pull request #34813 from rzarzynski/wip-osd-fix-typo-pglog

crimson/osd, osd: fix typos in PG Log-related comments

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34791 from rzarzynski/wip-crimson-backfill-pgtemp-ref
Kefu Chai [Wed, 29 Apr 2020 00:19:53 +0000 (08:19 +0800)]
Merge pull request #34791 from rzarzynski/wip-crimson-backfill-pgtemp-ref

crimson/osd: fix missed ref in ShardServices::send_pg_temp().

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoosd: s/log.bottom/log.tail/ in osd_types.h. 34813/head
Radoslaw Zarzynski [Tue, 21 Apr 2020 18:44:01 +0000 (20:44 +0200)]
osd: s/log.bottom/log.tail/ in osd_types.h.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoosd: fix typo in PGLog.cc.
Radoslaw Zarzynski [Tue, 21 Apr 2020 18:41:50 +0000 (20:41 +0200)]
osd: fix typo in PGLog.cc.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoqa/tasks/rbd_fio: update NamedTemporaryFile usage for python3 34818/head
Ilya Dryomov [Tue, 28 Apr 2020 21:38:05 +0000 (23:38 +0200)]
qa/tasks/rbd_fio: update NamedTemporaryFile usage for python3

Open the file in text mode to avoid 'bytes' objects.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoqa/tasks/rbd: update NamedTemporaryFile usage for python3
Ilya Dryomov [Tue, 28 Apr 2020 21:22:17 +0000 (23:22 +0200)]
qa/tasks/rbd: update NamedTemporaryFile usage for python3

- open the file in text mode to avoid 'bytes' objects

- 'bufsize' is now spelled 'buffering' and switching buffering off
  with 'buffering=0' is only allowed in binary mode.  As we need the
  file to be either in the page cache or on disk before we copy it
  to the remote, call flush().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #34753 from trociny/wip-44938-fixup
Jason Dillaman [Tue, 28 Apr 2020 20:43:19 +0000 (16:43 -0400)]
Merge pull request #34753 from trociny/wip-44938-fixup

qa/workunits/rbd: retry the addition of a mirror pool peer

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoosd: drop unneeded inclusion of boost::statechart in PG.h. 34812/head
Radoslaw Zarzynski [Tue, 21 Apr 2020 18:41:13 +0000 (20:41 +0200)]
osd: drop unneeded inclusion of boost::statechart in PG.h.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #34699 from yison/rwl-image-writeback-cache-seq5
Jason Dillaman [Tue, 28 Apr 2020 18:12:42 +0000 (14:12 -0400)]
Merge pull request #34699 from yison/rwl-image-writeback-cache-seq5

rbd/cache: Replicated Write Log core codes - aio_read

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agocrimson/osd: fix missed ref in ShardServices::send_pg_temp(). 34791/head
Radoslaw Zarzynski [Tue, 21 Apr 2020 18:40:20 +0000 (20:40 +0200)]
crimson/osd: fix missed ref in ShardServices::send_pg_temp().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoqa/workunits/rbd: fix peer_add helper 34753/head
Mykola Golub [Tue, 28 Apr 2020 16:04:43 +0000 (17:04 +0100)]
qa/workunits/rbd: fix peer_add helper

We need to temporary disable "exit on error" mode so it does not
abort when `rbd mirror pool peer add` returns "already exists"
error code.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #34700 from lixiaoy1/early_finish
Jason Dillaman [Tue, 28 Apr 2020 15:22:41 +0000 (11:22 -0400)]
Merge pull request #34700 from lixiaoy1/early_finish

librbd: Return read request early

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34285 from tspmelo/wip-cypress
Lenz Grimmer [Tue, 28 Apr 2020 14:13:28 +0000 (16:13 +0200)]
Merge pull request #34285 from tspmelo/wip-cypress

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #30024 from vumrao/wip-vumrao-41061
Casey Bodley [Tue, 28 Apr 2020 12:29:19 +0000 (08:29 -0400)]
Merge pull request #30024 from vumrao/wip-vumrao-41061

radosgw-admin: add support for --bucket-id in bucket stats command

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agomgr/dashboard: E2E: Add navigateEdit method 34285/head
Tiago Melo [Wed, 22 Apr 2020 13:46:49 +0000 (13:46 +0000)]
mgr/dashboard: E2E: Add navigateEdit method

This method should be use to navigate to the edit page.

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Replace Protractor with Cypress
Tiago Melo [Fri, 13 Mar 2020 01:00:51 +0000 (00:00 -0100)]
mgr/dashboard: Replace Protractor with Cypress

Fixes: https://tracker.ceph.com/issues/44812
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34429 from xxhdx1985126/wip-crimson-recovery-pr
Kefu Chai [Tue, 28 Apr 2020 09:22:06 +0000 (17:22 +0800)]
Merge pull request #34429 from xxhdx1985126/wip-crimson-recovery-pr

crimson: pglog based recovery ---- part 1

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34656 from rhcs-dashboard/44935-custom-cherryPy-header
Lenz Grimmer [Tue, 28 Apr 2020 08:52:53 +0000 (10:52 +0200)]
Merge pull request #34656 from rhcs-dashboard/44935-custom-cherryPy-header

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen <nia@redhat.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 #34748 from neha-ojha/wip-jewel-cleanup
Yuri Weinstein [Tue, 28 Apr 2020 00:05:59 +0000 (17:05 -0700)]
Merge pull request #34748 from neha-ojha/wip-jewel-cleanup

qa/suites/rados: jewel cleanup

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34602 from neha-ojha/wip-45075
Yuri Weinstein [Tue, 28 Apr 2020 00:04:45 +0000 (17:04 -0700)]
Merge pull request #34602 from neha-ojha/wip-45075

qa/standalone/scrub/osd-scrub-repair.sh: fix race in TEST_auto_repair_bluestore_failed

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34595 from rishabh-d-dave/fs-move-run_shell
Gregory Farnum [Mon, 27 Apr 2020 23:35:20 +0000 (16:35 -0700)]
Merge pull request #34595 from rishabh-d-dave/fs-move-run_shell

qa/cephfs: move run_shell to mount.py and add methods for negative testing

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agolibrbd: Return read request early 34700/head
lixiaoy1 [Thu, 23 Apr 2020 10:38:09 +0000 (06:38 -0400)]
librbd: Return read request early

Finish read requests if the total length is 0.

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
5 years agoMerge pull request #34705 from bk201/wip-45149
Laura Paduano [Mon, 27 Apr 2020 08:09:55 +0000 (10:09 +0200)]
Merge pull request #34705 from bk201/wip-45149

mgr/dashboard: fixing RBD purge error in backend

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/dashboard: monitoring menu entry should indicate firing alerts 34729/head
Volker Theile [Fri, 24 Apr 2020 10:18:25 +0000 (12:18 +0200)]
mgr/dashboard: monitoring menu entry should indicate firing alerts

Fixes: https://tracker.ceph.com/issues/43081
Signed-off-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #34752 from tchaikov/fix-test-perf-counters-mgr-get
Kefu Chai [Mon, 27 Apr 2020 04:00:40 +0000 (12:00 +0800)]
Merge pull request #34752 from tchaikov/fix-test-perf-counters-mgr-get

mgr/dashboard: fix API tests to be py3 compatible

Reviewed-by: Xiubo Li <xiubli@redhat.com>
5 years agoMerge pull request #34292 from cbodley/wip-bufferlist-comparison
Kefu Chai [Mon, 27 Apr 2020 03:38:16 +0000 (11:38 +0800)]
Merge pull request #34292 from cbodley/wip-bufferlist-comparison

bufferlist: use iterators for comparison operators

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34090 from trociny/wip-ceph-erasure-code-tool
Kefu Chai [Mon, 27 Apr 2020 03:37:00 +0000 (11:37 +0800)]
Merge pull request #34090 from trociny/wip-ceph-erasure-code-tool

tools/erasure-code: new tool to encode/decode files

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34683 from ifed01/wip-ifed-fix-freelist-label
Kefu Chai [Mon, 27 Apr 2020 03:35:37 +0000 (11:35 +0800)]
Merge pull request #34683 from ifed01/wip-ifed-fix-freelist-label

os/bluestore: fix freelist's meta usage when bdev label is unsupported

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
5 years agoMerge pull request #34588 from ifed01/wip-ifed-lower-spinner-mas
Kefu Chai [Mon, 27 Apr 2020 03:34:14 +0000 (11:34 +0800)]
Merge pull request #34588 from ifed01/wip-ifed-lower-spinner-mas

os/bluestore:  set bluestore_min_alloc_size to 4K for spinners

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34006 from aclamk/wip-rocksdb-sharding
Kefu Chai [Mon, 27 Apr 2020 03:31:53 +0000 (11:31 +0800)]
Merge pull request #34006 from aclamk/wip-rocksdb-sharding

kv/RocksDBStore,os/blustore: shard rocksdb database using column families

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #33790 from bstillwell/add_conf_option_zstd_compression_level
Kefu Chai [Mon, 27 Apr 2020 03:28:05 +0000 (11:28 +0800)]
Merge pull request #33790 from bstillwell/add_conf_option_zstd_compression_level

compressor: Add a config option to specify Zstd compression level

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34635 from tchaikov/wip-mgr-py3
Kefu Chai [Mon, 27 Apr 2020 03:27:19 +0000 (11:27 +0800)]
Merge pull request #34635 from tchaikov/wip-mgr-py3

mgr: drop python2 support

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomgr/dashboard: displaying Service detail inside table 34580/head
Kiefer Chang [Thu, 16 Apr 2020 05:27:21 +0000 (13:27 +0800)]
mgr/dashboard: displaying Service detail inside table

Adapt the changes in https://github.com/ceph/ceph/pull/32747.

Fixes: https://tracker.ceph.com/issues/45106
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agolibrbd: add aio_read test cases 34699/head
Yuan Lu [Fri, 6 Mar 2020 09:39:45 +0000 (17:39 +0800)]
librbd: add aio_read test cases

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add aio_read
Yuan Lu [Tue, 14 Apr 2020 07:58:28 +0000 (15:58 +0800)]
librbd: add aio_read

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agodoc/cephadm/install.rst: Add troubleshooting for 'CIDR' error 34590/head
Zac Dover [Wed, 22 Apr 2020 12:59:56 +0000 (22:59 +1000)]
doc/cephadm/install.rst: Add troubleshooting for 'CIDR' error

add troubleshooting for 'failed to infer CIDR network...' error

See also
https://tracker.ceph.com/issues/44828

Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agocrimson: prevent PG::schedule_event_after from creating daggling future 34429/head
Xuehan Xu [Sun, 26 Apr 2020 03:41:28 +0000 (11:41 +0800)]
crimson: prevent PG::schedule_event_after from creating daggling future

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson/osdmap_gate: sort the blockers in ascending order of map epoch
Xuehan Xu [Wed, 1 Apr 2020 11:52:25 +0000 (19:52 +0800)]
crimson/osdmap_gate: sort the blockers in ascending order of map epoch

When the osdmap_gate got a new map, it's supposed to release blocked ops on
all previous maps section of which is represented by [waiting_peering.begin(),
waiting_peering.upper_bound(epoch)]. So it's essentail that waiting_peering is
ordered in ascending order of the map epoch

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson: keep track of clean_regions/dirty_regions of modifications
Xuehan Xu [Tue, 31 Mar 2020 10:10:33 +0000 (18:10 +0800)]
crimson: keep track of clean_regions/dirty_regions of modifications

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson: add osd interface for recovery messages
Xuehan Xu [Wed, 4 Mar 2020 09:58:24 +0000 (17:58 +0800)]
crimson: add osd interface for recovery messages

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson: add recovery operations oriented request ---- "RecoverySubRequest"
Xuehan Xu [Wed, 4 Mar 2020 09:57:29 +0000 (17:57 +0800)]
crimson: add recovery operations oriented request ---- "RecoverySubRequest"

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson: add pg log based recovery machinery
Xuehan Xu [Wed, 4 Mar 2020 09:56:45 +0000 (17:56 +0800)]
crimson: add pg log based recovery machinery

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson/os: add readv method to futurized_store
Xuehan Xu [Tue, 31 Mar 2020 11:14:45 +0000 (19:14 +0800)]
crimson/os: add readv method to futurized_store

Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson: add background recovery request and necessary interfaces for recover/backfill
Samuel Just [Wed, 4 Mar 2020 09:52:32 +0000 (17:52 +0800)]
crimson: add background recovery request and necessary interfaces for recover/backfill

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agoosd: add some clean ups
Samuel Just [Wed, 4 Mar 2020 09:35:04 +0000 (17:35 +0800)]
osd: add some clean ups

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/osd/osd_operation: add support for AggregateBlocker
Samuel Just [Thu, 16 Jan 2020 19:41:25 +0000 (11:41 -0800)]
crimson/osd/osd_operation: add support for AggregateBlocker

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/osd: introduce scheduler implementations and operation throttler
Samuel Just [Tue, 1 Oct 2019 22:38:20 +0000 (15:38 -0700)]
crimson/osd: introduce scheduler implementations and operation throttler

Signed-off-by: Samuel Just <sjust@redhat.com>
Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agocrimson/osd: wire up local and remote async reservers
Samuel Just [Fri, 20 Sep 2019 22:00:14 +0000 (15:00 -0700)]
crimson/osd: wire up local and remote async reservers

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocommon/AsyncReserver: template out the finisher type
Samuel Just [Mon, 12 Aug 2019 23:36:44 +0000 (16:36 -0700)]
common/AsyncReserver: template out the finisher type

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoosd/PeeringState: eliminate unused cct from PGPool
Samuel Just [Fri, 20 Sep 2019 00:25:00 +0000 (17:25 -0700)]
osd/PeeringState: eliminate unused cct from PGPool

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoosd/PrimaryLogPG: move earliest_backfill to PeeringState
Samuel Just [Thu, 16 Jan 2020 19:40:40 +0000 (11:40 -0800)]
osd/PrimaryLogPG: move earliest_backfill to PeeringState

We'll want this in crimson as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agolibrbd: add WriteLogMap test cases
Yuan Lu [Tue, 14 Apr 2020 07:45:45 +0000 (15:45 +0800)]
librbd: add WriteLogMap test cases

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add LogMap class
Yuan Lu [Tue, 14 Apr 2020 07:08:48 +0000 (15:08 +0800)]
librbd: add LogMap class

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add ReadRequest to handle read
Yuan Lu [Tue, 14 Apr 2020 06:57:23 +0000 (14:57 +0800)]
librbd: add ReadRequest to handle read

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agoMerge pull request #34732 from lxbsz/fs_fix_new
Kefu Chai [Sat, 25 Apr 2020 17:46:30 +0000 (01:46 +0800)]
Merge pull request #34732 from lxbsz/fs_fix_new

qa: misc fixes to run for cephfs qa test

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #31912 from zjcmszh/cmpext
Kefu Chai [Sat, 25 Apr 2020 14:29:57 +0000 (22:29 +0800)]
Merge pull request #31912 from zjcmszh/cmpext

pybind/rados: add Ioctx::cmpext()

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agotest/pybind/test_rados.py: test Ioctx::cmpext() 31912/head
zhangjiao [Thu, 28 Nov 2019 05:21:57 +0000 (13:21 +0800)]
test/pybind/test_rados.py: test Ioctx::cmpext()
Signed-off-by: Zhang Jiao <zhangjiao@cmss.chinamobile.com>
5 years agopybind/rados: add Ioctx:cmpext()
zhangjiao [Thu, 28 Nov 2019 05:15:37 +0000 (13:15 +0800)]
pybind/rados: add Ioctx:cmpext()
Signed-off-by: Zhang Jiao <zhangjiao@cmss.chinamobile.com>
5 years agoMerge pull request #34578 from lxbsz/volume_client_py3
Kefu Chai [Sat, 25 Apr 2020 10:58:43 +0000 (18:58 +0800)]
Merge pull request #34578 from lxbsz/volume_client_py3

qa/volume_client: be python3 compatible

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/cephfs: switch to StringIO to fix byte-like errors 34732/head
Xiubo Li [Thu, 23 Apr 2020 11:21:46 +0000 (07:21 -0400)]
qa/tasks/cephfs: switch to StringIO to fix byte-like errors

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/cephfs: switch to mount_wait() to avoid possible umounted assert
Xiubo Li [Thu, 23 Apr 2020 07:21:09 +0000 (03:21 -0400)]
qa/cephfs: switch to mount_wait() to avoid possible umounted assert

For the fuse mount, it sometime will need to wait to a moment to let
the client get ready.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/tasks/cephfs/fuse_mount: fix possible chmod 1777 error
Xiubo Li [Fri, 24 Apr 2020 02:24:01 +0000 (22:24 -0400)]
qa/tasks/cephfs/fuse_mount: fix possible chmod 1777 error

INFO:teuthology.orchestra.run.smithi13a2:> (cd /home/ubuntu/cephtest && exec sudo chmod 1777 /home/ubuntu/cephtest/mnt.2)
INFO:teuthology.orchestra.run.smithi132.stderr:chmod: changing permissions of '/home/ubuntu/cephtest/mnt.2': Permission denied
DEBUG:teuthology.orchestra.run:got remote process result: 1

Here just wait and rety for 10 times.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/tasks/vstart_runner: remove the stdin str type check
Xiubo Li [Thu, 23 Apr 2020 11:39:31 +0000 (07:39 -0400)]
qa/tasks/vstart_runner: remove the stdin str type check

For the "ceph-dencoder" it will use the byte type data.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/cephfs: fix AssertionError: CommandFailedError not raised under py3
Xiubo Li [Tue, 21 Apr 2020 02:22:55 +0000 (22:22 -0400)]
qa/cephfs: fix AssertionError: CommandFailedError not raised under py3

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/workunits/rbd: retry the addition of a mirror pool peer
Mykola Golub [Sat, 25 Apr 2020 07:36:25 +0000 (08:36 +0100)]
qa/workunits/rbd: retry the addition of a mirror pool peer

fb4311f5 has fixed this for setup, but "remove mirroring pool"
test needs fixing too.

Fixes: https://tracker.ceph.com/issues/44938
Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #34697 from dillaman/wip-44596
Mykola Golub [Sat, 25 Apr 2020 07:29:01 +0000 (10:29 +0300)]
Merge pull request #34697 from dillaman/wip-44596

rbd-mirror: skip snapshot image-sync for newly created/cloned images

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #34751 from tchaikov/wip-doc-fix
Kefu Chai [Sat, 25 Apr 2020 02:58:40 +0000 (10:58 +0800)]
Merge pull request #34751 from tchaikov/wip-doc-fix

doc/releases/mimic.rst: add title underline

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #34741 from tchaikov/wip-teuthology-cronjobs-mimic
Kefu Chai [Sat, 25 Apr 2020 02:23:08 +0000 (10:23 +0800)]
Merge pull request #34741 from tchaikov/wip-teuthology-cronjobs-mimic

qa/tests: pass "-t 2" to teuthology-suite when testing mimic

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agomgr/dashboard: fix API tests 34752/head
Alfonso Martínez [Fri, 24 Apr 2020 08:53:24 +0000 (10:53 +0200)]
mgr/dashboard: fix API tests

* test_perf_counters_mgr_get
* test_selftest_cluster_log

Fixes: https://tracker.ceph.com/issues/45170
Fixes: https://tracker.ceph.com/issues/45246
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agoqa/tasks/vstart_runner.py: use StringIO for capturing text
Kefu Chai [Sat, 25 Apr 2020 01:47:00 +0000 (09:47 +0800)]
qa/tasks/vstart_runner.py: use StringIO for capturing text

to be consistent with 8bfe977854686149c74de3ebaed7b571d43404dd

Fixes: https://tracker.ceph.com/issues/45246
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/releases/general.rst: add mising link targets 34751/head
Kefu Chai [Sat, 25 Apr 2020 01:37:59 +0000 (09:37 +0800)]
doc/releases/general.rst: add mising link targets

they are referenced by 60c825486916d0b0b43248a0966d2ecb90f352df

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/releases: silence sphinx warnings
Kefu Chai [Sat, 25 Apr 2020 01:24:37 +0000 (09:24 +0800)]
doc/releases: silence sphinx warnings

* mimic.rst: add title underline

to address sphinx warning like:
```
WARNING: Title underline too short.
```

* octopus.rst: use consistent underline

to address following sphinx warning:
```
doc/releases/octopus.rst:49: WARNING: Title level inconsistent:
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/suites/rados/thrash-old-clients/1-install: remove hammer 34748/head
Neha Ojha [Fri, 24 Apr 2020 18:45:19 +0000 (18:45 +0000)]
qa/suites/rados/thrash-old-clients/1-install: remove hammer

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/suites/rados/thrash/workloads: use default mon osd initial require min compat...
Neha Ojha [Fri, 24 Apr 2020 18:22:38 +0000 (18:22 +0000)]
qa/suites/rados/thrash/workloads: use default mon osd initial require min compat client

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/suites/rados/thrash-old-clients/1-install: remove jewel
Neha Ojha [Fri, 24 Apr 2020 18:01:17 +0000 (18:01 +0000)]
qa/suites/rados/thrash-old-clients/1-install: remove jewel

Since we've changed mon_osd_initial_require_min_compat_client to
luminous in 986c271b756a6b3f472ec6848fc0d6680c45cf5b, we can remove jewel from
mix.

Fixes: https://tracker.ceph.com/issues/45242
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agodoc/mgr/orchestrator: Remove duplicate ps from support table 34747/head
Varsha Rao [Fri, 24 Apr 2020 18:02:52 +0000 (23:32 +0530)]
doc/mgr/orchestrator: Remove duplicate ps from support table

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #34698 from matthewoliver/cephadm_check_pool_exists
Sebastian Wagner [Fri, 24 Apr 2020 16:39:10 +0000 (18:39 +0200)]
Merge pull request #34698 from matthewoliver/cephadm_check_pool_exists

cephadm: Check for pool existence for iscsi And NFS

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34676 from sebastian-philipp/cephadm-inventory-class
Sebastian Wagner [Fri, 24 Apr 2020 16:26:55 +0000 (18:26 +0200)]
Merge pull request #34676 from sebastian-philipp/cephadm-inventory-class

mgr/cephadm: add Inventory class

5 years agoMerge pull request #34695 from mgfritch/cephadm-iscsi-container-image
Sebastian Wagner [Fri, 24 Apr 2020 16:26:22 +0000 (18:26 +0200)]
Merge pull request #34695 from mgfritch/cephadm-iscsi-container-image

mgr/cephadm: allow config for an iscsi `container_image`

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34718 from mgfritch/cephadm-mgr-is-available
Sebastian Wagner [Fri, 24 Apr 2020 16:25:11 +0000 (18:25 +0200)]
Merge pull request #34718 from mgfritch/cephadm-mgr-is-available

cephadm: catch Exception during is_mgr_available

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #34619 from sebastian-philipp/qa-adopt-specific-commit
Sebastian Wagner [Fri, 24 Apr 2020 16:01:18 +0000 (18:01 +0200)]
Merge pull request #34619 from sebastian-philipp/qa-adopt-specific-commit

qa/cephadm: make test_adoption checkout a specific commit