Commit Graph

110440 Commits

Author SHA1 Message Date
Sebastian Wagner
62abead9bd
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>
2020-04-11 21:22:56 +02:00
Sage Weil
a59f4e5deb 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>
2020-04-11 13:36:51 -05:00
Tim
d7c7ccb439 Update index.rst
clean up "only only"

Signed-off-by: Tim <elatllat@gmail.com>
2020-04-11 08:30:08 -04:00
Kefu Chai
af75bd4f2b
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>
2020-04-11 12:32:34 +08:00
Kefu Chai
56852b0b89
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>
2020-04-11 12:28:10 +08:00
Kefu Chai
c0896074bf
Merge pull request #34468 from tchaikov/wip-mgr-telegraph
mgr/telegraf: catch FileNotFoundError exception

Reviewed-by: Wido den Hollander <wido@42on.com>
2020-04-11 12:26:37 +08:00
Sebastian Wagner
c97e7afe5c
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>
2020-04-10 22:56:20 +02:00
Sebastian Wagner
445caf6a56
Merge pull request #34382 from mgfritch/cephadm-nfs-grace
cephadm: add config required for ganesha grace

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2020-04-10 22:50:42 +02:00
Kefu Chai
fc01a2b1cc
Merge pull request #34488 from tchaikov/wip-dmclock
dmclock: pick up change to s/uint/unsigned/

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2020-04-11 00:46:06 +08:00
Adam Kupczyk
a5d73963ea kv/KeyValueDB: Made open/close a complementary operations.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
2020-04-10 14:49:52 +02:00
Adam Kupczyk
d5dd30a46b kv/KeyValueDB: Test for idempotency of open/close
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
2020-04-10 14:47:00 +02:00
Kefu Chai
f60d66b96b
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>
2020-04-10 19:34:03 +08:00
Ilya Dryomov
8fbad612ea
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>
2020-04-10 10:29:57 +02:00
Kefu Chai
4ca9ef4d27 selinux: add "type http_cache_port_t" in require section
this addresses the regression introduced by
611a2a7ce1

Fixes: https://tracker.ceph.com/issues/45022
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-04-10 14:28:20 +08:00
Kefu Chai
fc8a6a296e
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>
2020-04-10 09:43:28 +08:00
Kefu Chai
e7ead41ed1
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>
2020-04-10 09:42:42 +08:00
Kefu Chai
8bd8a8badb 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>
2020-04-10 08:38:06 +08:00
Kefu Chai
0cb56e0f13 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>
2020-04-10 08:38:06 +08:00
Michael Fritch
25f4dedd3e
mgr/cephadm: add CACHEINODE and EXPORT_DEFAULTS sections
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-04-09 17:32:38 -06:00
Michael Fritch
8055d34455
mgr/cephadm: add config required for ganesha grace
adds minimal config for ganesha-rados-grace

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-04-09 17:32:38 -06:00
Michael Fritch
ea5b0430f3
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>
2020-04-09 13:28:48 -06:00
Daniel Gryniewicz
eadfffe596
Merge pull request #34502 from ceph/kalebskeithley-patch-1-2
Update ceph.te
2020-04-09 14:24:09 -04:00
Matt Benjamin
92af4e9bc6
Merge pull request #34484 from cbodley/wip-sub-spawn
spawn: update submodule
2020-04-09 14:17:52 -04:00
kalebskeithley
611a2a7ce1
Update ceph.te
Fixes: https://tracker.ceph.com/issues/45022
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
2020-04-09 13:00:57 -04:00
Kefu Chai
847e4ef941 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>
2020-04-09 22:47:56 +08:00
Lenz Grimmer
c6295bb02e
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>
2020-04-09 16:15:50 +02:00
Sebastian Wagner
dfcf8b0034
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>
2020-04-09 16:10:57 +02:00
Sebastian Wagner
370f2c033e
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>
2020-04-09 16:07:34 +02:00
Sebastian Wagner
a4ff076e6d
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>
2020-04-09 16:05:59 +02:00
Sebastian Wagner
4cb7336150
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>
2020-04-09 16:03:36 +02:00
Jason Dillaman
cb7b91dc02 rbd-mirror: unlink from remote snapshot if required
If a previous remote snapshot was synced but the unlink failed,
ensure we retry the unlink so that the remote can cleanup the unused
snapshot.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:01:15 -04:00
Jason Dillaman
281af0de86 rbd-mirror: prune unnecessary non-primary mirror snapshots
Once a non-primary snapshot is no longer required for syncing, delete it
from the image.

