From 28dcd05b6e802030792d14beb91ac06fffdbca92 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 14 Aug 2024 10:52:49 -0400 Subject: [PATCH] Add more arm64/armhf CI instances Change-Id: I477ec48911326adc85c22b590ea49d8cba902e46 Signed-off-by: Michael Jeanson --- ...ci-host-arm64-2a.internal.efficios.com.yml | 43 +++++ ...ci-host-arm64-2b.internal.efficios.com.yml | 43 +++++ automation/ansible/vars/ci-instances.yml | 165 ++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 automation/ansible/host_vars/ci-host-arm64-2a.internal.efficios.com.yml create mode 100644 automation/ansible/host_vars/ci-host-arm64-2b.internal.efficios.com.yml diff --git a/automation/ansible/host_vars/ci-host-arm64-2a.internal.efficios.com.yml b/automation/ansible/host_vars/ci-host-arm64-2a.internal.efficios.com.yml new file mode 100644 index 0000000..eb9a6cf --- /dev/null +++ b/automation/ansible/host_vars/ci-host-arm64-2a.internal.efficios.com.yml @@ -0,0 +1,43 @@ +--- +lxd_cluster_ip: 172.18.0.188 +lxd_cluster: + enabled: true + server_address: 172.18.0.188 + #cluster_token: + member_config: + - entity: storage-pool + name: default + key: source + value: tank/lxd +netplan_manage: true +netplan_content: | + network: + version: 2 + renderer: networkd + ethernets: + eth0: + match: + macaddress: 00:01:73:00:00:01 + dhcp4: no + macaddress: 00:01:73:00:03:01 + eth1: + match: + macaddress: 00:01:73:00:00:02 + dhcp4: no + macaddress: 00:01:73:00:03:02 + bridges: + br102: + interfaces: + - eth0 + accept-ra: false + addresses: + - 172.18.0.188/16 + macaddress: ea:d4:ef:3b:53:5c + routes: + - to: default + via: 172.18.0.1 + nameservers: + search: + - internal.efficios.com + addresses: + - 172.18.0.13 diff --git a/automation/ansible/host_vars/ci-host-arm64-2b.internal.efficios.com.yml b/automation/ansible/host_vars/ci-host-arm64-2b.internal.efficios.com.yml new file mode 100644 index 0000000..3666073 --- /dev/null +++ b/automation/ansible/host_vars/ci-host-arm64-2b.internal.efficios.com.yml @@ -0,0 +1,43 @@ +--- +lxd_cluster_ip: 172.18.0.189 +lxd_cluster: + enabled: true + server_address: 172.18.0.189 + #cluster_token: + member_config: + - entity: storage-pool + name: default + key: source + value: tank/lxd +netplan_manage: true +netplan_content: | + network: + version: 2 + renderer: networkd + ethernets: + eth0: + match: + macaddress: 00:01:73:00:00:01 + dhcp4: no + macaddress: 00:01:73:00:04:01 + eth1: + match: + macaddress: 00:01:73:00:00:02 + dhcp4: no + macaddress: 00:01:73:00:04:02 + bridges: + br102: + interfaces: + - eth0 + accept-ra: false + addresses: + - 172.18.0.189/16 + macaddress: 2a:71:0d:6d:a9:1d + routes: + - to: default + via: 172.18.0.1 + nameservers: + search: + - internal.efficios.com + addresses: + - 172.18.0.13 diff --git a/automation/ansible/vars/ci-instances.yml b/automation/ansible/vars/ci-instances.yml index 2caf4cd..d6fee38 100644 --- a/automation/ansible/vars/ci-instances.yml +++ b/automation/ansible/vars/ci-instances.yml @@ -82,6 +82,146 @@ libvirt_host: ci-host-amd64-1b.internal.efficios.com # @note: `meta.address` doesn't set any additional information for libvirt VMs. # containers: + # ci-host-arm64-1a + - meta: + address: 172.18.16.87 + lxd: + name: ci-node-deb12-arm64-1a-01 + target: ci-host-arm64-1a + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/arm64 + jenkins: + label: 'deb12-arm64 deb12' + mode: EXCLUSIVE + - meta: + address: 172.18.16.88 + lxd: + name: ci-node-deb12-armhf-1a-01 + target: ci-host-arm64-1a + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/armhf + jenkins: + label: 'deb12-armhf deb12' + mode: EXCLUSIVE + # ci-host-arm64-1b + - meta: + address: 172.18.16.89 + lxd: + name: ci-node-deb12-arm64-1b-01 + target: ci-host-arm64-1b + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/arm64 + jenkins: + label: 'deb12-arm64 deb12' + mode: EXCLUSIVE + - meta: + address: 172.18.16.90 + lxd: + name: ci-node-deb12-armhf-1b-01 + target: ci-host-arm64-1b + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/armhf + jenkins: + label: 'deb12-armhf deb12' + mode: EXCLUSIVE + # ci-host-arm64-2a + - meta: + address: 172.18.16.100 + lxd: + name: ci-node-deb12-arm64-2a-01 + target: ci-host-arm64-2a + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/arm64 + jenkins: + label: 'deb12-arm64 deb12' + mode: EXCLUSIVE + - meta: + address: 172.18.16.101 + lxd: + name: ci-node-deb12-armhf-2a-01 + target: ci-host-arm64-2a + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/armhf + jenkins: + label: 'deb12-armhf deb12' + mode: EXCLUSIVE + # ci-host-arm64-2b + - meta: + address: 172.18.16.102 + lxd: + name: ci-node-deb12-arm64-2b-01 + target: ci-host-arm64-2b + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/arm64 + jenkins: + label: 'deb12-arm64 deb12' + mode: EXCLUSIVE + - meta: + address: 172.18.16.103 + lxd: + name: ci-node-deb12-armhf-2b-01 + target: ci-host-arm64-2b + profiles: + - ci-node + - ci-node-arm + source: + type: image + server: https://images.linuxcontainers.org + protocol: simplestreams + mode: pull + alias: debian/bookworm/cloud/armhf + jenkins: + label: 'deb12-armhf deb12' + mode: EXCLUSIVE - meta: address: 172.18.18.1 lxd: @@ -1166,3 +1306,28 @@ containers: disk: '/var/lib/libvirt/images/lava-node-amd64-05.qcow' disk_capacity: '10G' host: 'ci-host-amd64-2d.internal.efficios.com' + - jenkins: + name: "ci-rootnode-deb12-arm64-1a-01" + label: 'deb12 deb12-arm64-rootnode arm64-rootnode' + mode: EXCLUSIVE + config: + remoteFS: '/root' + launcher/hypervisorDescription: 'QEMU+ssh - ci-host-arm64-1a.internal.efficios.com' + launcher/virtualMachineName: 'ci-rootnode-deb12-arm64-1a-01' + launcher/delegate: 'hudson.plugins.sshslaves.SSHLauncher=class' + launcher/delegate/port: '22' + launcher/delegate/host: 'ci-rootnode-deb12-arm64-1a-01.internal.efficios.com' + launcher/delegate/credentialsId: 'bb5a81cf-346b-43fc-8586-3dc5e43801be' + ./hypervisorDescription: 'QEMU+ssh - ci-host-arm64-1a.internal.efficios.com' + ./virtualMachineName: 'ci-rootnode-deb12-arm64-1a-01' + snapshotName: '' + beforeJobSnapshotName: 'base-configuration' + startupWaitingPeriodSeconds: '20' + launcher/waitTimeMs: '20000' + shutdownMethod: 'destroy' + vm: + name: 'ci-rootnode-deb12-arm64-1a-01' + disk: '/var/lib/libvirt/images/ci-rootnode-deb12-arm64-1a-01.qcow' + host: 'ci-host-arm64-1a.internal.efficios.com' + meta: + address: 172.18.17.15 -- 2.34.1