Commit Graph

88282 Commits

Author SHA1 Message Date
Sage Weil
ecd85f4d93 msg/async: track connections by addrvec
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
def2254aa8 mon/Session: inst -> name and addrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
73121c123b osd/OSDMap: don't print hb addrs
Nobody cares!

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f24077c189 msg/DispatchQueue: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f30843581d mgr: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
f43731fd34 msg: make set_addr_unknowns take an addrvec
Nicely collapse the wonky logic in OSD into the helper!

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a18e4ed965 mon/LogMonitor: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a61eaae0d5 librados: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
b59392a17c common/LogClient: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
8cc65291a9 client: myaddr -> myaddrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
312af0c437 osd/OSDMap: is_blacklisted() for addrvecs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
a14022a3de osd: populate metadata with all addrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
ea1481d08d mds: addr -> addrvec
Update MDSMap to use entity_addrvec_t instead of entity_addr_t.  Adjust
the various mon and mgr pieces that touch it accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
78edca98f3 mon/MonClient: get_myaddrs()
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
b759c588cb mon/OSDMonitor: addrvec blacklist helper
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
22086a78da mds: use new pick_addresses
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
6f0e60c831 ceph-osd: use new bindv()
Rely on the new and improved pick_addresses() to produce an addrvec of
addresses we should bind to.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:24 -05:00
Sage Weil
57d756332d msg/async: bind to multiple addresses
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
d0db627cc0 msg/async: (legacy) handshake using legacy addr
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
b966c0d368 msg/async: fix some debug prefixes
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
6625caa7ff msg/async: multiple listening ServerSockets
No functional change yet.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
9fb1e521c7 osd/OSDMap: make cluster addrs addrvecs too
This will allow a single-step upgrade from msgr1 to msgr2: as each
nautilus OSD starts up, it will bind to both msgr1 and msgr2 addrs
(assuming it starts up after the mons have been upgraded).  Peer OSDs will
use the msgr2 address if they can, or the legacy one if they can't.
Once require_osd_release >= nautilus OSDs will stop binding to msgr1
ports at all.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
5d95b29c9b msg/Messenger: my_addr -> my_addrs
Minimal changes to SimpleMessenger and AsyncMessenger to keep things
working, assuming we ony have a single addr in the addrvec.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
6d742a35ff msg/Connection: peer_addr -> peer_addrs
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
13a53cbe4b msg/msg_types: hash<> for entity_addrvec_t
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
700fd00322 mgr/DaemonServer: use new bindv() and pick_addresses()
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
1b80cfa8ae msg/Messenger: new bindv() that takes an addrvec
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
ff76ac43fc common/pick_address: fill in ipv4/6 and msgr1/msgr2 via config options
This allows users to simply pass in CLUSTER or PUBLIC and the function
fills in the rest.  (Or, if the caller is particular, they can pass in
the other flags too.)

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
9b7e49828b common/pick_addresses: new addrvec-based pick_addresses()
Flags for everything we would want.  The intent is to return an addrvec
of addrs that we can directly bind to.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
bc95a33979 common/pick_addresses: add filtering by ipv4 and ipv6
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
b2b4b0e307 CEPH_MON_PORT -> CEPH_MON_PORT_LEGACY; define CEPH_MON_PORT_IANA
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
543539e590 osd: kill osd_heartbeat_addr option
This serves no (good) purpose: we should always use the public addr/
network.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:23 -05:00
Sage Weil
30d3095ef2 common/options: add addrvec option type
Signed-off-by: Sage Weil <sage@redhat.com>
2018-07-03 13:01:08 -05:00
Patrick Donnelly
c41ce8c04b
qa: remove unused distro dir
Mistakenly added by affaae045f.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-07-03 10:36:58 -07:00
Patrick Donnelly
628927d5ba
Merge PR #22165 into master
* refs/pull/22165/head:
	qa: add one-off clusters to qa/cephfs/clusters
	qa: allocate more space for VM disk
	qa/cephfs/clusters/*: bigger cinder volumses

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-07-03 09:10:09 -07:00
Stephan Müller
2b5f8b1e70 mgr/dashboard: Move validators into forms directory
Now that 'forms' directory exists, the validators are moved to
it. Angular also does this with it's validators ('@angular/forms').

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
5cba67a5d2 mgr/dashboard: Use forms in deletion modal
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
e2a09d7424 mgr/dashboard: Use forms in RGW user capability
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
01932a5363 mgr/dashboard: Use forms in RGW subuser modal
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
297e111f07 mgr/dashboard: Use forms in RGW user s3 key modal
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
4a64522b65 mgr/dashboard: Use forms in RGW user form
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
aea1c70fcb mgr/dashboard: Use forms in RGW bucket form
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
1a175e0f75 mgr/dashboard: Use forms in RBD snapshot form
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
870a3ac91b mgr/dashboard: Use forms in RBD form
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
db9d15f6f7 mgr/dashboard: CdFormBuilder
Now the form builder can be used to build CdFormGroups.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Stephan Müller
083865dc93 mgr/dashboard: CdFormGroup
CdFormGroup extends 'FormGroup' with a few new methods that will help
form development.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-07-03 17:42:32 +02:00
Alfredo Deza
544bc3ea58
Merge pull request #22828 from ceph/wip-conf-error-message
ceph-volume: provide a nice errror message when missing ceph.conf

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-07-03 11:28:55 -04:00
Casey Bodley
f076960001
Merge pull request #22548 from ovh/bp-cls-otp-build
cls: build cls_otp only WITH_RADOSGW

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-07-03 09:24:02 -04:00
Alfredo Deza
d62fa58a11
Merge pull request #22764 from ceph/wip-rm24504
ceph-volume: refuse to zap mapper devices

Reviewed-by: Alfredo Deza
2018-07-03 08:15:18 -04:00
Andrew Schoen
0487a9ac60 ceph-volume: always ignore a missing ceph conf in main.py
Now that we have a nice error message when a ceph.conf is missing
and we try to use values from it, maintaining a list of commands that
don't need ceph.conf isn't as helpful. We had actually missed 'simple
trigger' when we first implemented this causing all our luminous tests
for simple to fail when we backported.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-07-03 06:45:24 -05:00