Merge "Add support for Ubuntu Jammy Jellyfish (22.04) LTS"

This commit is contained in:
Zuul 2022-08-08 09:29:02 +00:00 committed by Gerrit Code Review
commit a2f9801034
20 changed files with 65 additions and 51 deletions

View File

@ -30,7 +30,7 @@ apt_keys: []
# * types: whitespace-separated list of repository types, e.g. deb or deb-src # * types: whitespace-separated list of repository types, e.g. deb or deb-src
# (optional, default is 'deb') # (optional, default is 'deb')
# * url: URL of the repository # * url: URL of the repository
# * suites: whitespace-separated list of suites, e.g. focal (optional, default # * suites: whitespace-separated list of suites, e.g. jammy (optional, default
# is ansible_facts.distribution_release) # is ansible_facts.distribution_release)
# * components: whitespace-separated list of components, e.g. main (optional, # * components: whitespace-separated list of components, e.g. main (optional,
# default is 'main') # default is 'main')

View File

@ -49,12 +49,12 @@ kayobe_ansible_user: "stack"
os_distribution: "centos" os_distribution: "centos"
# OS release. Valid options are "8-stream" when os_distribution is "centos", or # OS release. Valid options are "8-stream" when os_distribution is "centos", or
# "8" when os_distribution is "rocky", or "focal" when os_distribution is # "8" when os_distribution is "rocky", or "jammy" when os_distribution is
# "ubuntu". # "ubuntu".
os_release: >- os_release: >-
{{ '8-stream' if os_distribution == 'centos' {{ '8-stream' if os_distribution == 'centos'
else '8' if os_distribution == 'rocky' else '8' if os_distribution == 'rocky'
else 'focal' }} else 'jammy' }}
############################################################################### ###############################################################################
# Ansible configuration. # Ansible configuration.

View File

@ -41,7 +41,7 @@ infra_vm_root_capacity: 50G
infra_vm_root_format: qcow2 infra_vm_root_format: qcow2
# Base image for the infra VM root volume. Default is # Base image for the infra VM root volume. Default is
# "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" # "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
# when os_distribution is "ubuntu", or # when os_distribution is "ubuntu", or
# https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 # https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
# when os_distribution is "rocky", # when os_distribution is "rocky",
@ -50,7 +50,7 @@ infra_vm_root_format: qcow2
# otherwise. # otherwise.
infra_vm_root_image: >- infra_vm_root_image: >-
{%- if os_distribution == 'ubuntu' %} {%- if os_distribution == 'ubuntu' %}
https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
{%- elif os_distribution == 'rocky' %} {%- elif os_distribution == 'rocky' %}
https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
{%- else -%} {%- else -%}

View File

@ -41,7 +41,7 @@ seed_vm_root_capacity: 50G
seed_vm_root_format: qcow2 seed_vm_root_format: qcow2
# Base image for the seed VM root volume. Default is # Base image for the seed VM root volume. Default is
# "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" # "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
# when os_distribution is "ubuntu", # when os_distribution is "ubuntu",
# https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 # https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
# when os_distribution is "rocky", # when os_distribution is "rocky",
@ -50,7 +50,7 @@ seed_vm_root_format: qcow2
# otherwise. # otherwise.
seed_vm_root_image: >- seed_vm_root_image: >-
{%- if os_distribution == 'ubuntu' %} {%- if os_distribution == 'ubuntu' %}
https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
{%- elif os_distribution == 'rocky' %} {%- elif os_distribution == 'rocky' %}
https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
{%- else -%} {%- else -%}

View File

@ -33,7 +33,7 @@ apt_keys: []
# * types: whitespace-separated list of repository types, e.g. deb or deb-src # * types: whitespace-separated list of repository types, e.g. deb or deb-src
# (optional, default is 'deb') # (optional, default is 'deb')
# * url: URL of the repository # * url: URL of the repository
# * suites: whitespace-separated list of suites, e.g. focal (optional, default # * suites: whitespace-separated list of suites, e.g. jammy (optional, default
# is ansible_facts.distribution_release) # is ansible_facts.distribution_release)
# * components: whitespace-separated list of components, e.g. main (optional, # * components: whitespace-separated list of components, e.g. main (optional,
# default is 'main') # default is 'main')

