Commit Graph

98796 Commits

Author SHA1 Message Date
xie xingguo
20d05a13b3 mon/OSDMonitor: migrate 'osd {add,rm}-{noup,nodown,noin,noout}' command to new implementation
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-05-30 10:52:37 +08:00
xie xingguo
06e2255f90 mon/MonCommands: mark 'osd {add,rm}-{noup,nodown,noin,noout}' as deprecated
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-05-30 10:52:36 +08:00
xie xingguo
5d695267ef osd: add no{out,down,in,out} flags by device class
This works as a good supplement of https://github.com/ceph/ceph/pull/27563.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-05-30 10:52:35 +08:00
xie xingguo
9a05a065b9 osd,mon: add 'ceph osd {set,unset}-group <flags> <who>' command
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-05-30 09:46:51 +08:00
songweibin
acc447d5de osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method
Fixes: http://tracker.ceph.com/issues/39973

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2019-05-30 07:59:50 +08:00
Radoslaw Zarzynski
b2007e275f Revert "qa: remove mon valgrind check in rgw verfiy suite"
This reverts commit d25d6ee0af.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-05-29 23:39:16 +02:00
Radoslaw Zarzynski
af63e3f51f qa/valgrind.supp: fix the name for aes-128-gcm whiterules.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-05-29 23:39:16 +02:00
Casey Bodley
c6c4c5639e rgw: fetch_remote_obj() compares expected object size
if the size of object data received doesn't match the value returned in
the Rgwx-Object-Size header, fail with -EIO

Fixes: https://tracker.ceph.com/issues/39992

Signed-off-by: Xiaoxi CHEN <xiaoxchen@ebay.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-05-29 17:11:17 -04:00
Radoslaw Zarzynski
b71ded7b44 qa/valgrind.supp: generalize the whiterule for aes-128-gcm.
Fixes: http://tracker.ceph.com/issues/38827
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-05-29 23:10:52 +02:00
David Zafman
893d227c82 test: Make sure that extra scheduled scrubs don't confuse test
Fixes: http://tracker.ceph.com/issues/40078

Signed-off-by: David Zafman <dzafman@redhat.com>
2019-05-29 14:03:57 -07:00
Sage Weil
5686d1ccd5 Merge PR #27799 into master
* refs/pull/27799/head:
	common/utime: don't pass %z to utime if there is a 'Z'
	test: test json encode/decode of utime_t
	mgr/ssh: parse new datetime
	mgr/devicehealth: parse new datetime
	mgr/crash: parse both old and new timestamp formats
	mgr/telemetry: use cluster-provided timestamp unmolested
	mon/MonMap: dump timestamps in UTC
	qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator
	PendingReleaseNotes: note about change to ISO 8601 throughout
	test/cli: update regexs for timestamps
	log/LogClock: render timestamp in ISO 8601 format
	common/ceph_time: stringify in ISO 8601 format
	unittest_utime: add tests
	common/utime: make parse() handle (our) ISO 8601 output
	include/utime: make default string rendering ISO 8601 conformant
	include/utime: remove unused s[n]printf methods
	include/utime: make gmtime() output conformant ISO 8601

Reviewed-by: Kanika Murarka <kmurarka@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2019-05-29 15:27:52 -05:00
Sage Weil
1d1c4782ee common/utime: don't pass %z to utime if there is a 'Z'
This fails on centos 7 for some reason.

If it's UTC, we don't need to parse the tz portion, so avoid the issue by
leaving the %z out of the fmt string.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Casey Bodley
e24cd6bf3e test: test json encode/decode of utime_t
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
631ac85615 mgr/ssh: parse new datetime
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
b7e91923dc mgr/devicehealth: parse new datetime
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
8b02318f6b mgr/crash: parse both old and new timestamp formats
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
383006a5cc mgr/telemetry: use cluster-provided timestamp unmolested
The cluster stamp is now ISO 8601; just use that.

(The isoformat() puts a : in +hh:mm the timezone offset, which is slightly
different than what Ceph does; just pass Ceph's value through for
consistency.)

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
7eb971e93c mon/MonMap: dump timestamps in UTC
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
b747ae1711 qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
1f73631e75 PendingReleaseNotes: note about change to ISO 8601 throughout
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:15 -05:00
Sage Weil
8891fb56d4 test/cli: update regexs for timestamps
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
8f4811c3cb log/LogClock: render timestamp in ISO 8601 format
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
5e37a73247 common/ceph_time: stringify in ISO 8601 format
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
81c988093c unittest_utime: add tests
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
668d6e7f97 common/utime: make parse() handle (our) ISO 8601 output
- optional subsecond values
- optional timezone offset

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
79d8d761cf include/utime: make default string rendering ISO 8601 conformant
- use T separator
- include TZ offset

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
6b2102be22 include/utime: remove unused s[n]printf methods
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Sage Weil
ec3ddcb988 include/utime: make gmtime() output conformant ISO 8601
Use 'T' separated instead of ' '.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-29 14:12:01 -05:00
Jeff Layton
b52d85c2a7 doc: cephfs: add section on fsync error reporting to posix.rst
Fixes: http://tracker.ceph.com/issues/24641
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-05-29 14:47:28 -04:00
Yuri Weinstein
5111f6df16
Merge pull request #28271 from yuriw/wip-yuriw-crontab-master
qa/tests: removed filters for client-upgrade-* suites
2019-05-29 09:33:19 -07:00
Nathan Cutler
34bd11b992
Merge pull request #28170 from marxin/disable-lto-in-spec-file
rpm: Disable LTO in spec when being used.

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2019-05-29 18:21:34 +02:00
Kefu Chai
a9f8b1a609 buffer.h: remove list::iterator_impl::advance(size_t)
quote from Radoslaw's comment

