[2.4] Updating the boot source can cause duplicate entries in the boot source cache

Bug #1748538 reported by Mike Pontillo on 2018-02-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
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_bootsourcecache;

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_bootsourcecache;

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.)

Mike Pontillo (mpontillo) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers