Browse Source

Merge "Use ebtables-legacy on Ubuntu Focal"

changes/56/744956/1
Zuul 1 year ago
committed by Gerrit Code Review
parent
commit
24590a334f
  1. 5
      playbooks/configure_ebtables.yaml
  2. 3
      playbooks/configure_functional_job.yaml
  3. 16
      roles/legacy_ebtables/tasks/main.yaml
  4. 1
      zuul.d/tempest-singlenode.yaml

5
playbooks/configure_ebtables.yaml

@ -0,0 +1,5 @@
- hosts: all
roles:
# TODO(slaweq): remove it when nftables will support syntax for src and
# destination IP addresses in arp tables:
- legacy_ebtables

3
playbooks/configure_functional_job.yaml

@ -1,5 +1,8 @@
- hosts: all
roles:
- ensure-tox
# TODO(slaweq): remove it when nftables will support syntax for src and
# destination IP addresses in arp tables:
- legacy_ebtables
- setup_logdir
- configure_functional_tests

16
roles/legacy_ebtables/tasks/main.yaml

@ -0,0 +1,16 @@
- name: Ensure legacy ebtables is installed
package:
name: 'ebtables'
state: latest
become: yes
- name: Switch to legacy ebtables
shell:
cmd: /usr/bin/update-alternatives --set ebtables /usr/sbin/ebtables-legacy
executable: /bin/bash
become: yes
when:
- ansible_facts['distribution_release'] == "focal"
- ansible_facts['distribution'] == "Ubuntu"

1
zuul.d/tempest-singlenode.yaml

@ -8,6 +8,7 @@
- openstack/devstack-gate
- openstack/neutron
- openstack/tempest
pre-run: playbooks/configure_ebtables.yaml
vars:
tempest_concurrency: 4
devstack_localrc:

Loading…
Cancel
Save