> In general we could remove it as the `buffer` library tends to
> disrespects `size_t` – `list::_len` and `ptr::_len` are both
`unsigned`.
> There are some exceptions like `size_t buffer::ptr::get_offset()`
(used
> altogether with `::advance` in `denc.h`) but they deserve rework as
> well.

and in this very case, we simply cast `size_t` to `unsigned`. so we
could silently trim a 64bits integer to 32bit on 64bits architecture.

so for better portability, we can just remove it. also, this function is
inlined, so the ABI is not changed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-29 23:54:50 +08:00
Lenz Grimmer
b604435fe3
mgr/dashboard: Fix NFS clients squash/access_type default values (#28235)
mgr/dashboard: Fix NFS clients squash/access_type default values

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2019-05-29 17:40:31 +02:00
Thomas Johnson
62474ec989 blobhash.h: Remove extra fallthrough annotation
Remove the [[fallthrough]] annotation at the end of the switch statement
for Clang compatibility.

Fixes: https://tracker.ceph.com/issues/40052
Signed-off-by: Thomas Johnson <NTmatter@gmail.com>
2019-05-29 17:38:30 +02:00
Lenz Grimmer
ac520af893
Merge pull request #28211 from tspmelo/wip-service-root
mgr/dashboard: Change the provider of services to root
2019-05-29 17:32:42 +02:00
Lenz Grimmer
9922351e8b
Merge pull request #28118 from tspmelo/wip-on-push
mgr/dashboard: Reduce the number of renders on the tables
2019-05-29 17:29:43 +02:00
Lenz Grimmer
cea1d86ec2
mgr/dashboard: Add multi root support in CRUSH map (#28047)
mgr/dashboard: Add multi root support in CRUSH map

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2019-05-29 17:28:04 +02:00
Jason Dillaman
ce3d380a4a
Merge pull request #28179 from trociny/wip-39980
rbd-mirror: don't overwrite status error returned by replay

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-05-29 10:58:52 -04:00
Jason Dillaman
16aa0a772e
Merge pull request #28240 from trociny/wip-journal-overflow
journal: optimize object overflow detection

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-05-29 10:58:12 -04:00
Juan Miguel Olmo Martínez
4c6a1c6c68
mgr/ansible: TLS Mutual Authentication
- Changes needed to allow Ansible Orchestrator to use the new authentication strategy used in Ansible Runner Service
- Changes to propagate Ansible playbook errors to the completion result

Addressed changes suggested by the team

- Certificate and key are stored now in the mon KV store
- Option server_url is now server_location
- Using manager Options to have a better mgmt of MODULE_OPTIONS
- Added verbosity to status command to show problems connecting with external orchestrator
- lint problems fixed

Addressed changes suggested by @sebastian-philipp

- Improved messages and documentation

Fix error in documentation

- Fix error in ansible documentation
- Added examples in orchestrator-cli documentation

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2019-05-29 16:54:56 +02:00
Casey Bodley
ff5f4a57eb
Merge pull request #28275 from tchaikov/wip-cmake-asan
ceph.in: do not preload libasan if it is found

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2019-05-29 10:44:13 -04:00
Kefu Chai
7b7fd12bd6
Merge pull request #28269 from NTmatter/patch-1
install-deps.sh: fix typo for krb5 on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-29 22:23:10 +08:00
Lenz Grimmer
a9ffaa2c7e
Merge pull request #27978 from votdev/add_snmp_oids_to_prometheus_alerts
monitoring: SNMP OID per every Prometheus alert rule

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2019-05-29 15:58:23 +02:00
Yan, Zheng
0d51266c45 mds: fix 'is session in blacklist' check in Server::apply_blacklist()
Blacklist entries are always TYPE_ANY for nautilus+, but client's
entity addr type can be legacy.

Fixes: http://tracker.ceph.com/issues/40061
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2019-05-29 21:55:47 +08:00
Matthew Vernon
6812582222 doc: note explicitly that "profile rbd" allows blacklisting
The Luminous release notes tell users to ensure that rbd clients have
the ability to blacklist other client users; this is provided by
"profile rbd", which this change now documents explicitly in the user
management documentation.

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
2019-05-29 14:36:48 +01:00
Sebastian Wagner
9272e2e525
Merge pull request #28225 from sebastian-philipp/script-run-mypy-sort-groups
script/run_mypy: Sort groups

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
2019-05-29 15:21:17 +02:00
Alfredo Deza
ed708e5209 tests: pass --ssh-config to pytest to resolve hosts when connecting
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2019-05-29 08:56:37 -04:00
Martin Liska
6ab109bb9b rpm: Disable LTO in spec when being used
Fixes: http://tracker.ceph.com/issues/39974
Works around: https://tracker.ceph.com/issues/40060

Signed-off-by: Martin Liška <Martin.Liska@suse.com>
2019-05-29 14:26:42 +02:00
Patrick Nawracay
6814516ed5 mgr/dashboard: Fix npm run fixmod
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2019-05-29 14:21:25 +02:00
Nathan Cutler
29afe39365
Merge pull request #28002 from smithfarm/wip-39323-ext
pybind/tox: handle possible WITH_PYTHON3 values other than "3"

Reviewed-by: Stephan Müller <smueller@suse.com>
2019-05-29 13:39:32 +02:00