From afaa083d2b02b39f15264a59152d932e83bf9408 Mon Sep 17 00:00:00 2001 From: Ronelle Landy Date: Wed, 3 Jan 2024 17:09:23 -0500 Subject: [PATCH] Add back BM nodeset update packages in bootstrap This PR adds back the fix in: https://github.com/openstack-k8s-operators/ci-framework/pull/936/files --- roles/edpm_deploy_baremetal/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/edpm_deploy_baremetal/tasks/main.yml b/roles/edpm_deploy_baremetal/tasks/main.yml index bbcb6657b8..471d8f322a 100644 --- a/roles/edpm_deploy_baremetal/tasks/main.yml +++ b/roles/edpm_deploy_baremetal/tasks/main.yml @@ -196,6 +196,20 @@ "path": "/spec/nodeTemplate/ansible/ansibleVars/edpm_container_registry_insecure_registries", "value": [{{ content_provider_registry_ip }}:5001]}]' +- name: Patch OpenStackDataPlaneNodeSet resource to update bootstrap packages + when: not cifmw_edpm_deploy_baremetal_dry_run + environment: + KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" + PATH: "{{ cifmw_path }}" + ansible.builtin.command: + cmd: >- + oc patch openstackdataplanenodeset openstack-edpm-ipam + -n {{ cifmw_install_yamls_defaults['NAMESPACE'] }} + --type json + -p '[{"op": "add", + "path": "/spec/nodeTemplate/ansible/ansibleVars/edpm_bootstrap_command", + "value": "sudo dnf -y update"}]' + - name: Wait for OpenStackDataPlaneNodeSet to be Ready when: not cifmw_edpm_deploy_baremetal_dry_run environment: