OpenStack Murano Dashboard(Kilo)安装

官方文档是安装到虚拟环境中去,且其中的步骤有些问题,这里总结下作备忘。python

##前提git

  • murano服务已经安装好
  • openstack dashboard已经安装
  • 系统: ubuntu14.04

##安装ubuntu

  1. 下载Dashboardvim

    $ cd ~/murano
    	$ git clone git://git.openstack.org/openstack/murano-dashboard
  2. 切换到stable/kilo分支ui

    cd murano-dashboard
    	git checkout -t origin/stable/kilo
  3. 安装依赖this

    pip install -r requirements.txt
  4. 安装Murano Dashboard到系统中code

    python setup.py install
  5. 在Openstack Dashboard中启用Murano Dashboardip

    复制模板:rem

    cp muranodashboard/local/_50_murano.py /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/

    注释掉ADD_JS_FILES 那几行:文档

    # vim /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_50_murano.py
    
    	from muranodashboard import exceptions
    
    	# The name of the dashboard to be added to HORIZON['dashboards']. Required.
    	DASHBOARD = 'murano'
    
    	# If set to True, this dashboard will not be added to the settings.
    	DISABLED = False
    
    	ADD_INSTALLED_APPS = [
    	'muranodashboard',
    	]
    
    	ADD_EXCEPTIONS = {
    	'recoverable': exceptions.RECOVERABLE,
    	'not_found': exceptions.NOT_FOUND,
    	'unauthorized': exceptions.UNAUTHORIZED,
    	}
    
    	#ADD_JS_FILES = [
    	#  'muranodashboard/js/murano.service.js'
    	#]
  6. 连接static目录

    ps: 修改/opt/murano/murano-dashboard/muranodashboard/static/muranodashboard/为本身的路径

    ln -s  /opt/murano/murano-dashboard/muranodashboard/static/muranodashboard/ /usr/share/openstack-dashboard/openstack_dashboard/static/muranodashboard
  7. local_setttings.py添加下面内容

    # vim /etc/openstack-dashboard/local_settings.py
    
    	MURANO_API_URL = 'http://localhost:8082'
  8. 重启OpenStack Dashboard

相关文章
相关标签/搜索