Override RAX block storage endpoint

This is required because RAX have an odd /v2 that isn't listed in the
catalogue but actually exists (but isn't really full /v2/ support).
It became a problem when recent client versions dropped /v1 support,
so now we have to force them to v2 like this.

Depends-On: https://review.opendev.org/714624
Change-Id: I6f139d2b3036ef0ecaddf3a9a225faae3a2b0450
This commit is contained in:
Monty Taylor 2020-03-23 18:08:33 -05:00 committed by Ian Wienand
parent f27825d44e
commit 4178296b49
3 changed files with 40 additions and 16 deletions

View File

@ -65,28 +65,40 @@ clouds:
project_name: '{{ clouds.openstackci_ovh_project_name }}'
openstackci-rax:
regions:
- DFW
- ORD
- IAD
- name: DFW
values:
block_storage_endpoint_override: 'https://dfw.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}/'
- name: ORD
values:
block_storage_endpoint_override: 'https://ord.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}/'
- name: IAD
values:
block_storage_endpoint_override: 'https://iad.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}/'
profile: rackspace
auth:
username: '{{ clouds.openstackci_rax_username }}'
password: '{{ clouds.openstackci_rax_password }}'
project_id: '{{ clouds.openstackci_rax_project_id }}'
identity_api_version: 2
volume_api_version: 1
volume_api_version: 2
openstackjenkins-rax:
regions:
- DFW
- ORD
- IAD
- name: DFW
values:
block_storage_endpoint_override: 'https://dfw.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackjenkins_rax_project_id }}/'
- name: ORD
values:
block_storage_endpoint_override: 'https://ord.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackjenkins_rax_project_id }}/'
- name: IAD
values:
block_storage_endpoint_override: 'https://iad.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackjenkins_rax_project_id }}/'
profile: rackspace
auth:
username: '{{ clouds.openstackjenkins_rax_username }}'
password: '{{ clouds.openstackjenkins_rax_password }}'
project_id: '{{ clouds.openstackjenkins_rax_project_id }}'
identity_api_version: 2
volume_api_version: 1
volume_api_version: 2
openstackjenkins-ovh:
regions:
- GRA1

View File

@ -52,16 +52,22 @@ clouds:
project_name: '{{ clouds.openstackci_ovh_project_name }}'
openstackci-rax:
regions:
- DFW
- ORD
- IAD
- name: DFW
values:
block_storage_endpoint_override: 'https://dfw.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}/'
- name: ORD
values:
block_storage_endpoint_override: 'https://ord.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}'
- name: IAD
values:
block_storage_endpoint_override: 'https://iad.blockstorage.api.rackspacecloud.com/v2/{{ clouds.openstackci_rax_project_id }}'
profile: rackspace
auth:
username: '{{ clouds.openstackci_rax_username }}'
password: '{{ clouds.openstackci_rax_password }}'
project_id: '{{ clouds.openstackci_rax_project_id }}'
identity_api_version: 2
volume_api_version: 1
volume_api_version: 2
openstackci-vexxhost:
regions:
- ca-ymq-1

View File

@ -20,9 +20,15 @@ clouds:
rax:
profile: rackspace
regions:
- DFW
- ORD
- IAD
- name: DFW
values:
block_storage_endpoint_override: 'https://dfw.blockstorage.api.rackspacecloud.com/v2/{{ nodepool_rackspace_project }}/'
- name: ORD
values:
block_storage_endpoint_override: 'https://ord.blockstorage.api.rackspacecloud.com/v2/{{ nodepool_rackspace_project }}/'
- name: IAD
values:
block_storage_endpoint_override: 'https://iad.blockstorage.api.rackspacecloud.com/v2/{{ nodepool_rackspace_project }}/'
api_timeout: 60
auth:
username: '{{ nodepool_rackspace_username }}'
@ -30,7 +36,7 @@ clouds:
project_id: '{{ nodepool_rackspace_project }}'
force_ipv4: true
identity_api_version: 2
volume_api_version: 1
volume_api_version: 2
ovh:
profile: ovh
# OVH has a weird new ipv6 setup that we can't handle properly