]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agomgr/dashboard: Takeover PR #20799 and adapt comments. 21258/head
Volker Theile [Mon, 9 Apr 2018 13:26:26 +0000 (15:26 +0200)]
mgr/dashboard: Takeover PR #20799 and adapt comments.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agomgr/dashboard: Implement RGW proxy
Patrick Nawracay [Tue, 20 Mar 2018 08:03:30 +0000 (09:03 +0100)]
mgr/dashboard: Implement RGW proxy

This implementation is basically a Rados Gateway reverse proxy.  It
additionally takes care of the authentication to the Rados Gateway, but to use
it you will have to be authenticated against the dashboards RESTful API.

The corresponding credentials can be configured using the following commands:

    dashboard set-rgw-api-secret-key <secret-key>

    dashboard set-rgw-api-access-key <access-key>

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
7 years agomgr/dashboard: RGW proxy: Include `python-requests-aws`
Patrick Nawracay [Tue, 20 Mar 2018 08:01:32 +0000 (09:01 +0100)]
mgr/dashboard: RGW proxy: Include `python-requests-aws`

This commit will include the `python-requests-aws` [1] library.  This library
extends the `requests` library by an authentication mechanism to S3 gateways.

[1] https://github.com/tax/python-requests-aws

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
7 years agoMerge pull request #21022 from sebastian-philipp/dashboard_get_range
Lenz Grimmer [Wed, 11 Apr 2018 10:22:00 +0000 (12:22 +0200)]
Merge pull request #21022 from sebastian-philipp/dashboard_get_range

mgr/dashboard: Refactor multiple duplicates of `get_rate()`

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agoMerge pull request #20920 from sebastian-philipp/dashboard_v2-erasure-code-profile
Lenz Grimmer [Wed, 11 Apr 2018 10:19:40 +0000 (12:19 +0200)]
Merge pull request #20920 from sebastian-philipp/dashboard_v2-erasure-code-profile

mgr/dashboard: Add ErasureCodeProfile controller

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #21086 from ricardoasmarques/fix-table-without-fetch-data
Lenz Grimmer [Wed, 11 Apr 2018 09:55:32 +0000 (11:55 +0200)]
Merge pull request #21086 from ricardoasmarques/fix-table-without-fetch-data

mgr/dashboard: Fix table without fetchData

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile vtheile@suse.com
7 years agoMerge pull request #21041 from votdev/custom_validators
Lenz Grimmer [Wed, 11 Apr 2018 09:11:09 +0000 (11:11 +0200)]
Merge pull request #21041 from votdev/custom_validators

mgr/dashboard: Add custom validators

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #21078 from tspmelo/wip-notifications
Lenz Grimmer [Wed, 11 Apr 2018 09:08:04 +0000 (11:08 +0200)]
Merge pull request #21078 from tspmelo/wip-notifications

mgr/dashboard: Add notification service/component

Reviewed-by: Volker Theile vtheile@suse.com
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Loading indicator only if fechData provided 21086/head
Ricardo Marques [Wed, 28 Mar 2018 06:44:55 +0000 (07:44 +0100)]
mgr/dashboard: Loading indicator only if fechData provided

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Hide refresh button if no fetchData provided
Ricardo Marques [Wed, 28 Mar 2018 06:43:47 +0000 (07:43 +0100)]
mgr/dashboard: Hide refresh button if no fetchData provided

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agomgr/dashboard: Add custom validators. 21041/head
Volker Theile [Mon, 26 Mar 2018 09:24:29 +0000 (11:24 +0200)]
mgr/dashboard: Add custom validators.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agoMerge PR #19220 into master
Patrick Donnelly [Wed, 11 Apr 2018 05:13:29 +0000 (22:13 -0700)]
Merge PR #19220 into master

