Static routes are not per-interface, which breaks some deployments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo | ||
2.3 |
Fix Released
|
High
|
Mike Pontillo | ||
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
When juju tries to deploy a lxd container on a maas managed machine, it looses all static routes, due to ifdown/ifup being issued and e/n/i has no saved data on the original state.
Machine with no lxd container deployed:
root@4-compute-4:~# ip r
default via 100.68.4.254 dev bond2 onlink
100.68.4.0/24 dev bond2 proto kernel scope link src 100.68.4.1
100.68.5.0/24 via 100.68.4.254 dev bond2
100.68.6.0/24 via 100.68.4.254 dev bond2
100.84.4.0/24 dev bond1 proto kernel scope link src 100.84.4.2
100.84.5.0/24 via 100.84.4.254 dev bond1
100.84.6.0/24 via 100.84.4.254 dev bond1
100.99.4.0/24 dev bond0 proto kernel scope link src 100.99.4.101
100.99.5.0/24 via 100.99.4.254 dev bond0
100.99.6.0/24 via 100.99.4.254 dev bond0
100.107.0.0/24 via 100.99.4.254 dev bond0
After juju deploys a container, routes are disappearing:
root@4-
default via 100.68.100.254 dev bond2 onlink
10.177.144.0/24 dev lxdbr0 proto kernel scope link src 10.177.144.1
100.68.100.0/24 dev bond2 proto kernel scope link src 100.68.100.26
100.84.4.0/24 dev br-bond1 proto kernel scope link src 100.84.4.1
100.99.4.0/24 dev br-bond0 proto kernel scope link src 100.99.4.3
After host reboot, the routes are NOT getting back in place, they are still gone:
root@4-
default via 100.68.100.254 dev bond2 onlink
100.68.100.0/24 dev bond2 proto kernel scope link src 100.68.100.26
100.84.4.0/24 dev br-bond1 proto kernel scope link src 100.84.4.1
100.84.5.0/24 via 100.84.4.254 dev br-bond1
100.84.6.0/24 via 100.84.4.254 dev br-bond1
100.99.4.0/24 dev br-bond0 proto kernel scope link src 100.99.4.3
Related branches
- MAAS Maintainers: Pending requested
-
Diff: 1806 lines (+1511/-2) (has conflicts)18 files modifieddebian/changelog (+16/-0)
snap/snapcraft.yaml (+9/-0)
src/maasserver/bootsources.py (+3/-0)
src/maasserver/models/tests/test_userprofile.py (+3/-0)
src/maasserver/rpc/boot.py (+5/-0)
src/maasserver/static/js/angular/controllers/tests/test_nodes_list.js (+17/-0)
src/maasserver/static/partials/ipranges.html (+17/-0)
src/maasserver/static/partials/node-details.html (+134/-0)
src/maasserver/static/partials/nodes-list.html (+1017/-0)
src/maasserver/static/partials/script-results-list.html (+76/-0)
src/maasserver/tests/test_bootsources.py (+3/-0)
src/maasserver/triggers/tests/test_websocket_listener.py (+5/-0)
src/metadataserver/user_data/templates/commissioning.template (+4/-0)
src/provisioningserver/import_images/boot_resources.py (+61/-0)
src/provisioningserver/import_images/tests/test_boot_resources.py (+92/-0)
src/provisioningserver/import_images/tests/test_download_resources.py (+35/-0)
src/provisioningserver/utils/tests/test_network.py (+3/-0)
utilities/release-build (+11/-2)
- Mike Pontillo (community): Approve
-
Diff: 381 lines (+233/-61)2 files modifiedsrc/maasserver/preseed_network.py (+25/-16)
src/maasserver/tests/test_preseed_network.py (+208/-45)
- Andres Rodriguez (community): Approve
- MAAS Lander: Approve
-
Diff: 381 lines (+233/-61)2 files modifiedsrc/maasserver/preseed_network.py (+25/-16)
src/maasserver/tests/test_preseed_network.py (+208/-45)
tags: | added: cpe-onsite |
tags: | added: 4010 |
Changed in juju: | |
status: | New → Invalid |
Changed in maas (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
no longer affects: | juju |
no longer affects: | maas (Ubuntu) |
summary: |
- static routes get lost when lxd container being deployed [MAAS - environment] + Static routes are not per-interface, which breaks some deployments |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Mike Pontillo (mpontillo) |
milestone: | none → 2.4.0beta2 |
tags: | added: field-critical |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in cloud-init: | |
importance: | Undecided → Medium |
status: | New → Triaged |
attached is the original and juju modified interfaces file