]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocmake/mgr: use Python 3 virtualenv if mgr subinterpreter is Python 3 21446/head
Nathan Cutler [Mon, 16 Apr 2018 13:20:32 +0000 (15:20 +0200)]
cmake/mgr: use Python 3 virtualenv if mgr subinterpreter is Python 3

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #21056 from hitoshikamei/rbdmap-notrim
Ilya Dryomov [Thu, 19 Apr 2018 06:51:57 +0000 (08:51 +0200)]
Merge pull request #21056 from hitoshikamei/rbdmap-notrim

rbd: add notrim option to rbd map

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #21490 from tchaikov/wip-tox
Kefu Chai [Thu, 19 Apr 2018 05:11:27 +0000 (13:11 +0800)]
Merge pull request #21490 from tchaikov/wip-tox

mgr/dashboard: create venv for running tox

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agomgr/dashboard: create venv for running tox 21490/head
Kefu Chai [Wed, 18 Apr 2018 08:20:29 +0000 (16:20 +0800)]
mgr/dashboard: create venv for running tox

the tox shipped with centos is 1.4.2, and is way too old. it does not
allow us to define the dependency using generative-envlist.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotools/setup-virtualenv.sh: bump up the version of tox to 2.9.1
Kefu Chai [Wed, 18 Apr 2018 08:21:19 +0000 (16:21 +0800)]
tools/setup-virtualenv.sh: bump up the version of tox to 2.9.1

2.8.1 brings an important fix, see
https://github.com/tox-dev/tox/issues/515.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21489 from thmour/thmour_parallel_create
Alfredo Deza [Wed, 18 Apr 2018 22:24:51 +0000 (18:24 -0400)]
Merge pull request #21489 from thmour/thmour_parallel_create

ceph-volume: allow parallel creates

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge PR #16608 into master
Patrick Donnelly [Wed, 18 Apr 2018 21:36:54 +0000 (14:36 -0700)]
Merge PR #16608 into master

* refs/pull/16608/head:
qa: whitelist mds down wrn during cephfs testing
mds: add config to disable fragmentation
qa: add max_mds thrash test
qa: mds_thrash updates for new max_mds behavior
doc: update upgrade procedure and release notes
qa: add test for cluster resizing
qa: remove use of mds deactivate
cephfs: add new down/joinable fs flags
mds: evict all clients if last mds shutting down
cephfs: deprecate ceph mds deactivate
cephfs: kill allow_dirfrags
cephfs: Kill allow_multimds
cephfs: Change behavior of cluster_down flag
mon/FSCommands: Set extra MDS to standby
cephfs: Health check changes
mon/MDSMonitor: Remove command support for legacy syntax

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21456 into master
Patrick Donnelly [Wed, 18 Apr 2018 21:36:47 +0000 (14:36 -0700)]
Merge PR #21456 into master

* refs/pull/21456/head:
MDSMonitor: initialize new Filesystem epoch from pending

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge PR #21457 into master
Patrick Donnelly [Wed, 18 Apr 2018 21:36:40 +0000 (14:36 -0700)]
Merge PR #21457 into master

* refs/pull/21457/head:
mds: unset deleted vars in shutdown_pass

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #21458 into master
Patrick Donnelly [Wed, 18 Apr 2018 21:36:32 +0000 (14:36 -0700)]
Merge PR #21458 into master

* refs/pull/21458/head:
MDSMonitor: cleanup and protect fsmap access

Reviewed-by: João Eduardo Luís <joao@suse.de>
7 years agoMerge PR #21473 into master
Patrick Donnelly [Wed, 18 Apr 2018 21:36:26 +0000 (14:36 -0700)]
Merge PR #21473 into master

* refs/pull/21473/head:
client: fix error operator precedence

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agomds: unset deleted vars in shutdown_pass 21457/head
Patrick Donnelly [Tue, 17 Apr 2018 03:13:37 +0000 (20:13 -0700)]
mds: unset deleted vars in shutdown_pass

So future passes do not try to delete again.

Fixes: http://tracker.ceph.com/issues/23766
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #21480 from smithfarm/wip-backport-create-issue
Nathan Cutler [Wed, 18 Apr 2018 17:57:45 +0000 (19:57 +0200)]
Merge pull request #21480 from smithfarm/wip-backport-create-issue