* refs/pull/19220/head:
mds: limit run time of load balancer
mds: add list to track recently used sub-directories
mds: calculate other mds' last_epoch_under locally
mds: cleanup mds_load map access/update
mds: check export pin when choosing dirfrags for exporting
mds: optimize MDBalancer::find_exports()
mds: avoid creating unnecessary subtrees during load balance
mds: mds: optimize MDBalancer::try_rebalance()
mds: don't try exporting subdir if dirfrag is already being exported
mds: don't try exporting dirfrags under mds's own mdsdir
mds: cleanup MDBalancer::try_rebalance()
mds: always pass current time to MDBalancer::{hit_inode,hit_dir}
mds: remove unused MDBalancer::export_empties()
mds: don't decay load counters when printing load
mds: adjust pop_nested when importing subtree
mds: adjust subtree popularity when import fails
mds: adjust subtree popularity after rename
mds: fix request rate calculation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #21310 from tchaikov/wip-23610
Kefu Chai [Wed, 11 Apr 2018 05:00:01 +0000 (13:00 +0800)]
Merge pull request #21310 from tchaikov/wip-23610

osd: resend osd_pgtemp if it's not acked

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20947 from dzafman/wip-23364
David Zafman [Tue, 10 Apr 2018 23:32:09 +0000 (16:32 -0700)]
Merge pull request #20947 from dzafman/wip-23364

Special scrub handling of hinfo_key errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agodoc: Add release notes for the output format changes 20947/head
David Zafman [Tue, 10 Apr 2018 18:07:48 +0000 (11:07 -0700)]
doc: Add release notes for the output format changes

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Be smarter about when jsonschema can be used
David Zafman [Mon, 9 Apr 2018 22:09:38 +0000 (15:09 -0700)]
test: Be smarter about when jsonschema can be used

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Show snapset in list-inconsistent-snapset
David Zafman [Wed, 4 Apr 2018 23:09:39 +0000 (16:09 -0700)]
osd rados command: Show snapset in list-inconsistent-snapset

Add SnapSet bufferlist to inconsistent_snapset_t

Partial fix for http://tracker.ceph.com/issues/23428

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: SnapSet::dump() handle snapid_t not in clone_overlap or clone_size
David Zafman [Wed, 4 Apr 2018 23:07:09 +0000 (16:07 -0700)]
osd: SnapSet::dump() handle snapid_t not in clone_overlap or clone_size

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Add getjson variable to save output
David Zafman [Wed, 4 Apr 2018 23:04:41 +0000 (16:04 -0700)]
test: Add getjson variable to save output

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Change error name snapset_mismatch to snapset_error
David Zafman [Wed, 4 Apr 2018 22:58:57 +0000 (15:58 -0700)]
osd rados command: Change error name snapset_mismatch to snapset_error

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Clean-up test and use local values for number of objects and osds
David Zafman [Tue, 20 Mar 2018 23:07:49 +0000 (16:07 -0700)]
test: Clean-up test and use local values for number of objects and osds

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Without snapdir we don't have a head mismatch error anymore
David Zafman [Wed, 21 Mar 2018 02:05:53 +0000 (19:05 -0700)]
osd: Without snapdir we don't have a head mismatch error anymore

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: list-inconsistent-obj attribute improvements
David Zafman [Fri, 16 Mar 2018 06:59:52 +0000 (23:59 -0700)]
osd rados command: list-inconsistent-obj attribute improvements

System attributes shown as "object_info", "snapset" and "hashinfo"
Only output user attributes as "attrs"
Drop leading undescore "_" for user attribute keys
Improve logic as to when to show user attributes or specific system attributes

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Change "oi" to "info" in scrub handling errors
David Zafman [Fri, 16 Mar 2018 04:50:30 +0000 (21:50 -0700)]
osd rados command: Change "oi" to "info" in scrub handling errors

data_digest_mismatch_oi -> data_digest_mismatch_info
omap_digest_mismatch_oi -> omap_digest_mismatch_info
size_mismatch_oi -> size_mismatch_info
obj_size_oi_mismatch -> obj_size_info_mismatch

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Change "oi_attr" to "info" in scrub handling errors
David Zafman [Fri, 16 Mar 2018 00:09:43 +0000 (17:09 -0700)]
osd rados command: Change "oi_attr" to "info" in scrub handling errors

