Commit Graph

98416 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Tiago Melo
cc81bbc83b mgr/dashboard: Change the provider of services to root
It looks like that even if we provide a service only in 1 module, there are
still situations where angular will create multiple instances of that service.

By setting root as its providers, this no longer happens.

Fixes: http://tracker.ceph.com/issues/39996

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-05-29 09:56:11 +00:00
Lenz Grimmer
9bf13f1777
mgr/dashboard: Use serial RGW Admin OPS API calls (#28223)
mgr/dashboard: Use serial RGW Admin OPS API calls

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-05-29 11:23:42 +02:00
Lenz Grimmer
41d2a9578a
Merge pull request #28174 from votdev/issue_39964
mgr/dashboard: Fix RGW user/bucket quota issues

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-29 10:31:09 +02:00
Lenz Grimmer
d93da9d746
Merge pull request #28168 from votdev/fix_create_key_title
mgr/dashboard: Display correct dialog title

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-29 10:28:07 +02:00
Lenz Grimmer
95578c9c75
mgr/dashboard: PG scrub configuration (#27072)
mgr/dashboard: PG scrub configuration

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-29 10:24:22 +02:00
Kefu Chai
538cf0f8e2 ceph.in: do not preload libasan if it is not found
before this change, `asan_lib_path` could be `None` when we check it to
see if it ends with `NOTFOUND`. this happens if WITH_SEASTAR=OFF or
WITH_ASAN=OFF, as in that case, find_package(Sanitizers) is not called,
hence `ASAN_LIBRARY` won't be set.

in this change, libasan is only preloaded if

- (WITH_SEASTAR=ON and CMAKE_BUILD_TYPE=Debug and ASAN_LIBRARY is found)
  or
- (WITH_ASAN)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-29 10:20:39 +08:00
Yuri Weinstein
3315df374c qa/tests: removed filters for client-upgrade-* suites
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2019-05-28 13:33:12 -07:00
Thomas Johnson
329e6fcc0c install-deps.sh: Typo for krb5 on FreeBSD
The FreeBSD dependency install specifies devel/kbr5 instead of devel/krb5

Fixes: https://tracker.ceph.com/issues/40050
Signed-off-by: Thomas Johnson <NTmatter@gmail.com>
2019-05-28 21:44:17 +02:00
Sage Weil
88d0067a88 Merge PR #28058 into master
* refs/pull/28058/head:
	mgr/zabbix: Fix raw_bytes_used key name

Reviewed-by: Sage Weil <sage@redhat.com>
2019-05-28 13:01:56 -05:00
Casey Bodley
ddb45d332a
Merge pull request #26967 from qwren/qat-accel-doc
doc: QAT Acceleration for Encryption and Compression

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-28 13:08:32 -04:00
Kefu Chai
37c70bd1a7
Merge pull request #28099 from tchaikov/wip-blobhash
blobhash: do not use cast for unaligned access

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-05-28 23:28:50 +08:00
Kefu Chai
52f262c237
Merge pull request #28247 from tchaikov/wip-disable-asan-if-notfound
ceph.in: disable ASAN if libasan is not found

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-28 23:14:31 +08:00
Volker Theile
c87e21da77 mgr/dashboard: Display correct dialog title
The dialog to create a new S3 key shows the title 'Show S3 key' instead of 'Create S3 key'.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-05-28 16:30:58 +02:00
Tatjana Dehler
aa68aca006 mgr/dashboard: Consider user permissions
Consider user permissions when showing advanced table actions and hide
all buttons requiring missing permissions from the user.
Also consider user permissions when showing submit buttons.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-05-28 16:14:33 +02:00
Tatjana Dehler
808d7cb39e mgr/dashboard: Add PG scrub configuration form
The commit adapts two different parts:

1. It adds all frontend related changes around the PG scrub
   configuration form
2. It also adds an API test case to check the existence of
   all hard-coded config options in the frontend

Fixes: https://tracker.ceph.com/issues/38211
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-05-28 16:14:33 +02:00
Tatjana Dehler
1834c68f84 mgr/dashboard: Add config option component
This commit adds an initial config option component in order to move
the HTML template and the config option types related code to an own
centralized place to be re-usable by other components

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-05-28 16:14:33 +02:00
Tatjana Dehler
cede2d4590 mgr/dashboard: Add config filter and delete routes
Add a filter route to the configurations endpoint to get a subset of
config options in one request.
Add a delete route to the configurations endpoint to delete a
specific config option value.

The commit contains the frontend and backend related changes.

It also adds the missing '/' to `ConfigurationService.bulkCreate` and
unit test.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-05-28 16:14:33 +02:00
Lenz Grimmer
2cd5ca2467
mgr/dashboard: Optimize iSCSI target edition (#27272)
mgr/dashboard: Optimize iSCSI target edition

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-28 15:35:50 +02:00
Kefu Chai
ec4065af4d blobhash: do not use cast for unaligned access
* remove the uncorrect comment. as std::hash<> does not apply to a
  customized type. see https://en.cppreference.com/w/cpp/utility/hash
* do not use cast for accessing an uint32_t by dereferencing (void *)
  or (char *) pointer. because the alignment requirement of `uint32_t`
  is stricter than that of `void*` or `char *`. we need to do an
  explicit memcpy() for accessing the uint32_t pointed by the pointer.
  see also https://www.kernel.org/doc/Documentation/unaligned-memory-access.txt
* instead of using a loop for mixing the last few bytes. use a switch-
  case. so GCC-9 won't complain with
```
../src/include/blobhash.h:38:10: warning: iteration 4 invokes undefined
behavior [-Waggressive-loop-optimizations]
   38 |       sh += 8;
      |       ~~~^~~~
../src/include/blobhash.h:36:12: note: within this loop
   36 |     while (len) {
      |            ^~~
```
  at seeing `sh += 8;`
* instead of mixing the last bits repeatly by derefencing `p` using
  `uint32_t`, while move it forwards with step size of `1`, mix
  the bits byte-wise.
* include <cstdint>. this header file is supposed to be self-contained.
* use `std::uint32_t` instead of using `uint32_t`. we cannot assume
  somebody is `using namespace std` or `using std::uint32_t` for us.
* mark the operator() `const noexcept`. see
  https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c89-make-a-hash-noexcept
  for the rationale behind this

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-28 21:22:26 +08:00
Kefu Chai
ef8ea3a61c
Merge pull request #27569 from batrick/gcc-9-wrn
CMakeLists: add std::move warnings in gcc9

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-28 19:21:46 +08:00
Lenz Grimmer
0197ac6b5a
mgr/dashboard: Add clients tab to NFS details (#28193)
mgr/dashboard: Add clients tab to NFS details

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2019-05-28 12:51:26 +02:00
Sebastian Wagner
d3ad99539b script/run_mypy: Sort groups
Workaround for https://github.com/python/mypy/issues/2144

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-05-28 12:11:50 +02:00