Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@ for all parameters. After a change to the configuration, validate it with
in the metadata of an image.
* The value of `url` of a specific version of an image is stored as `image_source`
in the metadata of an image.
* When an image of type `multi` is rotated, the `os_purpose` of the superseded
image is changed from `generic` to `oldgeneric` if the new image is also
`generic`, is `public` or `community`, is not hidden, and has the same
`architecture`, `os_distro` and `os_version`. The standard permits at most one
such image for any one combination of these three values. Every superseded
image keeps `oldgeneric`. It marks a general purpose image that has been
replaced, not the most recent replacement.

### Image with regular rebuilds

Expand Down Expand Up @@ -295,24 +302,29 @@ images:
versions:
- version: '20240416'
url: https://cloud-images.ubuntu.com/noble/20240416/noble-server-cloudimg-amd64.img
- version: '20240422'
url: https://cloud-images.ubuntu.com/noble/20240422/noble-server-cloudimg-amd64.img
```

Only one version is listed. Every listed version is imported, and here all of
them would have `os_version: '24.04'`. Several versions would therefore create
several images with `os_purpose: generic` for the same combination of
`architecture`, `os_distro` and `os_version`, which the SCS image standard does
not permit.

This configuration creates the following images:
This configuration creates the following image:

* **Ubuntu 24.04 (20240416)**
* **Ubuntu 24.04**

If a newer build is added, the following rotation takes place:
When a newer build is released, the entry in `versions` is replaced with it.
The next run imports the new build and the following rotation takes place:

* **Ubuntu 24.04 (20240416)** does not change
* **Ubuntu 24.04** becomes **Ubuntu 24.04 (20240422)**
* **Ubuntu 24.04** becomes **Ubuntu 24.04 (20240416)** and its `os_purpose`
changes from `generic` to `oldgeneric`
* the new image becomes **Ubuntu 24.04**

By default the last three images will be visible. When a fourth image is added, the visibility of
the last image in the list is changed to `community` and the image can be deleted in the future.
With `--hide`, which `osism manage images` always passes, the visibility of a
superseded image is changed to `community`. Superseded images are only deleted
with `--delete`, and only those beyond what their `uuid_validity` promises. For
instance, `last-3` keeps the newest three images, the current one included.

### Image without regular rebuild

Expand Down
Loading