Commit Graph

93836 Commits

Author SHA1 Message Date
Sage Weil
221afb0e28 Merge PR #25840 into master
* refs/pull/25840/head:
	qa/msgr: add async-v1only case

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-01-10 17:20:10 -06:00
Sage Weil
2762955576 qa/standalone/mon/mon-handle-forward: fix grep path and check return results
This makes the test more strict and less confusing.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-10 17:18:38 -06:00
Sage Weil
a210f7dd3b mon/MonClient: be less aggressive/paranoid about reopening mon connections
Previously we were reopening any time the name of our mon changed.  That
was pretty much every time, since we started out with names from the
seed monmap like 'noname-[abc]' that never match the real mons.

Instead, only reopen if the addr we are connecting to is no longer in the
monmap.  We don't actually care about the mon's name.

Fixes: http://tracker.ceph.com/issues/37868
Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-10 17:18:38 -06:00
Sage Weil
f1dd338eb6 Merge PR #25792 into master
* refs/pull/25792/head:
	common/numa: remove unused _mask variants
	osd: support osd_numa_node, osd_numa_auto_affinity, osd_numa_prefer_iface
	mon/OSDMonitor: add 'osd numa-status' command
	osd: report numa node for network interface(s)
	common/pick_address: get numa node info for a interface
	os/bluestore: report numa node info for storage
	os/bluestore/KernelDevice: report numa info for each device
	os/bluestore: allow get_devices() to run without bluestore started
	common/blkdev: query numa info
	common/numa: cpu_set helpers and numa helpers
	common/blkdev: drop debug statements

Reviewed-by: Mark Nelson <mnelson@redhat.com>
2019-01-10 16:50:38 -06:00
Sage Weil
2114036e59 Merge PR #25841 into master
* refs/pull/25841/head:
	mon/MonClient: make mon hunt more aggressive

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-01-10 16:50:09 -06:00
Sage Weil
888bf53235 Merge PR #25827 into master
* refs/pull/25827/head:
	test/cls_rgw: fix signed/unsigned warning
	test/msgr/test_msgr: fix signed/unsigned warning
	msg/Connection: protect peer_addrs with safe_item_history<>

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-01-10 16:29:10 -06:00
Josh Durgin
76f95c52c4
Merge pull request #25704 from tchaikov/wip-36737-unittest-log
test: write log file to current directory

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-01-10 13:33:57 -08:00
Patrick Donnelly
66a5b27a76
client: define template to declare ref
To avoid including message headers in Client.h.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-10 10:34:51 -08:00
Patrick Donnelly
72afe87f82
client: use message smart ptr instead of raw ptr
Fixes: http://tracker.ceph.com/issues/37864

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-10 10:34:40 -08:00
Sage Weil
4eee470cd3 Merge PR #25898 into master
* refs/pull/25898/head:
	qa/tests: reduced nubmer of runs on 'ovh'

Reviewed-by: Sage Weil <sage@redhat.com>
2019-01-10 12:06:04 -06:00
Yuri Weinstein
4d7d0f53f3 qa/tests: reduced nubmer of runs on 'ovh'
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2019-01-10 09:03:16 -08:00
Sage Weil
bdb86f4f9c Merge PR #25544 into master
* refs/pull/25544/head:
	common/PriorityCache: Automatic chunk sizing

Reviewed-by: Sage Weil <sage@redhat.com>
2019-01-10 09:54:00 -06:00
Sage Weil
39e8de2d72 msg/async/Protocol*: bump global_seq when retrying connection
In the top connect retry in particular we do not bump connect_seq, so it
is critical that we bump global_seq so that the two connection attempts
are distinguishable at the peer.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-10 09:33:28 -06:00
Casey Bodley
4eb2911360
Merge pull request #25744 from cbodley/wip-test-rgw-reshard-wait
test/rgw: add ifdef for HAVE_BOOST_CONTEXT

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-01-10 10:32:26 -05:00
Mykola Golub
947351e626 rbd: fix delay time calculation for trash move
Fixes: https://tracker.ceph.com/issues/37861
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 15:15:36 +00:00
Jason Dillaman
5f3cb951c5 librbd: keep access/modified timestamp updates out of IO path
If the cache is enabled, it was possible for the timestamp updates
to cause race conditions with librbd clients (e.g. rbd export)
that had data corrupting effects since callbacks were expected to
be serialized.

Fixes: http://tracker.ceph.com/issues/37745
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-01-10 10:00:20 -05:00
Casey Bodley
8338de3ee4
Merge pull request #25892 from theanalyst/doc-rgw-usage-fix
doc: rgw: fix the default value of usage log setting

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-01-10 09:37:18 -05:00
Mykola Golub
ffb41b06c8 rbd-mirror: add aggregated replication perf counters
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Mykola Golub
99763d2d46 pybind/mgr/prometheus: export rbd-mirror metadata
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Mykola Golub
2162ed91d9 pybind/mgr: add rbd-mirror to get_all_perf_counters by default
This effectively enables rbd-mirror stats for modules like prometheus or
influx.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Mykola Golub
bb3d573a6e pybind/mgr/diskprediction_cloud: only perfs for mon and osd needed
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Mykola Golub
048bd5d0cc pybind/mgr: allow to specify services for get_all_perf_counters
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Mykola Golub
19a41c3563 rbd-mirror: create and export replication perf counters to mgr
Fixes: https://tracker.ceph.com/issues/21392
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-10 10:36:45 +00:00
Abhishek Lekshmanan
b21c96ec69 doc: rgw: fix the default value of usage log setting
Fixes: http://tracker.ceph.com/issues/37856
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-01-10 11:13:33 +01:00
Lenz Grimmer
929575bdad
Merge pull request #25769 from votdev/navbar_focus_color
mgr/dashboard: Fix navbar focused color

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Neha Gupta <gnehapk@gmail.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2019-01-10 11:01:21 +01:00
Lenz Grimmer
7fe4820c60
Merge pull request #25791 from rhcs-dashboard/36740-pool-stats-read-write-columns
mgr/dashboard: add columns to Pools table

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2019-01-10 09:58:05 +01:00
Sebastian Wagner
4dd332ebfb
Merge pull request #25839 from tchaikov/wip-37773
mgr/test_orchestrator: correct ceph-volume path

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-01-10 09:29:11 +01:00
Tatjana Dehler
17bdec41fc mgr/dashboard: use new config options type names
Use the new config option type names (given by the cluster) in the
dashboard.

