From 099ac08a9c43206a4b30a9a4ce97def75073d02e Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 18 Jul 2024 08:45:25 +0100 Subject: [PATCH] Skip repo verification for distro install Installation of repo container is optional for distro setup and can be safely avoided. Moreover, required variables for verification are not defined for the distro install_method, which means that healthcheck-infrastructure is failing of attempt to resolve such variables. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/924474 Change-Id: I18ca7870231ca9aa9fda8b116e1d0d7e77d1237b --- playbooks/healthcheck-infrastructure.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/playbooks/healthcheck-infrastructure.yml b/playbooks/healthcheck-infrastructure.yml index 8c7716849c..be62c9ca03 100644 --- a/playbooks/healthcheck-infrastructure.yml +++ b/playbooks/healthcheck-infrastructure.yml @@ -91,18 +91,20 @@ - 3 - 100% tasks: - - name: Setup installation variables - include_role: - name: openstack.osa.install_defaults - defaults_from: "{{ install_method }}" - public: true - vars: - install_method: 'source' + - name: Run check only for source method + when: + - install_method == 'source' + block: + - name: Setup installation variables + include_role: + name: openstack.osa.install_defaults + defaults_from: "{{ install_method }}" + public: true - # Repo release path points to the internal LB vip - - name: Check the presence of upper constraints on your repos and check load balancing - uri: - url: "{{ openstack_repo_url }}/constraints/upper_constraints_cached.txt" + # Repo release path points to the internal LB vip + - name: Check the presence of upper constraints on your repos and check load balancing + uri: + url: "{{ openstack_repo_url }}/constraints/upper_constraints_cached.txt" tags: - healthcheck - healthcheck-repo-use