Merge "Remove support for CentOS 7"
This commit is contained in:
commit
9f54c6fd1b
@ -855,7 +855,7 @@ gnocchi_metric_datadir_volume: "gnocchi"
|
|||||||
cinder_backend_ceph: "no"
|
cinder_backend_ceph: "no"
|
||||||
cinder_backend_vmwarevc_vmdk: "no"
|
cinder_backend_vmwarevc_vmdk: "no"
|
||||||
cinder_volume_group: "cinder-volumes"
|
cinder_volume_group: "cinder-volumes"
|
||||||
cinder_target_helper: "{{ 'lioadm' if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version_compare('8', '>=') else 'tgtadm' }}"
|
cinder_target_helper: "{{ 'lioadm' if ansible_os_family == 'RedHat' else 'tgtadm' }}"
|
||||||
# Valid options are [ '', redis, etcd ]
|
# Valid options are [ '', redis, etcd ]
|
||||||
cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
|
cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
|
||||||
|
|
||||||
@ -1065,9 +1065,9 @@ kafka_datadir_volume: "kafka"
|
|||||||
# Internal Image options
|
# Internal Image options
|
||||||
#########################
|
#########################
|
||||||
distro_python_version_map: {
|
distro_python_version_map: {
|
||||||
"centos": "{{ '3.6' if ansible_distribution_major_version is version(8, '>=') else '2.7' }}",
|
"centos": "3.6",
|
||||||
"debian": "3.7",
|
"debian": "3.7",
|
||||||
"rhel": "{{ '3.6' if ansible_distribution_major_version is version(8, '>=') else '2.7' }}",
|
"rhel": "3.6",
|
||||||
"ubuntu": "3.6"
|
"ubuntu": "3.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,8 +11,7 @@ docker_apt_package: "docker-ce"
|
|||||||
|
|
||||||
# Docker Yum repository configuration.
|
# Docker Yum repository configuration.
|
||||||
docker_yum_url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}"
|
docker_yum_url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}"
|
||||||
# FIXME(mgoddard): Use {{ ansible_distribution_major_version | lower }} rather
|
# FIXME(mgoddard): $releasever rather than 7.
|
||||||
# than 7.
|
|
||||||
docker_yum_baseurl: "{{ docker_yum_url }}/7/$basearch/stable"
|
docker_yum_baseurl: "{{ docker_yum_url }}/7/$basearch/stable"
|
||||||
docker_yum_gpgkey: "{{ docker_yum_url }}/gpg"
|
docker_yum_gpgkey: "{{ docker_yum_url }}/gpg"
|
||||||
docker_yum_gpgcheck: true
|
docker_yum_gpgcheck: true
|
||||||
@ -46,8 +45,7 @@ easy_install_available: >-
|
|||||||
not (ansible_distribution == 'Debian' and
|
not (ansible_distribution == 'Debian' and
|
||||||
ansible_distribution_major_version is version(10, 'ge'))
|
ansible_distribution_major_version is version(10, 'ge'))
|
||||||
and
|
and
|
||||||
not (ansible_os_family == 'RedHat' and
|
not ansible_os_family == 'RedHat' }}
|
||||||
ansible_distribution_major_version is version(8, 'ge')) }}
|
|
||||||
|
|
||||||
# Version of python used to execute Ansible modules.
|
# Version of python used to execute Ansible modules.
|
||||||
host_python_version: "{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}"
|
host_python_version: "{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}"
|
||||||
|
@ -55,10 +55,8 @@
|
|||||||
register: apt_install_result
|
register: apt_install_result
|
||||||
|
|
||||||
- name: Install deltarpm packages
|
- name: Install deltarpm packages
|
||||||
vars:
|
|
||||||
package_name: "{{ 'deltarpm' if ansible_distribution_major_version == '7' else 'drpm' }}"
|
|
||||||
package:
|
package:
|
||||||
name: "{{ package_name }}"
|
name: drpm
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
become: True
|
become: True
|
||||||
|
@ -139,8 +139,6 @@
|
|||||||
line: "module_hotfixes = True"
|
line: "module_hotfixes = True"
|
||||||
state: present
|
state: present
|
||||||
become: True
|
become: True
|
||||||
when:
|
|
||||||
- ansible_distribution_major_version == '8'
|
|
||||||
|
|
||||||
- name: Install docker rpm gpg key
|
- name: Install docker rpm gpg key
|
||||||
rpm_key:
|
rpm_key:
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
{% set has_haproxy_1_8=kolla_base_distro in ['debian', 'ubuntu'] or (kolla_base_distro == 'centos' and ansible_distribution_major_version is version(8, '>=')) %}
|
|
||||||
{% set haproxy_cmd='/usr/sbin/haproxy -W -db' if has_haproxy_1_8 else '/usr/sbin/haproxy-systemd-wrapper' %}
|
|
||||||
|
|
||||||
# We need to run haproxy with one `-f` for each service, because including an
|
# We need to run haproxy with one `-f` for each service, because including an
|
||||||
# entire config directory was not a feature until version 1.7 of HAProxy.
|
# entire config directory was not a feature until version 1.7 of HAProxy.
|
||||||
@ -8,4 +6,4 @@
|
|||||||
# This will run haproxy_cmd *exactly once*.
|
# This will run haproxy_cmd *exactly once*.
|
||||||
find /etc/haproxy/services.d/ -mindepth 1 -print0 | \
|
find /etc/haproxy/services.d/ -mindepth 1 -print0 | \
|
||||||
xargs -0 -Icfg echo -f cfg | \
|
xargs -0 -Icfg echo -f cfg | \
|
||||||
xargs {{ haproxy_cmd }} -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg
|
xargs /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg
|
||||||
|
@ -30,5 +30,4 @@
|
|||||||
The SCSI target daemon tgtd is not supported on CentOS/RHEL 8 and later
|
The SCSI target daemon tgtd is not supported on CentOS/RHEL 8 and later
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
- ansible_distribution_major_version is version_compare('8', '>=')
|
|
||||||
- enable_tgtd | bool
|
- enable_tgtd | bool
|
||||||
|
@ -8,12 +8,7 @@ export PYTHONUNBUFFERED=1
|
|||||||
|
|
||||||
function setup_ceph_ansible {
|
function setup_ceph_ansible {
|
||||||
# Prepare virtualenv for ceph-ansible deployment
|
# Prepare virtualenv for ceph-ansible deployment
|
||||||
# NOTE(mnasiadka): Use python2 on centos7 due to missing python3 selinux bindings
|
virtualenv --system-site-packages ~/ceph-venv
|
||||||
if [[ $BASE_DISTRO == "centos" ]] && [[ $BASE_DISTRO_MAJOR_VERSION -eq 8 ]]; then
|
|
||||||
virtualenv --system-site-packages ~/ceph-venv
|
|
||||||
else
|
|
||||||
virtualenv -p `which python2` --system-site-packages ~/ceph-venv
|
|
||||||
fi
|
|
||||||
~/ceph-venv/bin/pip install -Ir requirements.txt
|
~/ceph-venv/bin/pip install -Ir requirements.txt
|
||||||
~/ceph-venv/bin/pip install -IU selinux
|
~/ceph-venv/bin/pip install -IU selinux
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
vars:
|
vars:
|
||||||
# NOTE(yoctozepto): needed here to use in other facts too
|
# NOTE(yoctozepto): needed here to use in other facts too
|
||||||
openstack_core_enabled: "{{ scenario not in ['bifrost', 'mariadb'] }}"
|
openstack_core_enabled: "{{ scenario not in ['bifrost', 'mariadb'] }}"
|
||||||
# TODO(mgoddard): Remove when previous_release is ussuri.
|
|
||||||
is_centos8: "{{ ansible_os_family == 'RedHat' and ansible_distribution_major_version | int == 8 }}"
|
|
||||||
set_fact:
|
set_fact:
|
||||||
kolla_inventory_path: "/etc/kolla/inventory"
|
kolla_inventory_path: "/etc/kolla/inventory"
|
||||||
logs_dir: "/tmp/logs"
|
logs_dir: "/tmp/logs"
|
||||||
@ -26,7 +24,7 @@
|
|||||||
openstack_core_tested: "{{ scenario in ['core', 'ceph-ansible', 'zun', 'cells', 'swift', 'linuxbridge', 'ovn'] }}"
|
openstack_core_tested: "{{ scenario in ['core', 'ceph-ansible', 'zun', 'cells', 'swift', 'linuxbridge', 'ovn'] }}"
|
||||||
dashboard_enabled: "{{ openstack_core_enabled }}"
|
dashboard_enabled: "{{ openstack_core_enabled }}"
|
||||||
# TODO(mgoddard): Remove when previous_release is ussuri.
|
# TODO(mgoddard): Remove when previous_release is ussuri.
|
||||||
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' and not is_centos8 else '3' }}"
|
playbook_python_version: "{{ '2' if is_upgrade and previous_release == 'train' and ansible_os_family != 'RedHat' else '3' }}"
|
||||||
upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
|
upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"
|
||||||
docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
|
docker_image_tag_suffix: "{{ '-aarch64' if ansible_architecture == 'aarch64' else '' }}"
|
||||||
|
|
||||||
@ -271,7 +269,6 @@
|
|||||||
chdir: "{{ kolla_ansible_src_dir }}"
|
chdir: "{{ kolla_ansible_src_dir }}"
|
||||||
environment:
|
environment:
|
||||||
BASE_DISTRO: "{{ base_distro }}"
|
BASE_DISTRO: "{{ base_distro }}"
|
||||||
BASE_DISTRO_MAJOR_VERSION: "{{ ansible_distribution_major_version }}"
|
|
||||||
INSTALL_TYPE: "{{ install_type }}"
|
INSTALL_TYPE: "{{ install_type }}"
|
||||||
BUILD_IMAGE: "{{ need_build_image }}"
|
BUILD_IMAGE: "{{ need_build_image }}"
|
||||||
TAG: "{{ build_image_tag }}"
|
TAG: "{{ build_image_tag }}"
|
||||||
@ -305,7 +302,6 @@
|
|||||||
chdir: "{{ ceph_ansible_src_dir }}"
|
chdir: "{{ ceph_ansible_src_dir }}"
|
||||||
environment:
|
environment:
|
||||||
BASE_DISTRO: "{{ base_distro }}"
|
BASE_DISTRO: "{{ base_distro }}"
|
||||||
BASE_DISTRO_MAJOR_VERSION: "{{ ansible_distribution_major_version }}"
|
|
||||||
|
|
||||||
- name: Ensure required kolla config directories exist
|
- name: Ensure required kolla config directories exist
|
||||||
file:
|
file:
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
---
|
---
|
||||||
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7' %}
|
|
||||||
# Force the use of python2 on CentOS7 remote hosts. This is necessary for
|
|
||||||
# delegate_to: localhost, which will otherwise use the local python interpreter
|
|
||||||
# (python3). On CentOS 7, that fails due to a lack of python3 bindings for
|
|
||||||
# SELinux. https://bugs.centos.org/view.php?id=16389
|
|
||||||
ansible_python_interpreter: /usr/bin/python2
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
kolla_base_distro: "{{ base_distro }}"
|
kolla_base_distro: "{{ base_distro }}"
|
||||||
kolla_install_type: "{{ install_type }}"
|
kolla_install_type: "{{ install_type }}"
|
||||||
network_interface: "{{ api_interface_name }}"
|
network_interface: "{{ api_interface_name }}"
|
||||||
|
@ -45,7 +45,7 @@ function prepare_images {
|
|||||||
|
|
||||||
if [[ $SCENARIO == "zun" ]]; then
|
if [[ $SCENARIO == "zun" ]]; then
|
||||||
GATE_IMAGES+=",^zun,^kuryr,^etcd,^cinder,^iscsid"
|
GATE_IMAGES+=",^zun,^kuryr,^etcd,^cinder,^iscsid"
|
||||||
if [[ $BASE_DISTRO != "centos" ]] || [[ $BASE_DISTRO_MAJOR_VERSION -eq 7 ]]; then
|
if [[ $BASE_DISTRO != "centos" ]]; then
|
||||||
GATE_IMAGES+=",^tgtd"
|
GATE_IMAGES+=",^tgtd"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user