Skip to content

Commit

Permalink
Merge pull request #363 from redhatci/OCPBUGS-32139
Browse files Browse the repository at this point in the history
sriov_config | Add OCPBUGS-32139 workaround
  • Loading branch information
ramperher authored Jun 28, 2024
2 parents e75c565 + 93a5fe8 commit 493d8c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/sriov_config/tasks/create_node_policies.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---
# OCPBUGS-32139 workaround suggests to retry the creation of the SRIOV policy if failing.
# Trying this during 1 minute in case any of them fails.
- name: Create SriovNetworkNodePolicy
community.kubernetes.k8s:
definition: "{{ lookup('template', 'templates/sriov-network-node-policy.yml.j2') }}"
loop: "{{ sriov_network_configs }}"
loop_control:
loop_var: sriov
label: "{{ sriov.resource }}"
retries: 6
delay: 10
register: _sc_node_policy_retry
until: _sc_node_policy_retry.error is not defined
when: sriov.node_policy is defined

- name: Check for SRIOV Node Policy
Expand Down

0 comments on commit 493d8c2

Please sign in to comment.