Browse code

more docs and fix path issue for image locations

Jesse Andrews authored on 2011/09/13 11:11:30
Showing 1 changed files
... ...
@@ -2,6 +2,8 @@
2 2
 
3 3
 # **stack.sh** is rackspace cloudbuilder's opinionated openstack dev installation.
4 4
 
5
+# FIXME: commands should be: stack.sh should allow specifying a subset of services
6
+
5 7
 # Quit script on error
6 8
 set -o errexit
7 9
 
... ...
@@ -25,7 +27,7 @@ if [ ! -n "$HOST_IP" ]; then
25 25
     HOST_IP=`LC_ALL=C ifconfig  | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}'`
26 26
 fi
27 27
 
28
-# NOVA CONFIGURATION
28
+# NOVA network / hypervisor configuration
29 29
 INTERFACE=${INTERFACE:-eth0}
30 30
 FLOATING_RANGE=${FLOATING_RANGE:-10.6.0.0/27}
31 31
 FIXED_RANGE=${FIXED_RANGE:-10.0.0.0/24}
... ...
@@ -40,7 +42,6 @@ NET_MAN=${NET_MAN:-VlanManager}
40 40
 # TODO: switch to mysql for all services
41 41
 SQL_CONN=${SQL_CONN:-sqlite:///$NOVA_DIR/nova.sqlite}
42 42
 
43
-# FIXME: commands should be: stack.sh should allow specifying a subset of services
44 43
 
45 44
 # install apt requirements
46 45
 apt-get install -y -q `cat $DIR/apts/* | cut -d\# -f1`
... ...
@@ -87,6 +88,8 @@ modprobe kvm || true
87 87
 # if kvm wasn't running before we need to restart libvirt to enable it
88 88
 /etc/init.d/libvirt-bin restart
89 89
 
90
+# FIXME(ja): should LIBVIRT_TYPE be kvm if kvm module is loaded?
91
+
90 92
 # setup nova instance directory
91 93
 mkdir -p $NOVA_DIR/instances
92 94
 
... ...
@@ -206,14 +209,14 @@ mkdir -p $DEST/images
206 206
 cd $DEST/images
207 207
 # prepare initial images for loading into glance
208 208
 if [ ! -f $DEST/tty.tgz ]; then
209
-    wget -c http://images.ansolabs.com/tty.tgz -O tty.tgz
209
+    wget -c http://images.ansolabs.com/tty.tgz -O $DEST/tty.tgz
210 210
 fi
211 211
 
212 212
 # extract ami-tty/image, aki-tty/image & ari-tty/image
213
-tar -zxf tty.tgz
213
+tar -zxf $DEST/tty.tgz
214 214
 
215
-# import into glance 
216
-# FIXME(kernel/ramdisk is hardcoded - should look at result of first two commands?)
215
+# add images to glance 
216
+# FIXME: kernel/ramdisk is hardcoded - use return result from add
217 217
 glance add name="tty-kernel" is_public=true container_format=aki disk_format=aki < aki-tty/image 
218 218
 glance add name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < ari-tty/image 
219 219
 glance add name="tty" is_public=true container_format=ami disk_format=ami kernel_id=1 ramdisk_id=2 < ami-tty/image