Change functest nodeset to ubuntu-jammy

Functests are currently run on ubuntu-focal.
Change zuul configuration to chose ubuntu-jammy.

Change-Id: Iae2b7cc57c7f639f017ae3ccd5fe787e59047c68
This commit is contained in:
Hemanth Nakkina 2024-02-10 10:00:39 +05:30
parent cc901f1b70
commit a247f7b2d5
No known key found for this signature in database
GPG Key ID: 2E4970F7B143168E
2 changed files with 26 additions and 13 deletions

View File

@ -3,19 +3,32 @@
name: snapd
become: true
- name: nftables is installed
apt:
name: nftables
become: true
when: ansible_distribution_release == 'jammy'
- name: allow packets from pod cir
command: nft insert rule filter openstack-INPUT ip saddr 10.1.0.0/16 accept
become: true
when: ansible_distribution_release == 'jammy'
- name: allow packets to pod cir
command: nft insert rule filter openstack-INPUT ip daddr 10.1.0.0/16 accept
become: true
when: ansible_distribution_release == 'jammy'
- name: allow packets to metallb cir
command: nft insert rule filter openstack-INPUT ip daddr 10.170.0.248/29 accept
become: true
when: ansible_distribution_release == 'jammy'
- name: set microk8s related variables
set_fact:
microk8s_group: "{{ 'microk8s' if microk8s_classic_mode | default(true) else 'snap_microk8s' }}"
microk8s_command_escalation: "{{ false if microk8s_classic_mode | default(true) else true }}"
- name: Disable ipv6
become: true
sysctl:
name: "net.ipv6.conf.all.disable_ipv6"
value: "1"
state: "present"
reload: "yes"
- name: microk8s is installed
snap:
name: microk8s
@ -103,7 +116,7 @@
- name: microk8s metallb addon is enabled
command:
# ip range is an arbitrary choice; may need to be changed later
cmd: microk8s enable metallb:10.170.0.1-10.170.0.100
cmd: microk8s enable metallb:10.170.0.248/29
register: res
changed_when: '"already enabled" not in res.stdout'
become: "{{ microk8s_command_escalation }}"

View File

@ -7,13 +7,13 @@
check:
jobs:
- func-test-core:
nodeset: ubuntu-focal
nodeset: ubuntu-jammy
- func-test-ceph:
nodeset: ubuntu-focal
nodeset: ubuntu-jammy
- func-test-caas:
nodeset: ubuntu-focal
nodeset: ubuntu-jammy
- func-test-misc:
nodeset: ubuntu-focal
nodeset: ubuntu-jammy
- func-test-machine:
nodeset: ubuntu-jammy
vars: