Skip to content

Commit 06c7a44

Browse files
committed
Add volumev3 endpoint for Cinder
Change-Id: I97caa6bfababf7d1cc714296ae66f77d22bf24ab
1 parent 4e78044 commit 06c7a44

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

lib/cinder

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,14 @@ function create_cinder_accounts {
386386
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v2/\$(project_id)s" \
387387
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v2/\$(project_id)s" \
388388
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v2/\$(project_id)s"
389+
390+
get_or_create_service "cinderv3" "volumev3" "Cinder Volume Service V3"
391+
get_or_create_endpoint \
392+
"volumev3" \
393+
"$REGION_NAME" \
394+
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s" \
395+
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s" \
396+
"$CINDER_SERVICE_PROTOCOL://$CINDER_SERVICE_HOST:$CINDER_SERVICE_PORT/v3/\$(project_id)s"
389397
fi
390398
}
391399

lib/tempest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ function configure_tempest {
425425
iniset $TEMPEST_CONFIG volume-feature-enabled incremental_backup_force True
426426
# TODO(ynesenenko): Remove the volume_services flag when Liberty and Kilo will correct work with host info.
427427
iniset $TEMPEST_CONFIG volume-feature-enabled volume_services True
428+
# TODO(ameade): Remove the api_v3 flag when Mitaka and Liberty are end of life.
429+
iniset $TEMPEST_CONFIG volume-feature-enabled api_v3 True
428430

429431
if ! is_service_enabled c-bak; then
430432
iniset $TEMPEST_CONFIG volume-feature-enabled backup False

0 commit comments

Comments
 (0)