Commit Graph

94885 Commits

Author SHA1 Message Date
Kefu Chai
729104e5f2
Merge pull request #26379 from tchaikov/wip-remove-jinja2
rpm,deb: remove python-jinja2 dependency

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2019-02-13 17:29:58 +08:00
Sage Weil
54eee67b84 Merge PR #26385 into master
* refs/pull/26385/head:
	mon: mons also connect to mgrs

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
2019-02-12 16:45:22 -06:00
Dan Mick
bcb27104e4
Merge pull request #26377 from tchaikov/wip-mgr-plugin-arch-all
debian/control: change Architecture python plugins to "all"
2019-02-12 14:06:21 -08:00
Andrew Schoen
d95a29e41f
Merge pull request #26246 from leseb/cb-typo
ceph-volume: add space between words

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2019-02-12 14:08:17 -06:00
Mykola Golub
c8884ec306
Merge pull request #26337 from dillaman/wip-37998
librbd: get_parent API method should properly handle migrating image

Reviewed-by: Mykola Golub <mgolub@suse.com>
2019-02-12 21:31:43 +02:00
Ken Dreyer
2f88b85e9d Merge pull request #26368 from alfredodeza/wip-rm38261
build: further removal of `subman` configuration

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2019-02-12 12:13:53 -07:00
Jason Dillaman
1c80583daa rbd: added missing feature bitmask to name mapping
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-12 10:43:49 -05:00
Jason Dillaman
79a10192e8 rbd: removed migration source annotation from parent info
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-12 10:43:14 -05:00
Sage Weil
e63814f1e2 Merge PR #26340 into master
* refs/pull/26340/head:
	osd/OSD: respect osdmap message limits
	mon/OSDMonitor: limit MOSDMap message size by bytes
	common/options: add osd_map_message_max_bytes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-02-12 09:26:56 -06:00
Sage Weil
46a03600d0 Merge PR #26365 into master
* refs/pull/26365/head:
	msg/async/ProtocolV2: refuse incoming reconnect attempt intended for someone else
	msg/async/ProtocolV2: refuse incoming connection intended for someone else

Reviewed-by: Ricardo Dias <rdias@suse.com>
2019-02-12 09:09:34 -06:00
Sage Weil
fb4d9b7ae2 Merge PR #26363 into master
* refs/pull/26363/head:
	ceph.spec.in: python-kubernetes broken on rhel

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2019-02-12 09:09:10 -06:00
Kefu Chai
225cccac50
Merge pull request #26323 from LenzGr/pools-typo
mgr/dashboard: Fix typo in pools management

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2019-02-12 22:54:03 +08:00
Ricardo Dias
98bfb40bc2
mon: mons also connect to mgrs
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-12 14:38:58 +00:00
Lenz Grimmer
f59b25029e
Merge pull request #26320 from tspmelo/wip-iscsi-discovery-ui
mgr/dashboard: Add iSCSI discovery authentication UI

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-02-12 15:04:22 +01:00
Kefu Chai
8018ca3614
Merge pull request #26383 from tchaikov/wip-auth-common-cleanup
auth, common: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-02-12 21:22:45 +08:00
Kefu Chai
248e1d4740
Merge pull request #26221 from cyx1231st/wip-seastar-msgr-perf
crimson/net: misc fixes and features for crimson-messenger tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-12 20:44:35 +08:00
Kefu Chai
9e46205368 mon/MonClient: forward declare AuthRegistry instead of #include it
to speed up the compilation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 20:08:12 +08:00
Kefu Chai
b83335174a common/ceph_context: hardwire module_type to CEPH_ENTITY_TYPE_OSD
currently, crimson project is only targeting crimson-osd.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 20:08:12 +08:00
Kefu Chai
c1902881af auth/AuthServer: fix typo in comments
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 20:01:09 +08:00
Yingxin Cheng
4a1dce4b73 crimson/net: crimson messenger performance test tool
Support the following settings:
* mode: both, client mode, server mode;
* set server address;
* rounds of messages;
* keepalive-ratio;
* block size;
* io-depth;

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 19:26:09 +08:00
Yingxin Cheng
771419c34c crimson/net: improve UT performance and added timing
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 19:18:06 +08:00
Lenz Grimmer
8ed92084ef
Merge pull request #26243 from nathan-weinberg/block-tabs
mgr/dashboard: Added tab tests to Block menu items

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-02-12 12:09:41 +01:00
Kefu Chai
660a64b6ff
Merge pull request #26364 from tchaikov/wip-test-silence-warnings
test/rgw: silence -Wsign-compare warnings

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-02-12 17:41:45 +08:00
Tiago Melo
8b27f0b74b mgr/dashboard: Add iSCSI discovery authentication UI
Fixes: https://tracker.ceph.com/issues/38021

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-12 09:29:07 +00:00
Tiago Melo
406cd5081d mgr/dashboard: Fix order of table buttons
"float:none" is changing  the order of the table buttons.
By reverting this change and setting .oadatatableactions to "float:left",
we get the same result as intended before.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-12 09:27:47 +00:00
Lenz Grimmer
fe5ba91d31
Merge pull request #26319 from tspmelo/wip-iscsi-service-spec
mgr/dashboard: Fix iSCSI service unit tests

