~mpontillo/maas:get-source-address

Last commit made on 2017-08-14
Get this branch:
git clone -b get-source-address https://git.launchpad.net/~mpontillo/maas
Only Mike Pontillo can upload to this branch. If you are Mike Pontillo please log in for upload directions.

Branch merges

Branch information

Name:
get-source-address
Repository:
lp:~mpontillo/maas

Recent commits

67d2110... by Mike Pontillo

Fix input type. Add tests.

e65510f... by Mike Pontillo

Add get_source_address() utility function.

80aa09c... by Mike Pontillo

Derive topology hints from received beacons

 * Refactor beacon receive path to use ReceivedBeacon namedtuple to
   better organize received data.
 * Add TopologyHint namedtuple to organize what we can infer about the
   network topology based on received beacons.
 * Send multicast advertisements on all interfaces whenever a
   solicitation is received, as long as at least five seconds have
   elapsed since the last multicast advertisement.
 * Add topology hints for the following conditions:
   - Own beacon received (on either the same or a different interface)
   - Same beacon received on two interfaces
   - Received multicast beacon can be used to identify a remote network
   - Received unicast beacon can be used to verify L3 connectivity

c4c8d2a... by Mike Pontillo

Exclude interface data from rack refresh

This ensures that the NetworksMonitoringService is solely responsible
for interface updates.

855760a... by Mike Pontillo

Fix race conditions with update_interfaces()

 * Add database locking for update_interfaces().
   This fixes race conditions that can cause conflicting database
   updates when UpdateInterfaces is called outside the context
   of a rack registration, such as when a rack concurrently makes
   a new connection to a region.
 * Remove RPC call to UpdateInterfaces during rack registration.
   (Make the NetworksMonitoringService solely responsible for this.)
 * Add test to ensure UpdateInterfaces is called as soon as possible when
   the NetworksMonitoringService starts up. (Twisted actually ensures this
   for any TimerService, but we want to test for it because the interface
   update needs to happen as soon as possible after registration.)

b571b27... by =?utf-8?q?Danilo_=C5=A0egan?= <email address hidden>

Fix a few deprecation warnings that show up with Django 1.11:
 - URL patterns need not start with a slash, so where we want to support multiple slashes (metadataserver), work-around that warning
 - Do not use individual TEMPLATE_* settings in development settings file
 - Do not import from django.core.urlresolvers but introduce our temporary maasserver.utils.django_urls instead.

2513c9b... by Graham Bancroft

LP: #1682490 - Fix interface tag display on small screens.

9fcdfb3... by Andres Rodriguez

Do not pre-fill hostname when adding a device from dashboard if unknown

6aa2adf... by Andres Rodriguez

Minor UI fixes for discovery.

Change 'Device Discovery' for 'Network Discovery'.
Use 'unknown' as hostname for all devices without a discovered hostname.

2662ebc... by Mike Pontillo

Refactor rack registration for beacons

 * Use inlineCallbacks for registerRackWithRegion.
 * Call UpdateInterfaces if the registration was first processed
   minimally (such as without beaconing data).
 * Refactor UpdateInterface tests to ensure that repeated calls
   result in the same topology.