Commit Graph

85710 Commits

Author SHA1 Message Date
Ricardo Marques
e78504503a mgr/dashboard: Add 'delete-confirmation-modal' component
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Ricardo Marques
617632b358 mgr/dashboard: Force focus on submit
Forcing focus on submit button will guarantee that all inputs will lose focus
before submission.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Ricardo Marques
f34e719e7e mgr/dashboard: Add get method to summary service
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-04-18 11:02:28 +01:00
Lenz Grimmer
f2051a96aa
Merge pull request #21462 from ricardoasmarques/wip-backgroud-tasks-style
mgr/dashboard: Improve background tasks style

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2018-04-18 11:43:24 +02:00
Boris Ranto
c7cbc24803 prometheus: Implement rgw_metadata metric
This maps rgw id to its hostname and ceph version running on the node.

Signed-off-by: Boris Ranto <branto@redhat.com>
2018-04-18 11:02:44 +02:00
Ricardo Dias
ee263196a0
Merge pull request #21443 from LenzGr/mgr-dashboard-documentation
doc: Improved dashboard documentation

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>
2018-04-18 09:48:28 +01:00
Theofilos Mouratidis
201817f27e ceph-volume: allow parallel creates
Currently the create code decides the vg_name "ceph-$cluster_fsid" as
the primary vg_name and creates a new name if this already exists.

If this code is run N times in parallel, the script will try to
create N times the vg with the name "ceph-$cluster_fsid" and it
will fail to create the N osds successfully.

Creating vgs with names like "ceph-$uuid4" lets our scripts to run
without any problems.

Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
2018-04-18 10:02:37 +02:00
Kefu Chai
fdbc1e6d7c
Merge pull request #21485 from tchaikov/wip-tox
test/dashboard: hardcode .coverage path to workaround tox bugs

Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-04-18 14:54:32 +08:00
Kefu Chai
d64f0ec7b8 msg/async/EventKqueue: assert on OOM
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-18 14:20:05 +08:00
Kefu Chai
32b07dd904 test/dashboard: hardcode .coverage path to workaround tox bugs
rhel/centos 7.3 comes with tox 1.4.2, which has a bunch of issues related
to environment variable substitution. for instance, see
- https://github.com/tox-dev/tox/issues/515
so, instead of having different coverage files for py3 and py2.7, it
would be simpler to just use the same path for coverage. this approach
works because pytest-cov plugin erases the coverage data file at the
beginning of test[1].

