Forcefully remove Cinder v2 endpoints

Nowadays Cinder does not support v2 api so it makes sense to ensure
that these endpoints or service is not present in catalog.

Change-Id: I62a4ba182cc752a5bc4f6e8c4d2430f7e7aafe54
This commit is contained in:
Dmitriy Rabotyagov
2022-06-14 11:16:07 +02:00
parent 091b2dfa72
commit 9a8ea212c0
3 changed files with 10 additions and 7 deletions

View File

@@ -136,9 +136,6 @@ cinder_lock_dir: "{{ openstack_lock_dir | default('/run/lock') }}"
cinder_service_admin_tenant_name: "service"
cinder_service_admin_username: "cinder"
## Cinder API's enabled
cinder_enable_v2_api: false
## Cinder api service type and data
cinder_service_name: cinder
cinder_service_project_domain_id: default

View File

@@ -0,0 +1,6 @@
---
upgrade:
- |
Cinder v2 API is now fully removed from Cinder service.
With that os_cinder role ensures v2 endpoint is not present anymore in
the catalog and remove endpoints if they're present.

View File

@@ -85,15 +85,15 @@ cinder_service_endpoints:
- service: "{{ cinder_service_v2_name }}"
interface: "public"
url: "{{ cinder_service_v2_publicurl }}"
state: "{{ (cinder_enable_v2_api | bool) | ternary('present', 'absent') }}"
state: "absent"
- service: "{{ cinder_service_v2_name }}"
interface: "internal"
url: "{{ cinder_service_v2_internalurl }}"
state: "{{ (cinder_enable_v2_api | bool) | ternary('present', 'absent') }}"
state: "absent"
- service: "{{ cinder_service_v2_name }}"
interface: "admin"
url: "{{ cinder_service_v2_adminurl }}"
state: "{{ (cinder_enable_v2_api | bool) | ternary('present', 'absent') }}"
state: "absent"
- service: "{{ cinder_service_v3_name }}"
interface: "public"
url: "{{ cinder_service_v3_publicurl }}"
@@ -115,7 +115,7 @@ cinder_service_catalog:
- name: "{{ cinder_service_v2_name }}"
type: "{{ cinder_service_v2_type }}"
description: "{{ cinder_service_v2_description }}"
state: "{{ (cinder_enable_v2_api | bool) | ternary('present', 'absent') }}"
state: "absent"
- name: "{{ cinder_service_v3_name }}"
type: "{{ cinder_service_v3_type }}"
description: "{{ cinder_service_v3_description }}"