Fixes: https://tracker.ceph.com/issues/44105
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
cb8187c0dd rbd-mirror: propagate full snap-seq mapping in non-primary snapshots
Previously only newly created user snapshots were included in the
non-primary snapshot snap-seq mapping table. However, we need to
retain a full history of the mapping table if we want to be able to
prune non-primary snapshots.

Failovers are a special case since we won't have a valid snap seq mapping
so it will need to be rebuilt. Luckily, both sides should be read-only
in the previous state so we can use the snapshot names to find matches.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
6bf2132cf0 rbd-mirror: ignore non-primary read-only state for remote images
snapshot-based mirroring needs to be able to potentially delete a
demotion snapshot during the unlink process. Previously, these
snapshots have been left while the read-only error was ignored.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
0ca7817ece rbd: fix missing space when listing non-primary mirror snapshots
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
a3acdbd069 librbd: fixed race condition on demotion of snapshot-based mirrored image
A pending refresh could occur after setting the non-primary feature flag but
before the creation of the demotion snapshot. This would prevent the snapshot
from being created and would leave the image in a half-primary state.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
0102ce8870 librbd: store mirror peer uuids in non-primary demoted snapshots
This will allow a remote rbd-mirror process to have a snapshot to use for
delta sync operations during failover.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
eed00eb179 librbd: additional debug logs for mirror snapshot unlink peer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
Jason Dillaman
6a342bb5e0 test/rbd-mirror: fix gmock warnings during snapshot-based replayer tests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-04-09 10:00:28 -04:00
nSedrickm
ea607b63f9 mgr/dashboard: Proposed About Modal box
This commit implements proposed about modal box
Fixes : https://tracker.ceph.com/issues/35693
Signed-off-by: Ngwa Sedrick Meh <nsedrick101@gmail.com>
2020-04-09 13:30:58 +01:00
Tiago Melo
7d370ce222 mgr/dashboard: Prevent iSCSI target recreation when editing controls
Also prevents updating target auth, when this was not modified.

Fixes: https://tracker.ceph.com/issues/44659

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-04-09 12:14:15 +00:00
Tiago Melo
7291e82ffc mgr/dashboard: Remove duplicate code in iscsi.py
Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-04-09 12:14:15 +00:00
Lenz Grimmer
c5dd11b7ec
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>
2020-04-09 13:25:11 +02:00
Ilya Dryomov
314b14aebe tests: update unmap.t for table spacing changes
Introduced in 4d42b4c5a0 ("common/TextTable: default to 2 spaces
separating columns") and 41f003518a ("common/TextTable: only pad
between columns").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-04-09 12:41:34 +02:00
Lenz Grimmer
0b18f60706
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>
2020-04-09 12:20:41 +02:00
Ilya Dryomov
4b04f2ba83
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>
2020-04-09 11:37:14 +02:00
Sebastian Wagner
0d22708cc2 cephadm: add-repo: Don't test for podman
Fixes:

```
root@buster:/cephadm# ./cephadm add-repo
Unable to locate any of ['podman', 'docker']
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-04-09 09:50:37 +02:00
Kefu Chai
99b75c14d2 readthedocs: add .readthedocs.yml
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-04-09 15:35:45 +08:00
Mykola Golub
978a2e364f
Merge pull request #34408 from dillaman/wip-44727
rbd-mirror: improved replication statistics

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-04-09 10:13:57 +03:00
Kefu Chai
7dc7b30350 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>
2020-04-09 12:31:22 +08:00