Upgrade from 1.8 to 1.9 lost connected macs in all but one network
Bug #1536754 reported by
Andreas Hasenack
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Unassigned | ||
1.10 |
Invalid
|
High
|
Unassigned |
Bug Description
We had many networks defined in our MAAS 1.8 system, and all networks had all our nodes connected to them. In other words, list-connected-macs <network> would return one mac per node for all <network>.
After upgrading that to 1.9, just one network had results for list-connected-
Related branches
lp:~mpontillo/maas/bug-1536754-fix-lost-macs-1.10
- Blake Rouse (community): Approve
-
Diff: 145 lines (+30/-15)7 files modifiedMakefile (+8/-6)
docs/changelog.rst (+15/-0)
required-packages/dev (+0/-1)
src/maasserver/api/networks.py (+1/-1)
src/maasserver/api/tests/test_network.py (+4/-1)
src/maasserver/tests/test_fields.py (+0/-4)
src/maasserver/tests/test_js.py (+2/-2)
lp:~mpontillo/maas/bug-1536754-fix-lost-macs-1.9
- Blake Rouse (community): Approve
-
Diff: 45 lines (+10/-2)3 files modifieddocs/changelog.rst (+5/-0)
src/maasserver/api/networks.py (+1/-1)
src/maasserver/api/tests/test_network.py (+4/-1)
lp:~mpontillo/maas/revert-1536754-1.10
- Mike Pontillo (community): Approve
-
Diff: 41 lines (+2/-6)3 files modifieddocs/changelog.rst (+0/-1)
src/maasserver/api/networks.py (+1/-1)
src/maasserver/api/tests/test_network.py (+1/-4)
lp:~mpontillo/maas/revert-1536754-1.9
- Mike Pontillo (community): Approve
-
Diff: 29 lines (+2/-5)2 files modifiedsrc/maasserver/api/networks.py (+1/-1)
src/maasserver/api/tests/test_network.py (+1/-4)
lp:~mpontillo/maas/revert-1536754-1.9-changelog
- Mike Pontillo (community): Approve
-
Diff: 12 lines (+0/-2)1 file modifieddocs/changelog.rst (+0/-2)
tags: | added: kanban-cross-team |
tags: | removed: kanban-cross-team |
tags: | added: landscape |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 1.9.1 → none |
status: | Fix Committed → Invalid |
To post a comment you must log in.
It looks like this is because we are joining the MACs to the Subnet via the IP address table. If (for whatever reason) the MACs in question don't have IP addresses, it looks like you might hit this issue.
Can you execute "sudo maas-region-admin dbshell" on the region, and then run this query:
https:/ /paste. ubuntu. com/14591836/
I'll paste the query here as well:
SELECT mac_address subnet subnet interface iface
subnet.name,
vlan.vid,
fabric.name,
iface.
FROM
maasserver_
LEFT OUTER JOIN maasserver_vlan vlan
on subnet.vlan_id = vlan.id
LEFT OUTER JOIN maasserver_fabric fabric
on vlan.fabric_id = fabric.id
LEFT OUTER JOIN maasserver_
on iface.vlan_id = vlan.id
ORDER BY subnet.name, vlan.vid, iface.mac_address;