Skip to content

Commit 51c1d8a

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "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"
2 parents 0bd2410 + 389f4ef commit 51c1d8a

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
@@ -17,6 +17,7 @@ Jay Pipes <jaypipes@gmail.com>
1717
Jesse Andrews <anotherjesse@gmail.com>
1818
Johannes Erdfelt <johannes.erdfelt@rackspace.com>
1919
Justin Shepherd <galstrom21@gmail.com>
20+
Ken Pepple <ken.pepple@rabbityard.com>
2021
Kiall Mac Innes <kiall@managedit.ie>
2122
Russell Bryant <rbryant@redhat.com>
2223
Scott Moser <smoser@ubuntu.com>

stack.sh

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

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

@@ -1578,24 +1578,17 @@ fi
15781578
# ``libvirtd`` to our user in this script, when nova-compute is run it is
15791579
# within the context of our original shell (so our groups won't be updated).
15801580
# Use 'sg' to execute nova-compute as a member of the libvirtd group.
1581+
# We don't check for is_service_enable as screen_it does it for us
15811582
screen_it n-cpu "cd $NOVA_DIR && sg libvirtd $NOVA_DIR/bin/nova-compute"
15821583
screen_it n-crt "cd $NOVA_DIR && $NOVA_DIR/bin/nova-cert"
15831584
screen_it n-obj "cd $NOVA_DIR && $NOVA_DIR/bin/nova-objectstore"
15841585
screen_it n-vol "cd $NOVA_DIR && $NOVA_DIR/bin/nova-volume"
15851586
screen_it n-net "cd $NOVA_DIR && $NOVA_DIR/bin/nova-network"
15861587
screen_it n-sch "cd $NOVA_DIR && $NOVA_DIR/bin/nova-scheduler"
1587-
if is_service_enabled n-novnc; then
1588-
screen_it n-novnc "cd $NOVNC_DIR && ./utils/nova-novncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF --web ."
1589-
fi
1590-
if is_service_enabled n-xvnc; then
1591-
screen_it n-xvnc "cd $NOVA_DIR && ./bin/nova-xvpvncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF"
1592-
fi
1593-
if is_service_enabled n-cauth; then
1594-
screen_it n-cauth "cd $NOVA_DIR && ./bin/nova-consoleauth"
1595-
fi
1596-
if is_service_enabled horizon; then
1597-
screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/apache2/error.log"
1598-
fi
1588+
screen_it n-novnc "cd $NOVNC_DIR && ./utils/nova-novncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF --web ."
1589+
screen_it n-xvnc "cd $NOVA_DIR && ./bin/nova-xvpvncproxy --config-file $NOVA_CONF_DIR/$NOVA_CONF"
1590+
screen_it n-cauth "cd $NOVA_DIR && ./bin/nova-consoleauth"
1591+
screen_it horizon "cd $HORIZON_DIR && sudo tail -f /var/log/apache2/error.log"
15991592

16001593
# Install Images
16011594
# ==============

0 commit comments

Comments
 (0)