Skip to content

Commit 389f4ef

Browse files
author
Ken Pepple
committed
support glance only mode by if...then checking for is_service_enabled nova.
removed redundant is_service_enabled checks for screen_it processes. fixes bug 885767 Change-Id: I4441e8d0e9d7b96770923721fa97dbd10c4379a8
1 parent 165121f commit 389f4ef

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Jay Pipes <jaypipes@gmail.com>
1616
Jesse Andrews <anotherjesse@gmail.com>
1717
Johannes Erdfelt <johannes.erdfelt@rackspace.com>
1818
Justin Shepherd <galstrom21@gmail.com>
19+
Ken Pepple <ken.pepple@rabbityard.com>
1920
Kiall Mac Innes <kiall@managedit.ie>
2021
Russell Bryant <rbryant@redhat.com>
2122
Scott Moser <smoser@ubuntu.com>

stack.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ fi
15191519

15201520
# If we're using Quantum (i.e. q-svc is enabled), network creation has to
15211521
# happen after we've started the Quantum service.
1522-
if is_service_enabled mysql; then
1522+
if is_service_enabled mysql && is_service_enabled nova; then
15231523
# create a small network
15241524
$NOVA_DIR/bin/nova-manage network create private $FIXED_RANGE 1 $FIXED_NETWORK_SIZE
15251525

@@ -1540,24 +1540,17 @@ fi
15401540
# ``libvirtd`` to our user in this script, when nova-compute is run it is
15411541
# within the context of our original shell (so our groups won't be updated).
15421542
# Use 'sg' to execute nova-compute as a member of the libvirtd group.
1543+
# We don't check for is_service_enable as screen_it does it for us
15431544
screen_it n-cpu "cd $NOVA_DIR && sg libvirtd $NOVA_DIR/bin/nova-compute"
15441545
screen_it n-crt "cd $NOVA_DIR && $NOVA_DIR/bin/nova-cert"
15451546
screen_it n-obj "cd $NOVA_DIR && $NOVA_DIR/bin/nova-objectstore"
15461547
screen_it n-vol "cd $NOVA_DIR && $NOVA_DIR/bin/nova-volume"
15471548
screen_it n-net "cd $NOVA_DIR && $NOVA_DIR/bin/nova-network"
15481549
screen_it n-sch "cd $NOVA_DIR && $NOVA_DIR/bin/nova-scheduler"
1549-
if is_service_enabled n-novnc; then
1550-
screen_it n-novnc "cd $NOVNC_DIR && ./utils/nova-novncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF --web ."
1551-
fi
1552-
if is_service_enabled n-xvnc; then
1553-
screen_it n-xvnc "cd $NOVA_DIR && ./bin/nova-xvpvncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF"
1554-
fi
1555-
if is_service_enabled n-cauth; then
1556-
screen_it n-cauth "cd $NOVA_DIR && ./bin/nova-consoleauth"
1557-
fi
1558-
if is_service_enabled horizon; then
1559-
screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/apache2/error.log"
1560-
fi
1550+
screen_it n-novnc "cd $NOVNC_DIR && ./utils/nova-novncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF --web ."
1551+
screen_it n-xvnc "cd $NOVA_DIR && ./bin/nova-xvpvncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF"
1552+
screen_it n-cauth "cd $NOVA_DIR && ./bin/nova-consoleauth"
1553+
screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/apache2/error.log"
15611554

15621555
# Install Images
15631556
# ==============

0 commit comments

Comments
 (0)