...
|
...
|
@@ -119,14 +119,6 @@ chown -R www-data:www-data $DASH_DIR
|
119
|
119
|
|
120
|
120
|
mkdir -p /var/log/glance
|
121
|
121
|
|
122
|
|
-# prepare initial images for loading into glance
|
123
|
|
-if [ ! -f $DEST/tty.tgz ]; then
|
124
|
|
- wget -c http://images.ansolabs.com/tty.tgz -O $DEST/tty.tgz
|
125
|
|
-fi
|
126
|
|
-
|
127
|
|
-mkdir -p $DEST/images
|
128
|
|
-tar -C $DEST/images -zxf $DEST/tty.tgz
|
129
|
|
-
|
130
|
122
|
# add useful screenrc
|
131
|
123
|
cp $DIR/files/screenrc ~/.screenrc
|
132
|
124
|
|
...
|
...
|
@@ -208,8 +200,23 @@ screen_it key "$KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_DIR/etc/keysto
|
208
|
208
|
screen_it vnc "$NOVA_DIR/bin/nova-vncproxy"
|
209
|
209
|
screen_it dash "/etc/init.d/apache2 restart; tail -f /var/log/apache2/error.log"
|
210
|
210
|
|
211
|
|
-# FIXME: switch to just importing images
|
212
|
|
-# remove previously converted images
|
213
|
|
-rm -rf $DIR/images/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]
|
214
|
|
-$NOVA_DIR/bin/nova-manage image convert $DIR/images
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+# ---- download an install images ----
|
|
214
|
+
|
|
215
|
+mkdir -p $DEST/images
|
|
216
|
+cd $DEST/images
|
|
217
|
+# prepare initial images for loading into glance
|
|
218
|
+if [ ! -f $DEST/tty.tgz ]; then
|
|
219
|
+ wget -c http://images.ansolabs.com/tty.tgz -O tty.tgz
|
|
220
|
+fi
|
|
221
|
+
|
|
222
|
+# extract ami-tty/image, aki-tty/image & ari-tty/image
|
|
223
|
+tar -zxf tty.tgz
|
|
224
|
+
|
|
225
|
+# import into glance
|
|
226
|
+# FIXME(kernel/ramdisk is hardcoded - should look at result of first two commands?)
|
|
227
|
+glance add name="tty-kernel" is_public=true container_format=aki disk_format=aki < aki-tty/image
|
|
228
|
+glance add name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < ari-tty/image
|
|
229
|
+glance add name="tty" is_public=true container_format=ami disk_format=ami kernel_id=1 ramdisk_id=2 < ami-tty/image
|
215
|
230
|
|