Reviewed-by: Ricardo Marques <rimarques@suse.com>
2019-02-12 10:23:15 +01:00
Kefu Chai
c2def40661 rpm,deb: remove python-jinja2 dependency
python-jinja2 dependency was added for the dashboard v1 in 87399bea. but
dashboard v2, which is now known as "dashboard" has taken the place of
the old dashboard. and dashboard now does not use jinja2, so we should
drop this dependency.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 17:16:33 +08:00
Yingxin Cheng
be9a832ad9 crimson/net: fix memory leak
Do not enqueue sent before lossless policy implemented, it is causing
memory leak.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:48:03 +08:00
Yingxin Cheng
676077919a crimson/net: port sharded-msgr to existing code
Port sharded-msgr to crimson osd, monc, heartbeat and tests with
compatible mode.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:48:03 +08:00
Yingxin Cheng
f239774850 crimson/net: promote policy related method to Messenger
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:48:03 +08:00
Yingxin Cheng
092944837e crimson/net: compatible mode of crimson-msgr
Added a compatible mode with master_sid to support single-core
dispatcher.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:48:02 +08:00
Yingxin Cheng
cf92062e3f crimson/net: suppress info logs for frequent keepalive
The new unittest_seastar_messenger will print out the count of keepalive
attempts at the end of the execution.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:48:02 +08:00
Yingxin Cheng
7ac5fb013b crimson/net: enable connections on all cores
Implement the sharded crimson-messenger:

* Sharded Messenger: provides shared-nothing Messenger for each shard,
  it's interfaces are symmetric to be called, any modifications will be
  applied to all shards.

* Sharded/non-sharded Dispatcher interface: allow connections to be
  dispatched, and related resources (such as Session) to be managed in
  its own shard or not.

* Sharded Connection: A connection only lives at one dedicated core
  during its lifecycle. It's sharded by its peer_IP in this PoC, because
  peer port and nonce are not available when a socket is accepted. While
  its interfaces are safe to be called from all shards.

* Replace `boost::intrusive_ptr` by seastar native smart ptrs for
  `Connection` and `SocketConnection`, because they need to be
  destructed from its original core.

* Unit test: establish multiple connections on both client and server
  sides, they runs concurrently and creates sessions that are also
  following shared-nothing design.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-02-12 16:47:53 +08:00
Kefu Chai
9b020d0104 debian/control: change Architecture python plugins to "all"
change following plugins' Architecture to "all", as they are pure python
plugins, and are architecture-independent packages.

- ceph-mgr-diskprediction-cloud
- ceph-mgr-diskprediction-local
- ceph-mgr-rook

