Merge lp:~mpontillo/maas/mdns-observer-traceback--bug-1673916--2.1 into lp:maas/2.1

Proposed by Mike Pontillo
Status: Merged
Approved by: Mike Pontillo
Approved revision: no longer in the source branch.
Merged at revision: 5594
Proposed branch: lp:~mpontillo/maas/mdns-observer-traceback--bug-1673916--2.1
Merge into: lp:maas/2.1
Diff against target: 77 lines (+36/-3)
3 files modified
docs/changelog.rst (+13/-2)
src/provisioningserver/rackdservices/networks_monitoring_service.py (+1/-1)
src/provisioningserver/rackdservices/tests/test_networks_monitoring_service.py (+22/-0)
To merge this branch: bzr merge lp:~mpontillo/maas/mdns-observer-traceback--bug-1673916--2.1
Reviewer Review Type Date Requested Status
Mike Pontillo (community) Approve
Review via email: mp+320697@code.launchpad.net

Commit message

Merge revision 5839 from trunk. Fixes regression on rack-based mDNS monitoring service.

Also: update changelog.

To post a comment you must log in.
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Self-review backport.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
MAAS Lander (maas-lander) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/changelog.rst'
2--- docs/changelog.rst 2017-03-17 23:24:25 +0000
3+++ docs/changelog.rst 2017-03-22 18:55:24 +0000
4@@ -2,6 +2,19 @@
5 Changelog
6 =========
7
8+2.1.5
9+=====
10+
11+Bugs fixed in this release
12+--------------------------
13+
14+LP: #1671891 Fix deployment with AUTO IPs set as the gateway link.
15+
16+LP: #1671048 Fix crash when getting the default gateways for a machine.
17+
18+LP: #1673916 Fix regression that causes traceback in rack-based mDNS monitoring service.
19+
20+
21 2.1.4
22 =====
23
24@@ -36,8 +49,6 @@
25
26 LP: #1665143 Select the shortest by-id path when discovering block devices to address issues when discovering nvme devices.
27
28-LP: #1671891 Fix deployment with AUTO IPs set as the gateway link.
29-
30
31 Other notable changes
32 ---------------------
33
34=== modified file 'src/provisioningserver/rackdservices/networks_monitoring_service.py'
35--- src/provisioningserver/rackdservices/networks_monitoring_service.py 2017-02-14 18:24:19 +0000
36+++ src/provisioningserver/rackdservices/networks_monitoring_service.py 2017-03-22 18:55:24 +0000
37@@ -70,6 +70,6 @@
38 def reportMDNSEntries(self, mdns):
39 """Report mDNS entries to the region."""
40 d = self.clientService.getClientNow()
41- d.addCleanup(lambda client: client(
42+ d.addCallback(lambda client: client(
43 ReportMDNSEntries, system_id=client.localIdent, mdns=mdns))
44 return d
45
46=== modified file 'src/provisioningserver/rackdservices/tests/test_networks_monitoring_service.py'
47--- src/provisioningserver/rackdservices/tests/test_networks_monitoring_service.py 2016-10-04 00:35:24 +0000
48+++ src/provisioningserver/rackdservices/tests/test_networks_monitoring_service.py 2017-03-22 18:55:24 +0000
49@@ -96,6 +96,28 @@
50 neighbours=neighbours))
51
52 @inlineCallbacks
53+ def test_reports_mdns_to_region(self):
54+ fixture = self.useFixture(MockLiveClusterToRegionRPCFixture())
55+ protocol, connecting = fixture.makeEventLoop(
56+ region.UpdateInterfaces, region.ReportMDNSEntries)
57+ self.addCleanup((yield connecting))
58+ rpc_service = services.getServiceNamed('rpc')
59+ service = RackNetworksMonitoringService(
60+ rpc_service, Clock(), enable_monitoring=False)
61+ mdns = [
62+ {
63+ 'interface': 'eth0',
64+ 'hostname': 'boggle.example.com',
65+ 'address': factory.make_ip_address(),
66+ }
67+ ]
68+ yield service.reportMDNSEntries(mdns)
69+ self.assertThat(
70+ protocol.ReportMDNSEntries, MockCalledOnceWith(
71+ protocol, system_id=rpc_service.getClient().localIdent,
72+ mdns=mdns))
73+
74+ @inlineCallbacks
75 def test_asks_region_for_monitoring_state(self):
76 fixture = self.useFixture(MockLiveClusterToRegionRPCFixture())
77 protocol, connecting = fixture.makeEventLoop(

Subscribers

People subscribed via source and target branches

to all changes: