[2.4] Updating the boot source can cause duplicate entries in the boot source cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
I use a local mirror of the MAAS images. After installing MAAS, I updated the URL of my boot source to point to the local mirror.
Later, after browsing to my 'Images' page, I saw each CentOS image appear three times. (See attached screenshot.)
Using `maas-region dbshell` and executing the following query results in 1878 rows:
select os, arch, subarch, release, label, boot_source_id, kflavor from maasserver_
If I add a DISTINCT as follows, I only see 626 rows:
select distinct os, arch, subarch, release, label, boot_source_id, kflavor from maasserver_
Conclusion: editing the boot source may result in duplicate entries appearing in the boot source cache. (It seems that removing entries that have already been downloaded but subsequently removed from the stream is a bug, but we should re-add entries that already exist.)
This bug has not seen any activity in the last 6 months, so it is being automatically closed.
If you are still experiencing this issue, please feel free to re-open.
MAAS Team