Commit Graph

89926 Commits

Author SHA1 Message Date
Volker Theile
8311e4b6f5 mgr/dashboard: Display RGW user/bucket quota max size in human readable form
Fixes: https://tracker.ceph.com/issues/34315

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-09-03 09:46:07 +02:00
李丙洋 10208981
ba7604bdb4 doc: Fix Spelling Error of Rados Operations
Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
2018-09-03 09:57:44 +08:00
Alfredo Deza
ff192f493c
Merge pull request #23879 from dwahler/master
doc: add note about LVM volumes to ceph-deploy quick start

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-09-02 09:38:45 -07:00
David Wahler
ebac6e16b9 doc: add note about LVM volumes to ceph-deploy quick start
This commit also fixes some incorrect indentation that was causing
previous steps in the same section to be incorrectly numbered.

Signed-off-by: David Wahler <dwahler@gmail.com>
2018-09-02 10:43:07 -05:00
Kefu Chai
16e2da3352 cmake: link compressor plugins against lib the modern way
* always link against the target library not library paths
* import their include directories by linking against their target
  library, instead of doing so using target_include_directories()
  manually.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-09-02 14:43:57 +08:00
Sage Weil
e1d6ac82c9 common/cmdparse: cmd_getval_throws -> cmd_getval
Always throw.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:39:16 -05:00
Sage Weil
2eb20a6d85 mon: fix try/catch whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
fea5131f28 osd: catch cmd_bad_get from do_command
Refactor to limit impact of try block.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
c254516766 osd: catch cmd_bad_get for asok hooks
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
9cad299aaa mgr/DaemonServer: catch cmd_bad_get
Refactor handle_command slightly: establish the CommandContext, then call
_handle_command.  This keep the try block localized.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
4eb37953c3 common: catch cmd_bad_get
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
9539441781 mds/MDSDaemon: catch cmd_bad_get
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 16:38:58 -05:00
Sage Weil
c7916097c2 unittest_config: $host expands to ceph_get_short_hostname(), not hostname -s
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 15:57:27 -05:00
Sage Weil
88df536908 Merge PR #23540 into master
* refs/pull/23540/head:
	include/ceph_fs: rename old auid field
	PendingReleaseNotes: note about auid support removal
	radosgw-admin: remove -a --auth-uid arg
	rgw: remove auid member from RGWUserInfo
	auth: remove auid member from EntityAuth
	osd: remove auid session member
	mon: remove auid session member
	doc/dev/cephx_protocol: drop auid reference
	auth: remove auid args from handle_request and verify_authorizer
	mon/OSDMonitor: remove 'osd pool {get,set} <name> auid ...'
	mon/OSDMonitor: remove auid arg for 'osd lspools' and deprecate
	osd/OSDCap: remove auid from grammar
	osd/OSDCap: remove auid from is_capable() etc args
	auth: clean up cap parse error messages
	mon/AuthMonitor: raise health warning on invalid caps
	mon/AuthMonitor: drop ancient auth inc encoding compat
	messages/MPoolOp: drop auid member
	osdc/Objecter: drop change_pool_auid
	pybind/rados: drop auid arg to pool_create
	pybind/rados: drop change_auid
	rados: drop mkpool, rmpool commands
	rados: remove 'chown' command
	librados: deprecate calls that take auid
	librados: mark all auid calls deprecated
	mon/OSDMonitor: drop variable pool auid for prepare_new_pool
	mon/OSDMonitor: remove pool auid change support
	osdc/Objecter: do not pass auid to create_pool
	ceph-authtool: remove auid options
	qa/workunits/cephtool: remove auid tests

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2018-09-01 15:53:31 -05:00
Sage Weil
38817df0e9 Merge PR #23739 into master
* refs/pull/23739/head:
	mgr/telemetry: add crashdump info to report

Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2018-09-01 15:53:26 -05:00
Sage Weil
012d03b30b Merge PR #23766 into master
* refs/pull/23766/head:
	BlueStore: Fix concurrency conflicts

Reviewed-by: Sage Weil <sage@redhat.com>
2018-09-01 15:53:21 -05:00
Sage Weil
917fdbe542 osdc/Objecter: fix split vs reconnect race
If we are reconnecting to an OSD, we may not have a connection established
so this feature check is completely unreliable.  If there happens to be a
split, that could mean we don't resend an op that should have been resent.

Instead, we can infer the OSD has the new behavior if require_osd_release
is luminous or later.  If not, we can look at the per-osd features in the
OSDMap.

