Jump to: navigation, search

Difference between revisions of "Manila/docs/HOWTO use manila with horizon"

< Manila‎ | docs
(Get custom horizon)
(Update instructions)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= How to run custom horizon with manila =
+
WARNING: Information on this page is obsolete for releases after Ocata due to changes in manila's devstack plugin.
This page describes how to try manila with horizon. It can be done on any host, not exactly the same as devstack installation.
+
Refer to the documentation here instead: https://github.com/openstack/manila-ui/blob/master/README.rst
  
==Get custom horizon==
+
To enable manila-ui in devstack, include this in your local.conf
 +
 
 +
enable_plugin manila-ui https://github.com/openstack/manila-ui
 +
 
 +
 
 +
 
 +
 
 +
= How to run horizon with manila =
 +
 
 +
== Kilo - Newton ==
 +
 
 +
When you use devstack with the manila_plugin, the manila-ui is automatically installed (unless horizon is disabled).
 +
 
 +
The manila UI was converted to a horizon plugin in the Kilo release. Follow the installation instructions at https://github.com/openstack/manila-ui/blob/master/README.rst to have horizon support for manila.
 +
 
 +
== Juno ==
 +
If you use Juno version of Manila, then you can use only fork of Horizon with appropriate changes for Manila support.
 +
 
 +
=== Get custom horizon ===
 +
 
 +
$ git clone -b manila_juno https://github.com/NetApp/horizon.git  # Horizon of Juno version with Manila support. Should be used only with Juno version of manila server and manilaclient of 1.0.1 version - https://github.com/openstack/python-manilaclient/releases/tag/1.0.1
  
$ git clone -b manila_juno https://github.com/NetApp/horizon.git  # Horizon of Juno version with Manila support, recommended
 
or
 
$ git clone -b manila_icehouse https://github.com/NetApp/horizon.git  # Horizon of Icehouse version with Manila support. Old, not recommended
 
 
and
 
and
 +
 
  $ cd horizon
 
  $ cd horizon
 
and
 
and
 +
 
  $ cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
 
  $ cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
  
 
open file '''''openstack_dashboard/local/local_settings.py'''''
 
open file '''''openstack_dashboard/local/local_settings.py'''''
  
find var "''OPENSTACK_HOST''" and set here address of host where devstack was installed
+
find var "OPENSTACK_HOST" and set here address of host where devstack was installed
  
 
save and exit
 
save and exit
  
==Be sure, all dependencies are installed==
+
=== Be sure, all dependencies are installed ===
  
 
run in horizon's dir
 
run in horizon's dir
  
 
  $ sudo python setup.py install
 
  $ sudo python setup.py install
 
 
Also, need to install python-manilaclient
 
Also, need to install python-manilaclient
  
  $ sudo pip install git+https://github.com/openstack/python-manilaclient.git
+
  $ sudo pip install python-manilaclient==1.0.1
 
+
Run horizon
==Run horizon==
 
 
  $ sudo python manage.py runserver
 
  $ sudo python manage.py runserver
 
 
it will be available on 127.0.0.1:8000
 
it will be available on 127.0.0.1:8000
  
Line 36: Line 52:
  
 
  $ sudo python manage.py runserver 0.0.0.0:8000
 
  $ sudo python manage.py runserver 0.0.0.0:8000
 
 
port can be set to any not used valid port value.
 
port can be set to any not used valid port value.

Latest revision as of 15:12, 2 December 2016

WARNING: Information on this page is obsolete for releases after Ocata due to changes in manila's devstack plugin. Refer to the documentation here instead: https://github.com/openstack/manila-ui/blob/master/README.rst

To enable manila-ui in devstack, include this in your local.conf

enable_plugin manila-ui https://github.com/openstack/manila-ui



How to run horizon with manila

Kilo - Newton

When you use devstack with the manila_plugin, the manila-ui is automatically installed (unless horizon is disabled).

The manila UI was converted to a horizon plugin in the Kilo release. Follow the installation instructions at https://github.com/openstack/manila-ui/blob/master/README.rst to have horizon support for manila.

Juno

If you use Juno version of Manila, then you can use only fork of Horizon with appropriate changes for Manila support.

Get custom horizon

$ git clone -b manila_juno https://github.com/NetApp/horizon.git  # Horizon of Juno version with Manila support. Should be used only with Juno version of manila server and manilaclient of 1.0.1 version - https://github.com/openstack/python-manilaclient/releases/tag/1.0.1

and

$ cd horizon

and

$ cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py

open file openstack_dashboard/local/local_settings.py

find var "OPENSTACK_HOST" and set here address of host where devstack was installed

save and exit

Be sure, all dependencies are installed

run in horizon's dir

$ sudo python setup.py install

Also, need to install python-manilaclient

$ sudo pip install python-manilaclient==1.0.1

Run horizon

$ sudo python manage.py runserver

it will be available on 127.0.0.1:8000

to specify all interfaces, use:

$ sudo python manage.py runserver 0.0.0.0:8000

port can be set to any not used valid port value.