Commit Graph

98400 Commits

Author SHA1 Message Date
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
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
Dmitriy Rabotjagov
c336882cf6 mgr/zabbix: Fix raw_bytes_used key name
This patch fixes raw_bytes_used key which was renamed to stored_raw.
Also added key percent_used and fixed zabbix template to be fully
compatible with zabbix 3.0

Fixes: https://tracker.ceph.com/issues/39644
Signed-off-by: Dmitriy Rabotjagov <noonedeadpunk@ya.ru>
2019-05-28 13:10:49 +03:00
Lenz Grimmer
2e2bc8e228
mgr/dashboard: Unify remaining action labels (#28162)
mgr/dashboard: Unify remaining action labels

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2019-05-28 11:28:12 +02:00
Volker Theile
8e6838c740 monitoring: SNMP OID per every Prometheus alert rule
Use the Ceph enterprise OID 50495 (https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers) and create OIDs for every Prometheus alert rule according to the schema at https://github.com/SUSE/prometheus-webhook-snmp/blob/master/README.md.

Example OID:
1.3.6.1.4.1.50495.15.1.2.2.1

All alert rule OIDs are located below the object identifier 15 (15 for p which is the first character of prometheus). Check out the MIB at https://github.com/SUSE/prometheus-webhook-snmp/blob/master/PROMETHEUS-ALERT-CEPH-MIB.txt for more details.

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-05-28 09:59:50 +02:00
Yan, Zheng
a5948e9bdc
Merge pull request #27436 from simon-rock/simon_work
mds: avoid sending too many osd requests at once after mds restarts
2019-05-28 15:30:31 +08:00
Kefu Chai
bad8d62811
Merge pull request #28224 from jan--f/pool-ls-detail-ec-profile
osd_types: add ec profile to plain text osd pool ls detail output

Reviewed-by: Sage Weil <sage@redhat.com>
2019-05-28 05:28:00 +02:00
Kefu Chai
e2b7da363c
Merge pull request #28159 from batrick/i39599
common: fix parse_env nullptr deref

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-28 05:26:27 +02:00
Kefu Chai
fc4d54ac30
Merge pull request #28057 from wido/zabbix-pg-state
mgr/zabbix: Fix typo in key name for PGs in backfill_wait state

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-05-28 05:24:09 +02:00
Kefu Chai
f9b1b41a4f
Merge pull request #28025 from markhpc/wip-bs-aio-preadv
os/bluestore: Unify on preadv for io_uring and future refactor.

Reviewed-by: Sage Weil <sage@redhat.com>
2019-05-28 05:22:24 +02:00
Kefu Chai
891b2d0a10
Merge pull request #28010 from ifed01/wip-ifed-dump-large-onode
os/bluestore: dump onode that has too many spanning blobs

Reviewed-by: Sage Weil <sage@redhat.com>
2019-05-28 05:16:21 +02:00
Kefu Chai
2ea3df1967
Merge pull request #26341 from sebastian-philipp/dashboard-merge-orchclient
mgr/dashboard: Fix iSCSI + Rook issues

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2019-05-28 05:11:13 +02:00
simon gao
78484352f5 mds: avoid sending too many osd requests at once after mds restarts
Fixes: http://tracker.ceph.com/issues/40028

Signed-off-by: simon gao <simon29rock@gmail.com>
2019-05-27 22:36:32 -04:00
Volker Theile
6199597091 mgr/dashboard: Fixing RGW user user/bucket quota info
Display '-' if user/bucket quota is disabled instead of displaying the current set values.

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-05-27 17:41:49 +02:00
Volker Theile
9a883dcd6b mgr/dashboard: Fix RGW user/bucket quota issues
* RGW user/bucket "max. size" should be hidden when "user/bucket quota" is not enabled
* Only execute validators if necessary

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-05-27 15:40:22 +02:00
Volker Theile
2cc32e6e21 mgr/dashboard: Use serial RGW Admin OPS API calls
This PR takes care that changes done to a RGW user are submitted (via RGW Admin OPS API) in serial and NOT in parallel.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-05-27 15:38:00 +02:00
Lenz Grimmer
bc49c2ec85
mgr/dashboard: Subscribe to changes when RequiredIf is used (#28231)
mgr/dashboard: Subscribe to changes when RequiredIf is used

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-05-27 15:09:41 +02:00
Sebastian Wagner
f1ea02970b
Merge pull request #28078 from sebastian-philipp/kubejacker-fix-mgr-plugins
scripts/kubejacker: Fix mgr_plugins target for centos

Reviewed-by: Tim Serong <tserong@suse.com>
2019-05-27 10:14:45 +02:00