`machines creates` complain about invalid architecture while it's in fact missing an image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
Immediately after initializing MAAS, running this `machines create`:
maas admin machines create architecture=
fails with:
{"architecture": ["'amd64/generic' is not a valid architecture. It should be one of: ''."]}
Apparently, the architecture isn't the actual problem but I'd be missing an image.
Additional information:
# snap list maas maas-test-db
Name Version Rev Tracking Publisher Notes
maas 3.3.3-13184-
maas-test-db 14.2-29-g.ed8d7f2 131 3.3/stable canonical✓ -
# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
When the `machines create` fails, here's what I get:
# maas admin boot-resources read
"architecture" : "amd64/ga-20.04",
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 1/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,ga-18. 10,ga-19. 04,ga-19. 10,ga-20. 04"
"architecture" : "amd64/ ga-20.04- lowlatency" ,
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 2/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,ga-18. 10,ga-19. 04,ga-19. 10,ga-20. 04"
"architecture" : "amd64/hwe-20.04",
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 3/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,ga-18. 10,ga-19. 04,ga-19. 10,ga-20. 04"
"architecture" : "amd64/ hwe-20. 04-edge" ,
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 4/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,hwe- 18.10,hwe- 19.04,hwe- 19.10,hwe- 20.04"
"architecture" : "amd64/ hwe-20. 04-lowlatency" ,
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 5/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,ga-18. 10,ga-19. 04,ga-19. 10,ga-20. 04"
"architecture" : "amd64/ hwe-20. 04-lowlatency- edge",
"resource_ uri": "/MAAS/ api/2.0/ boot-resources/ 6/",
"subarches" : "generic, hwe-p,hwe- q,hwe-r, hwe-s,hwe- t,hwe-u, hwe-v,hwe- w,ga-16. 04,ga-16. 10,ga-17. 04,ga-17. 10,ga-18. 04,hwe- 18.10,hwe- 19.04,hwe- 19.10,hwe- 20.04"
Success.
Machine-readable output follows:
[
{
"id": 1,
"type": "Synced",
"name": "ubuntu/focal",
},
{
"id": 2,
"type": "Synced",
"name": "ubuntu/focal",
},
{
"id": 3,
"type": "Synced",
"name": "ubuntu/focal",
},
{
"id": 4,
"type": "Synced",
"name": "ubuntu/focal",
},
{
"id": 5,
"type": "Synced",
"name": "ubuntu/focal",
},
{
"id": 6,
"type": "Synced",
"name": "ubuntu/focal",
}
]