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

相關文章
相關標籤/搜索