Skip to content

Commit

Permalink
Kubevirt fixes (#830)
Browse files Browse the repository at this point in the history
* Update kubevirt API version

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>

* Wait for servers to be running before registering interfaces

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>

* Centos 8 appstream is EOL: Use vault repository

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>

---------

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 authored Oct 25, 2024
1 parent f5ffc3c commit 83b5f26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions image_resources/centos8-appstream.repo
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[centos8-appstream-x86_64]
name=CentOS-8-Appstream-x86_64
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/
baseurl=http://vault.centos.org/centos/8-stream/AppStream/x86_64/os/
enabled=0
gpgcheck=0

[centos8-appstream-aarch64]
name=CentOS-8-Appstream-aarch64
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/aarch64/os/
baseurl=http://vault.centos.org/centos/8-stream/AppStream/aarch64/os/
enabled=0
gpgcheck=0

[centos8-appstream-ppc64le]
name=CentOS-8-Appstream-ppc64le
baseurl=http://mirror.centos.org/centos/8-stream/AppStream/ppc64le/os/
baseurl=http://vault.centos.org/centos/8-stream/AppStream/ppc64le/os/
enabled=0
gpgcheck=0
3 changes: 2 additions & 1 deletion roles/fio_distributed/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
- name: Capture pod list
k8s_info:
kind: VirtualMachineInstance
api_version: kubevirt.io/v1alpha3
api_version: kubevirt.io/v1
namespace: '{{ operator_namespace }}'
label_selectors:
- app = fio-benchmark-{{ trunc_uuid }}
Expand All @@ -110,6 +110,7 @@
set_fact:
pod_details: "{{ pod_details|default({}) | combine({item.status.interfaces[0].ipAddress: item.status.nodeName}) }}"
with_items: "{{ server_pods.resources }}"
when: benchmark_state.resources[0].status.state == "StartingClient"

when: (workload.args.kind | default('pod')) == "vm"

Expand Down
2 changes: 1 addition & 1 deletion roles/fio_distributed/templates/server_vm.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: kubevirt.io/v1alpha3
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
name: 'fio-server-{{item | string}}-{{ trunc_uuid }}'
Expand Down

0 comments on commit 83b5f26

Please sign in to comment.