Add OpenStack Xena and Yoga image building

This change adds in the scripts and jobs to build, upload, and
promote images for the Xena and Yoga OpenStack releases.

Depends-on: https://review.opendev.org/c/openstack/openstack-helm-images/+/843021

Change-Id: I5b9d60ceaf85ee2a60a7f0239a0d3f33a05a2050
This commit is contained in:
Gage Hugo 2022-04-21 13:42:43 -05:00
parent 3974401a02
commit d9e6025c1f
4 changed files with 173 additions and 1 deletions

25
openstack/loci/build-xena.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname ${SCRIPT}`
## Only build from main folder
# Replace with Registry URI with your registry like your
# dockerhub user. Example: "docker.io/openstackhelm"
VERSION=${VERSION:-"latest"}
OPENSTACK_VERSION="stable/xena"
#pycrypto was dropped after queens so we need to override the defaults
keystone_pip_packages=${keystone_pip_packages:-"'python-openstackclient'"}
heat_pip_packages=${heat_pip_packages:-"''"}
barbican_pip_packages=${barbican_pip_packages:-"''"}
glance_pip_packages=${glance_pip_packages:-"'python-swiftclient'"}
cinder_pip_packages=${cinder_pip_packages:-"'python-swiftclient'"}
neutron_pip_packages=${neutron_pip_packages:-"''"}
nova_pip_packages=${nova_pip_packages:-"''"}
horizon_pip_packages=${horizon_pip_packages:-"'heat-dashboard'"}
senlin_pip_packages=${senlin_pip_packages:-"''"}
congress_pip_packages=${congress_pip_packages:-"'python-congressclient'"}
magnum_pip_packages=${magnum_pip_packages:-"''"}
ironic_pip_packages=${ironic_pip_packages:-"''"}
neutron_sriov_pip_packages=${neutron_sriov_pip_packages:-"'networking-baremetal'"}
placement_pip_packages=${placement_pip_packages:-"httplib2"}
source ${SCRIPT_DIR}/build.sh

25
openstack/loci/build-yoga.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname ${SCRIPT}`
## Only build from main folder
# Replace with Registry URI with your registry like your
# dockerhub user. Example: "docker.io/openstackhelm"
VERSION=${VERSION:-"latest"}
OPENSTACK_VERSION="stable/yoga"
#pycrypto was dropped after queens so we need to override the defaults
keystone_pip_packages=${keystone_pip_packages:-"'python-openstackclient'"}
heat_pip_packages=${heat_pip_packages:-"''"}
barbican_pip_packages=${barbican_pip_packages:-"''"}
glance_pip_packages=${glance_pip_packages:-"'python-swiftclient'"}
cinder_pip_packages=${cinder_pip_packages:-"'python-swiftclient'"}
neutron_pip_packages=${neutron_pip_packages:-"''"}
nova_pip_packages=${nova_pip_packages:-"''"}
horizon_pip_packages=${horizon_pip_packages:-"''"}
senlin_pip_packages=${senlin_pip_packages:-"''"}
congress_pip_packages=${congress_pip_packages:-"'python-congressclient'"}
magnum_pip_packages=${magnum_pip_packages:-"''"}
ironic_pip_packages=${ironic_pip_packages:-"''"}
neutron_sriov_pip_packages=${neutron_sriov_pip_packages:-"'networking-baremetal'"}
placement_pip_packages=${placement_pip_packages:-"httplib2"}
source ${SCRIPT_DIR}/build.sh

View File

@ -238,7 +238,7 @@ case ${BASE_IMAGE} in
#Mark the need to build image from LOCI Dockerfiles #Mark the need to build image from LOCI Dockerfiles
BUILD_IMAGE="yes" BUILD_IMAGE="yes"
#Makes sure the name of the distro is consistent with other OSH-images. #Makes sure the name of the distro is consistent with other OSH-images.
DISTRO="ubuntu_bionic" DISTRO="ubuntu_focal"
;; ;;
leap15) leap15)
BUILD_IMAGE="yes" BUILD_IMAGE="yes"

View File

