Use glare urls explicitly in devstack plugin

This commit adds makes murano installed with devstack use
GLANCE_GLARE_HOSTPORT for glare endpoints instead of asking them from
keystone. This would make murano honor glance-glare urls in case they
have been set overriden by GLANCE_GLARE_HOSTPORT in local.conf

Targets bp: murano-glare-devstack-testing
Needed-By: I16be39131fafee958fa6dba2765552bc71217dfa

Change-Id: I351b1e066a21b0eb1f3f9120cd36087618c90206
This commit is contained in:
Kirill Zaitsev 2016-08-16 15:13:28 +03:00
parent 5475ac13ad
commit 53a30e5daa
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ function configure_murano_glare_backend() {
iniset $MURANO_CONF_FILE glare url $GLANCE_SERVICE_PROTOCOL://$GLANCE_GLARE_HOSTPORT
iniset $MURANO_CONF_FILE glare endpoint_type $GLARE_ENDPOINT_TYPE
echo -e $"\nexport MURANO_PACKAGES_SERVICE='glare'" | sudo tee -a $TOP_DIR/openrc
echo -e $"\nexport GLARE_URL='$GLANCE_SERVICE_PROTOCOL://$GLANCE_GLARE_HOSTPORT'" | sudo tee -a $TOP_DIR/openrc
}
function restart_glare_service() {
@ -259,6 +260,7 @@ function install_murano_apps() {
--os-tenant-name $OS_PROJECT_NAME \
--os-auth-url http://$KEYSTONE_AUTH_HOST:5000 \
--murano-url http://127.0.0.1:8082 \
--glare-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_GLARE_HOSTPORT \
--murano-packages-service $MURANO_PACKAGES_SERVICE \
package-import \
--is-public \
@ -336,6 +338,7 @@ function setup_core_library() {
--os-auth-url http://$KEYSTONE_AUTH_HOST:5000 \
--os-region-name $REGION_NAME \
--murano-url http://127.0.0.1:8082 \
--glare-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_GLARE_HOSTPORT \
--murano-packages-service $MURANO_PACKAGES_SERVICE \
package-import $MURANO_DIR/meta/io.murano/io.murano.zip \
--is-public
@ -506,6 +509,7 @@ function configure_local_settings_py() {
sed -e "s%\(^\s*MURANO_REPO_URL\s*=\).*$%\1 '$MURANO_REPOSITORY_URL'%" -i $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
sed -e "s%\(^\s*'NAME':\).*$%\1 os.path.join('$MURANO_DASHBOARD_DIR', 'openstack-dashboard.sqlite')%" -i $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
echo -e $"\nMETADATA_CACHE_DIR = '$MURANO_DASHBOARD_CACHE_DIR'" | sudo tee -a $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
echo -e $"\nGLARE_API_URL = '$GLANCE_SERVICE_PROTOCOL://$GLANCE_GLARE_HOSTPORT'" | sudo tee -a $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
}