Skip to content

Instantly share code, notes, and snippets.

@pajayrao
Last active February 14, 2017 15:30
Show Gist options
  • Save pajayrao/af864f618b0dd78e7244f79009fd7dd7 to your computer and use it in GitHub Desktop.
Save pajayrao/af864f618b0dd78e7244f79009fd7dd7 to your computer and use it in GitHub Desktop.
Multinode Devstack configuring local.conf file

Installing Multinode Devstack On Controller And Computer Node

The main part in setting up a multinode devstack is to config the local.conf file before running ./stack.sh on both controller and compute node

Controller Node devstack/local.conf


# DEFAULT SETTINGS
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=192.168.1.102
SERVICE_TOKEN=password
ENABLED_SERVICES=n-cpu,n-net,n-api-meta,c-vol

# MULTINODE CONFIGURATION
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.50.0/24
MULTI_HOST=1

# LOG FILE LOCATION
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=/opt/stack/logs

# FOR INSTALLING NEUTRON
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# Optional, to enable tempest configuration as part of devstack
enable_service tempest

Compute Node devstack/local.conf


# DEFAULT SETTINGS
# Change this per compute node
HOST_IP=192.168.0.2 
FLAT_INTERFACE=eth2

# MULTINODE CONFIGURATION
MULTI_HOST=1
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
DATABASE_TYPE=mysql
#Controller Node IP
SERVICE_HOST=192.168.0.3 
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
ENABLED_SERVICES=n-cpu,n-net,n-api-meta,c-vol

# FOR INSTALLING NEUTRON
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
# Optional, to enable tempest configuration as part of devstack
enable_service tempest

Configuration variables

* ADMIN_PASSWORD -> Admin Password
* DATABASE_PASSWORD -> Database Password
* RABBIT_PASSWORD -> Password for rabbit queue
* SERVICE_PASSWORD -> Password for other services
* HOST_IP -> Controller node IP
* FLAT_INTERFACE -> Interface for bridge
* FIXED_RANGE -> Fixed IP range for assignment
* FIXED_NETWORK_SIZE -> Size of the FIXED IP range
* FLOATING_RANGE -> External IP range for assignment
* MULTI_HOST -> 1 # for multinode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment