From ea35853e5a872a297eda66b7e32ae849ea19a8a5 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Thu, 4 Jan 2024 16:50:03 +0530 Subject: [PATCH] Call package update via bootstrap playbook Currently tempest tests are failing due to old packages installed on edpm node. Recently we have added https://github.com/openstack-k8s-operators/edpm-ansible/pull/518 to perform DNF update via edpm_bootstrap role. But bootstrap-openstack-edpm-ipam pod calls bootstrap.yml playbook not the role that's why update_packages playbook is not called leaving old packages on the node. Calling update_packages.yml playbook via bootstrap.yml playbook updates the packages and fixes the issue. Signed-off-by: Chandan Kumar --- roles/edpm_bootstrap/tasks/bootstrap.yml | 3 +++ roles/edpm_bootstrap/tasks/main.yml | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/edpm_bootstrap/tasks/bootstrap.yml b/roles/edpm_bootstrap/tasks/bootstrap.yml index bc31305de..09e64a9f5 100644 --- a/roles/edpm_bootstrap/tasks/bootstrap.yml +++ b/roles/edpm_bootstrap/tasks/bootstrap.yml @@ -63,6 +63,9 @@ - name: Import packages tasks ansible.builtin.import_tasks: packages.yml +- name: Import Package update tasks + ansible.builtin.import_tasks: update_package.yml + - name: Set selinux state ansible.posix.selinux: policy: targeted diff --git a/roles/edpm_bootstrap/tasks/main.yml b/roles/edpm_bootstrap/tasks/main.yml index 63634a571..1d10a7e3c 100644 --- a/roles/edpm_bootstrap/tasks/main.yml +++ b/roles/edpm_bootstrap/tasks/main.yml @@ -19,6 +19,3 @@ - name: Import bootstrap tasks ansible.builtin.import_tasks: bootstrap.yml - -- name: Import Package update tasks - ansible.builtin.import_tasks: update_package.yml