Merge "Pin zun jobs to Docker 20" into stable/xena
This commit is contained in:
commit
163b4dd253
@ -8,13 +8,15 @@ docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_facts.distribution_release
|
||||
docker_apt_key_file: "gpg"
|
||||
docker_apt_key_id: "0EBFCD88"
|
||||
docker_apt_package: "docker-ce"
|
||||
docker_apt_package_pin: ""
|
||||
|
||||
# Docker Yum repository configuration.
|
||||
docker_yum_url: "https://download.docker.com/linux/centos"
|
||||
docker_yum_baseurl: "{{ docker_yum_url }}/$releasever/$basearch/stable"
|
||||
docker_yum_gpgkey: "{{ docker_yum_url }}/gpg"
|
||||
docker_yum_gpgcheck: true
|
||||
docker_yum_package: "docker-ce"
|
||||
docker_yum_package: "{% if ansible_facts.distribution == 'openEuler' %}docker{{ '-' + docker_yum_package_pin if (docker_yum_package_pin | length > 0) else '' }}{% else %}docker-ce{{ '-' + docker_yum_package_pin if (docker_yum_package_pin | length > 0) else '' }}{% endif %}"
|
||||
docker_yum_package_pin: ""
|
||||
|
||||
ceph_version: "pacific"
|
||||
epel_version: "8"
|
||||
|
@ -68,6 +68,25 @@
|
||||
- ansible_facts.os_family == 'Debian'
|
||||
- not docker_unit_file.stat.exists
|
||||
|
||||
- name: Ensure /etc/apt/preferences.d exists
|
||||
file:
|
||||
path: /etc/apt/preferences.d
|
||||
state: directory
|
||||
mode: 0755
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
|
||||
- name: Install docker apt pin
|
||||
copy:
|
||||
dest: "/etc/apt/preferences.d/docker"
|
||||
content: |
|
||||
Package: {{ docker_apt_package }}
|
||||
Pin: version {{ docker_apt_package_pin }}
|
||||
Pin-Priority: 1000
|
||||
become: True
|
||||
when:
|
||||
- docker_apt_package_pin | length > 0
|
||||
- ansible_facts.os_family == 'Debian'
|
||||
|
||||
- name: Install apt packages
|
||||
package:
|
||||
name: "{{ (debian_pkg_install | join(' ')).split() }}"
|
||||
|
@ -23,6 +23,16 @@ following variables:
|
||||
docker_configure_for_zun: "yes"
|
||||
containerd_configure_for_zun: "yes"
|
||||
|
||||
Currently Kuryr does not support Docker 23 and later due to
|
||||
dropped --cluster-store option (bug
|
||||
`bug <https://bugs.launchpad.net/zun/+bug/2007142>`__).You need
|
||||
to cap docker by setting the following variables in globals.yml.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
docker_apt_package_pin: "5:20.*"
|
||||
docker_yum_package_pin: "20.*"
|
||||
|
||||
Docker reconfiguration requires rebootstrapping before deploy.
|
||||
Make sure you understand the consequences of restarting Docker.
|
||||
Please see :ref:`rebootstrapping` for details.
|
||||
|
@ -84,6 +84,9 @@ enable_cinder: "yes"
|
||||
# lvm backup driver for cinder-backup does not exist
|
||||
enable_cinder_backup: "no"
|
||||
enable_cinder_backend_lvm: "yes"
|
||||
# pin Docker to 20 - https://bugs.launchpad.net/zun/+bug/2007142
|
||||
docker_apt_package_pin: "5:20.*"
|
||||
docker_yum_package_pin: "20.*"
|
||||
{% endif %}
|
||||
|
||||
{% if scenario == "swift" %}
|
||||
|
@ -101,6 +101,7 @@
|
||||
- ^tests/test-core-openstack.sh
|
||||
- ^tests/test-zun.sh
|
||||
- ^tests/test-dashboard.sh
|
||||
- ^tests/templates/globals-default\.j2$
|
||||
vars:
|
||||
scenario: zun
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user