View File

@ -1,4 +1,13 @@
--- ---
- name: Ensure the Apt sources.list.d directory exists
file:
path: "/etc/apt/sources.list.d"
state: directory
owner: root
group: root
mode: 0755
become: true
# NOTE(mgoddard): Use the modern deb822 repository format rather than the old # NOTE(mgoddard): Use the modern deb822 repository format rather than the old
# format used by the apt_repository module. # format used by the apt_repository module.
- name: Configure apt repositories - name: Configure apt repositories

View File

@ -366,7 +366,7 @@ items:
* ``types``: whitespace-separated list of repository types, e.g. ``deb`` or * ``types``: whitespace-separated list of repository types, e.g. ``deb`` or
``deb-src`` (optional, default is ``deb``) ``deb-src`` (optional, default is ``deb``)
* ``url``: URL of the repository * ``url``: URL of the repository
* ``suites``: whitespace-separated list of suites, e.g. ``focal`` (optional, * ``suites``: whitespace-separated list of suites, e.g. ``jammy`` (optional,
default is ``ansible_facts.distribution_release``) default is ``ansible_facts.distribution_release``)
* ``components``: whitespace-separated list of components, e.g. ``main`` * ``components``: whitespace-separated list of components, e.g. ``main``
(optional, default is ``main``) (optional, default is ``main``)
@ -385,10 +385,10 @@ For example, the following configuration defines a single Apt repository:
apt_repositories: apt_repositories:
- types: deb - types: deb
url: https://example.com/repo url: https://example.com/repo
suites: focal suites: jammy
components: all components: all
In the following example, the Ubuntu Focal 20.04 repositories are consumed from In the following example, the Ubuntu Jammy 22.04 repositories are consumed from
a local package mirror. The ``apt_disable_sources_list`` variable is set to a local package mirror. The ``apt_disable_sources_list`` variable is set to
``true``, which disables all repositories in ``/etc/apt/sources.list``, ``true``, which disables all repositories in ``/etc/apt/sources.list``,
including the default Ubuntu ones. including the default Ubuntu ones.
@ -398,10 +398,10 @@ including the default Ubuntu ones.
apt_repositories: apt_repositories:
- url: http://mirror.example.com/ubuntu/ - url: http://mirror.example.com/ubuntu/
suites: focal focal-updates suites: jammy jammy-updates
components: main restricted universe multiverse components: main restricted universe multiverse
- url: http://mirror.example.com/ubuntu/ - url: http://mirror.example.com/ubuntu/
suites: focal-security suites: jammy-security
components: main restricted universe multiverse components: main restricted universe multiverse
apt_disable_sources_list: true apt_disable_sources_list: true
@ -438,7 +438,7 @@ that is signed by the key.
apt_repositories: apt_repositories:
- types: deb - types: deb
url: https://example.com/repo url: https://example.com/repo
suites: focal suites: jammy
components: all components: all
signed_by: example-key.asc signed_by: example-key.asc

View File

@ -16,7 +16,7 @@ or ``rocky`` or ``ubuntu``, and defaults to ``centos``.
The ``os_release`` variable in ``etc/kayobe/globals.yml`` can be used to set The ``os_release`` variable in ``etc/kayobe/globals.yml`` can be used to set
the release of the OS. When ``os_distribution`` is set to ``centos`` it may be the release of the OS. When ``os_distribution`` is set to ``centos`` it may be
set to ``8-stream``, and this is its default value. When ``os_distribution`` is set to ``8-stream``, and this is its default value. When ``os_distribution`` is
set to ``ubuntu`` it may be set to ``focal``, and this is its default value. set to ``ubuntu`` it may be set to ``jammy``, and this is its default value.
When ``os_distribution`` is set to ``rocky`` it may be set to ``8``, and this When ``os_distribution`` is set to ``rocky`` it may be set to ``8``, and this
is its default value. is its default value.

View File

