Machines can't be deployed after deselecting all archs in the "Ubuntu extra architectures" package repo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| MAAS |
Undecided
|
Unassigned | ||
| maas-ui |
New
|
Unknown
|
Bug Description
Deselecting all archs in the "Ubuntu extra architectures"
"Error:Failed to retrieve curtin config: 'NoneType' object has no attribute 'url'"
When deselecting all archs and saving, the default archs are pulled in again (["amd64", "i386"]), which are filtered out by PackageReposito
The message doesn't give any information about the origin of the error. Given that this is a default repo, changing the archs pulled in when left empty or raising a warning when saving the changes seem to be good options for this bug.
Traceback from logs:
2020-11-25 16:29:01 maasserver.
Traceback (most recent call last):
File "/usr/lib/
File "/snap/
return target()
File "/snap/
task()
File "/snap/
task()
--- <exception caught here> ---
File "/snap/
result = inContext.theWork()
File "/snap/
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
return self._call_
File "/snap/
result = method(params)
File "/snap/
return action.
File "/snap/
File "/snap/
raise NodeActionError
Victor Tapia (vtapia) wrote : | #1 |
Lee Trager (ltrager) wrote : | #2 |
A user can also remove repositories with the API. We should check if this bug is reproducible on the API. If so this should probably be fixed on the backend.
Bill Wear (billwear) wrote : | #3 |
I can confirm that this behavior indeed occurs under the conditions given. Triaging this bug.
Changed in maas: | |
status: | New → Triaged |
Bill Wear (billwear) wrote : | #4 |
Oops, noticed UI tag. Putting status back to new.
Changed in maas: | |
status: | Triaged → New |
Bill Wear (billwear) wrote : | #5 |
From the CLI, I do not seem to be able to: (1) delete the repository (refused), disable the repository (refused), or change the list of architectures such that they are all blank ("not a valid architecture"). Someone else may know how to do this, but I can't seem to reproduce this with the CLI due to built-in protections.
Victor Tapia (vtapia) wrote : | #6 |
This patch changes the default arches for PORTS_ARCHES to "armhf", "arm64", "powerpc" and "ppc64el"
tags: | added: ui |
no longer affects: | maas |
affects: | maas-ui → maas |
description: | updated |
Changed in maas-ui: | |
importance: | Undecided → Unknown |
Adding maas-ui because this could be fixed by setting a different set of default values or just showing an error message when left empty.