oi_attr_missing -> info_missing
oi_attr_corrupted -> info_corrupted

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Rename ss_attr_missing/ss_attr_corrupted to snapset_missing/snapse...
David Zafman [Thu, 15 Mar 2018 21:29:54 +0000 (14:29 -0700)]
osd rados command: Rename ss_attr_missing/ss_attr_corrupted to snapset_missing/snapset_corrupted

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd rados command: Improve scrub handling of HashInfo (hinfo_key xattr)
David Zafman [Wed, 14 Mar 2018 23:07:01 +0000 (16:07 -0700)]
osd rados command: Improve scrub handling of HashInfo (hinfo_key xattr)

Fixes: http://tracker.ceph.com/issues/23364
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Don't crash in get_hash_info() with a corrupt HashInfo
David Zafman [Wed, 14 Mar 2018 23:29:18 +0000 (16:29 -0700)]
osd: Don't crash in get_hash_info() with a corrupt HashInfo

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Remove check that masks differences (let diff fail)
David Zafman [Wed, 4 Apr 2018 23:05:08 +0000 (16:05 -0700)]
test: Remove check that masks differences (let diff fail)

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge PR #21321 into master
Patrick Donnelly [Tue, 10 Apr 2018 18:33:21 +0000 (11:33 -0700)]
Merge PR #21321 into master

* refs/pull/21321/head:
tools/cephfs: instantiate MDSUtility after global_init()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #21130 from ceph/wip-rm23067
Andrew Schoen [Tue, 10 Apr 2018 18:31:56 +0000 (20:31 +0200)]
Merge pull request #21130 from ceph/wip-rm23067

ceph-volume  Implement an 'activate all' to help with dense servers or migrating OSDs

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #21304 from rjfd/wip-rbd-pybind-fixes
Mykola Golub [Tue, 10 Apr 2018 17:45:42 +0000 (20:45 +0300)]
Merge pull request #21304 from rjfd/wip-rbd-pybind-fixes

rbd: python bindings fixes and improvements

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21272 from cbodley/wip-rgw-beast-experiment
Casey Bodley [Tue, 10 Apr 2018 17:32:50 +0000 (13:32 -0400)]
Merge pull request #21272 from cbodley/wip-rgw-beast-experiment

rgw: beast frontend no longer experimental

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #21120 from oritwas/wip-rgw-21619
Yehuda Sadeh [Tue, 10 Apr 2018 17:21:52 +0000 (10:21 -0700)]
Merge pull request #21120 from oritwas/wip-rgw-21619

rgw: reshard cancel command should clear bucket resharding flag

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: beast frontend no longer experimental 21272/head
Casey Bodley [Fri, 6 Apr 2018 01:10:40 +0000 (21:10 -0400)]
rgw: beast frontend no longer experimental

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge PR #21302 into wip-sage-testing-20180410.153118
Sage Weil [Tue, 10 Apr 2018 15:31:26 +0000 (10:31 -0500)]
Merge PR #21302 into wip-sage-testing-20180410.153118

* refs/pull/21302/head:
qa/suites/rados/singleton/all/random-eio: whitelist eio error message

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge PR #21315 into wip-sage-testing-20180410.153007
Sage Weil [Tue, 10 Apr 2018 15:30:48 +0000 (10:30 -0500)]
Merge PR #21315 into wip-sage-testing-20180410.153007

* refs/pull/21315/head:
qa/tasks/mgr/test_failover: fix for id -> name rename in mgr metadata

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agogithubmap: update contributors
Sage Weil [Tue, 10 Apr 2018 15:30:47 +0000 (10:30 -0500)]
githubmap: update contributors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21324 from tchaikov/wip-23495
Josh Durgin [Tue, 10 Apr 2018 15:21:11 +0000 (08:21 -0700)]
Merge pull request #21324 from tchaikov/wip-23495

qa/suites: whitelist SLOW_OPS

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agomgr/dashboard: Replace toastr calls with notification service 21078/head
Tiago Melo [Tue, 10 Apr 2018 15:01:42 +0000 (16:01 +0100)]
mgr/dashboard: Replace toastr calls with notification service

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add notification component
Tiago Melo [Tue, 27 Mar 2018 20:25:15 +0000 (21:25 +0100)]
mgr/dashboard: Add notification component

