OpenStack:localrcExample2

From DocWiki

Jump to: navigation, search
OFFLINE=False
# RECLONE=Yes
RECLONE=No

DEBUG=True
VERBOSE=True

HOST_IP=192.168.200.3

FIXED_RANGE=10.2.0.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth5
NETWORK_GATEWAY=10.2.0.1
FLOATING_RANGE=172.32.1.0/24
# The following doesn't exist on this setup
PUBLIC_NETWORK_GATEWAY=172.32.1.20
Q_FLOATING_ALLOCATION_POOL="start=172.32.1.21,end=172.32.1.29"
LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

# Use br-int as bridge to reach external networks
PUBLIC_BRIDGE=br-int

our_pw=<password you want>
# Must use hard coded value, as scripts grep for the following variables.
MYSQL_USER=root
MYSQL_PASSWORD=<password you want>
RABBIT_PASSWORD=$our_pw
SERVICE_TOKEN=$our_pw
SERVICE_PASSWORD=$our_pw
ADMIN_PASSWORD=$our_pw

disable_service n-net
enable_service neutron
enable_service q-svc
disable_service q-agt
enable_service q-dhcp
enable_service ciscocfgagent
enable_service q-ciscorouter
# enable_service q-ciscodevicemanager
enable_service cisco_vpn

# Destination path for installation of the OpenStack components.
# There is no need to specify it unless you want the code in
# some particular location (like in a directory shared by all VMs).
DEST=/opt/stack
SCREEN_LOGDIR=$DEST/screen-logs
LOGFILE=~/devstack/stack.sh.log

# Settings to get NoVNC to work.
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP

# Type of virtualization to use. Options: kvm, lxc, qemu
LIBVIRT_TYPE=kvm
# Uncomment this to use LXC virtualization.
#LIBVIRT_TYPE=lxc

# List of images to use.
# ----------------------
case "$LIBVIRT_TYPE" in
    lxc) # the cirros root disk in the uec tarball is empty, so it will not work for lxc
	IMAGE_URLS="http://cloud-images.ubuntu.com/releases/14.04.1/release/ubuntu-14.04-server-cloudimg-amd64.tar.gz,http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-rootfs.img.gz";;
    *)  # otherwise, use the uec style image (with kernel, ramdisk, disk)
	IMAGE_URLS="http://cloud-images.ubuntu.com/releases/14.04.1/release/ubuntu-14.04-server-cloudimg-amd64.tar.gz,http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-uec.tar.gz";;
esac

Q_PLUGIN=cisco
declare -a Q_CISCO_PLUGIN_SUBPLUGINS=(n1kv)
Q_CISCO_PLUGIN_RESTART_VSM=yes
Q_CISCO_PLUGIN_VSM_IP=192.168.168.2
Q_CISCO_PLUGIN_VSM_USERNAME=admin
Q_CISCO_PLUGIN_VSM_PASSWORD=<enter password here>
# Below are example images that can be used...
Q_CISCO_PLUGIN_VSM_ISO_IMAGE=$HOME/n1kv/<n1000v-image>.iso
Q_CISCO_PLUGIN_UVEM_DEB_IMAGE=$HOME/n1kv/<nexus_1000v_vem-image>.deb

Q_CISCO_PLUGIN_HOST_MGMT_INTF=eth4
Q_CISCO_PLUGIN_UPSTREAM_INTF=eth5
Q_CISCO_CSR1KV_SETUP_SCRIPT_DIR=$HOME/devstack/lib/neutron_plugins/services/csr1kv_l3_setup/
Q_CISCO_MGMT_SUBNET=10.0.33.0
Q_CISCO_MGMT_CFG_AGENT_IP=10.0.33.2
Q_CISCO_MGMT_SUBNET_USAGE_RANGE_START=10.0.33.10
Q_CISCO_MGMT_SUBNET_USAGE_RANGE_END=10.0.33.254

NOVA_USE_QUANTUM_API=v2
N1KV_VLAN_NET_PROFILE_NAME=default_network_profile
# Using host 32 and 33
N1KV_VLAN_NET_SEGMENT_RANGE=320-339

Q_CISCO_ROUTER_PLUGIN=yes
Q_CISCO_CSR1KV_QCOW2_IMAGE=$HOME/csr/3.13/<csr100v 3.13 image>.qcow2

GIT_BASE=https://github.com

# Until ncclient pipy packages contains the latest change for CSR1kv we fetch the needed version like this.
NCCLIENT_VERSION=0.4.1
NCCLIENT_REPO=${GIT_BASE}/leopoul/ncclient.git
NCCLIENT_COMMIT_ID=bafd9b22e2fb423a577ed9c91d28272adbff30d3

Rating: 0.0/5 (0 votes cast)

Personal tools