From cbd025a3ff465a87df5ce6847711c4dc49139e5f Mon Sep 17 00:00:00 2001 From: Lukas Bezdicka Date: Thu, 8 Apr 2021 13:22:01 +0200 Subject: [PATCH] [ffwd][train-only] Run keystone endpoint configuration on FFWD By default during FFWD we run all tasks with --limit and we never specify Undercloud. This means we never run the external_post_deployment_tasks which sets up the keystone endpoints. This is intended as we don't want to trigger most of external deployment tasks at that point. Solution to missing endpoints is to run the keystone setup during post_upgrade_tasks. Change-Id: Ic1e63ca773fb20f10f16fc3835f8f263cb3b6929 Resolves: rhbz#1944108 --- deployment/keystone/keystone-container-puppet.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deployment/keystone/keystone-container-puppet.yaml b/deployment/keystone/keystone-container-puppet.yaml index 6d7eb21b70..ad284b9d8b 100644 --- a/deployment/keystone/keystone-container-puppet.yaml +++ b/deployment/keystone/keystone-container-puppet.yaml @@ -774,7 +774,7 @@ outputs: when: - step|int == 4 - not ansible_check_mode|bool - block: + block: &keystone_endpoints - name: Manage Keystone resources for OpenStack services include_role: name: tripleo-keystone-resources @@ -814,6 +814,13 @@ outputs: host_prep_tasks: {get_attr: [KeystoneLogging, host_prep_tasks]} metadata_settings: get_attr: [ApacheServiceBase, role_data, metadata_settings] + post_upgrade_tasks: + - name: Run the keystone endpoint creation + when: + - step|int == 1 + - keystone_short_bootstrap_node_name|lower == ansible_facts['hostname']|lower + delegate_to: undercloud + block: *keystone_endpoints external_upgrade_tasks: - when: - step|int == 1