Fixes: http://tracker.ceph.com/issues/22544
Signed-off-by: Sage Weil <sage@redhat.com>
2018-09-01 15:48:37 -05:00
Ilya Dryomov
33fea11ebf
Merge pull request #23841 from idryomov/wip-krbd-namespaces
krbd: support for images within namespaces

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-09-01 11:39:40 +02:00
Xie Xingguo
0857124d23
Merge pull request #23663 from xiexingguo/wip-incompat-async-fixes
osd: some recovery improvements and cleanups


Reviewed-by: Sage Weil <sage@redhat.com>
2018-09-01 14:27:27 +08:00
Kefu Chai
e461ea6859
Merge pull request #23837 from rjfd/wip-update-dmclock
dmclock: update dmclock submodule sha1 to tip of ceph/dmclock.git master

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-09-01 14:01:14 +08:00
Sage Weil
b56984645c mon/ConfigMonitor: fix loading of non-module mgr config options
"*/mgr/*" is special (including "global/mgr/*" and "mgr/mgr/*" and
"mgr.foo/mgr/*".  "mgr/*" is wrong.

Fixes: http://tracker.ceph.com/issues/35076
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 17:09:19 -05:00
Sage Weil
fa86ad17b1 mon/ConfigMap: dump more in json form of 'config dump'
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 17:09:14 -05:00
Sage Weil
53e1b87455 include/ceph_fs: rename old auid field
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
bc858eac63 PendingReleaseNotes: note about auid support removal
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
487cfabc4f radosgw-admin: remove -a --auth-uid arg
It was already a no-op.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
b700f0fbfd rgw: remove auid member from RGWUserInfo
Unused.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
5df1a2ee9e auth: remove auid member from EntityAuth
Note that for the keyring we still accept (but ignore) auid lines so that
we can parse old keyrings that have them.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
c2e6044034 osd: remove auid session member
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
6120a1467b mon: remove auid session member
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
3ebdd47737 doc/dev/cephx_protocol: drop auid reference
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
3752b67ec9 auth: remove auid args from handle_request and verify_authorizer
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
b83b4d5874 mon/OSDMonitor: remove 'osd pool {get,set} <name> auid ...'
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
c2457ffbac mon/OSDMonitor: remove auid arg for 'osd lspools' and deprecate
Use 'osd pool ls' instead.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
0ce73796fd osd/OSDCap: remove auid from grammar
This is an incompatible change: old caps that include auid will no longer
parse.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
027bbe7223 osd/OSDCap: remove auid from is_capable() etc args
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
e0b59e91d1 auth: clean up cap parse error messages
Consistent formatted.  Drop newline.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Sage Weil
35820f4b88 mon/AuthMonitor: raise health warning on invalid caps
Raise a health warning if we have invalid (unparsable) caps in the auth
database.  Include a simple test.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 15:54:58 -05:00
Jason Dillaman
ef61fbc0c6
Merge pull request #23840 from idryomov/wip-krbd-untar-build-packages
qa: rbd_workunit_kernel_untar_build: install build dependencies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-31 13:53:39 -04:00
Jason Dillaman
72323c7ab8
Merge pull request #22983 from trociny/wip-journal-limit-inflight-appends
librbd: optionally limit journal in-flight appends

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-31 13:32:34 -04:00
Jason Dillaman
9abe3c2040
Merge pull request #23770 from Songweibin/wip-rbd-namespace
rbd: correct parameter of namespace and verify it before set_namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-31 13:32:15 -04:00
Ilya Dryomov
0a037ef15d krbd: support for images within namespaces
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-08-31 16:29:22 +02:00
Ilya Dryomov
f4db03d278 krbd: create udev_enumerate in enumerate_devices()
Make it easier to run more than one scan in a row.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-08-31 16:29:22 +02:00
Ilya Dryomov
95b9740a68 krbd: introduce krbd_spec
Don't substitute "@-" for HEAD when printing the spec.  Instead, omit
the snapshot part.  The same would be done for the namespace part.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-08-31 16:29:22 +02:00
Ilya Dryomov
faa7a3ce97 krbd: change krbd_unmap_by_spec() to take "" instead of NULL
krbd_map() and krbd_is_mapped() take "", krbd_unmap_by_spec() is the
odd one out.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-08-31 16:29:22 +02:00
Ilya Dryomov
4251a08561 krbd: remove unused include
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-08-31 16:29:22 +02:00
Sage Weil
4fe8cef327 mon/AuthMonitor: drop ancient auth inc encoding compat
This is for *ancient* mons (I'm guessing bobtail?).

Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Sage Weil
9fd2e0bc43 messages/MPoolOp: drop auid member
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Sage Weil
360c3b33f4 osdc/Objecter: drop change_pool_auid
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Sage Weil
1cbca88f83 pybind/rados: drop auid arg to pool_create
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00
Sage Weil
c3ec044415 pybind/rados: drop change_auid
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-31 09:27:36 -05:00