|
...
|
...
|
@@ -23,6 +23,9 @@ COPYENV=${COPYENV:-1}
|
|
23
|
23
|
# Param string to pass to stack.sh. Like "EC2_DMZ_HOST=192.168.1.1 MYSQL_USER=nova"
|
|
24
|
24
|
STACKSH_PARAMS=${STACKSH_PARAMS:-}
|
|
25
|
25
|
|
|
|
26
|
+# Option to use the version of devstack on which we are currently working
|
|
|
27
|
+USE_CURRENT_DEVSTACK=${USE_CURRENT_DEVSTACK:-1}
|
|
|
28
|
+
|
|
26
|
29
|
# Warn users who aren't on natty
|
|
27
|
30
|
if ! grep -q natty /etc/lsb-release; then
|
|
28
|
31
|
echo "WARNING: this script has only been tested on natty"
|
|
...
|
...
|
@@ -99,6 +102,12 @@ git_clone $NOVACLIENT_REPO $CACHEDIR/opt/python-novaclient $NOVACLIENT_BRANCH
|
|
99
|
99
|
git_clone $OPENSTACKX_REPO $CACHEDIR/opt/openstackx $OPENSTACKX_BRANCH
|
|
100
|
100
|
git_clone $MUNIN_REPO $CACHEDIR/opt/openstack-munin $MUNIN_BRANCH
|
|
101
|
101
|
|
|
|
102
|
+# Use this version of devstack?
|
|
|
103
|
+if [ "$USE_CURRENT_DEVSTACK" = "1" ]; then
|
|
|
104
|
+ rm -rf $CACHEDIR/opt/devstack
|
|
|
105
|
+ cp -pr . $CACHEDIR/opt/devstack
|
|
|
106
|
+fi
|
|
|
107
|
+
|
|
102
|
108
|
# Destroy the old container
|
|
103
|
109
|
lxc-destroy -n $CONTAINER
|
|
104
|
110
|
|