diff --git a/config.yml b/config.yml index 3c2377174233ffb9ce3c5f4935193f5bfede64cc..95c4df51f016f1ecd1c1b8cb28bbb939ec004798 100644 --- a/config.yml +++ b/config.yml @@ -74,6 +74,9 @@ images: - "architecture=x86_64" - "os_require_quiesce=yes" - "hw_qemu_guest_agent=yes" + ubuntu-12.04: + name: Ubuntu 12.04 - GARR + simplestreams: com.ubuntu.cloud:server:12.04:amd64 ubuntu-14.04: name: Ubuntu 14.04 - GARR url: https://cloud-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img @@ -88,6 +91,7 @@ images: - "architecture=amd64" - "os_require_quiesce=yes" - "hw_qemu_guest_agent=yes" + simplestreams: com.ubuntu.cloud:server:14.04:amd64 ubuntu-16.04: name: Ubuntu 16.04 - GARR url: https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img @@ -104,6 +108,7 @@ images: - "hw_qemu_guest_agent=yes" - "hw_vif_multiqueue_enabled=true" - "hw_rng_model=virtio" + simplestreams: com.ubuntu.cloud:server:16.04:amd64 ubuntu-18.04: name: Ubuntu 18.04 - GARR url: http://cloud-images.ubuntu.com/releases/18.04/release/ubuntu-18.04-server-cloudimg-amd64.img @@ -120,3 +125,4 @@ images: - "hw_qemu_guest_agent=yes" - "hw_vif_multiqueue_enabled=true" - "hw_rng_model=virtio" + simplestreams: com.ubuntu.cloud:server:18.04:amd64 diff --git a/update-images.py b/update-images.py index b0ad96148ffc285a1bcc7e56bd790b715b84b14d..3207efa448315156bac15231f88a79a9b0806609 100755 --- a/update-images.py +++ b/update-images.py @@ -41,6 +41,9 @@ openstack_cloud_connection = shade.openstack_cloud() for image_key in sorted(config['images'].keys()): print("=== Image name: {}".format(image_key)) + if not 'url' in config['images'][image_key]: + print("skipping...") + continue url = config['images'][image_key]['url'] request_response = requests_session.head(url, allow_redirects=True) request_response.raise_for_status()