Commit Graph

94601 Commits

Author SHA1 Message Date
Sage Weil
5481532554 Merge PR #26164 into master
* refs/pull/26164/head:
	mon/LogMonitor: lower logging level for check_sub

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-01 12:40:12 -06:00
Sage Weil
632a1033aa os/bluestore/KernelDevice: use flock(2) for block device lock
The fcntl locks fail due to the classic posix lock gotcha: if you close
*any* fd to the same inode from the process, the lock(s) go away.

Use flock(2) instead.  We have to be careful because we open the main
bluestore device via two KernelDevice instances: one for bluestore and
one for bluefs.  Add a no-lock flag so that the bluefs instance does not
try to lock and does not conflict with bluestore's.

Fixes: http://tracker.ceph.com/issues/38150
Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-01 11:39:41 -06:00
Ilya Dryomov
fa32d97a9f rbd: recognize alloc_size map option
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-01 17:59:38 +01:00
Kefu Chai
e124ad72cf
Merge pull request #26224 from tchaikov/radek-lru-cleanup
common: drop the unused methods from SharedLRU.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-02 00:01:58 +08:00
Sebastian Wagner
d361f77a78
Merge pull request #26171 from sebastian-philipp/orchestrator-merge-create-add
mgr/orchestrator: Unify `osd create` and `osd add`

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2019-02-01 16:42:36 +01:00
Patrick Nawracay
c870477461
Merge pull request #26151 from nathan-weinberg/cluster-tests
mgr/dashboard: Added additional breadcrumb and tab tests to Cluster menu

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2019-02-01 16:09:11 +01:00
J. Eric Ivancich
fdae3a71d7
Merge pull request #26231 from ivancich/wip-infinite-bucket-rm
rgw: `radosgw-admin bucket rm ... --purge-objects` can hang...

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-02-01 09:08:06 -05:00
Nathan Weinberg
2b8ed2cf18 mgr/dashboard: Added additional breadcrumb and tab tests to Cluster menu
Fixes: https://tracker.ceph.com/issues/38050
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
2019-02-01 08:55:37 -05:00
Lenz Grimmer
eba6be512b
Merge pull request #26203 from rhcs-dashboard/updated-pg-status-chart-colors
mgr/dashboard: Updated colors in PG Status chart

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-01 12:29:21 +01:00
Volker Theile
8210be29ad mgr: Use Py_BuildValue to create the argument tuple
Reduce the complexity of the code by using the generic function, Py_BuildValue(), that can create most common objects from C values, directed by a format string.

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-02-01 11:48:29 +01:00
Kefu Chai
5f030b0aa8
Merge pull request #25929 from falcon78921/wip-doc-37880
doc: updated rgw multitenancy link

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-01 17:21:54 +08:00
Sebastian Wagner
9e926e9927 mgr/orchestrator: Unify osd create and osd add
Also:

* Added some more tests
* Better validation of drive Groups
* Simplified `TestWriteCompletion`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-02-01 10:10:59 +01:00
Patrick Nawracay
ac8efbbed0 mgr/dashboard: Fix modified files only (frontend)
Introduces a new npm command: `npm run fixmod` which, unlike `npm run
fix`, only fixes modified files in the current git repository.  This is
faster than the comprehensive `npm run fix` solution and can hence be
called more often with less disturbance.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2019-02-01 09:02:59 +01:00
Abhishek L
d28ace9bef
Merge pull request #26228 from theanalyst/doc/releases/12.2.11
doc: add release notes for 12.2.11 luminous

Reviewed-By: Sage Weil <sage@redhat.com>
Reviewed-By: Neha Ojha <nojha@redhat.com>
Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-By: Eric Ivanvich <ivanvich@redhat.com>
2019-02-01 08:46:53 +01:00
Pritha Srivastava
512b6d8bd9 rgw: Adding documentation for controlling STS auth via policy.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2019-02-01 11:26:29 +05:30
Sage Weil
b7b78809f1 os/bluestore: add bluestore_ignore_data_csum option
This option just suppresses the EIO errors.  We still get the messages
in the logs, though.  This can be useful when you are in dire straights
and prefer some data to no data.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-31 17:33:57 -06:00
J. Eric Ivancich
5b3dc38c62 rgw: radosgw-admin bucket rm ... --purge-objects can hang...
This command can hang (i.e., enter an infinite loop) due to
problematic bucket index entries left as a result of bug
https://tracker.ceph.com/issues/38007 .

The fix is to ignore the false bucket index entries -- since they do
not represent actual objects -- and remove all actual objects in the
bucket, so that bucket itself can be removed.

This fixes the both code paths whether `--bypass-gc` is specified or
not.

Furthermore, to made these operations more efficient, the internal
listing of the bucket is done unordered. This would improve behavior
when removing buckets with a large number of objects.

Fixes: http://tracker.ceph.com/issues/38134
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2019-01-31 17:43:25 -05:00
Abhishek Lekshmanan
7c677047a6 doc: add release notes for 12.2.11 luminous
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-01-31 23:32:24 +01:00
Patrick Donnelly
359e091c80
Merge PR #26193 into master
* refs/pull/26193/head:
	mds: move session setup to ms_handle_accept
	common: add method to get StackStringStream ptr

