Using Glare as a storage for packages¶
DevStack installation¶
Enable Glare service in DevStack
To enable the Glare service in DevStack, edit the
local.conffile:$ cat local.conf [[local|localrc]] enable_service g-glare
Run DevStack:
$ ./stack.shResult Glare service is installed with DevStack. You can find logs in
g-glarescreen session.Install the
muranoartifactplug-in frommurano/contrib$ cd $DEST/murano/contrib/glance/ $ sudo pip install -e .
Restart
GlareSet Glare as packages service in murano-engine. For this, edit the
[engine]section in themurano.conffile. By default,murano.confis located in the/etc/muranodirectory[engine] packages_service = glare
Restart
murano-engineNote
You also can use
glanceas a value of thepackages_serviceoption for the same behaviourEnable Glare in
murano-dashboard. For this, modify the following line in the_50_murano.pyfileMURANO_USE_GLARE = True
By default, the
_50_murano.pyfile is located in$HORIZON_DIR/openstack_dashboard/local/local_settings.d/.Restart the
apache2service. Nowmurano-dashboardwill retrieve packages from Glare.Log in to Dashboard and navigate to to view the empty list of packages. Alternatively, use the murano command.
Use
--murano-packages-serviceoption to specify backend, used by murano command. Set it toglarefor usingGlareNote
You also can use
glanceas value of--murano-packages-serviceoption or environment variableMURANO_PACKAGES_SERVICEfor same behaviourView list of packages:
$ . {DEVSTACK_SOURCE_DIR}/openrc admin admin $ murano --murano-packages-service=glare package-list +----+------+-----+--------+--------+-----------+------+---------+ | ID | Name | FQN | Author | Active | Is Public | Type | Version | +----+------+-----+--------+--------+-----------+------+---------+ +----+------+-----+--------+--------+-----------+------+---------+
Importing
Core library$ cd $DEST/murano/meta/io.murano/ $ zip io.murano.zip -r * $ murano --murano-packages-service=glare package-import \ --is-public /opt/stack/murano/meta/io.murano/io.murano.zip Importing package io.murano +--------------------------------------+--------------+-----------+-----------+--------+-----------+---------+---------+ | ID | Name | FQN | Author | Active | Is Public | Type | Version | +--------------------------------------+--------------+-----------+-----------+--------+-----------+---------+---------+ | 91a9c78f-f23a-4c82-aeda-14c8cbef096a | Core library | io.murano | murano.io | True | | Library | 0.0.0 | +--------------------------------------+--------------+-----------+-----------+--------+-----------+---------+---------+
Set up Glare API entrypoint manually¶
If you do not plan to get Glare service from keystone application catalog, specify where g-glare service is running.
Specify Glare URL in
murano.conf.It is http://0.0.0.0:9494 by default and can be changed by setting bind_host and bind_port options in theglance-glare.conffile.[glare] url = http://<GLARE_API_URL>:<GLARE_API_PORT>
Specify Glare URL in the Dashboard settings file,
_50_murano.py:GLARE_API_URL = 'http://<GLARE_API>:<GLARE_API_PORT>'
Set the
GLARE_URLenvironment variable for python-muranoclient. Alternatively, use the--glare-urloption in CLI.$ murano --murano-packages-service=glare --glare-url=http://0.0.0.0:9494 package-list