Comment 2 for bug 1888946

Revision history for this message
Lee Trager (ltrager) wrote : Re: image auto-sync options

SimpleStreams contains multiple versions per product. MAAS however only works with the latest version. The version is only modeled for products that have been downloaded, they are not modeled in the table used for selection.

We could add something so MAAS doesn't update a product. However I have a couple of concerns with that.
1. The version streams use is based on the date, not product version.
2. The MAAS stream keeps a max of 5 versions per product. Older versions are removed. So if you freeze a product and then do another MAAS deployment you most likely won't be able to get the same version.
3. MAAS doesn't have a way to download older versions even if they are in the stream.
4. We would need a way to make it clear a product is frozen in both the UI and API.

I've thought for awhile that MAAS needs an overhaul of its image import code for awhile. MAAS should allow users to have multiple versions of a product downloaded and be able to select which version to deploy at deployment time. We've also had requests from multiple users to move images out of Postgres.

I think we'd have to get the overhaul on the roadmap so we can fully discuss what the requirements are and spec out what changes need to be made. In the meantime using a custom image or creating a mirror of the stream are the only supported ways to do this.