@ -17,7 +17,7 @@ control host:
- CentOS Stream 8 (since Wallaby 10.0.0 release) - CentOS Stream 8 (since Wallaby 10.0.0 release)
- Rocky Linux 8 (since Yoga 12.0.0 release) - Rocky Linux 8 (since Yoga 12.0.0 release)
- Ubuntu Focal 20.04 (since Wallaby 10.0.0 release) - Ubuntu Jammy 22.04 (since Zed 13.0.0 release)
See the :doc:`support matrix <support-matrix>` for details of supported See the :doc:`support matrix <support-matrix>` for details of supported
Operating Systems for other hosts. Operating Systems for other hosts.

View File

@ -22,7 +22,7 @@ OpenStack using Kolla, Ansible and Kayobe. The guide makes use of
baremetal environment running on a single hypervisor. baremetal environment running on a single hypervisor.
To complete the walkthrough you will require a baremetal or VM hypervisor To complete the walkthrough you will require a baremetal or VM hypervisor
running CentOS 8 or Ubuntu Focal 20.04 (since Wallaby 10.0.0) with at least running CentOS 8 or Ubuntu Jammy 22.04 (since Zed 13.0.0) with at least
32GB RAM & 80GB disk space. Preparing the deployment can take some time - 32GB RAM & 80GB disk space. Preparing the deployment can take some time -
where possible it is beneficial to snapshot the hypervisor. We advise making a where possible it is beneficial to snapshot the hypervisor. We advise making a
snapshot after creating the initial 'seed' VM as this will make additional snapshot after creating the initial 'seed' VM as this will make additional

View File

@ -11,7 +11,7 @@ Kayobe supports the following host Operating Systems (OS):
* CentOS Stream 8 (since Wallaby 10.0.0 release) * CentOS Stream 8 (since Wallaby 10.0.0 release)
* Rocky Linux 8 (since Yoga 12.0.0 release) * Rocky Linux 8 (since Yoga 12.0.0 release)
* Ubuntu Focal 20.04 (since Wallaby 10.0.0 release) * Ubuntu Jammy 22.04 (since Zed 13.0.0 release)
.. note:: .. note::

View File

@ -30,7 +30,7 @@
# * types: whitespace-separated list of repository types, e.g. deb or deb-src # * types: whitespace-separated list of repository types, e.g. deb or deb-src
# (optional, default is 'deb') # (optional, default is 'deb')
# * url: URL of the repository # * url: URL of the repository
# * suites: whitespace-separated list of suites, e.g. focal (optional, default # * suites: whitespace-separated list of suites, e.g. jammy (optional, default
# is ansible_facts.distribution_release) # is ansible_facts.distribution_release)
# * components: whitespace-separated list of components, e.g. main (optional, # * components: whitespace-separated list of components, e.g. main (optional,
# default is 'main') # default is 'main')

View File

@ -50,7 +50,7 @@
#os_distribution: #os_distribution:
# OS release. Valid options are "8-stream" when os_distribution is "centos", or # OS release. Valid options are "8-stream" when os_distribution is "centos", or
# "8" when os_distribution is "rocky", or "focal" when os_distribution is # "8" when os_distribution is "rocky", or "jammy" when os_distribution is
# "ubuntu". # "ubuntu".
#os_release: #os_release:

View File

@ -30,7 +30,7 @@
#infra_vm_root_format: #infra_vm_root_format:
# Base image for the infra VM root volume. Default is # Base image for the infra VM root volume. Default is
# "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" # "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
# when os_distribution is "ubuntu", or # when os_distribution is "ubuntu", or
# https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 # https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
# when os_distribution is "rocky", # when os_distribution is "rocky",

View File

@ -24,7 +24,7 @@
#seed_vm_root_format: #seed_vm_root_format:
# Base image for the seed VM root volume. Default is # Base image for the seed VM root volume. Default is
# "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" # "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
# when os_distribution is "ubuntu", # when os_distribution is "ubuntu",
# https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2 # https://dl.rockylinux.org/pub/rocky/8/images/Rocky-8-GenericCloud.latest.x86_64.qcow2
# when os_distribution is "rocky", # when os_distribution is "rocky",

