Cannot deploy from the cli when "Allow DNS resolution" is set on minimal subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
I'm using snap version/build 3.3.2-13177-
In my deployment I could not deploy servers from the cli, but using
the web interface was fine.
I tracked the issue down to the call to get_curtin_
*1. It which in turn includes a call to reduce_
contains an assert statement which is the source of the error *2.
I eventually found that disabling allow_dns on one of the subnets
attached to guest (and the rack controller) fixed the issue.
I have a raised a separate bug to cover the fact that assertion
errors generally are not being surfaced to the user properly. I think this
bug should cover the fact that a guest cannot be booted from the
CLI in this circumstance.
# maas admin machine deploy kgr4kk distro_
400 Bad Request
Connection: keep-alive
Content-Length: 26
Content-Type: text/plain; charset=utf-8
Date: Mon, 24 Apr 2023 08:59:43 GMT
Server: nginx/1.18.0 (Ubuntu)
Status: 400
Vary: Cookie
X-Frame-Options: DENY
Failed to render preseed:
#
NOTE: Nothing follows the "Failed to render preseed"
# maas admin subnet update "fd42:5eda:
Success.
Machine-readable output follows:
{
"name": "fd42:5eda:
"description": "",
"vlan": {
"vid": 0,
"mtu": 1500,
"dhcp_on": false,
"id": 5003,
"fabric": "fabric-2",
"space": "undefined",
"name": "untagged",
},
"cidr": "fd42:5eda:
"rdns_mode": 2,
"gateway_ip": "",
"dns_servers": [],
"allow_dns": false,
"allow_proxy": true,
"active_
"managed": true,
"disabled_
"id": 5,
"space": "undefined",
"resource_uri": "/MAAS/
}
# maas admin machine deploy kgr4kk distro_
200 OK
Logs from immeditaly after the initial failure:
The log messages are:
==> maas.log <==
2023-04-
2023-04-
2023-04-
2023-04-
==> regiond.log <==
2023-04-24 08:46:41 maasserver.preseed: [warn] WARNING: '/snap/
Note: The symptoms are very similar to https:/
*1 https:/
*2 https:/
Related branches
- MAAS Lander: Approve
- Björn Tillenius: Approve
-
Diff: 86 lines (+36/-8)3 files modifiedsrc/maasserver/models/node.py (+7/-5)
src/maasserver/routablepairs.py (+2/-2)
src/maasserver/tests/test_routablepairs.py (+27/-1)
Changed in maas: | |
milestone: | none → 3.4.0 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
fwiw I raised https:/ /bugs.launchpad .net/maas/ +bug/2017503 to cover improving the handling of the error messages