scripts: new backport-create-issue script

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoscript/backport-create-issue: enable script to be imported 21480/head
Nathan Cutler [Wed, 18 Apr 2018 16:39:10 +0000 (18:39 +0200)]
script/backport-create-issue: enable script to be imported

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #21436 from trociny/wip-test-out_of_order
Jason Dillaman [Wed, 18 Apr 2018 13:51:46 +0000 (09:51 -0400)]
Merge pull request #21436 from trociny/wip-test-out_of_order

test/librbd: ensure OutOfOrder test has enough concurrent management ops

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21493 from trociny/wip-deep-copy-missing-return
Jason Dillaman [Wed, 18 Apr 2018 13:51:22 +0000 (09:51 -0400)]
Merge pull request #21493 from trociny/wip-deep-copy-missing-return

librbd: missing 'return' in deep_copy::ObjectCopyRequest::send_read_object

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21385 from ricardoasmarques/wip-list-all-rbds
Lenz Grimmer [Wed, 18 Apr 2018 13:50:14 +0000 (15:50 +0200)]
Merge pull request #21385 from ricardoasmarques/wip-list-all-rbds

mgr/dashboard: RBD management (frontend)

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21451 from ceph/wip-rm23581
Andrew Schoen [Wed, 18 Apr 2018 13:48:41 +0000 (13:48 +0000)]
Merge pull request #21451 from ceph/wip-rm23581

ceph-volume: automatic VDO detection

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agomgr/dashboard: RBD management 21385/head
Ricardo Marques [Thu, 22 Mar 2018 12:41:45 +0000 (12:41 +0000)]
mgr/dashboard: RBD management

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agolibrbd: missing 'return' in deep_copy::ObjectCopyRequest::send_read_object 21493/head
Mykola Golub [Wed, 18 Apr 2018 10:46:16 +0000 (13:46 +0300)]
librbd: missing 'return' in deep_copy::ObjectCopyRequest::send_read_object

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21383 from b-ranto/wip-mgr-rgw-metadata
Boris Ranto [Wed, 18 Apr 2018 10:46:00 +0000 (12:46 +0200)]
Merge pull request #21383 from b-ranto/wip-mgr-rgw-metadata

prometheus: Implement rgw_metadata metric

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agomgr/dashboard: Add 'executing' cell template
Ricardo Marques [Wed, 18 Apr 2018 09:48:19 +0000 (10:48 +0100)]
mgr/dashboard: Add 'executing' cell template

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Configurable type for 'cd-submit-button'
Ricardo Marques [Wed, 18 Apr 2018 09:26:22 +0000 (10:26 +0100)]
mgr/dashboard: Configurable type for 'cd-submit-button'

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Add 'delete-confirmation-modal' component
Ricardo Marques [Mon, 16 Apr 2018 12:15:16 +0000 (13:15 +0100)]
mgr/dashboard: Add 'delete-confirmation-modal' component

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Force focus on submit
Ricardo Marques [Thu, 12 Apr 2018 00:44:09 +0000 (01:44 +0100)]
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>
7 years agomgr/dashboard: Add get method to summary service
Ricardo Marques [Tue, 3 Apr 2018 14:38:35 +0000 (15:38 +0100)]
mgr/dashboard: Add get method to summary service

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #21462 from ricardoasmarques/wip-backgroud-tasks-style
Lenz Grimmer [Wed, 18 Apr 2018 09:43:24 +0000 (11:43 +0200)]
Merge pull request #21462 from ricardoasmarques/wip-backgroud-tasks-style

mgr/dashboard: Improve background tasks style

Reviewed-by: Laura Paduano <lpaduano@suse.com>
7 years agoprometheus: Implement rgw_metadata metric 21383/head
Boris Ranto [Thu, 12 Apr 2018 16:11:51 +0000 (18:11 +0200)]
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>
7 years agoMerge pull request #21443 from LenzGr/mgr-dashboard-documentation
Ricardo Dias [Wed, 18 Apr 2018 08:48:28 +0000 (09:48 +0100)]
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>
7 years agoceph-volume: allow parallel creates 21489/head
Theofilos Mouratidis [Wed, 18 Apr 2018 08:02:37 +0000 (10:02 +0200)]
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>
7 years agoMerge pull request #21485 from tchaikov/wip-tox
Kefu Chai [Wed, 18 Apr 2018 06:54:32 +0000 (14:54 +0800)]
Merge pull request #21485 from tchaikov/wip-tox

