The two default Ubuntu repositories should not be deletable by maas cli
Bug #1801491 reported by
Jack Chen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
MAAS will generate two default ubuntu repositories: Ubuntu archive and Ubuntu extra architectures, these two repositories can't be disabled or removed on MAAS Web UI. But by using maas cli: ```maas ${ADMIN} boot-source delete 0; maas ${ADMIN} boot-source delete 1 ```, they can be deleted. And machine actions will fail with regiond error logs:
```
...
Failed to retrieve curtin config: 'NoneType' object has no attribute 'url'
...
```
It cost me one day to find the root cause and fix it by manually enter maas dbshell to restore these two default package repositories.
Related branches
~mpontillo/maas:prevent-default-archives-delete--bug-1801491
Merged
into
maas:master
- Newell Jensen (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 61 lines (+25/-0)2 files modifiedsrc/maasserver/models/packagerepository.py (+8/-0)
src/maasserver/models/tests/test_packagerepository.py (+17/-0)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 2.5.0rc1 |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Proceeding assuming it's actually package-repository, not boot-source, that is the problem. ;-)