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:
parent
3bcb2068d8
commit
697ad2aacc
@ -83,8 +83,8 @@ function create_murano_accounts() {
|
|||||||
create_service_user "murano"
|
create_service_user "murano"
|
||||||
|
|
||||||
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
|
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
|
||||||
get_or_create_service "murano" "application_catalog" "Application Catalog Service"
|
get_or_create_service "murano" "application-catalog" "Application Catalog Service"
|
||||||
get_or_create_endpoint "application_catalog" \
|
get_or_create_endpoint "application-catalog" \
|
||||||
"$REGION_NAME" \
|
"$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" \
|
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_SERVICE_PORT" \
|
||||||
|
@ -32,16 +32,16 @@ function create_murano_accounts() {
|
|||||||
create_service_user "murano"
|
create_service_user "murano"
|
||||||
|
|
||||||
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
|
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
|
||||||
get_or_create_service "murano" "application_catalog" "Application Catalog Service"
|
get_or_create_service "murano" "application-catalog" "Application Catalog Service"
|
||||||
get_or_create_endpoint "application_catalog" \
|
get_or_create_endpoint "application-catalog" \
|
||||||
"$REGION_NAME" \
|
"$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" \
|
"$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
|
if is_service_enabled murano-cfapi; then
|
||||||
get_or_create_service "murano-cfapi" "service_broker" "Murano CloudFoundry Service Broker"
|
get_or_create_service "murano-cfapi" "service-broker" "Murano CloudFoundry Service Broker"
|
||||||
get_or_create_endpoint "service_broker" \
|
get_or_create_endpoint "service-broker" \
|
||||||
"$REGION_NAME" \
|
"$REGION_NAME" \
|
||||||
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \
|
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \
|
||||||
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \
|
"$MURANO_SERVICE_PROTOCOL://$MURANO_SERVICE_HOST:$MURANO_CFAPI_SERVICE_PORT" \
|
||||||
|
@ -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**
|
**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
|
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
|
murano service in keystone, just add ``MURANO_API_URL`` option to the horizon
|
||||||
local setting.
|
local setting.
|
||||||
|
|
||||||
|
@ -255,11 +255,11 @@ Register in Keystone
|
|||||||
To make murano API available to all OpenStack users, you need to register the
|
To make murano API available to all OpenStack users, you need to register the
|
||||||
Application Catalog service within the Identity service.
|
Application Catalog service within the Identity service.
|
||||||
|
|
||||||
#. Add ``application_catalog`` service:
|
#. Add ``application-catalog`` service:
|
||||||
|
|
||||||
.. code-block:: console
|
.. 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:
|
#. Provide an endpoint for that service:
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ class ClientManager(object):
|
|||||||
|
|
||||||
murano_url = \
|
murano_url = \
|
||||||
murano_settings.url or keystone_client.service_catalog.url_for(
|
murano_settings.url or keystone_client.service_catalog.url_for(
|
||||||
service_type='application_catalog',
|
service_type='application-catalog',
|
||||||
endpoint_type=murano_settings.endpoint_type)
|
endpoint_type=murano_settings.endpoint_type)
|
||||||
|
|
||||||
if CONF.packages_opts.packages_service == 'glance':
|
if CONF.packages_opts.packages_service == 'glance':
|
||||||
|
@ -41,7 +41,7 @@ class MuranoClient(rest_client.RestClient):
|
|||||||
def __init__(self, auth_provider):
|
def __init__(self, auth_provider):
|
||||||
super(MuranoClient, self).__init__(
|
super(MuranoClient, self).__init__(
|
||||||
auth_provider,
|
auth_provider,
|
||||||
'application_catalog',
|
'application-catalog',
|
||||||
CONF.identity.region
|
CONF.identity.region
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ class DeployTestMixin(zip_utils.ZipUtilsMixin):
|
|||||||
def get_murano_url(cls):
|
def get_murano_url(cls):
|
||||||
try:
|
try:
|
||||||
url = cls.keystone_client().service_catalog.url_for(
|
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:
|
except ks_exceptions.EndpointNotFound:
|
||||||
url = CONF.murano.murano_url
|
url = CONF.murano.murano_url
|
||||||
LOG.warning("Murano endpoint not found in Keystone. Using CONF.")
|
LOG.warning("Murano endpoint not found in Keystone. Using CONF.")
|
||||||
|
@ -45,7 +45,7 @@ ApplicationCatalogGroup = [
|
|||||||
"REST client authentication."),
|
"REST client authentication."),
|
||||||
|
|
||||||
cfg.StrOpt("catalog_type",
|
cfg.StrOpt("catalog_type",
|
||||||
default="application_catalog",
|
default="application-catalog",
|
||||||
help="Catalog type of Application Catalog."),
|
help="Catalog type of Application Catalog."),
|
||||||
|
|
||||||
cfg.StrOpt("endpoint_type",
|
cfg.StrOpt("endpoint_type",
|
||||||
@ -76,7 +76,7 @@ ServiceBrokerGroup = [
|
|||||||
"REST client authentication."),
|
"REST client authentication."),
|
||||||
|
|
||||||
cfg.StrOpt("catalog_type",
|
cfg.StrOpt("catalog_type",
|
||||||
default="service_broker",
|
default="service-broker",
|
||||||
help="Catalog type of Service Broker API"),
|
help="Catalog type of Service Broker API"),
|
||||||
|
|
||||||
cfg.StrOpt("endpoint_type",
|
cfg.StrOpt("endpoint_type",
|
||||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user