Fixes: http://tracker.ceph.com/issues/37843
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-01-10 08:08:54 +01:00
Neha Ojha
dfc2929235 include/rados.h: hide CEPH_OSDMAP_PGLOG_HARDLIMIT from ceph -s
Signed-off-by: Neha Ojha <nojha@redhat.com>
2019-01-09 18:12:17 -08:00
Brad Hubbard
885a37ac02 mount.fuse.ceph: Fix ambiguous shebang
The ambiguous shebang now produces an error in rawhide and halts the
build. In f29 this was a warning. Add python3 as a dependency for
ceph-fuse.

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

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2019-01-10 10:32:07 +10:00
Tiago Melo
4980c2668e mgr/dashboard: Update bootstrap to 3.4.0
Fixes: https://tracker.ceph.com/issues/37834
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-01-09 22:20:32 -01:00
Tiago Melo
c0a45c9f0a mgr/dashboard: Update npm packages
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-01-09 22:20:32 -01:00
Patrick Donnelly
32edf22838
client: make map lookup optimizations
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 15:02:03 -08:00
Patrick Donnelly
486a9ca67b
client: do not clear message payload
We don't send the message back to the MDS and modifying the incoming message is
evil; it should be treated const.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 14:59:17 -08:00
Patrick Donnelly
0243fd9cbe
client: clean up variable name
"p" is for pair; "it" is for iterator.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 14:59:17 -08:00
Patrick Donnelly
a994b37695
*: use std::string_view instead of char ptr
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 14:59:17 -08:00
Mykola Golub
9a3b87bf98 test/journal: ReplayEntry::get_data is const
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-01-09 21:39:07 +00:00
Josh Durgin
a05f9ebaa6
Merge pull request #25816 from neha-ojha/wip-36686
osd/mon: fix upgrades for pg log hard limit

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil  <sage@redhat.com>
2019-01-09 13:17:30 -08:00
Alfredo Deza
3b9262a825
Merge pull request #25321 from votdev/fix_dict_changed_size
ceph-volume: Add unit test

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2019-01-09 13:29:54 -05:00
Neha Ojha
b2879e5a04 pybind/mgr/dashboard: add modified messages.xlf
This is to fix the make check failure in
mgr-dashboard-frontend-unittests.

Signed-off-by: Neha Ojha <nojha@redhat.com>
2019-01-09 10:17:35 -08:00
Sage Weil
a591dfbbae common/numa: remove unused _mask variants
These parse the 'local_cpus' file that has a hex bitmask, but I didn't end
up using them.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-01-09 09:44:48 -06:00
Patrick Donnelly
360550b1ab
qa: fix damage expectation setting
The purge queue expectation was being ignored.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 07:05:01 -08:00
Patrick Donnelly
909d0f1333
qa: fix loop variable reference
Otherwise the Mutation for Truncate is done on obj_id of the last iteration of the previous loop.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-01-09 07:05:00 -08:00
Jason Dillaman
d0af9eaa73
Merge pull request #25863 from trociny/wip-rbd-mirror-mock-warnings
test/rbd_mirror: fix gmock warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-01-09 10:04:47 -05:00
Kefu Chai
0080efb05e mgr/test_orchestrator: correct ceph-volume path
s/ceph_volume/ceph-volume/

Fixes: http://tracker.ceph.com/issues/37773
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-01-09 22:19:07 +08:00
Kefu Chai
8d3df9be09 common/StackStringStream: optimize xsputn() and overflow()
use the internal buffer semantics provided by
basic_streambuf, in hope to improve the performance when a single
character is inserted into buf.

* xsputn(): use memcpy() directly instead of creating a temporary
  string_view
* overflow(): overflow() should be called only if the internal buffer
  overflows when a single character is put into the streambuf. so
  we can use the fact that the size of inserted buffer is known,
  and use push_back() instead.
  also, please see libstdc++'s implementation of basic_streambuf::sputc(),
  where __builtin_expect() is used to instruct the compiler that
  the non-overflow branch is more likely to be chosen. so, we need
  to optimize for that branch. hence this change.
* remove the no-more-used push() method

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-01-09 22:15:12 +08:00
Jason Dillaman
0d3fe8f225
Merge pull request #25860 from trociny/wip-prometheus-rbd_stats_pools
pybind/mgr/prometheus: improve 'rbd_stats_pools' param parsing

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-01-09 08:49:17 -05:00
Lenz Grimmer
dcfbec6a3e
Merge pull request #25300 from votdev/improve_rgw_user_list
mgr/dashboard: Improve RgwUser controller

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-01-09 14:40:21 +01:00
Sebastian Wagner
9bb8e2dd20
Merge pull request #25634 from sebastian-philipp/doc-orchestrator-wal
doc/mgr/orchestrator: add `wal` to blink lights

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-01-09 14:39:37 +01:00
Lenz Grimmer
26de63e5af
Merge pull request #25813 from rhcs-dashboard/updated-test-full-health
mgr/dashboard: updated health API test
2019-01-09 14:32:40 +01:00