Merge "Add comments on how to run devstack with Quantum"
This commit is contained in:
commit
a2ae90fa02
48
README.md
48
README.md
@ -103,3 +103,51 @@ If you only want to do some testing of a real normal swift cluster with multiple
|
|||||||
If you are enabling `swift3` in `ENABLED_SERVICES` devstack will install the swift3 middleware emulation. Swift will be configured to act as a S3 endpoint for Keystone so effectively replacing the `nova-objectstore`.
|
If you are enabling `swift3` in `ENABLED_SERVICES` devstack will install the swift3 middleware emulation. Swift will be configured to act as a S3 endpoint for Keystone so effectively replacing the `nova-objectstore`.
|
||||||
|
|
||||||
Only Swift proxy server is launched in the screen session all other services are started in background and managed by `swift-init` tool.
|
Only Swift proxy server is launched in the screen session all other services are started in background and managed by `swift-init` tool.
|
||||||
|
|
||||||
|
# Quantum
|
||||||
|
|
||||||
|
Basic Setup
|
||||||
|
|
||||||
|
In order to enable Quantum a single node setup, you'll need the following settings in your `localrc` :
|
||||||
|
|
||||||
|
disable_service n-net
|
||||||
|
enable_service q-svc
|
||||||
|
enable_service q-agt
|
||||||
|
enable_service q-dhcp
|
||||||
|
enable_service q-l3
|
||||||
|
enable_service q-meta
|
||||||
|
enable_service quantum
|
||||||
|
# Optional, to enable tempest configuration as part of devstack
|
||||||
|
enable_service tempest
|
||||||
|
|
||||||
|
Then run stack.sh as normal.
|
||||||
|
|
||||||
|
If tempest has been successfully configured, a basic set of smoke tests can be run as follows:
|
||||||
|
|
||||||
|
$ cd /opt/stack/tempest
|
||||||
|
$ nosetests tempest/tests/network/test_network_basic_ops.py
|
||||||
|
|
||||||
|
Multi-Node Setup
|
||||||
|
|
||||||
|
A more interesting setup involves running multiple compute nodes, with Quantum networks connecting VMs on different compute nodes.
|
||||||
|
You should run at least one "controller node", which should have a `stackrc` that includes at least:
|
||||||
|
|
||||||
|
disable_service n-net
|
||||||
|
enable_service q-svc
|
||||||
|
enable_service q-agt
|
||||||
|
enable_service q-dhcp
|
||||||
|
enable_service q-l3
|
||||||
|
enable_service q-meta
|
||||||
|
enable_service quantum
|
||||||
|
|
||||||
|
You likely want to change your `localrc` to run a scheduler that will balance VMs across hosts:
|
||||||
|
|
||||||
|
SCHEDULER=nova.scheduler.simple.SimpleScheduler
|
||||||
|
|
||||||
|
You can then run many compute nodes, each of which should have a `stackrc` which includes the following, with the IP address of the above controller node:
|
||||||
|
|
||||||
|
ENABLED_SERVICES=n-cpu,rabbit,g-api,quantum,q-agt
|
||||||
|
SERVICE_HOST=[IP of controller node]
|
||||||
|
MYSQL_HOST=$SERVICE_HOST
|
||||||
|
RABBIT_HOST=$SERVICE_HOST
|
||||||
|
Q_HOST=$SERVICE_HOST
|
||||||
|
13
stackrc
13
stackrc
@ -20,7 +20,18 @@ fi
|
|||||||
# screen tabs. To change the default list, use the ``enable_service`` and
|
# screen tabs. To change the default list, use the ``enable_service`` and
|
||||||
# ``disable_service`` functions in ``localrc``.
|
# ``disable_service`` functions in ``localrc``.
|
||||||
# For example, to enable Swift add this to ``localrc``:
|
# For example, to enable Swift add this to ``localrc``:
|
||||||
# enable_service swift
|
# enable_service swift
|
||||||
|
# In order to enable Quantum (a single node setup) add the following
|
||||||
|
# settings in `` localrc``:
|
||||||
|
# disable_service n-net
|
||||||
|
# enable_service q-svc
|
||||||
|
# enable_service q-agt
|
||||||
|
# enable_service q-dhcp
|
||||||
|
# enable_service q-l3
|
||||||
|
# enable_service q-meta
|
||||||
|
# enable_service quantum
|
||||||
|
# # Optional, to enable tempest configuration as part of devstack
|
||||||
|
# enable_service tempest
|
||||||
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql
|
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql
|
||||||
|
|
||||||
# Set the default Nova APIs to enable
|
# Set the default Nova APIs to enable
|
||||||
|
Loading…
Reference in New Issue
Block a user