Reviewed-by: Sage Weil <sage@redhat.com>
2019-01-31 12:35:36 -08:00
Patrick Donnelly
0d26266ccb
Merge PR #26038 into master
* refs/pull/26038/head:
	mds: simplify recall warnings
	mds: add extra details for cache drop output
	qa: test mds_max_caps_per_client conf
	mds: limit maximum number of caps held by session
	mds: adapt drop cache for incremental recall
	mds: recall caps incrementally
	mds: adapt drop cache for incremental trim
	mds: add throttle for trimming MDCache
	mds: cleanup SessionMap init
	mds: cleanup Session init

Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-01-31 12:08:26 -08:00
Patrick Donnelly
c0b3a11484
mds: simplify recall warnings
Instead of a timeout and complicated decisions about whether the client is
releasing caps in an expeditious fashion, just use a DecayCounter that tracks
the number of caps we've recalled. This counter is decremented whenever the
client releases caps. If the counter passes a threshold, then we raise the
warning.

Similar reworking is done for the steady-state recall of client caps. Another
release DecayCounter is added so we can tell when the client is not releasing
any more caps.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-31 12:07:54 -08:00
Patrick Donnelly
c2405957ed
mds: move session setup to ms_handle_accept
Session setup in ms_handle_authentication is (historically) racy where multiple
connections from the same client can come in before one is finally accepted.  A
session should only be created after ms_handle_accept. The MDS did some
backflips before this commit to ensure this.

Moreover, with the msgr2 changes, it is even more necessary since the address
nonce is not set until before ms_handle_accept is called.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-31 11:29:34 -08:00
Casey Bodley
e6c2da1e96
Merge pull request #26190 from cbodley/wip-rgw-datalog-last-trim
rgw multisite: only update last_trim marker on ENODATA

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-01-31 12:37:09 -05:00
Lenz Grimmer
3b3bea991b
doc/mgr/dashboard: NFS management instruction review
Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2019-01-31 13:39:57 +00:00
Radoslaw Zarzynski
4234101a15 common: drop the unused reset_comparator() from SharedLRU.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-01-31 20:46:07 +08:00
Radoslaw Zarzynski
b701f8f3e9 common: drop the unused get_comparator() from SharedLRU.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-01-31 20:46:07 +08:00
Jianpeng Ma
fd969f5461 osd: remove unused function.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2019-01-31 19:57:27 +08:00
Jeff Layton
79acfcf149
mgr/dashboard: controllers: dump required parameter name on assert error
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-01-31 11:10:10 +00:00
Ricardo Dias
ae57d5d537
doc/mgr/dashboard: NFS-Ganesha configuration instructions
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:10 +00:00
Ricardo Dias
eabb054b1a
mgr/dashboard: ganesha: add support for sec_label_xattr CEPH fsal attribute
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:10 +00:00
Ricardo Dias
acd9fc679e
mgr/dashboard: ganesha: add 'security_label' support
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:10 +00:00
Ricardo Dias
e6a9adc3e4
mgr/dashboard: ganesha: add 'att_expiration_time' support
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:10 +00:00
Ricardo Dias
e429afda53
qa/tasks/mgr/dashboard: NFS Ganesha tests
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:09 +00:00
Ricardo Dias
a99d58afa3
mgr/dashboard: test: added nfs ganesha unit tests
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:09 +00:00
Ricardo Dias
a1aec6c8d8
mgr/dashboard: NFS management backend
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 11:10:09 +00:00
Lenz Grimmer
99e45cd8d9
Merge pull request #26188 from Exotelis/tracker-37916
mgr/dashboard: Cleanup of the cluster and audit log

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-01-31 10:59:06 +01:00
Ricardo Dias
32c6cc47f6
mgr/dashboard: orchestrator: change reload_service to match new orchestrator interface
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:46:58 +00:00
Ricardo Dias
72b769cea3
mgr/dashboard: cephx: added CephX service class
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:42:27 +00:00
Ricardo Dias
56506ec83d
mgr/dashboard: cephfs: added CephFS service class
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:42:27 +00:00
Ricardo Dias
89f789398b
mgr/dashboard: rgw_client: add optinal user_id param to user_exists method
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:42:27 +00:00
Ricardo Dias
b55c702822
mgr/dashboard: controllers: improve task metadata parameter binding
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:42:27 +00:00
Ricardo Dias
9773e14bde
mgr/dashboard: remove static global variables
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-01-31 09:42:27 +00:00
Pritha Srivastava
0d69ee9ca3 rgw: Correcting logic for signature calculation for non s3 ops.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2019-01-31 10:14:25 +05:30
Yehuda Sadeh
4577a722b6 rgw: es: use default request headers for query requests
Needed for sending auth headers.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-01-30 15:15:56 -08:00
Patrick Donnelly
727c5aff99
common: add method to get StackStringStream ptr
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-30 14:24:08 -08:00
Andrew Schoen
93094a5230
Merge pull request #25542 from jan--f/c-v-extend-batch
Extend batch to accept explicit device lists

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2019-01-30 13:29:40 -06:00
Casey Bodley
aacd111e39
Merge pull request #26205 from cbodley/wip-38115
qa/mon: fix cluster support for monmap bootstrap

Reviewed-by: Sage Weil <sage@redhat.com>
2019-01-30 13:55:52 -05:00
Casey Bodley
82cd04b9d7
Merge pull request #26204 from pritha-srivastava/wip-rgw-signature-mismatch
rgw: Fix for SignatureMismatchError in s3 commands.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2019-01-30 12:39:39 -05:00
David Zafman
553d83dd24
Merge pull request #25403 from liyichao/rdigest
tools: Add clear-data-digest command to objectstore tool.

Reviewed-by: David Zafman <dzafman@redhat.com>
2019-01-30 09:30:23 -08:00
David Zafman
894bdf080e
Merge pull request #26158 from dzafman/wip-38053
Add hashinfo testing for dump command of ceph-objectstore-tool

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-01-30 09:29:01 -08:00