---
[1] https://pypi.org/project/pytest-cov/#coverage-data-file .

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-04-18 13:50:38 +08:00
Kefu Chai
c643ffd703
Merge pull request #21474 from jecluis/mimic-mon-pending-releasenotes
PendingReleaseNotes: mention some monitor changes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-04-18 12:39:06 +08:00
Kefu Chai
1e081a817d
Merge pull request #21428 from ivancich/wip-fix-existing-mclock-cost
osd: remove cost from mclock op queues; cost not handled well in dmclock

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-04-18 12:32:42 +08:00
Kefu Chai
8039ea855e
Merge pull request #21464 from LenzGr/fix-cmakelist
cmake: fix typo in status message

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-04-18 10:08:47 +08:00
Kefu Chai
d2fdd4a155
Merge pull request #21418 from jecluis/wip-fix-mon-fs-caps
mon/AuthMonitor: don't validate `fs authorize` caps with `valid_caps()`

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-04-18 10:02:47 +08:00
David Zafman
51f41230c7
Merge pull request #21450 from dzafman/wip-jq-compat
test: Use jq in a compatible way and for easier diff analysis

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-04-17 17:26:51 -07:00
Patrick Donnelly
95762d6375
qa: whitelist mds down wrn during cephfs testing
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 14:40:36 -07:00
Nathan Cutler
fda5fea568 script/backport-create-issue: explain why release_id is hard-coded
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-04-17 23:19:44 +02:00
Nathan Cutler
578829ec09 scripts: backport-create-issue (initial commit)
This is a standalone implementation of a script written by Loic Dachary.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-04-17 23:19:41 +02:00
Josh Durgin
e1d65e03f8
Merge pull request #21483 from yuriw/wip-yuriw-crontab
qa/tests - one more typo fixed :(

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-04-17 13:59:03 -07:00
Yuri Weinstein
f3c2d39ba2 qa/tests - one more typo fixed :(
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-04-17 13:56:51 -07:00
Josh Durgin
466a344392
Merge pull request #21482 from yuriw/wip-yuriw-crontab
qa/tests - Fixed typo in crontab entry

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-04-17 13:55:04 -07:00
Yuri Weinstein
39931f185c qa/tests - Fixed typo in crontab entry
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-04-17 13:51:32 -07:00
Josh Durgin
d714d4dafd
Merge pull request #21454 from yuriw/wip-yuriw-crontab
qa/tests - added for the suites with subset be able to use 'testing' …

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-04-17 13:43:50 -07:00
Alfredo Deza
89f8f82402 ceph-volume util.prepare preserve order on incoming mount flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Alfredo Deza
1a92ecbede ceph-volume tests update (preserved) order on mount flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Alfredo Deza
eeff346354 doc/dev/ceph-volume add VDO tag information
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Alfredo Deza
61bed1e615 ceph-volume tests ensure non-duplicate flags in mount calls
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Alfredo Deza
81c20e6b58 ceph-volume util.prepare allow and dedupe extra flags for mounting
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Alfredo Deza
6b87580d4f ceph-volume lvm.prepare detect vdo from device for mounting filestore
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-04-17 14:37:02 -04:00
Patrick Donnelly
c9a590574c
mds: add config to disable fragmentation
For disaster situations or testing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
dde9ee1628
qa: add max_mds thrash test
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
1dc5b62557
qa: mds_thrash updates for new max_mds behavior
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
4e9ffffb95
doc: update upgrade procedure and release notes
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
88922255e9
qa: add test for cluster resizing
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
5503b2014c
qa: remove use of mds deactivate
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:26:56 -07:00
Patrick Donnelly
ab4f33bd24
cephfs: add new down/joinable fs flags
Fixes: http://tracker.ceph.com/issues/20609

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:25:59 -07:00
Patrick Donnelly
283b3a6849
mds: evict all clients if last mds shutting down
This allows all ranks to stop. If the administrator shuts down the cluster then
we should immediately shut down all client's I/O.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 11:01:24 -07:00
Douglas Fuller
c7bd6f02c7
cephfs: deprecate ceph mds deactivate
MDS deactivation is now handled by the max_mds parameter. Deprecate
ceph mds deactivate and note it to be removed in a future release.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:23 -07:00
Douglas Fuller
7d97a6e6f8
cephfs: kill allow_dirfrags
As dirfrags are now standard in CephFS, remove the machinery for
tracking and enabling this feature.

ceph fs set <fs> allow_dirfrags is now deprecated and prints a warning
message.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Douglas Fuller
ae3992ce4f
cephfs: Kill allow_multimds
With multi-mds now declared stable, allow_multimds now defaults to 1.
Given the max_mds parameter, it is now redundant. Remove it, leaving a
comment placeholder in the features bitmap.

ceph fs set <fs> allow_multimds is now deprecated and prints a warning
message.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Douglas Fuller
a950bccfd1
cephfs: Change behavior of cluster_down flag
Setting the cluster_down flag will now set all active MDS
to standby and clearing it will restore the previous max_mds.
Changing max_mds when the cluster_down flag is set will clear the
flag automatically.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Douglas Fuller
7b2e24f543
mon/FSCommands: Set extra MDS to standby
When reducing max_mds, deactivate any MDS rank greater than the
new value of max_mds.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Douglas Fuller
0a59560954
cephfs: Health check changes
Issue the HEALTH_WARN MDS_UP_LESS_THAN_MAX whenever an MDS cluster
has fewer than its max_mds online.

Issue the HEALTH_ERR MDS_ALL_DOWN whenever an MDS cluster has no
active MDS.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:03 -07:00
Douglas Fuller
dc073a1c2b
mon/MDSMonitor: Remove command support for legacy syntax
No longer check for commands for deprecated legacy filesystems.
These commands are long since deprecated and this code is no longer
needed.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2018-04-17 11:01:01 -07:00
Patrick Donnelly
624efc6432
MDSMonitor: cleanup and protect fsmap access
This commit is designed to permanently protect the current epoch FSMap from
accidental changes. Modifications to the pending_fsmap are protected by
checking if the monitor is the leader. Additionally, code must explicitly
request a writeable reference.

Fixes http://tracker.ceph.com/issues/23762

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-04-17 10:56:52 -07:00
Jason Dillaman
3004e1093e
Merge pull request #21478 from idryomov/wip-krbd-os-recommend
doc/start/os-recommendations.rst: bump krbd kernels

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-04-17 13:29:18 -04:00
Ilya Dryomov
528e991074 doc/start/os-recommendations.rst: bump krbd kernels
Drop 4.4 -- even though it is an "Extended LTS" release, it predates
the OSD client rewrite and should no longer be recommended.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-04-17 18:53:34 +02:00
Sage Weil
6075d4c12e ceph-kvstore-tool: default ot level 2 for rocksdb
This gets rid of the wall of rocksdb logs every time.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-17 10:11:41 -05:00
Sage Weil
5822bb0815 ceph-kvstore-tool: ignore default config file and mon config by default
This is a low-level tool and it is super annoying to have to pass
--no-mon-config every time I use it.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-04-17 10:10:31 -05:00
Andrew Schoen
336866a652
Merge pull request #21409 from ErwanAliasr1/evelu-readonly
ceph-volume: Using --readonly for {vg|pv|lv}s commands

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-04-17 16:17:55 +02:00