68ac03c7f2
Some kernels have lockup issues while serving cinder volumes from file-loopback-lvm kind of cinder setup. This patch provides a way to create an additional drive to the OpenStack VM, and use that to store cinder volumes, thus eliminating the lockup issue. It will help when testing XenServer. Now, you can specify devices for stack-volumes through: VOLUME_BACKING_DEVICE In case you are using CINDER_MULTI_LVM_BACKEND, you can use VOLUME_BACKING_DEVICE2 as well. Xenserver: Should you whish to use a 10 gig disk backend for your cinder volumes, specify: XEN_XVDB_SIZE_GB=10 VOLUME_BACKING_DEVICE=/dev/xvdb Citrix is using this approach on its internal CI system to run tests against OpenStack. This is a workaround for this bug: https://bugs.launchpad.net/cinder/+bug/1023755 Related to blueprint xenapi-devstack-cleanup Change-Id: Iee633d2704185bfbf9234882654c47b850fa168a
90 lines
2.6 KiB
Bash
90 lines
2.6 KiB
Bash
#!/bin/bash
|
|
|
|
#
|
|
# XenServer specific defaults for the /tools/xen/ scripts
|
|
# Similar to stackrc, you can override these in your localrc
|
|
#
|
|
|
|
# Name of this guest
|
|
GUEST_NAME=${GUEST_NAME:-DevStackOSDomU}
|
|
|
|
# Template cleanup
|
|
CLEAN_TEMPLATES=${CLEAN_TEMPLATES:-false}
|
|
|
|
# Size of image
|
|
VDI_MB=${VDI_MB:-5000}
|
|
OSDOMU_MEM_MB=1024
|
|
OSDOMU_VDI_GB=8
|
|
|
|
# Network mapping. Specify bridge names or network names. Network names may
|
|
# differ across localised versions of XenServer. If a given bridge/network
|
|
# was not found, a new network will be created with the specified name.
|
|
|
|
# The management network is specified by the bridge name. xenbr0 is usually
|
|
# the name of the bridge of the network associated with the hypervisor's eth0.
|
|
MGT_BRIDGE_OR_NET_NAME="xenbr0"
|
|
VM_BRIDGE_OR_NET_NAME="OpenStack VM Network"
|
|
PUB_BRIDGE_OR_NET_NAME="OpenStack Public Network"
|
|
XEN_INT_BRIDGE_OR_NET_NAME="OpenStack VM Integration Network"
|
|
|
|
# VM Password
|
|
GUEST_PASSWORD=${GUEST_PASSWORD:-secrete}
|
|
|
|
# Host Interface, i.e. the interface on the nova vm you want to expose the
|
|
# services on. Usually eth2 (management network) or eth3 (public network) and
|
|
# not eth0 (private network with XenServer host) or eth1 (VM traffic network)
|
|
HOST_IP_IFACE=${HOST_IP_IFACE:-eth3}
|
|
|
|
#
|
|
# Our nova host's network info
|
|
#
|
|
|
|
# Management network
|
|
MGT_IP=${MGT_IP:-172.16.100.55}
|
|
MGT_NETMASK=${MGT_NETMASK:-255.255.255.0}
|
|
|
|
# VM Network
|
|
VM_IP=${VM_IP:-10.255.255.255}
|
|
VM_NETMASK=${VM_NETMASK:-255.255.255.0}
|
|
|
|
# Public network
|
|
PUB_IP=${PUB_IP:-192.168.1.55}
|
|
PUB_NETMASK=${PUB_NETMASK:-255.255.255.0}
|
|
|
|
# Decide if you should enable eth0,
|
|
# the guest installer network
|
|
# You need to disable this on xcp-xapi on Ubuntu 12.04
|
|
ENABLE_GI=true
|
|
|
|
# Ubuntu install settings
|
|
UBUNTU_INST_RELEASE="oneiric"
|
|
UBUNTU_INST_TEMPLATE_NAME="Ubuntu 11.10 (64-bit) for DevStack"
|
|
# For 12.04 use "precise" and update template name
|
|
# However, for 12.04, you should be using
|
|
# XenServer 6.1 and later or XCP 1.6 or later
|
|
# 11.10 is only really supported with XenServer 6.0.2 and later
|
|
UBUNTU_INST_ARCH="amd64"
|
|
UBUNTU_INST_HTTP_HOSTNAME="archive.ubuntu.net"
|
|
UBUNTU_INST_HTTP_DIRECTORY="/ubuntu"
|
|
UBUNTU_INST_HTTP_PROXY=""
|
|
UBUNTU_INST_LOCALE="en_US"
|
|
UBUNTU_INST_KEYBOARD="us"
|
|
# network configuration for ubuntu netinstall
|
|
UBUNTU_INST_IFACE="eth3"
|
|
UBUNTU_INST_IP="dhcp"
|
|
UBUNTU_INST_NAMESERVERS=""
|
|
UBUNTU_INST_NETMASK=""
|
|
UBUNTU_INST_GATEWAY=""
|
|
|
|
# Create a separate xvdb. Tis could be used as a backing device for cinder
|
|
# volumes. Specify
|
|
# XEN_XVDB_SIZE_GB=10
|
|
# VOLUME_BACKING_DEVICE=/dev/xvdb
|
|
# in your localrc to avoid kernel lockups:
|
|
# https://bugs.launchpad.net/cinder/+bug/1023755
|
|
#
|
|
# Set the size to 0 to avoid creation of additional disk.
|
|
XEN_XVDB_SIZE_GB=0
|
|
|
|
source ../../stackrc
|