This component is used on the navigation bar and will show the user the 10 most
recent notifications.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add notification service
Tiago Melo [Tue, 10 Apr 2018 14:55:44 +0000 (15:55 +0100)]
mgr/dashboard: Add notification service

This service should be used to display any notification/toast to the user.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #19283 from yehudasa/wip-rgw-mfa
Yehuda Sadeh [Tue, 10 Apr 2018 14:59:10 +0000 (07:59 -0700)]
Merge pull request #19283 from yehudasa/wip-rgw-mfa

rgw: mfa support

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21327 from LenzGr/dashboard-fork-awesome
Ricardo Dias [Tue, 10 Apr 2018 14:58:26 +0000 (15:58 +0100)]
Merge pull request #21327 from LenzGr/dashboard-fork-awesome

mgr/dashboard: Replace font-awesome with fork-awesome

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile vtheile@suse.com
7 years agoMerge PR #21080 into master
Patrick Donnelly [Tue, 10 Apr 2018 14:54:14 +0000 (07:54 -0700)]
Merge PR #21080 into master

* refs/pull/21080/head:
src: Added const references to various function parameters

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #21126 from tspmelo/wip-services
Lenz Grimmer [Tue, 10 Apr 2018 14:47:03 +0000 (16:47 +0200)]
Merge pull request #21126 from tspmelo/wip-services

mgr/dashboard: Add Api module

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
7 years agomgr/dashboard: Replace font-awesome with fork-awesome 21327/head
Lenz Grimmer [Tue, 10 Apr 2018 12:59:46 +0000 (14:59 +0200)]
mgr/dashboard: Replace font-awesome with fork-awesome

Replaces the dependency on Font Awesome with Fork Awesome
(https://forkawesome.github.io/), which is a plug-in replacement
for font-awesome 4.7.0 and adds a few more icons (see
https://forkawesome.github.io/Fork-Awesome/whats-new/ for
background information about this fork).

It is licensed under the following licenses - see
https://forkawesome.github.io/Fork-Awesome/license/ for details:

Fonts: SIL OFL 1.1
Code: MIT License
Documentation: CC BY 3.0

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agoosd,mds: use map::merge() whenever appropriate 21310/head
Kefu Chai [Tue, 10 Apr 2018 06:07:17 +0000 (14:07 +0800)]
osd,mds: use map::merge() whenever appropriate

and use explicit std::move() when map::merge() is not available.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: resend osd_pgtemp if it's not acked
Kefu Chai [Mon, 9 Apr 2018 16:56:05 +0000 (00:56 +0800)]
osd: resend osd_pgtemp if it's not acked

if the osd_pgtemp message is dropped before monitor receives it, we need
to resend it. otherwise a pg could be stuck in activating state if the
pg creation was withheld by the max-pg-per-osd on the replica, and then
the replica osd removes some existing pg.

Fixes: http://tracker.ceph.com/issues/23610
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21319 from majianpeng/doc-remove-osd-op-threads
Kefu Chai [Tue, 10 Apr 2018 12:12:08 +0000 (20:12 +0800)]
Merge pull request #21319 from majianpeng/doc-remove-osd-op-threads

doc: remove unused config: "osd op threads"

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/suites: whitelist SLOW_OPS 21324/head
Kefu Chai [Tue, 10 Apr 2018 11:24:22 +0000 (19:24 +0800)]
qa/suites: whitelist SLOW_OPS

Fixes: http://tracker.ceph.com/issues/23495
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agorgw: warn user about on going resharding when canceling it 21120/head
Orit Wasserman [Thu, 29 Mar 2018 10:57:28 +0000 (13:57 +0300)]
rgw: warn user about on going resharding when canceling it

Fixes: http://tracker.ceph.com/issues/21619
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agorgw: no need to RGWReshard::get before remove
Orit Wasserman [Thu, 29 Mar 2018 10:34:50 +0000 (13:34 +0300)]
rgw: no need to RGWReshard::get before remove

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #21112 from guzhongyan/fix-vlog
Kefu Chai [Tue, 10 Apr 2018 10:51:12 +0000 (18:51 +0800)]
Merge pull request #21112 from guzhongyan/fix-vlog

src: fix various log messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21028 from rzarzynski/wip-osd-get_rw_locks-norefcnt
Kefu Chai [Tue, 10 Apr 2018 10:49:01 +0000 (18:49 +0800)]
Merge pull request #21028 from rzarzynski/wip-osd-get_rw_locks-norefcnt

osd: avoid unnecessary ref-counting across PrimaryLogPG::get_rw_locks.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21235 from xiexingguo/wip-fix-obj-start
Kefu Chai [Tue, 10 Apr 2018 10:47:58 +0000 (18:47 +0800)]
Merge pull request #21235 from xiexingguo/wip-fix-obj-start

osd/osd_types: fix ideal lower bound object-id of pg

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotools/cephfs: instantiate MDSUtility after global_init() 21321/head
Yan, Zheng [Tue, 10 Apr 2018 08:02:18 +0000 (16:02 +0800)]
tools/cephfs: instantiate MDSUtility after global_init()

cephfs-foo-tool from current master crashes immediately it starts.

Introduced by commit 6972273d53d "global: output usage on -h, --help,
or no args before contacting mons"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/23624
7 years agoMerge pull request #21313 from ceph/wip-pg-clean-timeout
Josh Durgin [Tue, 10 Apr 2018 05:27:16 +0000 (22:27 -0700)]
Merge pull request #21313 from ceph/wip-pg-clean-timeout

qa/tasks: Add default timeout for wait for pg clean task

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21284 from tchaikov/wip-cmake-libstdcxx
Kefu Chai [Tue, 10 Apr 2018 05:21:31 +0000 (13:21 +0800)]
Merge pull request #21284 from tchaikov/wip-cmake-libstdcxx

cmake: define HAVE_STDLIB_MAP_SPLICING for both libstdc++ and libc++

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge pull request #21290 from rjfd/wip-dashboard-fix-rest-controller
Kefu Chai [Tue, 10 Apr 2018 05:19:08 +0000 (13:19 +0800)]
Merge pull request #21290 from rjfd/wip-dashboard-fix-rest-controller

mgr/dashboard: restcontroller: fix detection of id args in element requests

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #21039 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:33:15 +0000 (21:33 -0700)]
Merge PR #21039 into master

* refs/pull/21039/head:
qa/workunits/fs: test for cephfs rstats
mds: make rstat.rctime follow inodes' ctime

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21040 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:33:10 +0000 (21:33 -0700)]
Merge PR #21040 into master

