Replacing application_catalog with application-catalog

Murano does not get keystone endpoint when Keystone is configured to use
templated catalog

Change-Id: Id568c0a59b2e99dc946b1f2f55f6b233fd6a1b27
Closes-bug: #1514692
This commit is contained in:
liyingjun 2015-11-10 14:11:59 +08:00 committed by liyingjun
parent 3bcb2068d8
commit 697ad2aacc
9 changed files with 21 additions and 14 deletions

View File

@ -83,8 +83,8 @@ function create_murano_accounts() {
create_service_user "murano"
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
get_or_create_service "murano" "application_catalog" "Application Catalog Service"
get_or_create_endpoint "application_catalog" \
get_or_create_service "murano" "application-catalog" "Application Catalog Service"
get_or_create_endpoint "application-catalog" \
"$REGION_NAME" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \

View File

@ -32,16 +32,16 @@ function create_murano_accounts() {
create_service_user "murano"
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
get_or_create_service "murano" "application_catalog" "Application Catalog Service"
get_or_create_endpoint "application_catalog" \
get_or_create_service "murano" "application-catalog" "Application Catalog Service"
get_or_create_endpoint "application-catalog" \
"$REGION_NAME" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT"
if is_service_enabled murano-cfapi; then
get_or_create_service "murano-cfapi" "service_broker" "Murano CloudFoundry Service Broker"
get_or_create_endpoint "service_broker" \
get_or_create_service "murano-cfapi" "service-broker" "Murano CloudFoundry Service Broker"
get_or_create_endpoint "service-broker" \
"$REGION_NAME" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \

View File

@ -71,7 +71,7 @@ If any problems occur, first of all verify that:
**Murano panel can be browsed, but 'Unable to communicate to murano-api server.' appears**
If you have murano registered in keystone, verify the endpoint URL is valid
and service has *application_catalog* name. If you don't want to register
and service has *application-catalog* name. If you don't want to register
murano service in keystone, just add ``MURANO_API_URL`` option to the horizon
local setting.

View File

@ -255,11 +255,11 @@ Register in Keystone
To make murano API available to all OpenStack users, you need to register the
Application Catalog service within the Identity service.
#. Add ``application_catalog`` service:
#. Add ``application-catalog`` service:
.. code-block:: console
keystone service-create --name murano --type application_catalog --description "Application Catalog for OpenStack"
keystone service-create --name murano --type application-catalog --description "Application Catalog for OpenStack"
#. Provide an endpoint for that service:

View File

@ -159,7 +159,7 @@ class ClientManager(object):
murano_url = \
murano_settings.url or keystone_client.service_catalog.url_for(
service_type='application_catalog',
service_type='application-catalog',
endpoint_type=murano_settings.endpoint_type)
if CONF.packages_opts.packages_service == 'glance':

View File

@ -41,7 +41,7 @@ class MuranoClient(rest_client.RestClient):
def __init__(self, auth_provider):
super(MuranoClient, self).__init__(
auth_provider,
'application_catalog',
'application-catalog',
CONF.identity.region
)

View File

@ -311,7 +311,7 @@ class DeployTestMixin(zip_utils.ZipUtilsMixin):
def get_murano_url(cls):
try:
url = cls.keystone_client().service_catalog.url_for(
service_type='application_catalog', endpoint_type='publicURL')
service_type='application-catalog', endpoint_type='publicURL')
except ks_exceptions.EndpointNotFound:
url = CONF.murano.murano_url
LOG.warning("Murano endpoint not found in Keystone. Using CONF.")

View File

@ -45,7 +45,7 @@ ApplicationCatalogGroup = [
"REST client authentication."),
cfg.StrOpt("catalog_type",
default="application_catalog",
default="application-catalog",
help="Catalog type of Application Catalog."),
cfg.StrOpt("endpoint_type",
@ -76,7 +76,7 @@ ServiceBrokerGroup = [
"REST client authentication."),
cfg.StrOpt("catalog_type",
default="service_broker",
default="service-broker",
help="Catalog type of Service Broker API"),
cfg.StrOpt("endpoint_type",

View File

@ -0,0 +1,7 @@
---
fixes:
- Murano is now able to work with keystone configured to use a templated catalog.
upgrade:
- When updating to Mitaka, the operator should update service name and type
for endpoint in keystone from "application_catalog" to "application-catalog"
if SQL is used for catalog back-end driver.