@ -20,6 +20,8 @@
- openstack-helm-images-build-openstack-loci-ussuri-ubuntu_bionic - openstack-helm-images-build-openstack-loci-ussuri-ubuntu_bionic
- openstack-helm-images-build-openstack-loci-victoria-ubuntu_focal - openstack-helm-images-build-openstack-loci-victoria-ubuntu_focal
- openstack-helm-images-build-openstack-loci-wallaby-ubuntu_focal - openstack-helm-images-build-openstack-loci-wallaby-ubuntu_focal
- openstack-helm-images-build-openstack-loci-xena-ubuntu_focal
- openstack-helm-images-build-openstack-loci-yoga-ubuntu_focal
- openstack-helm-images-build-openstack-loci-master-ubuntu_focal - openstack-helm-images-build-openstack-loci-master-ubuntu_focal
gate: gate:
jobs: jobs:
@ -27,6 +29,8 @@
- openstack-helm-images-upload-openstack-loci-ussuri-ubuntu_bionic - openstack-helm-images-upload-openstack-loci-ussuri-ubuntu_bionic
- openstack-helm-images-upload-openstack-loci-victoria-ubuntu_focal - openstack-helm-images-upload-openstack-loci-victoria-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-wallaby-ubuntu_focal - openstack-helm-images-upload-openstack-loci-wallaby-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-xena-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-yoga-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-master-ubuntu_focal - openstack-helm-images-upload-openstack-loci-master-ubuntu_focal
promote: promote:
jobs: jobs:
@ -34,6 +38,8 @@
- openstack-helm-images-promote-openstack-loci-ussuri-ubuntu_bionic - openstack-helm-images-promote-openstack-loci-ussuri-ubuntu_bionic
- openstack-helm-images-promote-openstack-loci-victoria-ubuntu_focal - openstack-helm-images-promote-openstack-loci-victoria-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-wallaby-ubuntu_focal - openstack-helm-images-promote-openstack-loci-wallaby-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-yoga-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-xena-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-master-ubuntu_focal - openstack-helm-images-promote-openstack-loci-master-ubuntu_focal
periodic: periodic:
jobs: jobs:
@ -58,6 +64,16 @@
dependencies: dependencies:
- name: openstack-helm-images-compute-kit-wallaby-ubuntu_focal - name: openstack-helm-images-compute-kit-wallaby-ubuntu_focal
- name: openstack-helm-images-cinder-wallaby-ubuntu_focal - name: openstack-helm-images-cinder-wallaby-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-xena-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-xena-ubuntu_focal:
dependencies:
- name: openstack-helm-images-compute-kit-xena-ubuntu_focal
- name: openstack-helm-images-cinder-xena-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-yoga-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-yoga-ubuntu_focal:
dependencies:
- name: openstack-helm-images-compute-kit-yoga-ubuntu_focal
- name: openstack-helm-images-cinder-yoga-ubuntu_focal
- openstack-helm-images-upload-openstack-loci-master-ubuntu_focal - openstack-helm-images-upload-openstack-loci-master-ubuntu_focal
- openstack-helm-images-promote-openstack-loci-master-ubuntu_focal: - openstack-helm-images-promote-openstack-loci-master-ubuntu_focal:
dependencies: dependencies:
@ -427,6 +443,112 @@
vars: *build_master_focal_images vars: *build_master_focal_images
files: *loci-files files: *loci-files
########
# YOGA #
########
- job:
name: openstack-helm-images-build-openstack-loci-yoga-ubuntu_focal
description: Build LOCI yoga focal images
parent: openstack-helm-images-build-openstack-loci-master
vars: &build_yoga_focal_images
currentdate: "{{ now(utc=True,fmt='%Y%m%d') }}"
branchname: "stable/yoga"
shortbranchname: "yoga"
distroname: "ubuntu_focal"
from: "docker.io/ubuntu:20.04"
python3: "yes"
wheels_location: "http://172.17.0.1:8080/wheels.tar.gz"
base_repository: "base"
ceph_repo: "deb https://download.ceph.com/debian-quincy/ focal main"
ceph_key: "https://download.ceph.com/keys/release.asc"
base_docker_image:
- <<: *base_image
prep_docker_images:
- <<: *prep_requirements_project
docker_images:
- <<: *requirements_project
- <<: *keystone_project
- <<: *glance_project
- <<: *cinder_project
- <<: *nova_project
- <<: *ironic_project
- <<: *neutron_project
- <<: *horizon_project
- <<: *heat_project
- <<: *barbican_project
- <<: *placement_project
- <<: *monasca_api_project
- <<: *watcher_project
- <<: *cyborg_project
- <<: *masakari_project
- <<: *masakari_monitors_project
- job:
name: openstack-helm-images-upload-openstack-loci-yoga-ubuntu_focal
parent: openstack-helm-images-upload-openstack-loci-master
description: Build and upload LOCI yoga focal images
vars: *build_yoga_focal_images
- job:
name: openstack-helm-images-promote-openstack-loci-yoga-ubuntu_focal
parent: openstack-helm-images-promote-openstack-loci-master
description: Promote previously published LOCI yoga focal images
vars: *build_yoga_focal_images
########
# XENA #
########
- job:
name: openstack-helm-images-build-openstack-loci-xena-ubuntu_focal
description: Build LOCI xena focal images
parent: openstack-helm-images-build-openstack-loci-master
vars: &build_xena_focal_images
currentdate: "{{ now(utc=True,fmt='%Y%m%d') }}"
branchname: "stable/xena"
shortbranchname: "xena"
distroname: "ubuntu_focal"
from: "docker.io/ubuntu:20.04"
python3: "yes"
wheels_location: "http://172.17.0.1:8080/wheels.tar.gz"
base_repository: "base"
ceph_repo: "deb https://download.ceph.com/debian-quincy/ focal main"
ceph_key: "https://download.ceph.com/keys/release.asc"
base_docker_image:
- <<: *base_image
prep_docker_images:
- <<: *prep_requirements_project
docker_images:
- <<: *requirements_project
- <<: *keystone_project
- <<: *glance_project
- <<: *cinder_project
- <<: *nova_project
- <<: *ironic_project
- <<: *neutron_project
- <<: *horizon_project
- <<: *heat_project
- <<: *barbican_project
- <<: *placement_project
- <<: *monasca_api_project
- <<: *watcher_project
- <<: *cyborg_project
- <<: *masakari_project
- <<: *masakari_monitors_project
- job:
name: openstack-helm-images-upload-openstack-loci-xena-ubuntu_focal
parent: openstack-helm-images-upload-openstack-loci-master
description: Build and upload LOCI xena focal images
vars: *build_xena_focal_images
- job:
name: openstack-helm-images-promote-openstack-loci-xena-ubuntu_focal
parent: openstack-helm-images-promote-openstack-loci-master
description: Promote previously published LOCI xena focal images
vars: *build_xena_focal_images
########### ###########
# WALLABY # # WALLABY #
########### ###########