Skip to content

Commit

Permalink
Merge "Feat: Update OVS 2.17.11 on Ubuntu 22.04"
Browse files Browse the repository at this point in the history
  • Loading branch information
rovarga authored and Gerrit Code Review committed Oct 18, 2024
2 parents 1b67cc1 + c71084a commit 114167b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
6 changes: 2 additions & 4 deletions jjb/releng-packer-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
update-cloud-image: true

- project:
name: packer-mininet-ovs-28-jobs
name: packer-mininet-ovs-217-jobs
jobs:
- gerrit-packer-merge

Expand All @@ -173,12 +173,10 @@
cron: "00 H 1 * *"

platforms:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04

templates: mininet-ovs-28
templates: mininet-ovs-217
update-cloud-image: true

- project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
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
Expand All @@ -17,20 +17,26 @@
- 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:
Expand All @@ -54,11 +60,12 @@
- 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:
Expand Down Expand Up @@ -96,6 +103,7 @@
- snmp
- snmpd
state: present
update_cache: yes
become: true
- name: Fetch mtcbench git repo
git:
Expand All @@ -104,6 +112,11 @@
- 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
Expand All @@ -123,15 +136,27 @@
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
Expand All @@ -141,8 +166,9 @@
- name: Install CSIT dependencies
apt:
name:
- python-requests
- python3-requests
state: present
update_cache: yes
become: true

post_tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ variable "vm_volume_size" {
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"
}
Expand All @@ -135,7 +135,7 @@ source "openstack" "mininet-ovs-28" {
}

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"
Expand All @@ -157,9 +157,9 @@ build {
]
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
}
}

0 comments on commit 114167b

Please sign in to comment.