Commit Graph

75928 Commits

Author SHA1 Message Date
Sage Weil
c1704f2e6b mon: do not dereference empty mgr_commands
This may be empty before the initial quorum commits the static command
list.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 23:32:05 -04:00
Sage Weil
2f272ab451 qa/workunits/cephtool/test.sh: add sudo for daemon compact
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 23:18:03 -04:00
Patrick Donnelly
1e5c8aef7b
Merge PR 16390 into master
* refs/remotes/upstream/pull/16390/head:
	mds: cleanup with unique_ptr
	mds: add to get version in the mds_commands
	mds: cleanup

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-07-21 13:23:10 -07:00
Patrick Donnelly
9506789ce1
Merge PR 16379 into master
* refs/remotes/upstream/pull/16379/head:
	qa: fix MDS_CLIENT_RECALL copy error

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:23:07 -07:00
Patrick Donnelly
9e936c70b2
Merge PR 16337 into master
* refs/remotes/upstream/pull/16337/head:
	mds: clear dirty rstat flag on non-auth inode when finishing scatter update

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:23:04 -07:00
Patrick Donnelly
e46d63c8cc
Merge PR 16280 into master
* refs/remotes/upstream/pull/16280/head:
	Client: mkdirs bugs when two clients send mkdir request for a same dir

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:23:01 -07:00
Patrick Donnelly
71e49cf121
Merge PR 16278 into master
* refs/remotes/upstream/pull/16278/head:
	MDSMonitor: show laggy MDSs at higher debug level

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:58 -07:00
Patrick Donnelly
e0880c865a
Merge PR 16270 into master
* refs/remotes/upstream/pull/16270/head:
	mds: improve wording of mdsmap dne logging

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:56 -07:00
Patrick Donnelly
11d809e9fe
Merge PR 16232 into master
* refs/remotes/upstream/pull/16232/head:
	MDS: update the mlogger of mds in function check_memory_usage

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:53 -07:00
Patrick Donnelly
4eb985085f
Merge PR 16231 into master
* refs/remotes/upstream/pull/16231/head:
	Client: get rid of variable "butnot" in "client::get_caps"

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:50 -07:00
Patrick Donnelly
23e3d40751
Merge PR 16226 into master
* refs/remotes/upstream/pull/16226/head:
	qa: wait for OSDMap to propagate for snap purge

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:47 -07:00
Patrick Donnelly
58bac728bc
Merge PR 16149 into master
* refs/remotes/upstream/pull/16149/head:
	mds: misc cleanup

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-07-21 13:22:44 -07:00
Patrick Donnelly
db6b76b0e4
Merge PR 15942 into master
* refs/remotes/upstream/pull/15942/head:
	client: add unlock_fh_pos when abort

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-07-21 13:22:36 -07:00
Sage Weil
5e8fa3e06b crush: assume weight_set != null imples weight_set_size > 0
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 15:18:10 -04:00
Josh Durgin
5617604556 osd/PrimaryLogPG: skip deleted missing objects in pg[n]ls
Fixes: http://tracker.ceph.com/issues/20739
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2017-07-21 15:02:57 -04:00
Jason Dillaman
6b44cb6034 PendingReleaseNotes: added blurb for new RBD cap profiles
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:38 -04:00
Jason Dillaman
e1d439f2fb osd: expand profile caps upon construction to avoid potential race
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
44fa7ee788 qa/workunits/rbd: rbd-mirror tests should use 'mirror' user
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
56614d0ee9 qa/suites/rbd: mirroring tests should use rbd cap profiles
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
d32485ff37 qa/workunits/rbd: devstack test should use auth profiles
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
7f1b1dc38a doc: include details for new RBD cap profiles
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:30:18 -04:00
Jason Dillaman
fc816cbec5 mon,osd: drop the "allow" prefix for profile caps
The use of the a profile implies that it sets everything up. If
support for deny is ever added, it doesn't make much sense to
deny a profile.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:29:37 -04:00
Jason Dillaman
90d41ab4b5 osd: new 'rbd'/'rbd-read-only' osd cap profiles
The 'rbd' profile provides read-only class access on all pools
to the 'rbd_children' object and write access to the optionally
specified pool. The 'rbd-read-only' profile does as its name
implies.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:29:37 -04:00
Jason Dillaman
8aea47abaa osd: primitive cephx osd profile cap support
The two new example profiles are read-only and read-write

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:29:37 -04:00
Jason Dillaman
bdbae2e589 mon: added 'rbd' profile
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:29:37 -04:00
Jason Dillaman
9ceac16503 mon: support regex-based restrictions on command caps
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-07-21 14:29:37 -04:00
Kefu Chai
350feb87b2 Merge pull request #16445 from tchaikov/wip-16895
test: create asok files in a temp directory under $TMPDIR

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-22 02:24:28 +08:00
Sage Weil
31b73305b2 crush/CrushWrapper: only allocate weight_set if non-empty
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:57 -04:00
Sage Weil
09b89ace82 qa/workunits/mon/crush_ops.sh: fix in-use rule removal test
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:57 -04:00
Sage Weil
fac1de8259 qa/workunits/mon/crush_ops: require luminous clients for test
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:57 -04:00
Sage Weil
05d191ce3f doc/rados/operations/crush-map: creating rules
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:56 -04:00
Sage Weil
1bc77d65af doc/rados/operations/crush-map: document weight set commands
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:56 -04:00
Sage Weil
2e8afd16a9 doc/rados/operations/crush-map*: restructure and clean up
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:56 -04:00
Sage Weil
dc0f73d9c5 doc/rados/operations/crush-map: warn off manual crush map edits
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:56 -04:00
Sage Weil
3530cd7bce doc/rados/operations/crush-map: update crush location section
Fix various inaccuracies, simplify.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:56 -04:00
Sage Weil
e84f20209f doc/rados/operations/crush-map: prune intro
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:55 -04:00
Sage Weil
aec896bd04 mon/OSDMonitor: 'osd crush rule ls' plaintext output
More suitable for scripting.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:55 -04:00
Sage Weil
4d52e41baf crush/CrushWrapper: remove_item_under: weight down weight-sets
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:55 -04:00
Sage Weil
b69d8bf363 crush/CrushWrapper: remove_item_under whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:55 -04:00
Sage Weil
abf93430c8 crush/CrushWrapper: link_bucket whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:55 -04:00
Sage Weil
cdcfab35dc crush/CrushWrapper: detach_bucket: weight down weight_sets
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:54 -04:00
Sage Weil
6dea605445 crush/CrushWrapper: detach_bucket uninline
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:54 -04:00
Sage Weil
75a3566dec crush/CrushWrapper: remove_item: weight down weight-sets
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:54 -04:00
Sage Weil
c990e1abc2 crush/CrushWrapper: create_or_move_item whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:54 -04:00
Sage Weil
25fbcff649 crush/CrushWrapper: remove_item, bucket_remove_item whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:53 -04:00
Sage Weil
c731f2889b crush/CrushWrapper: update_item whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:53 -04:00
Sage Weil
2ceb22cd0c crush/CrushWrapper: adjust_item_weight* whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:53 -04:00
Sage Weil
d31182cc31 crush/CrushWrapper: bucket_add_item whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:53 -04:00
Sage Weil
e3df727c47 crush/CrushWrapper: add_bucket: populate weight-sets
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:53 -04:00
Sage Weil
a243936f4c crush/CrushWrapper: get_choose_args_positions helper
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 13:50:52 -04:00