test/dashboard: hardcode .coverage path to workaround tox bugs

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agotest/dashboard: hardcode .coverage path to workaround tox bugs 21485/head
Kefu Chai [Wed, 18 Apr 2018 05:42:03 +0000 (13:42 +0800)]
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>
7 years agoMerge pull request #21474 from jecluis/mimic-mon-pending-releasenotes
Kefu Chai [Wed, 18 Apr 2018 04:39:06 +0000 (12:39 +0800)]
Merge pull request #21474 from jecluis/mimic-mon-pending-releasenotes

PendingReleaseNotes: mention some monitor changes

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21428 from ivancich/wip-fix-existing-mclock-cost
Kefu Chai [Wed, 18 Apr 2018 04:32:42 +0000 (12:32 +0800)]
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>
7 years agoMerge pull request #21464 from LenzGr/fix-cmakelist
Kefu Chai [Wed, 18 Apr 2018 02:08:47 +0000 (10:08 +0800)]
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>
7 years agoMerge pull request #21418 from jecluis/wip-fix-mon-fs-caps
Kefu Chai [Wed, 18 Apr 2018 02:02:47 +0000 (10:02 +0800)]
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>
7 years agoMerge pull request #21450 from dzafman/wip-jq-compat
David Zafman [Wed, 18 Apr 2018 00:26:51 +0000 (17:26 -0700)]
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>
7 years agoqa: whitelist mds down wrn during cephfs testing 16608/head
Patrick Donnelly [Tue, 17 Apr 2018 13:42:58 +0000 (06:42 -0700)]
qa: whitelist mds down wrn during cephfs testing

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoscript/backport-create-issue: explain why release_id is hard-coded
Nathan Cutler [Tue, 17 Apr 2018 19:36:07 +0000 (21:36 +0200)]
script/backport-create-issue: explain why release_id is hard-coded

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoscripts: backport-create-issue (initial commit)
Nathan Cutler [Tue, 17 Apr 2018 19:12:45 +0000 (21:12 +0200)]
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>
7 years agoMerge pull request #21483 from yuriw/wip-yuriw-crontab
Josh Durgin [Tue, 17 Apr 2018 20:59:03 +0000 (13:59 -0700)]
Merge pull request #21483 from yuriw/wip-yuriw-crontab

