[ffwd] Add legacy cinderv3 volume cleanup to postupgrade

The postupgrade tasks are now taking care of making the keystone
endpoints but they will fail on legacy cinder. We add the
removal of legacy cinderv3 volume entries to keystone postupgrade.

Resolves: rhbz#1960579
Change-Id: Idb3a11d6904c6c36eca9d415734ce27af49553f9
This commit is contained in:
Lukas Bezdicka 2021-05-17 11:52:45 +02:00 committed by Jose Luis Franco
parent dd33cd965d
commit 42a5f7f1be
1 changed files with 10 additions and 0 deletions

View File

@ -855,6 +855,16 @@ outputs:
- keystone_short_bootstrap_node_name|lower == ansible_facts['hostname']|lower
delegate_to: undercloud
block: *keystone_generate_clouds
- name: Clean up legacy Cinder keystone catalog entries
delegate_to: undercloud
os_keystone_service:
cloud: {get_param: RootStackName}
name: cinderv3
service_type: volume
state: absent
when:
- step|int == 1
- keystone_short_bootstrap_node_name|lower == ansible_facts['hostname']|lower
- name: Run the keystone endpoint creation
when:
- step|int == 1