Skip to content

Commit b3e2f33

Browse files
Some tweaks for xen + devstack.
* Import functions for git_clone (allows RECLONE for xen plugins) * Fix a potential xvas path issue * Tweaks to docs Change-Id: I34f5c57a53884dfe944f3b0eb8896c57e348e389
1 parent e347b99 commit b3e2f33

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

tools/xen/build_domU.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ fi
1010
# This directory
1111
TOP_DIR=$(cd $(dirname "$0") && pwd)
1212

13-
# Source params - override xenrc params in your localrc to suite your taste
13+
# Source lower level functions
14+
. $TOP_DIR/../../functions
15+
16+
# Source params - override xenrc params in your localrc to suit your taste
1417
source xenrc
1518

1619
# Echo commands
@@ -134,17 +137,8 @@ echo 1 > /proc/sys/net/ipv4/ip_forward
134137
SR_UUID=`xe sr-list --minimal name-label="Local storage"`
135138
xe sr-param-set uuid=$SR_UUID other-config:i18n-key=local-storage
136139

137-
# Clean nova if desired
138-
if [ "$CLEAN" = "1" ]; then
139-
rm -rf $TOP_DIR/nova
140-
fi
141-
142140
# Checkout nova
143-
if [ ! -d $TOP_DIR/nova ]; then
144-
env GIT_SSL_NO_VERIFY=true git clone $NOVA_REPO
145-
cd $TOP_DIR/nova
146-
git checkout $NOVA_BRANCH
147-
fi
141+
git_clone $NOVA_REPO $TOP_DIR/nova $NOVA_BRANCH
148142

149143
# Install plugins
150144
cp -pr $TOP_DIR/nova/plugins/xenserver/xenapi/etc/xapi.d /etc/

tools/xen/xenrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ MGT_VLAN=${MGT_VLAN:-101}
3636
MGT_DEV=${MGT_DEV:-eth0}
3737

3838
# XVA Directory
39-
XVA_DIR=${XVA_DIR:-xvas}
39+
XVA_DIR=${XVA_DIR:-`pwd`/xvas}
4040

4141
# Path to xva file
4242
XVA=${XVA:-$XVA_DIR/$GUEST_NAME.xva }

0 commit comments

Comments
 (0)