become_user: root
become_method: sudo
vars:
- ovs_checksum: sha256:e40227e366db55f997344876a692918af68430bcb5fd3bd9ffe8dfd8c0bdd51f
- ovs_version: 2.8.11
+ ovs_checksum: sha256:d6e943729710f30941d2c4e798f0f917ceed8b07e9aeacf65ff9de86dff374f0
+ ovs_version: 2.17.11
pre_tasks:
- include_role: name=lfit.system-update
- name: Install OpenVSwitch dependencies
apt:
name:
+ - graphviz
- autoconf
- automake
- bzip2
- debhelper
- dh-autoreconf
+ - dh-python
- libssl-dev
+ - libcap2
- openssl
- pkg-config
- procps
- - python-all
- - python-qt4
- - python-twisted-conch
- - python-zopeinterface
+ - python3-all
+ - python3-zope.interface
+ - python3-sphinx
+ - python3-twisted
+ - libunbound-dev
+ - libunwind-dev
state: present
+ update_cache: yes
become: true
- name: "Fetch OpenVSwitch {{ovs_version}}"
get_url:
- name: "Install OpenVSwitch {{ovs_version}}"
apt: "deb={{item}}"
with_items:
- - /tmp/ovs/libopenvswitch_2.8.11-1_amd64.deb
- - /tmp/ovs/openvswitch-common_2.8.11-1_amd64.deb
- - /tmp/ovs/openvswitch-switch_2.8.11-1_amd64.deb
- - /tmp/ovs/python-openvswitch_2.8.11-1_all.deb
- - /tmp/ovs/openvswitch-vtep_2.8.11-1_amd64.deb
+ - /tmp/ovs/libopenvswitch_2.17.11-1_amd64.deb
+ - /tmp/ovs/openvswitch-common_2.17.11-1_amd64.deb
+ - /tmp/ovs/openvswitch-switch_2.17.11-1_amd64.deb
+ - /tmp/ovs/python3-openvswitch_2.17.11-1_all.deb
+ - /tmp/ovs/openvswitch-vtep_2.17.11-1_amd64.deb
+ - /tmp/ovs/libopenvswitch_2.17.11-1_amd64.deb
become: true
- name: Enable openvswitch-switch service
systemd:
- snmp
- snmpd
state: present
+ update_cache: yes
become: true
- name: Fetch mtcbench git repo
git:
- name: Run mtcbench/deploy/docker/provision.sh
command: /tmp/mtcbench/deploy/docker/provision.sh
become: true
+ - name: Fix LDADD for Ubuntu 22.04
+ lineinfile:
+ path: /tmp/mtcbench/oflops/Makefile.am
+ regex: "^LDADD=-ldl -lpcap -lnetsnmp -loflops_test$"
+ line: "LDADD=-ldl -lpcap -lnetsnmp liboflops_test.la"
- name: Build mtcbench
# TODO: remove workaround for build issue with mtcbench
# when mtcbench dependency build correctly
become: true
- name: Install exabgp
- apt: name=exabgp state=present
+ apt:
+ name:
+ - exabgp
+ state: present
+ update_cache: yes
become: true
- name: Install python-netaddr for custom mininet topologies
- apt: name=python-netaddr state=present
+ apt:
+ name:
+ - python3-netaddr
+ state: present
+ update_cache: yes
become: true
- name: Install vlan for vlan based tests in VTN suites
- apt: name=vlan state=present
+ apt:
+ name:
+ - vlan
+ state: present
+ update_cache: yes
become: true
# This image is being used as a CSIT tools image and some of our
- name: Install CSIT dependencies
apt:
name:
- - python-requests
+ - python3-requests
state: present
+ update_cache: yes
become: true
post_tasks:
default = "20"
}
-source "docker" "mininet-ovs-28" {
+source "docker" "mininet-ovs-217" {
changes = ["ENTRYPOINT [\"\"]", "CMD [\"\"]"]
commit = true
image = "${var.docker_source_image}"
}
-source "openstack" "mininet-ovs-28" {
+source "openstack" "mininet-ovs-217" {
flavor = "${var.flavor}"
image_disk_format = "${var.vm_image_disk_format}"
- image_name = "ZZCI - ${var.distro} - mininet-ovs-28 - ${var.arch} - ${legacy_isotime("20060102-150405.000")}"
- instance_name = "${var.distro}-mininet-ovs-28-${uuidv4()}"
+ image_name = "ZZCI - ${var.distro} - mininet-ovs-217 - ${var.arch} - ${legacy_isotime("20060102-150405.000")}"
+ instance_name = "${var.distro}-mininet-ovs-217-${uuidv4()}"
metadata = {
ci_managed = "yes"
}
}
build {
- sources = ["source.docker.mininet-ovs-28", "source.openstack.mininet-ovs-28"]
+ sources = ["source.docker.mininet-ovs-217", "source.openstack.mininet-ovs-217"]
provisioner "shell" {
execute_command = "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
]
command = "./common-packer/ansible-playbook.sh"
extra_arguments = [
- "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa"
+ "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa"
]
- playbook_file = "provision/mininet-ovs-2.8.yaml"
+ playbook_file = "provision/mininet-ovs-217.yaml"
skip_version_check = true
}
}