Commit Graph

99604 Commits

Author SHA1 Message Date
Yingxin Cheng
78f4ada0c9 test/crimson: track msg with tid in perf_async_msgr
fix perf_async_msgr by setting tid for perf_crimson_msgr to track
messages.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2019-07-08 22:17:39 +08:00
Sage Weil
b2eb5232de Merge PR #28901 into master
* refs/pull/28901/head:
	qa/standalone/scrub/osd-scrub-repair: fix 'scrub ok' grep
	osd/osd_types: remove 'snap_context' from SnapSet::dump()

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-07-08 08:36:05 -05:00
Kefu Chai
1468c8fc35 cmake/modules/Distutils.cmake: add setup as a dependency
so the extension will be rebuilt if setup.py is updated

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-08 20:30:14 +08:00
Kefu Chai
f17861cdfa cmake/modules/Distutils.cmake: avoid rebuilding cython ext
use the combination of add_custom_command() and add_custom_target() to
build cython extensions to avoid rebuilding the cython extension
everytime we run "make"

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-08 20:30:14 +08:00
Kefu Chai
83ffb1e2ca cmake/modules/Distutils.cmake: add byproduct
so add_custom_target() has better idea what is generated. if any target
will use it, it can be used as a dependency.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-08 20:29:07 +08:00
Kefu Chai
855685f0fc cmake: add an arg for name of cython extension
so we can deduce the path of cython extension

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-08 19:32:51 +08:00
Lenz Grimmer
9110ba50a5
mgr/dashboard: fix closing tag in app.component.html (#28899)
mgr/dashboard: fix closing tag in app.component.html

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-07-08 13:16:24 +02:00
Lenz Grimmer
9c85727824
mgr/dashboard: Upgrade ceph-iscsi config to version 10 (#28720)
mgr/dashboard: Upgrade ceph-iscsi config to version 10

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-07-08 13:10:08 +02:00
Lenz Grimmer
dae424ba6d
mgr/dashboard: check embedded Grafana dashboard references (#28234)
mgr/dashboard: check embedded Grafana dashboard references

Reviewed-by: Kanika Murarka <kmurarka@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-07-08 13:07:53 +02:00
Yuval Lifshitz
abfd6f72db rgw/pubsub: fix amqp topic bug. add disabled end2end push tests
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-07-07 13:48:40 +03:00
Yuval Lifshitz
38c23833b3 rgw/pubsub: fix duplicates due to multiple zone synching
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-07-07 13:48:40 +03:00
Yuval Lifshitz
1df809144c rgw/pubsub: run pubsub tests even if multisite fails
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-07-07 13:48:05 +03:00
Kefu Chai
b7010730f2
Merge pull request #28859 from tchaikov/wip-40646
ceph.spec.in: pin to gcc-c++-8.2.1

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2019-07-06 12:40:47 +08:00
J. Eric Ivancich
7dd1c240f0
Merge pull request #28838 from tchaikov/wip-rgw-printf-size_t
rgw/rgw_client_io_filters.h: print size_t the portable way
2019-07-05 17:20:58 -04:00
J. Eric Ivancich
aa749ae9fd
Merge pull request #28617 from zhangsw/rgw-fix-lifecycle-tag
rgw: Object tags shouldn't work with deletemarker or multipart expiration
2019-07-05 17:20:17 -04:00
J. Eric Ivancich
f01f50ef70
Merge pull request #28256 from theanalyst/rgw-lc-placement-target-fixes
rgw: lc: check for valid placement target before processing transitions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2019-07-05 17:19:41 -04:00
Adam C. Emerson
8d823e8f68 Merge pull request #28905 from adamemerson/wip-fix-crimson-test-build
rgw: Fix narrowing conversion error

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-07-05 16:52:24 -04:00
Matt Benjamin
0c505dcab4
Merge pull request #28192 from tianshan/fix_39989
rgw: fix list bucket with start maker and delimiter '/' will miss next object…
2019-07-05 16:21:46 -04:00
Kefu Chai
73746f3807
Merge pull request #28902 from tchaikov/wip-fix-crimson-test-build
test/crimson: fix FTBFS

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2019-07-06 01:52:01 +08:00
Kefu Chai
c242d3d636 test/crimson: fix FTBFS
Connection::send_message(Message*)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-06 00:15:27 +08:00
Adam C. Emerson
e48725dd6c rgw: Fix narrowing conversion error
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2019-07-05 12:08:18 -04:00
Kefu Chai
47d4351d3a ceph.spec.in,install-dep.sh: pin to gcc-c++-8.2.1
as an intermediate solution before
https://bugzilla.redhat.com/show_bug.cgi?id=1726630 gets fixed.

Fixes: https://tracker.ceph.com/issues/40646
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-07-05 23:59:21 +08:00
Tiago Melo
0eda52a31e mgr/dashboard: Fix npm vulnerabilities
Currently npm audit reports we have 12 vulnerabilities (4 moderate, 8 high).
This will fix most of them, leaving only 1 moderate that still doesn't have a
fix.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-07-05 14:42:56 +00:00
Kefu Chai
057a352be8
Merge pull request #28890 from cyx1231st/wip-seastar-msgr-msgreuse
crimson/net: prevent reusing the sent messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-07-05 21:11:46 +08:00
Yingxin Cheng
fcafb089d2 crimson: change to use make_message()
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2019-07-05 22:07:59 +08:00
Yingxin Cheng
f763d49603 crimson/net: check front_msg correctly during sweep
In order to check whether the front_msg is unchanged, we need to make sure:
* The sent message is not reused;
* The message to be checked is not freed;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2019-07-05 21:53:39 +08:00
Yingxin Cheng
2d6e770492 crimson/net: prevent reusing the sent messages
We are tracking sent messages by seq, so reusing messages will cause
undefined behavior because seq should not be shared between different
messages.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2019-07-05 21:51:34 +08:00
Tatjana Dehler
10d84c0a03 mgr/dashboard: fix closing tag
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-07-05 13:58:12 +02:00
Ricardo Marques
9b967b42f0
Merge pull request #28858 from callithea/wip-issue-40395
mgr/dashboard: Extend E2E test section

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-07-05 12:19:21 +01:00
Ernesto Puerta
fe6dd4b957
mgr/dashboard: Fix link format
Fix link (compodoc section) with wrong format.

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-07-05 12:34:51 +02:00
Lenz Grimmer
8bc9c8eed4
mgr/dashboard: use mds_mem.dn for fs dentries (#28505)
mgr/dashboard: use mds_mem.dn for fs dentries

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-07-05 11:42:01 +02:00
Dominique Leuenberger
b48ea142de
Packaging: Drop systemd BuildRequires in case of building for SUSE
There is already pkgconfig(systemd) present, which, in SUSE's packaging,
translates to the same package (systemd.pc is shipped as part of the main
systemd package). Not explicitly mentioning 'systemd' as package name allows
the openSUSE Build Service though to find shortcuts by using the
bootstrap packages, i.e. systemd-mini (ABI/API complete).

Signed-off-by: Dominique Leuenberger <dimstar@opensuse.org>
2019-07-05 09:15:20 +02:00
Kefu Chai
f22f12d54a
Merge pull request #28876 from tchaikov/wip-cmake-vstart-with-cython_cephfs
cmake: add cython_cephfs to vstart target

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-07-05 14:00:21 +08:00
Kefu Chai
d6c2ef6a11
Merge pull request #28845 from ifed01/wip-ifed-fix-alloc-dump
os/bluestore: more smart allocator dump when lacking space for bluefs.

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2019-07-05 11:28:30 +08:00
Jos Collin
f48760a280 doc: fix typo
Signed-off-by: Jos Collin <jcollin@redhat.com>
2019-07-05 08:54:49 +05:30
Kefu Chai
9e435474ca
Merge pull request #28651 from ifed01/wip-ifed-remove-assert-bs-tool
os/bluestore/bluestore-tool: minor fixes around migrate

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2019-07-05 11:12:53 +08:00
Kefu Chai
3f6f85819f
Merge pull request #28732 from tchaikov/wip-32bit-size_t
osdc/Striper: specialize std::min<>

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-07-05 11:07:05 +08:00
Kefu Chai
c2905fb3eb
Merge pull request #28829 from tchaikov/wip-dmclock-uint
dmclock: pick up fix to replace uint

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
2019-07-05 11:06:09 +08:00
Kefu Chai
a4ddc4bd85
Merge pull request #27834 from rzarzynski/wip-nss-drop-cms
rgw, common, build: drop NSS support

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-07-05 11:03:33 +08:00
Sage Weil
a960f2faa7 qa/standalone/scrub/osd-scrub-repair: fix 'scrub ok' grep
The log now also has a 'purged_snaps scrub ok' message that (generally)
precedes the first scrubbed PG.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-04 18:27:37 -05:00
Sage Weil
70ad54a0b3 osd/osd_types: remove 'snap_context' from SnapSet::dump()
We no longer have a snaps field with real values, so dumping this as a
"snap_context" is silly.  Instead, just dump the seq.

Adjust qa/standalone/scrub/osd-scrub-repair.sh accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-07-04 18:24:41 -05:00
Igor Fedotov
5ea89a4e0c os/bluestore/bluestore-tool: omit device from both source and taget
lists when migrating.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2019-07-04 20:04:15 +03:00
Igor Fedotov
9297d0420d os/bluestore/bluestore-tool: fix error output
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2019-07-04 20:04:15 +03:00
Igor Fedotov
47edbfdce8 os/bluestore/bluestore-tool: do not assert when migrate command fails.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2019-07-04 20:04:13 +03:00
Kefu Chai
ad56cb8aad
Merge pull request #28835 from croit/fix-24420
debian/control: add python-routes dependency for dashboard

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-07-05 01:02:32 +08:00
Stephan Müller
3fb21de8fd mgr/dashboard: Time diff service
The time diff service can easily calculate the difference between two
dates and print it out in a human readable duration format. It also can
calculate a end or start date based on a date and a duration string.

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-07-04 16:19:26 +02:00
Stephan Müller
b20e9c8db8 mgr/dashboard: Allow test selection overwrite
Currently it's not easily possible to mock a selection during table
action tests, that's why I added a method that is used to create the
selection that is used through out the table action scenario tests.
You can simply overwrite it to get a different base object as selection.

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-07-04 16:19:26 +02:00
Stephan Müller
5243190dfb mgr/dashboard: Handle unset settings
It's now easy to deal with unset settings.

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-07-04 16:19:26 +02:00
Stephan Müller
aa571a226d mgr/dashboard: Silence Alertmanager alerts
Now you can silence alerts through the dashboard. You can now create,
recreate, edit and expire a silence. You can create a silence based on a
selected alert.

The silence form will help you create a silence that silences an alert.
It is provided with functionality to check if the silences, that
you are about to create, will or will not match an active alert or even
a rule.

It also provides help choosing the right values for the right chosen
matcher attribute name, through the use of type ahead values.

The dashboard will now use the Prometheus and the Alertmanager API

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
2019-07-04 16:19:26 +02:00
Sage Weil
1bdc707a90 Merge PR #28877 into master
* refs/pull/28877/head:
	doc/dev/corpus.rst: minor tweaks

Reviewed-by: Sage Weil <sage@redhat.com>
2019-07-04 09:17:11 -05:00