Reduce frequency of image rebuilds

In order to reduce the load on our builder nodes and reduce the strain
on our providers' image stores, build most images only once per week.

Exceptions are ubuntu-jammy, our most often used distro image, which we
keep rebuilding daily, and some other more frequently used images built
every 2 days.

Change-Id: Ibba7f864b15e478fda59c998843c3b2ace0022d8
This commit is contained in:
Dr. Jens Harbott 2023-09-02 13:18:19 +02:00
parent 94160b4448
commit d0c0ddb977
2 changed files with 10 additions and 0 deletions

View File

@ -107,6 +107,7 @@ providers:
diskimages: diskimages:
- name: base - name: base
abstract: True abstract: True
rebuild-age: 604800 # 7 days
elements: elements:
- block-device-efi - block-device-efi
- vm - vm
@ -226,6 +227,7 @@ diskimages:
elements: elements:
- ubuntu-minimal - ubuntu-minimal
release: jammy release: jammy
rebuild-age: 172800 # 2 days
env-vars: env-vars:
DIB_DISTRIBUTION_MIRROR: 'https://mirror.regionone.linaro.opendev.org/ubuntu-ports' DIB_DISTRIBUTION_MIRROR: 'https://mirror.regionone.linaro.opendev.org/ubuntu-ports'
DIB_DEBIAN_COMPONENTS: 'main,universe' DIB_DEBIAN_COMPONENTS: 'main,universe'
@ -235,6 +237,7 @@ diskimages:
elements: elements:
- debian-minimal - debian-minimal
release: bookworm release: bookworm
rebuild-age: 172800 # 2 days
env-vars: env-vars:
DIB_DISTRIBUTION_MIRROR: 'https://mirror.regionone.linaro.opendev.org/debian' DIB_DISTRIBUTION_MIRROR: 'https://mirror.regionone.linaro.opendev.org/debian'
@ -272,6 +275,7 @@ diskimages:
- centos-minimal - centos-minimal
- epel - epel
release: 9-stream release: 9-stream
rebuild-age: 172800 # 2 days
env-vars: env-vars:
DIB_EPEL_DISABLED: '1' DIB_EPEL_DISABLED: '1'
@ -291,3 +295,4 @@ diskimages:
- rocky-container - rocky-container
- epel - epel
release: 9 release: 9
rebuild-age: 172800 # 2 days

View File

@ -131,6 +131,7 @@ providers:
diskimages: diskimages:
- name: base - name: base
abstract: True abstract: True
rebuild-age: 604800 # 7 days
elements: elements:
- vm - vm
- simple-init - simple-init
@ -188,6 +189,7 @@ diskimages:
pause: false pause: false
python-path: /usr/bin/python3 python-path: /usr/bin/python3
release: '9-stream' release: '9-stream'
rebuild-age: 172800 # 2 days
elements: elements:
- cache-devstack - cache-devstack
- centos-minimal - centos-minimal
@ -212,6 +214,7 @@ diskimages:
pause: false pause: false
python-path: /usr/bin/python3 python-path: /usr/bin/python3
release: '9' release: '9'
rebuild-age: 172800 # 2 days
elements: elements:
- cache-devstack - cache-devstack
- rocky-container - rocky-container
@ -246,6 +249,7 @@ diskimages:
- debian-minimal - debian-minimal
- cache-devstack - cache-devstack
release: bookworm release: bookworm
rebuild-age: 172800 # 2 days
env-vars: env-vars:
DIB_DISTRIBUTION_MIRROR: 'https://mirror.dfw.rax.opendev.org/debian' DIB_DISTRIBUTION_MIRROR: 'https://mirror.dfw.rax.opendev.org/debian'
DIB_DEBIAN_SECURITY_MIRROR: DIB_DEBIAN_SECURITY_MIRROR:
@ -396,6 +400,7 @@ diskimages:
- ubuntu-minimal - ubuntu-minimal
- cache-devstack - cache-devstack
release: jammy release: jammy
rebuild-age: 86400 # 1 days
env-vars: env-vars:
DIB_DISTRIBUTION_MIRROR: 'https://mirror.dfw.rax.opendev.org/ubuntu' DIB_DISTRIBUTION_MIRROR: 'https://mirror.dfw.rax.opendev.org/ubuntu'
DIB_DEBIAN_COMPONENTS: 'main,universe' DIB_DEBIAN_COMPONENTS: 'main,universe'