[devstack] Murano overrides GLARE_API_URL during multi-region dashboard installation

Bug #1630318 reported by Victor Ryzhenkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
zhurong

Bug Description

1. Deploy multiregion setup of devstack with Murano and GLARE backand
2. Import any application into RegionOne
3. Use trigger in UI to switch Region to RegionTwo
4. Deploy environment with imported application

Expected:
Environment successfully deployed

Actual:
We got a LookUp Error :

2016-10-04 18:51:38.451 DEBUG glanceclient.common.http [-]
HTTP/1.1 200 OK
Content-Length: 168
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-6b25e20c-f3c2-4f3a-a697-090e419c50cf
Date: Tue, 04 Oct 2016 16:51:38 GMT
Connection: keep-alive

{"artifacts": [], "first": "/v0.1/artifacts/murano/v1?sort=name%3Aasc&enabled=True&class_definitions=com.example.apache.ApacheHttpServer&version=lt%3A1.0.0-0&limit=20"}
 from (pid=3008) log_http_response /usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py:219
2016-10-04 18:51:38.451 DEBUG murano.engine.package_loader [-] There are no packages matching filter {'class_name': u'com.example.apache.ApacheHttpServer', 'catalog': True, 'versi
on': [u'ge:0.0.0', u'lt:1.0.0-0']} from (pid=3008) _get_definition /opt/stack/murano/murano/engine/package_loader.py:212
2016-10-04 18:51:38.457 ERROR murano.common.engine [-] Exception Package for class "com.example.apache.ApacheHttpServer" is not found occurred during invocation of <load>

Info:
In dashboard packages available in both regions but client says:
For regionTwo:
stack@srv66-bud:~/devstack$ murano package-list
+--------------------------------------+---------------------------------+------------------------+----------------+--------+-----------+---------+---------+
| ID | Name | FQN | Author | Active | Is Public | Type | Version |
+--------------------------------------+---------------------------------+------------------------+----------------+--------+-----------+---------+---------+
| 5ea40478-c858-47bf-9a7e-cc0c68fc1138 | Core library | io.murano | murano.io | True | True | Library | 0.0.0 |
| 7d6f2dc0-a19f-4231-a2ab-70b2f2d8ec29 | Application Development Library | io.murano.applications | Mirantis, Inc. | True | True | Library | 0.0.0 |
+--------------------------------------+---------------------------------+------------------------+----------------+--------+-----------+---------+---------+

description: updated
description: updated
tags: added: dashboard
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

After a short investigation it turned out, that horizon overrided GLARE_API_URL so both regions went to same GLARE — no wonder the packages showed in both regions =)

Changed in murano:
status: Confirmed → Invalid
Changed in murano:
status: Invalid → Confirmed
importance: Critical → High
Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Well, it's obvious installation problem. need to remove filling for this parameter from devstack plugin.
Here
https://github.com/openstack/murano/blob/master/devstack/plugin.sh#L525

Changed in murano:
importance: High → Medium
tags: added: low-hanging-fruit
summary: - Murano shares applications between regions
+ [devstack] Murano overrides GLARE_API_URL during multi-region dashboard
+ installation
Ilya Popov (ilya-p)
Changed in murano:
assignee: nobody → Ilya Popov (ilya-p)
Changed in murano:
milestone: 3.1.0 → pike-2
Changed in murano:
milestone: pike-2 → pike-rc1
zhurong (zhu-rong)
Changed in murano:
assignee: Ilya Popov (ilya-p) → zhurong (zhu-rong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/586468

Changed in murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/586468
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=22f4d6df5e365af6401dd5c535b1a60e0d742166
Submitter: Zuul
Branch: master

commit 22f4d6df5e365af6401dd5c535b1a60e0d742166
Author: zhurong <email address hidden>
Date: Fri Jul 27 15:59:38 2018 +0800

    Remove set GLARE_API_URL for horizon

    In multi-region, only have one horizon, so we can not
    set GLARE_API_URL parameter for horizon.

    Change-Id: Ia39d7d1940dcac31467fbe73f7268cf1f3d39ddf
    Closes-Bug: #1630318

Changed in murano:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 6.0.0.0rc1

This issue was fixed in the openstack/murano 6.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.