@@ -32,9 +32,9 @@ This article describes how to do this.
3232While we suggest to rename or better to hide old images, there can still legitimately
3333be several variants of images, e.g. minimal variants or Kubernetes node images etc.
3434These must not be confused with the standard general purpose images. To avoid
35- confusion, we have introduce a new ` os_purpose ` (recommended in v1.1 of scs-0102
35+ confusion, we have introduced a new ` os_purpose ` (recommended in v1.1 of scs-0102
3636and mandatory in v2) field, that can be set to ` generic ` , ` minimal ` , ` k8snode ` ,
37- ` gpu ` , ` network ` , or ` custom ` in v2.
37+ ` gpu ` , ` network ` , or ` custom ` according to scs-0102- v2.
3838To now find the latest general purpose Ubuntu Noble Numbat 24.04 image, one can search the
3939image catalog for ` os_distro=ubuntu ` , ` os_version=24.04 ` , and ` os_purpose=generic ` .
4040This is straightforward if all SCS clouds already comply to the new metadata standard
@@ -63,7 +63,7 @@ Three notes:
6363 to look for public images.
6464- We sort the list, so in case we have several matches, we want the images grouped
6565 by image name and within the same name have the latest images first. This would
66- typically find the latest image both in the case where a provider renames old
66+ typically put the latest image first in the case where a provider renames old
6767 images "Ubuntu 24.04" to "Ubuntu 24.04 timestamp" or fails to rename them.
6868 (The latter would not be compliant with scs-0102.)
6969
@@ -102,7 +102,9 @@ Dealing with old SCS clouds (not yet implementing v2 of scs-0102) is harder
102102with shell code. The reason is that we can not pass a flag to `openstack
103103image list` that would tell it to restrict results to records without an
104104` os_purpose ` property. So this requires looping over the images and filtering
105- out all images with ` os_purpose ` (but not matching our request).
105+ out all images with ` os_purpose ` (but not matching our request). We would
106+ have to expect several matches now again and sort them by a heuristic,
107+ somewhat similar (but not identical) to the python code.
106108
107109Full code that does this is available in [ find_img.sh] ( find_img.sh ) .
108110
0 commit comments