View File

@ -123,15 +123,15 @@ apt_keys:
- url: https://packages.treasuredata.com/GPG-KEY-td-agent - url: https://packages.treasuredata.com/GPG-KEY-td-agent
filename: td-agent.asc filename: td-agent.asc
apt_repositories: apt_repositories:
# Ubuntu focal repositories. # Ubuntu jammy repositories.
- url: "http://{{ zuul_site_mirror_fqdn }}/ubuntu/" - url: "http://{{ zuul_site_mirror_fqdn }}/ubuntu/"
suites: focal focal-updates suites: jammy jammy-updates
components: main restricted universe multiverse components: main restricted universe multiverse
- url: "http://{{ zuul_site_mirror_fqdn }}/ubuntu/" - url: "http://{{ zuul_site_mirror_fqdn }}/ubuntu/"
suites: focal-security suites: jammy-security
components: main restricted universe multiverse components: main restricted universe multiverse
# Treasuredata repository. # Treasuredata repository.
- url: http://packages.treasuredata.com/4/ubuntu/focal/ - url: http://packages.treasuredata.com/4/ubuntu/jammy/
components: contrib components: contrib
signed_by: td-agent.asc signed_by: td-agent.asc
apt_disable_sources_list: true apt_disable_sources_list: true

View File

@ -0,0 +1,5 @@
---
features:
- |
Adds support for Ubuntu Jammy Jellyfish (22.04) LTS as a host and
container Operating System for seed, seed hypervisor and overcloud hosts.

View File

@ -124,9 +124,9 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-overcloud-ubuntu-focal name: kayobe-overcloud-ubuntu-jammy
parent: kayobe-overcloud-base parent: kayobe-overcloud-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy
- job: - job:
name: kayobe-overcloud-tls-base name: kayobe-overcloud-tls-base
@ -186,9 +186,9 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-seed-ubuntu-focal name: kayobe-seed-ubuntu-jammy
parent: kayobe-seed-base parent: kayobe-seed-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy
- job: - job:
name: kayobe-seed-images-base name: kayobe-seed-images-base
@ -212,9 +212,9 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-seed-images-ubuntu-focal name: kayobe-seed-images-ubuntu-jammy
parent: kayobe-seed-images-base parent: kayobe-seed-images-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy
- job: - job:
name: kayobe-overcloud-host-configure-base name: kayobe-overcloud-host-configure-base
@ -238,9 +238,9 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-overcloud-host-configure-ubuntu-focal name: kayobe-overcloud-host-configure-ubuntu-jammy
parent: kayobe-overcloud-host-configure-base parent: kayobe-overcloud-host-configure-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy
- job: - job:
name: kayobe-seed-upgrade-base name: kayobe-seed-upgrade-base
@ -287,9 +287,9 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-seed-vm-ubuntu-focal name: kayobe-seed-vm-ubuntu-jammy
parent: kayobe-seed-vm-base parent: kayobe-seed-vm-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy
- job: - job:
name: kayobe-infra-vm-base name: kayobe-infra-vm-base
@ -314,6 +314,6 @@
nodeset: kayobe-rocky8 nodeset: kayobe-rocky8
- job: - job:
name: kayobe-infra-vm-ubuntu-focal name: kayobe-infra-vm-ubuntu-jammy
parent: kayobe-infra-vm-base parent: kayobe-infra-vm-base
nodeset: kayobe-ubuntu-focal nodeset: kayobe-ubuntu-jammy

View File

@ -13,7 +13,7 @@
label: rockylinux-8 label: rockylinux-8
- nodeset: - nodeset:
name: kayobe-ubuntu-focal name: kayobe-ubuntu-jammy
nodes: nodes:
- name: primary - name: primary
label: ubuntu-focal label: ubuntu-jammy

View File

