blob: 169e0427a8c3f57596250a004081be4ff5d0278a [file] [log] [blame]
Anthony Young11889042012-01-12 17:11:56 -08001#!/bin/bash
2
John Garbuttd8f1a872012-06-26 11:16:38 +01003#
4# XenServer specific defaults for the /tools/xen/ scripts
5# Similar to stackrc, you can override these in your localrc
6#
7
Anthony Young11889042012-01-12 17:11:56 -08008# Name of this guest
Renuka Apte0af143b2012-04-02 15:46:53 -07009GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
Anthony Young11889042012-01-12 17:11:56 -080010
Mate Lakat0b3804b2013-05-07 16:58:17 +010011# Template cleanup
12CLEAN_TEMPLATES=${CLEAN_TEMPLATES:-false}
13
Anthony Young11889042012-01-12 17:11:56 -080014# Size of image
Renuka Apte0af143b2012-04-02 15:46:53 -070015VDI_MB=${VDI_MB:-5000}
Bob Ball57bf0972013-12-03 17:35:02 +000016
Bob Ball40c5ea62015-05-28 06:42:03 +010017# Devstack now contains many components. 4GB ram is not enough to prevent
Bob Ball57bf0972013-12-03 17:35:02 +000018# swapping and memory fragmentation - the latter of which can cause failures
19# such as blkfront failing to plug a VBD and lead to random test fails.
20#
Bob Ball40c5ea62015-05-28 06:42:03 +010021# Set to 6GB so an 8GB XenServer VM can have a 1GB Dom0 and leave 1GB for VMs
22OSDOMU_MEM_MB=6144
Stef Tf993b232012-11-08 10:46:48 -050023OSDOMU_VDI_GB=8
Anthony Young11889042012-01-12 17:11:56 -080024
Mate Lakat9e326772013-05-08 16:42:22 +010025# Network mapping. Specify bridge names or network names. Network names may
26# differ across localised versions of XenServer. If a given bridge/network
27# was not found, a new network will be created with the specified name.
28
Bob Ball78ef1f32013-09-29 11:36:28 +010029# Get the management network from the XS installation
Mate Lakat9e326772013-05-08 16:42:22 +010030VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
31PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
32
Anthony Young11889042012-01-12 17:11:56 -080033# VM Password
Balagopal7ed812c2016-03-01 04:43:31 +000034GUEST_PASSWORD=${GUEST_PASSWORD:-secret}
Anthony Young11889042012-01-12 17:11:56 -080035
Mate Lakat5a56cd62013-06-17 13:54:43 +010036# Extracted variables for OpenStack VM network device numbers.
Shane Wang5ed43bf2014-02-07 11:01:43 +080037# Make sure they form a continuous sequence starting from 0
Mate Lakat5a56cd62013-06-17 13:54:43 +010038MGT_DEV_NR=0
39VM_DEV_NR=1
40PUB_DEV_NR=2
Mate Lakat5a56cd62013-06-17 13:54:43 +010041
John Garbuttd8f1a872012-06-26 11:16:38 +010042# Host Interface, i.e. the interface on the nova vm you want to expose the
Mate Lakat5a56cd62013-06-17 13:54:43 +010043# services on. Usually the device connected to the management network or the
44# one connected to the public network is used.
45HOST_IP_IFACE=${HOST_IP_IFACE:-"eth${MGT_DEV_NR}"}
rootb1153412012-01-19 13:28:21 -080046
John Garbuttd8f1a872012-06-26 11:16:38 +010047#
rootb1153412012-01-19 13:28:21 -080048# Our nova host's network info
John Garbuttd8f1a872012-06-26 11:16:38 +010049#
50
Mate Lakat9e326772013-05-08 16:42:22 +010051# Management network
Mate Lakat5a56cd62013-06-17 13:54:43 +010052MGT_IP=${MGT_IP:-dhcp}
53MGT_NETMASK=${MGT_NETMASK:-ignored}
Mate Lakat9e326772013-05-08 16:42:22 +010054
55# VM Network
56VM_IP=${VM_IP:-10.255.255.255}
57VM_NETMASK=${VM_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080058
59# Public network
Mate Lakat5a56cd62013-06-17 13:54:43 +010060# Aligned with stack.sh - see FLOATING_RANGE
61PUB_IP=${PUB_IP:-172.24.4.10}
Anthony Young11889042012-01-12 17:11:56 -080062PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
Anthony Young11889042012-01-12 17:11:56 -080063
John Garbuttd8f1a872012-06-26 11:16:38 +010064# Ubuntu install settings
Jianghua Wang6e49cab2017-02-22 11:42:22 +080065UBUNTU_INST_RELEASE="xenial"
66UBUNTU_INST_TEMPLATE_NAME="Ubuntu 16.04 (64-bit) for DevStack"
John Garbuttd8f1a872012-06-26 11:16:38 +010067# For 12.04 use "precise" and update template name
68# However, for 12.04, you should be using
69# XenServer 6.1 and later or XCP 1.6 or later
70# 11.10 is only really supported with XenServer 6.0.2 and later
71UBUNTU_INST_ARCH="amd64"
Bob Ball347e3082015-02-07 15:15:12 +000072UBUNTU_INST_HTTP_HOSTNAME="archive.ubuntu.com"
73UBUNTU_INST_HTTP_DIRECTORY="/ubuntu"
Mate Lakatd3740f72013-05-09 15:02:21 +010074UBUNTU_INST_HTTP_PROXY=""
John Garbuttd8f1a872012-06-26 11:16:38 +010075UBUNTU_INST_LOCALE="en_US"
76UBUNTU_INST_KEYBOARD="us"
Mate Lakat2f524bd2013-06-19 12:32:23 +010077# network configuration for ubuntu netinstall
John Garbuttd8f1a872012-06-26 11:16:38 +010078UBUNTU_INST_IP="dhcp"
79UBUNTU_INST_NAMESERVERS=""
80UBUNTU_INST_NETMASK=""
81UBUNTU_INST_GATEWAY=""
82
Mate Lakat68ac03c2013-06-06 16:22:34 +010083# Create a separate xvdb. Tis could be used as a backing device for cinder
84# volumes. Specify
85# XEN_XVDB_SIZE_GB=10
86# VOLUME_BACKING_DEVICE=/dev/xvdb
87# in your localrc to avoid kernel lockups:
88# https://bugs.launchpad.net/cinder/+bug/1023755
89#
90# Set the size to 0 to avoid creation of additional disk.
91XEN_XVDB_SIZE_GB=0
92
Mate Lakat518fb762014-10-17 13:14:49 +020093STACK_USER=stack
94DOMZERO_USER=domzero
95
96RC_DIR="../.."
97
98restore_nounset=$(set +o | grep nounset)
Bob Ballc643ebb2014-02-02 09:16:20 +000099set +u
Mate Lakat518fb762014-10-17 13:14:49 +0200100
101## Note that the lines below are coming from stackrc to support
102## new-style config files
Huan Xiec6081842016-11-16 00:40:32 -0800103source $RC_DIR/functions-common
Mate Lakat518fb762014-10-17 13:14:49 +0200104
105# allow local overrides of env variables, including repo config
106if [[ -f $RC_DIR/localrc ]]; then
107 # Old-style user-supplied config
108 source $RC_DIR/localrc
109elif [[ -f $RC_DIR/.localrc.auto ]]; then
110 # New-style user-supplied config extracted from local.conf
111 source $RC_DIR/.localrc.auto
112fi
113
Bob Ballc643ebb2014-02-02 09:16:20 +0000114$restore_nounset