qa/tests - one more typo fixed :(

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tests - one more typo fixed :( 21483/head
Yuri Weinstein [Tue, 17 Apr 2018 20:56:51 +0000 (13:56 -0700)]
qa/tests - one more typo fixed :(

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #21482 from yuriw/wip-yuriw-crontab
Josh Durgin [Tue, 17 Apr 2018 20:55:04 +0000 (13:55 -0700)]
Merge pull request #21482 from yuriw/wip-yuriw-crontab

qa/tests - Fixed typo in crontab entry

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tests - Fixed typo in crontab entry 21482/head
Yuri Weinstein [Tue, 17 Apr 2018 20:51:32 +0000 (13:51 -0700)]
qa/tests - Fixed typo in crontab entry

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #21454 from yuriw/wip-yuriw-crontab
Josh Durgin [Tue, 17 Apr 2018 20:43:50 +0000 (13:43 -0700)]
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>
7 years agoceph-volume util.prepare preserve order on incoming mount flags 21451/head
Alfredo Deza [Mon, 16 Apr 2018 18:42:22 +0000 (14:42 -0400)]
ceph-volume util.prepare preserve order on incoming mount flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests update (preserved) order on mount flags
Alfredo Deza [Mon, 16 Apr 2018 18:41:52 +0000 (14:41 -0400)]
ceph-volume tests update (preserved) order on mount flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/dev/ceph-volume add VDO tag information
Alfredo Deza [Mon, 16 Apr 2018 16:50:02 +0000 (12:50 -0400)]
doc/dev/ceph-volume add VDO tag information

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests ensure non-duplicate flags in mount calls
Alfredo Deza [Mon, 16 Apr 2018 16:45:21 +0000 (12:45 -0400)]
ceph-volume tests ensure non-duplicate flags in mount calls

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.prepare allow and dedupe extra flags for mounting
Alfredo Deza [Mon, 16 Apr 2018 16:44:24 +0000 (12:44 -0400)]
ceph-volume util.prepare allow and dedupe extra flags for mounting

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.prepare detect vdo from device for mounting filestore
Alfredo Deza [Mon, 16 Apr 2018 16:40:27 +0000 (12:40 -0400)]
ceph-volume lvm.prepare detect vdo from device for mounting filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomds: add config to disable fragmentation
Patrick Donnelly [Tue, 17 Apr 2018 03:14:27 +0000 (20:14 -0700)]
mds: add config to disable fragmentation

For disaster situations or testing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: add max_mds thrash test
Patrick Donnelly [Sat, 14 Apr 2018 18:36:15 +0000 (11:36 -0700)]
qa: add max_mds thrash test

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: mds_thrash updates for new max_mds behavior
Patrick Donnelly [Sat, 14 Apr 2018 00:22:29 +0000 (17:22 -0700)]
qa: mds_thrash updates for new max_mds behavior

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agodoc: update upgrade procedure and release notes
Patrick Donnelly [Fri, 13 Apr 2018 23:48:36 +0000 (16:48 -0700)]
doc: update upgrade procedure and release notes

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: add test for cluster resizing
Patrick Donnelly [Fri, 13 Apr 2018 06:05:46 +0000 (23:05 -0700)]
qa: add test for cluster resizing

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa: remove use of mds deactivate
Patrick Donnelly [Fri, 13 Apr 2018 06:05:22 +0000 (23:05 -0700)]
qa: remove use of mds deactivate

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agocephfs: add new down/joinable fs flags
Patrick Donnelly [Fri, 13 Apr 2018 06:04:31 +0000 (23:04 -0700)]
cephfs: add new down/joinable fs flags

Fixes: http://tracker.ceph.com/issues/20609
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: evict all clients if last mds shutting down
Patrick Donnelly [Fri, 13 Apr 2018 05:54:33 +0000 (22:54 -0700)]
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>
7 years agocephfs: deprecate ceph mds deactivate
Douglas Fuller [Tue, 10 Apr 2018 19:53:11 +0000 (15:53 -0400)]
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>
7 years agocephfs: kill allow_dirfrags
Douglas Fuller [Wed, 4 Apr 2018 13:15:53 +0000 (09:15 -0400)]
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>
7 years agocephfs: Kill allow_multimds
Douglas Fuller [Mon, 31 Jul 2017 18:23:55 +0000 (14:23 -0400)]
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>
7 years agocephfs: Change behavior of cluster_down flag
Douglas Fuller [Wed, 26 Jul 2017 14:53:49 +0000 (10:53 -0400)]
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>
7 years agomon/FSCommands: Set extra MDS to standby
Douglas Fuller [Tue, 25 Jul 2017 18:06:51 +0000 (14:06 -0400)]
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>
7 years agocephfs: Health check changes
Douglas Fuller [Tue, 25 Jul 2017 18:05:28 +0000 (14:05 -0400)]
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>
7 years agomon/MDSMonitor: Remove command support for legacy syntax
Douglas Fuller [Tue, 25 Jul 2017 17:57:47 +0000 (13:57 -0400)]
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>
7 years agoMDSMonitor: cleanup and protect fsmap access 21458/head
Patrick Donnelly [Tue, 17 Apr 2018 03:46:39 +0000 (20:46 -0700)]
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>
7 years agoMerge pull request #21478 from idryomov/wip-krbd-os-recommend
Jason Dillaman [Tue, 17 Apr 2018 17:29:18 +0000 (13:29 -0400)]
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>
7 years agodoc/start/os-recommendations.rst: bump krbd kernels 21478/head
Ilya Dryomov [Tue, 17 Apr 2018 16:50:04 +0000 (18:50 +0200)]
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>
7 years agoMerge pull request #21409 from ErwanAliasr1/evelu-readonly
Andrew Schoen [Tue, 17 Apr 2018 14:17:55 +0000 (16:17 +0200)]
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>
7 years agoclient: fix error operator precedence 21473/head
Patrick Donnelly [Tue, 17 Apr 2018 13:39:09 +0000 (06:39 -0700)]
client: fix error operator precedence

    /home/pdonnell/ceph/src/client/Client.cc: In member function ‘int Client::mount(const string&, const UserPerm&, bool)’:
    /home/pdonnell/ceph/src/client/Client.cc:5681:23: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
        return CEPH_FUSE_NO_MDS_UP;
                    ~~^~

Found by gcc. I am ashamed.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoPendingReleaseNotes: mention some monitor changes 21474/head
Joao Eduardo Luis [Tue, 17 Apr 2018 13:38:46 +0000 (14:38 +0100)]
PendingReleaseNotes: mention some monitor changes

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
7 years agomon/AuthMonitor: don't validate fs caps on authorize 21418/head
Joao Eduardo Luis [Fri, 13 Apr 2018 14:25:33 +0000 (15:25 +0100)]
mon/AuthMonitor: don't validate fs caps on authorize

The monitor will have no idea how to validate fs caps during `fs
authorize`. Instead, validate solely the built osd and mds caps.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #21468 from tchaikov/wip=cmake-make-check-dashboard
John Spray [Tue, 17 Apr 2018 13:07:36 +0000 (14:07 +0100)]
Merge pull request #21468 from tchaikov/wip=cmake-make-check-dashboard

cmake: let "tests" depend on "mgr-dashboard-frontend-build"

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agotest/librbd: ensure OutOfOrder test has enough concurrent management ops 21436/head
Mykola Golub [Sun, 15 Apr 2018 19:33:44 +0000 (22:33 +0300)]
test/librbd: ensure OutOfOrder test has enough concurrent management ops

Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21470 from tylerqi/master
Jason Dillaman [Tue, 17 Apr 2018 12:31:54 +0000 (08:31 -0400)]
Merge pull request #21470 from tylerqi/master

doc: Fix a grammar error in rbd-snapshot.rst

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc: Fix a grammar error in rbd-snapshot.rst 21470/head
Tyler Zeqing Qi [Tue, 17 Apr 2018 12:10:42 +0000 (20:10 +0800)]
doc: Fix a grammar error in rbd-snapshot.rst

Signed-off-by: Zeqing Tyler Qi <aqize@126.com>
7 years agoMerge pull request #20945 from liewegas/wip-pg-ls
Sage Weil [Tue, 17 Apr 2018 11:49:35 +0000 (06:49 -0500)]
Merge pull request #20945 from liewegas/wip-pg-ls

mon/PGMap: remove or narrow columns 'pg ls' output

Reviewed-by: John Spray <jspray@redhat.com>
7 years agoMerge pull request #21113 from kungf/scrub_interval_overflow
Sage Weil [Tue, 17 Apr 2018 11:48:57 +0000 (06:48 -0500)]
Merge pull request #21113 from kungf/scrub_interval_overflow

utime: fix __32u sec time overflow

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21145 from ceph/wip-ifed-store-test-improve
Sage Weil [Tue, 17 Apr 2018 11:48:31 +0000 (06:48 -0500)]
Merge pull request #21145 from ceph/wip-ifed-store-test-improve

test/ceph_test_objectstore: make settings update and restore less error prone

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21371 from jcsp/wip-mon-optracker-cleanup
Sage Weil [Tue, 17 Apr 2018 11:48:02 +0000 (06:48 -0500)]
Merge pull request #21371 from jcsp/wip-mon-optracker-cleanup

mon: cleanups to optracker code

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #21377 from ifed01/wip-ifed-learn-alloc-fragm
Sage Weil [Tue, 17 Apr 2018 11:46:51 +0000 (06:46 -0500)]
Merge pull request #21377 from ifed01/wip-ifed-learn-alloc-fragm

os/bluestore: add perf counter for allocator fragmentation.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21141 from shun-s/fix-rbd-close-race-with-rewatch
Jason Dillaman [Tue, 17 Apr 2018 11:46:37 +0000 (07:46 -0400)]
Merge pull request #21141 from shun-s/fix-rbd-close-race-with-rewatch

librbd: fix rbd close race with rewatch

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21343 from Songweibin/wip-trash-ls
Jason Dillaman [Tue, 17 Apr 2018 11:46:18 +0000 (07:46 -0400)]
Merge pull request #21343 from Songweibin/wip-trash-ls

rbd: 'trash ls -l' will display column titles if existed non-USER trash image only

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agocmake: let "tests" depend on "mgr-dashboard-frontend-build" 21468/head
Kefu Chai [Tue, 17 Apr 2018 11:40:51 +0000 (19:40 +0800)]
cmake: let "tests" depend on "mgr-dashboard-frontend-build"

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: fix typo in status message 21464/head
Lenz Grimmer [Tue, 17 Apr 2018 09:28:29 +0000 (11:28 +0200)]
cmake: fix typo in status message

Replaced " we are x84_64" with  " we are x86_64" in `src/CMakeLists.txt`

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agomgr/dashboard: Improve background tasks style 21462/head
Ricardo Marques [Tue, 17 Apr 2018 09:26:38 +0000 (10:26 +0100)]
mgr/dashboard: Improve background tasks style

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoMDSMonitor: initialize new Filesystem epoch from pending 21456/head
Patrick Donnelly [Tue, 17 Apr 2018 01:42:53 +0000 (18:42 -0700)]
MDSMonitor: initialize new Filesystem epoch from pending

Fixes: https://tracker.ceph.com/issues/23764
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa/tests - added for the suites with subset be able to use 'testing' distro 21454/head
Yuri Weinstein [Mon, 16 Apr 2018 21:02:52 +0000 (14:02 -0700)]
qa/tests - added for the suites with subset be able to use 'testing' distro

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoceph-volume lvm.activate detect vdo from tags for mounting filestore
Alfredo Deza [Mon, 16 Apr 2018 16:38:35 +0000 (12:38 -0400)]
ceph-volume lvm.activate detect vdo from tags for mounting filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.prepare allow extra ad-hoc mount flags
Alfredo Deza [Fri, 13 Apr 2018 19:52:55 +0000 (15:52 -0400)]
ceph-volume util.prepare allow extra ad-hoc mount flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.prepare capture vdo-ness on LVM tags
Alfredo Deza [Fri, 13 Apr 2018 19:52:23 +0000 (15:52 -0400)]
ceph-volume lvm.prepare capture vdo-ness on LVM tags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests for is_vdo detection
Alfredo Deza [Fri, 13 Apr 2018 17:54:25 +0000 (13:54 -0400)]
ceph-volume tests for is_vdo detection

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume api.lvm helpers to detect vdo from a dm path
Alfredo Deza [Wed, 11 Apr 2018 12:53:17 +0000 (08:53 -0400)]
ceph-volume api.lvm helpers to detect vdo from a dm path

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #21449 from rjfd/wip-dashboard-fix-frontend-build
Kefu Chai [Mon, 16 Apr 2018 16:01:49 +0000 (00:01 +0800)]
Merge pull request #21449 from rjfd/wip-dashboard-fix-frontend-build

cmake: fix frontend cmake build

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21360 from rjfd/wip-dashboard-rbd
Lenz Grimmer [Mon, 16 Apr 2018 15:54:36 +0000 (17:54 +0200)]
Merge pull request #21360 from rjfd/wip-dashboard-rbd

mgr/dashboard: RBD management (backend)

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21445 from rjfd/wip-dashboard-fix-run-tox
Kefu Chai [Mon, 16 Apr 2018 15:38:00 +0000 (23:38 +0800)]
Merge pull request #21445 from rjfd/wip-dashboard-fix-run-tox

mgr/dashboard: run-tox: pass CEPH_BUILD_DIR value into tox script

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: remove cost from mclock op queues; cost not handled well in dmclock library 21428/head
J. Eric Ivancich [Fri, 13 Apr 2018 22:27:25 +0000 (18:27 -0400)]
osd: remove cost from mclock op queues; cost not handled well in dmclock library

The current version of the dmclock library does not handle operation
cost well. Therefore cost should not be passed into the library when
enqueuing operations; instead 0 should be passed in.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agotest: Use jq in a compatible way and for easier diff analysis 21450/head
David Zafman [Mon, 16 Apr 2018 04:49:48 +0000 (21:49 -0700)]
test: Use jq in a compatible way and for easier diff analysis

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agomgr/dashboard: fix frontend cmake build 21449/head
Ricardo Dias [Mon, 16 Apr 2018 15:06:42 +0000 (16:06 +0100)]
mgr/dashboard: fix frontend cmake build

Signed-off-by: Ricardo Dias <rdias@suse.com>