this also matches their couterparts in ceph.spec.in, where we have
```
BuildArch:  noarch
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 16:23:47 +08:00
Kefu Chai
e01b99c358
Merge pull request #26255 from tchaikov/wip-crimson-hb
crimson/osd: add more heartbeat peers

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-02-12 10:57:40 +08:00
Sage Weil
0a1ac6418d Merge PR #26282 into master
* refs/pull/26282/head:
	mon: include progress events in 'ceph status' output
	mon/MgrStatMonitor: persist progress events
	mgr: send progress events to mon
	mgr/progress: revise message syntax a bit
	mgr/progress: report events into mgr
	mgr: allow progress events to be reported from modules
	mgr/progress: make persist period/interval configurable
	mgr/progress: prune completed events

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2019-02-11 17:26:19 -06:00
Sage Weil
059844f9b9 Merge PR #26336 into master
* refs/pull/26336/head:
	qa/tasks/keystone.py: no need for notcmalloc in example
	qa/suites/rgw/tempest/tasks/rgw_tempest: no need for notcmalloc

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2019-02-11 15:47:29 -06:00
Alfredo Deza
e517b022e4 cmake: further removal/cleanup of subman configuration
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2019-02-11 16:15:26 -05:00
Alfredo Deza
3bf76e21c3 rpm: further removal/cleanup of subman calls
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2019-02-11 16:14:43 -05:00
Lenz Grimmer
bcba0202e9 mgr/dashboard: Fix typo in pools management
Typo fix: "suite your needs" -> "suit your needs"

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2019-02-11 19:21:28 +01:00
Jason Dillaman
3b797011b9
Merge pull request #26322 from trociny/wip-mock-warning
test/librbd: fix 'Uninteresting mock function call' warning

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-11 12:23:02 -05:00
Sage Weil
bc7f567467 msg/async/ProtocolV2: refuse incoming reconnect attempt intended for someone else
The same scenario that was possible on client_ident is also possible
for reconnect: on the accepting side we recognized the client_addrs
but the client is trying to reach someone else.  Since the cookie is a
random 64-bit value it is unlikely, but still possible, that we will
match an existing session that is not for the client.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-11 11:02:28 -06:00
Kefu Chai
67aa9931bc test/rgw: silence -Wsign-compare warnings
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-12 00:29:44 +08:00
Kefu Chai
e1e3dc934c
Merge pull request #26318 from wjwithagen/wjw-fix-crush_weights.sh-sed
test: switch to GNU sed on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-12 00:20:15 +08:00
Sage Weil
c32c4874e1 ceph.spec.in: python-kubernetes broken on rhel
Error: Package: python2-kubernetes-8.0.0-6.el7.noarch (epel)
           Requires: python-adal

Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-11 09:54:17 -06:00
Sage Weil
e399fc7514 msg/async/ProtocolV2: refuse incoming connection intended for someone else
If we get a client_ident frame, and they are trying to talk to someone
else, drop the connection.

This is an inelegant workaround to http://tracker.ceph.com/issues/38247.
A nicer fix would be to restructure the protocol so that the client knows
who they connected to before they try to open a session.  That is a bigger
change that can follow...

Fixes: http://tracker.ceph.com/issues/38247
Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-11 09:29:30 -06:00
Tiago Melo
56cdaca12e mgr/dashboard: Fix iSCSI service unit tests
Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-11 15:02:19 +00:00
Ilya Dryomov
400686efd9
Merge pull request #26339 from idryomov/wip-krbd-namespaces-test
qa: krbd namespaces test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-11 16:00:32 +01:00
Lenz Grimmer
4431d6d60f
Merge pull request #26102 from rhcs-dashboard/wip-featuretoggles
mgr/dashboard: add Feature Toggles

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-11 15:58:57 +01:00
Jason Dillaman
cb18eb2f63 librbd: get_parent API method should properly handle migrating image
The true parent of a migrating parent is actually the parent of the
migration source image. There are other API methods available to
retreive the details of the migration source.

Fixes: http://tracker.ceph.com/issues/37998
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-11 09:42:33 -05:00