Fix murano devstack libs and plugin

The root cause of the problem is deprecation of multiple
options in python-openstackclient
This patch fixes endpoint creation and service creation in
devstack-related libs and plugin

Change-Id: I4b1e5388b3321b77146bfcec7219ca5331b70b84
Closes-Bug: #1492209
This commit is contained in:
Victor Ryzhenkin 2015-09-04 13:55:40 +03:00
parent c9eff7b090
commit b1fc727e73
2 changed files with 24 additions and 12 deletions

View File

@ -91,16 +91,22 @@ function create_murano_accounts() {
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
MURANO_SERVICE=$(openstack service create \
murano \
--type=application_catalog \
application_catalog \
--name=murano \
--description="Application Catalog" \
| grep " id " | get_field 2)
openstack endpoint create \
$MURANO_SERVICE \
--region RegionOne \
--publicurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--adminurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--internalurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT"
public "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
openstack endpoint create \
$MURANO_SERVICE \
admin "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
openstack endpoint create \
$MURANO_SERVICE \
internal "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
fi
}

View File

@ -87,16 +87,22 @@ function create_murano_accounts() {
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
MURANO_SERVICE=$(openstack service create \
murano \
--type=application_catalog \
application_catalog \
--name=murano \
--description="Application Catalog" \
| grep " id " | get_field 2)
openstack endpoint create \
$MURANO_SERVICE \
--region RegionOne \
--publicurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--adminurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--internalurl "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT"
public "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
openstack endpoint create \
$MURANO_SERVICE \
admin "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
openstack endpoint create \
$MURANO_SERVICE \
internal "$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
--region RegionOne
fi
}