Jump to: navigation, search

Difference between revisions of "Blazar/Installation using Devstack"

(Installation guide)
(Update DevStack installation guide)
Line 1: Line 1:
 
== Installation guide ==
 
== Installation guide ==
  
This page includes instructions for Blazar installation using Devstack.
+
This page includes instructions for Blazar installation using DevStack.
  
1. Download Devstack:
+
1. Download DevStack:
     git clone https://github.com/openstack-dev/devstack.git
+
     git clone git://git.openstack.org/openstack-dev/devstack.git
  
2. Download Blazar:
+
2. Configure DevStack to install Blazar by adding the Blazar plugin to your local.conf file:
    git clone https://github.com/openstack/blazar.git
 
  
3. Add Blazar files to Devstack:
+
     cd devstack
     cd blazar/contrib/devstack
+
     echo "enable_plugin blazar git://git.openstack.org/openstack/blazar" >> local.conf
     DEVSTACK_DIR=../../../devstack
 
    cp lib/blazar ${DEVSTACK_DIR}/lib
 
    cp extras.d/70-blazar.sh ${DEVSTACK_DIR}/extras.d
 
  
4. Configure devstack to run Blazar by adding blazar, blazar api and blazar manager to the localrc file:
+
3. Run DevStack:
  
     cd ${DEVSTACK_DIR}
+
     ./stack.sh
    echo "enable_service blazar" >> local.conf
 
    echo "enable_service blazar-a" >> local.conf
 
    echo "enable_service blazar-m" >> local.conf
 
  
5. Run Devstack:
+
4. DevStack [https://bugs.launchpad.net/blazar/+bug/1641577 will fail to install blazar-nova] with the following message:
 +
 
 +
    Installing test-requirements for /opt/stack/blazar-nova/test-requirements.txt
 +
    Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
 +
    Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
 +
    Could not satisfy constraints for 'nova': installation from path or url cannot be constrained to a version
 +
    Error on exit
 +
    World dumping... see /opt/stack/logs/worlddump-2016-11-14-120830.txt for details
 +
 
 +
5. Apply a simple workaround until this bug is fixed:
 +
 
 +
    mv /opt/stack/blazar-nova/test-requirements.txt /opt/stack/blazar-nova/_test-requirements.txt
 +
 
 +
6. Run DevStack again:
  
 
     ./stack.sh
 
     ./stack.sh
 +
 +
7. To use physical reservation, create an aggregate called freepool:
 +
 +
    source openrc admin
 +
    nova aggregate-create freepool
 +
 +
8. Now you can add hosts to Blazar, e.g. if running an All-In-One DevStack:
 +
 +
    climate host-create localhost.localdomain

Revision as of 12:46, 14 November 2016

Installation guide

This page includes instructions for Blazar installation using DevStack.

1. Download DevStack:

   git clone git://git.openstack.org/openstack-dev/devstack.git

2. Configure DevStack to install Blazar by adding the Blazar plugin to your local.conf file:

   cd devstack
   echo "enable_plugin blazar git://git.openstack.org/openstack/blazar" >> local.conf

3. Run DevStack:

   ./stack.sh

4. DevStack will fail to install blazar-nova with the following message:

   Installing test-requirements for /opt/stack/blazar-nova/test-requirements.txt
   Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
   Ignoring dnspython3: markers 'python_version == "3.5"' don't match your environment
   Could not satisfy constraints for 'nova': installation from path or url cannot be constrained to a version
   Error on exit
   World dumping... see /opt/stack/logs/worlddump-2016-11-14-120830.txt for details

5. Apply a simple workaround until this bug is fixed:

   mv /opt/stack/blazar-nova/test-requirements.txt /opt/stack/blazar-nova/_test-requirements.txt

6. Run DevStack again:

   ./stack.sh

7. To use physical reservation, create an aggregate called freepool:

   source openrc admin
   nova aggregate-create freepool

8. Now you can add hosts to Blazar, e.g. if running an All-In-One DevStack:

   climate host-create localhost.localdomain