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

Bug #1748538 reported by Mike Pontillo
6
This bug affects 1 person
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_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.)

Revision history for this message
Mike Pontillo (mpontillo) wrote :
description: updated
Revision history for this message
Adam Collard (adam-collard) wrote :

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

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.