* refs/pull/21040/head:
mds: mark damaged if sessions' preallocated inos don't match inotable

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21132 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:33:06 +0000 (21:33 -0700)]
Merge PR #21132 into master

* refs/pull/21132/head:
client: remove getgroups_cb
client: remove _getgrouplist
client: have init_gids just set alloced_gids to true
client: remove init_groups
fuse: handle errors appropriately when getting group list

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #21144 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:33:00 +0000 (21:33 -0700)]
Merge PR #21144 into master

* refs/pull/21144/head:
mds: fix unhealth heartbeat during rejoin

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21167 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:32:56 +0000 (21:32 -0700)]
Merge PR #21167 into master

* refs/pull/21167/head:
mds: make stopping mds export strays and subtree at the same time
mds: handle client requests while mds is stopping
mds: check projected linkage before migrating stray dentry

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21191 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:32:51 +0000 (21:32 -0700)]
Merge PR #21191 into master

* refs/pull/21191/head:
client: fix request send_to_auth was never really used

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #21255 into master
Patrick Donnelly [Tue, 10 Apr 2018 04:32:47 +0000 (21:32 -0700)]
Merge PR #21255 into master

* refs/pull/21255/head:
mds: automatically create snaprealm for old format quota
client: check if mds create snaprealm when setting quota
mds: remove unused MDCache::snaprealm_create()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoqa/tasks/mgr/test_failover: fix for id -> name rename in mgr metadata 21315/head
Sage Weil [Tue, 10 Apr 2018 02:48:40 +0000 (21:48 -0500)]
qa/tasks/mgr/test_failover: fix for id -> name rename in mgr metadata