@ -13,25 +13,25 @@
- kayobe-tox-molecule - kayobe-tox-molecule
- kayobe-overcloud-centos8s - kayobe-overcloud-centos8s
- kayobe-overcloud-rocky8 - kayobe-overcloud-rocky8
- kayobe-overcloud-ubuntu-focal - kayobe-overcloud-ubuntu-jammy
- kayobe-overcloud-tls-centos8s - kayobe-overcloud-tls-centos8s
- kayobe-overcloud-host-configure-centos8s - kayobe-overcloud-host-configure-centos8s
- kayobe-overcloud-host-configure-rocky8 - kayobe-overcloud-host-configure-rocky8
- kayobe-overcloud-host-configure-ubuntu-focal - kayobe-overcloud-host-configure-ubuntu-jammy
- kayobe-overcloud-upgrade-centos8s - kayobe-overcloud-upgrade-centos8s
- kayobe-overcloud-upgrade-ubuntu-focal - kayobe-overcloud-upgrade-ubuntu-focal
- kayobe-seed-centos8s - kayobe-seed-centos8s
- kayobe-seed-rocky8 - kayobe-seed-rocky8
- kayobe-seed-ubuntu-focal - kayobe-seed-ubuntu-jammy
- kayobe-seed-images-centos8s - kayobe-seed-images-centos8s
- kayobe-seed-upgrade-centos8s - kayobe-seed-upgrade-centos8s
- kayobe-seed-upgrade-ubuntu-focal - kayobe-seed-upgrade-ubuntu-focal
- kayobe-seed-vm-centos8s - kayobe-seed-vm-centos8s
- kayobe-seed-vm-rocky8 - kayobe-seed-vm-rocky8
- kayobe-seed-vm-ubuntu-focal - kayobe-seed-vm-ubuntu-jammy
- kayobe-infra-vm-centos8s - kayobe-infra-vm-centos8s
- kayobe-infra-vm-rocky8 - kayobe-infra-vm-rocky8
- kayobe-infra-vm-ubuntu-focal - kayobe-infra-vm-ubuntu-jammy
gate: gate:
jobs: jobs:
@ -40,26 +40,26 @@
- kayobe-tox-molecule - kayobe-tox-molecule
- kayobe-overcloud-centos8s - kayobe-overcloud-centos8s
- kayobe-overcloud-rocky8 - kayobe-overcloud-rocky8
- kayobe-overcloud-ubuntu-focal - kayobe-overcloud-ubuntu-jammy
- kayobe-overcloud-tls-centos8s - kayobe-overcloud-tls-centos8s
- kayobe-overcloud-host-configure-centos8s - kayobe-overcloud-host-configure-centos8s
- kayobe-overcloud-host-configure-rocky8 - kayobe-overcloud-host-configure-rocky8
- kayobe-overcloud-host-configure-ubuntu-focal - kayobe-overcloud-host-configure-ubuntu-jammy
- kayobe-overcloud-upgrade-centos8s - kayobe-overcloud-upgrade-centos8s
- kayobe-overcloud-upgrade-ubuntu-focal - kayobe-overcloud-upgrade-ubuntu-focal
- kayobe-seed-centos8s - kayobe-seed-centos8s
- kayobe-seed-rocky8 - kayobe-seed-rocky8
- kayobe-seed-ubuntu-focal - kayobe-seed-ubuntu-jammy
- kayobe-seed-upgrade-centos8s - kayobe-seed-upgrade-centos8s
- kayobe-seed-upgrade-ubuntu-focal - kayobe-seed-upgrade-ubuntu-focal
- kayobe-seed-vm-centos8s - kayobe-seed-vm-centos8s
- kayobe-seed-vm-rocky8 - kayobe-seed-vm-rocky8
- kayobe-seed-vm-ubuntu-focal - kayobe-seed-vm-ubuntu-jammy
- kayobe-infra-vm-centos8s - kayobe-infra-vm-centos8s
- kayobe-infra-vm-rocky8 - kayobe-infra-vm-rocky8
- kayobe-infra-vm-ubuntu-focal - kayobe-infra-vm-ubuntu-jammy
experimental: experimental:
jobs: jobs:
- kayobe-seed-images-rocky8 - kayobe-seed-images-rocky8
- kayobe-seed-images-ubuntu-focal - kayobe-seed-images-ubuntu-jammy