From 111375fb1ab335a02109dde34558d3f46aeaa124 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 28 Apr 2021 12:51:09 +0100 Subject: [PATCH] Ubuntu: CI: rely on os_distribution, remove interfaces pause We can now rely on the os_distribution variable to set sensible defaults for Ubuntu. It is set automatically in kayobe-config-dev. The interfaces pause workaround is no longer required since switching to systemd-networkd. Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/788475 Change-Id: I76d658b93b9195c760c3a91fe5aee96bad8d6b42 --- playbooks/kayobe-overcloud-base/overrides.yml.j2 | 7 ------- playbooks/kayobe-seed-base/overrides.yml.j2 | 5 +---- playbooks/kayobe-seed-vm-base/overrides.yml.j2 | 6 ------ 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/playbooks/kayobe-overcloud-base/overrides.yml.j2 b/playbooks/kayobe-overcloud-base/overrides.yml.j2 index e617dc2c2..babbf2c8c 100644 --- a/playbooks/kayobe-overcloud-base/overrides.yml.j2 +++ b/playbooks/kayobe-overcloud-base/overrides.yml.j2 @@ -3,17 +3,10 @@ # Ansible is run directly on the controller. disable_selinux_do_reboot: false -{% if ansible_os_family == 'Debian' %} -# On Ubuntu, use 5 seconds delay to allow for interfaces to come up after ifup -# exits. -interfaces_pause_time: 5 -{% endif %} - # Use the OpenStack infra's Dockerhub mirror. docker_registry_mirrors: - "http://{{ zuul_site_mirror_fqdn }}:8082/" -kolla_base_distro: "{{ ansible_distribution | lower }}" kolla_install_type: "{{ 'source' if ansible_distribution == 'Ubuntu' else 'binary' }}" kolla_docker_namespace: "openstack.kolla" # use the published images from a site mirror of quay.io diff --git a/playbooks/kayobe-seed-base/overrides.yml.j2 b/playbooks/kayobe-seed-base/overrides.yml.j2 index 4d0420f24..5af2c079e 100644 --- a/playbooks/kayobe-seed-base/overrides.yml.j2 +++ b/playbooks/kayobe-seed-base/overrides.yml.j2 @@ -14,9 +14,6 @@ kolla_source_url: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['opendev.org/opensta kolla_source_version: "{{ zuul.projects['opendev.org/openstack/kolla'].checkout }}" kolla_ansible_source_url: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['opendev.org/openstack/kolla-ansible'].src_dir }}" kolla_ansible_source_version: "{{ zuul.projects['opendev.org/openstack/kolla-ansible'].checkout }}" -{% if ansible_os_family == 'Debian' %} -kolla_base_distro: ubuntu -{% endif %} kolla_openstack_logging_debug: True pip_upper_constraints_file: "/tmp/upper-constraints.txt" @@ -36,4 +33,4 @@ aio_bridge_ports: # Build seed deployment images (IPA) with extra-hardware element ipa_build_images: true ipa_build_dib_elements_extra: - - "extra-hardware" + - "extra-hardware" \ No newline at end of file diff --git a/playbooks/kayobe-seed-vm-base/overrides.yml.j2 b/playbooks/kayobe-seed-vm-base/overrides.yml.j2 index eda95a2c0..35a46c319 100644 --- a/playbooks/kayobe-seed-vm-base/overrides.yml.j2 +++ b/playbooks/kayobe-seed-vm-base/overrides.yml.j2 @@ -3,12 +3,6 @@ # Ansible is run directly on the controller. disable_selinux_do_reboot: false -{% if ansible_os_family == 'Debian' %} -# On Ubuntu, use 5 seconds delay to allow for interfaces to come up after ifup -# exits. -interfaces_pause_time: 5 -{% endif %} - # Use the OpenStack infra's Dockerhub mirror. docker_registry_mirrors: - "http://{{ zuul_site_mirror_fqdn }}:8082/"