This was changed by 428236de8b4155beffb5a4ffa8dd206230325a01

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomds: limit run time of load balancer 19220/head
Yan, Zheng [Tue, 3 Apr 2018 04:21:07 +0000 (12:21 +0800)]
mds: limit run time of load balancer

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: add list to track recently used sub-directories
Yan, Zheng [Mon, 2 Apr 2018 12:32:14 +0000 (20:32 +0800)]
mds: add list to track recently used sub-directories

MDBalancer::find_exports() can be more efficient with LRU list.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: calculate other mds' last_epoch_under locally
Yan, Zheng [Tue, 26 Dec 2017 09:10:32 +0000 (17:10 +0800)]
mds: calculate other mds' last_epoch_under locally

No need to get this information from MHeartbeat

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: cleanup mds_load map access/update
Yan, Zheng [Mon, 18 Dec 2017 11:45:11 +0000 (19:45 +0800)]
mds: cleanup mds_load map access/update

using map::insert to access map items looks strang

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: check export pin when choosing dirfrags for exporting
Yan, Zheng [Wed, 6 Dec 2017 08:14:19 +0000 (16:14 +0800)]
mds: check export pin when choosing dirfrags for exporting

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: optimize MDBalancer::find_exports()
Yan, Zheng [Wed, 6 Dec 2017 05:56:26 +0000 (13:56 +0800)]
mds: optimize MDBalancer::find_exports()

stop at subtree bounds; make freezing/frozen check more efficient.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: avoid creating unnecessary subtrees during load balance
Yan, Zheng [Wed, 6 Dec 2017 06:19:04 +0000 (14:19 +0800)]
mds: avoid creating unnecessary subtrees during load balance

When choosing dirfrags for exporting, consider subtrees imported
from other MDS first. It's because that exporting dirfrags chosen
by MDBalancer::find_export() will create new subtrees.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: mds: optimize MDBalancer::try_rebalance()
Yan, Zheng [Tue, 3 Apr 2018 03:34:32 +0000 (11:34 +0800)]
mds: mds: optimize MDBalancer::try_rebalance()

1. change import_pop_map to multimap because subtrees may have the same
   popularity.
2. avoid calculating subtrees' popularity multiple times

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: don't try exporting subdir if dirfrag is already being exported
Yan, Zheng [Tue, 3 Apr 2018 03:29:54 +0000 (11:29 +0800)]
mds: don't try exporting subdir if dirfrag is already being exported

It doesn't make sense to call MDBalancer::find_exports() for a dirfrag
that is already being exported.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: don't try exporting dirfrags under mds's own mdsdir
Yan, Zheng [Wed, 6 Dec 2017 05:37:19 +0000 (13:37 +0800)]
mds: don't try exporting dirfrags under mds's own mdsdir

Migrator will refuse to export them. Besides, stray directory can
never be subtree root.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: cleanup MDBalancer::try_rebalance()
Yan, Zheng [Wed, 6 Dec 2017 03:50:48 +0000 (11:50 +0800)]
mds: cleanup MDBalancer::try_rebalance()

no logic changes

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: always pass current time to MDBalancer::{hit_inode,hit_dir}
Yan, Zheng [Tue, 21 Nov 2017 08:23:20 +0000 (16:23 +0800)]
mds: always pass current time to MDBalancer::{hit_inode,hit_dir}

There were codes that pass mdr->get_mds_stamp() to {hit_inode,hit_dir}.
The stamp can be older than 'last_decay' in decay counters,  which can
cause DecayCounter::decay() to malfunction.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: remove unused MDBalancer::export_empties()
Yan, Zheng [Mon, 20 Nov 2017 12:53:38 +0000 (20:53 +0800)]
mds: remove unused MDBalancer::export_empties()

MDCache::trim() already does the same job

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: don't decay load counters when printing load
Yan, Zheng [Mon, 20 Nov 2017 10:15:39 +0000 (18:15 +0800)]
mds: don't decay load counters when printing load

