|
...
|
...
|
@@ -408,10 +408,33 @@ function screen_it {
|
|
408
|
408
|
screen -d -m -S nova -t nova
|
|
409
|
409
|
sleep 1
|
|
410
|
410
|
|
|
411
|
|
-screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"
|
|
412
|
|
-screen_it g-reg "cd $GLANCE_DIR; bin/glance-registry --config-file=etc/glance-registry.conf"
|
|
413
|
|
-screen_it key "$KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_CONF"
|
|
414
|
|
-screen_it n-api "$NOVA_DIR/bin/nova-api"
|
|
|
411
|
+if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
|
|
|
412
|
+ screen_it g-reg "cd $GLANCE_DIR; bin/glance-registry --config-file=etc/glance-registry.conf"
|
|
|
413
|
+fi
|
|
|
414
|
+
|
|
|
415
|
+if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
|
|
|
416
|
+ screen_it g-api "cd $GLANCE_DIR; bin/glance-api --config-file=etc/glance-api.conf"
|
|
|
417
|
+ while ! wget -q -O- http://$GLANCE_HOSTPORT; do
|
|
|
418
|
+ echo "Waiting for g-api ($GLANCE_HOSTPORT) to start..."
|
|
|
419
|
+ sleep 1
|
|
|
420
|
+ done
|
|
|
421
|
+fi
|
|
|
422
|
+
|
|
|
423
|
+if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
|
|
|
424
|
+ screen_it key "$KEYSTONE_DIR/bin/keystone --config-file $KEYSTONE_CONF"
|
|
|
425
|
+ while ! wget -q -O- http://127.0.0.1:5000; do
|
|
|
426
|
+ echo "Waiting for keystone to start..."
|
|
|
427
|
+ sleep 1
|
|
|
428
|
+ done
|
|
|
429
|
+fi
|
|
|
430
|
+
|
|
|
431
|
+if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
|
|
|
432
|
+ screen_it n-api "$NOVA_DIR/bin/nova-api"
|
|
|
433
|
+ while ! wget -q -O- http://127.0.0.1:8774; do
|
|
|
434
|
+ echo "Waiting for nova-api to start..."
|
|
|
435
|
+ sleep 1
|
|
|
436
|
+ done
|
|
|
437
|
+fi
|
|
415
|
438
|
# Launching nova-compute should be as simple as running ``nova-compute`` but
|
|
416
|
439
|
# have to do a little more than that in our script. Since we add the group
|
|
417
|
440
|
# ``libvirtd`` to our user in this script, when nova-compute is run it is
|