Changing load counters while printing load results confusing output.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: adjust pop_nested when importing subtree
Yan, Zheng [Tue, 21 Nov 2017 09:42:40 +0000 (17:42 +0800)]
mds: adjust pop_nested when importing subtree

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: adjust subtree popularity when import fails
Yan, Zheng [Fri, 17 Nov 2017 01:22:04 +0000 (09:22 +0800)]
mds: adjust subtree popularity when import fails

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: adjust subtree popularity after rename
Yan, Zheng [Fri, 17 Nov 2017 01:40:21 +0000 (09:40 +0800)]
mds: adjust subtree popularity after rename

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: fix request rate calculation
Yan, Zheng [Mon, 13 Nov 2017 09:22:33 +0000 (17:22 +0800)]
mds: fix request rate calculation

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/21745
7 years agoMerge pull request #21295 from badone/wip-large-omap-scrub-big-random-loser-2
Josh Durgin [Tue, 10 Apr 2018 00:44:33 +0000 (17:44 -0700)]
Merge pull request #21295 from badone/wip-large-omap-scrub-big-random-loser-2

qa/suites/rados: Disable scrub backoff

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tasks: wait_for_clean is called after ceph task as well after osd's are up, 21313/head
Vasu Kulkarni [Tue, 10 Apr 2018 00:24:42 +0000 (17:24 -0700)]
qa/tasks: wait_for_clean is called after ceph task as well after osd's are up,
the default timeout is none in that case, there are cases where it can hang  forever
due to error cases, since this dumps quite a lot of info the logs grow in GB's, with
default timeout of 1200 we can avoid such huge logs and fail sooner. Any tests needing
higher timeout can pass the required value.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoceph-volume lvm.activate error if no bluestore OSDs are found 21130/head
Alfredo Deza [Tue, 10 Apr 2018 00:00:27 +0000 (20:00 -0400)]
ceph-volume lvm.activate error if no bluestore OSDs are found

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests/functional add 'activate all' for xenial/filestore/dmcrypt
Alfredo Deza [Mon, 9 Apr 2018 17:56:45 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for xenial/filestore/dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests/functional add 'activate all' for xenial/bluestore/dmcrypt
Alfredo Deza [Mon, 9 Apr 2018 17:56:31 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for xenial/bluestore/dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests/functional add 'activate all' for centos7/filestore/dmcrypt
Alfredo Deza [Mon, 9 Apr 2018 17:56:12 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for centos7/filestore/dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests/functional add 'activate all' for centos7/bluestore/dmcrypt
Alfredo Deza [Mon, 9 Apr 2018 17:55:59 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' for centos7/bluestore/dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests/functional add 'activate all' in filestore playbook
Alfredo Deza [Mon, 9 Apr 2018 17:55:15 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' in filestore playbook

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: remove unused config: "osd op threads" 21319/head
Jianpeng Ma [Mon, 9 Apr 2018 21:39:59 +0000 (05:39 +0800)]
doc: remove unused config: "osd op threads"

This option already removed.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoceph-volume tests/functional add 'activate all' in bluestore playbook
Alfredo Deza [Mon, 9 Apr 2018 17:55:05 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' in bluestore playbook

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #21309 from ceph/wip-yuriw-crontab
Yuri Weinstein [Mon, 9 Apr 2018 19:37:57 +0000 (12:37 -0700)]
Merge pull request #21309 from ceph/wip-yuriw-crontab

qa/tests - minor clean ups and made perf-suite run 3 times, so we can…

Reviewed-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #21282 from liewegas/wip-pgpool-enc
Sage Weil [Mon, 9 Apr 2018 19:16:49 +0000 (14:16 -0500)]
Merge pull request #21282 from liewegas/wip-pgpool-enc

osd/osd_types: fix pg_pool_t encoding for hammer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Drymov <idryomov@redhat.com>
7 years agoqa/tests - minor clean ups and made perf-suite run 3 times, so we can have more data... 21309/head
Yuri Weinstein [Mon, 9 Apr 2018 16:17:10 +0000 (09:17 -0700)]
qa/tests - minor clean ups and made perf-suite run 3 times, so we can have more data points

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge PR #21263 into master
Patrick Donnelly [Mon, 9 Apr 2018 15:59:11 +0000 (08:59 -0700)]
Merge PR #21263 into master

* refs/pull/21263/head:
doc: outline upgrade procedure for mds cluster

Reviewed-by: Douglas Fuller <dfuller@redhat.com>