Merge lp:~vishvananda/nova/novash into lp:~hudson-openstack/nova/trunk

Proposed by Vish Ishaya
Status: Merged
Approved by: Soren Hansen
Approved revision: 426
Merged at revision: 426
Proposed branch: lp:~vishvananda/nova/novash
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 53 lines (+10/-10)
1 file modified
contrib/nova.sh (+10/-10)
To merge this branch: bzr merge lp:~vishvananda/nova/novash
Reviewer Review Type Date Requested Status
Soren Hansen (community) Approve
Michael Gundlach (community) Approve
Review via email: mp+42174@code.launchpad.net

Commit message

Default flagfile moved in trunk recently. This updates nova.sh to run properly with the new flagfile location.

Description of the change

Default flagfile moved in trunk recently. This updates nova.sh to run properly with the new flagfile location.

To post a comment you must log in.
Revision history for this message
Michael Gundlach (gundlach) wrote :

oh yayer

review: Approve
Revision history for this message
Soren Hansen (soren) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'contrib/nova.sh'
--- contrib/nova.sh 2010-11-23 23:58:26 +0000
+++ contrib/nova.sh 2010-11-29 21:27:16 +0000
@@ -23,7 +23,7 @@
23TEST=${TEST:-0}23TEST=${TEST:-0}
24USE_LDAP=${USE_LDAP:-0}24USE_LDAP=${USE_LDAP:-0}
25LIBVIRT_TYPE=${LIBVIRT_TYPE:-qemu}25LIBVIRT_TYPE=${LIBVIRT_TYPE:-qemu}
26NET_MAN=${NET_MAN:-FlatDHCPManager}26NET_MAN=${NET_MAN:-VlanManager}
27# NOTE(vish): If you are using FlatDHCP on multiple hosts, set the interface27# NOTE(vish): If you are using FlatDHCP on multiple hosts, set the interface
28# below but make sure that the interface doesn't already have an28# below but make sure that the interface doesn't already have an
29# ip or you risk breaking things.29# ip or you risk breaking things.
@@ -42,10 +42,10 @@
42fi42fi
4343
44mkdir -p /etc/nova44mkdir -p /etc/nova
45cat >/etc/nova/nova-manage.conf << NOVA_CONF_EOF45cat >$NOVA_DIR/bin/nova.conf << NOVA_CONF_EOF
46--verbose46--verbose
47--nodaemon47--nodaemon
48--dhcpbridge_flagfile=/etc/nova/nova-manage.conf48--dhcpbridge_flagfile=$NOVA_DIR/bin/nova.conf
49--FAKE_subdomain=ec249--FAKE_subdomain=ec2
50--network_manager=nova.network.manager.$NET_MAN50--network_manager=nova.network.manager.$NET_MAN
51--cc_host=$HOST_IP51--cc_host=$HOST_IP
@@ -56,7 +56,7 @@
56NOVA_CONF_EOF56NOVA_CONF_EOF
5757
58if [ -n "$FLAT_INTERFACE" ]; then58if [ -n "$FLAT_INTERFACE" ]; then
59 echo "--flat_interface=$FLAT_INTERFACE" >>/etc/nova/nova-manage.conf59 echo "--flat_interface=$FLAT_INTERFACE" >>$NOVA_DIR/bin/nova.conf
60fi60fi
6161
62if [ "$CMD" == "branch" ]; then62if [ "$CMD" == "branch" ]; then
@@ -142,12 +142,12 @@
142142
143 # nova api crashes if we start it with a regular screen command,143 # nova api crashes if we start it with a regular screen command,
144 # so send the start command by forcing text into the window.144 # so send the start command by forcing text into the window.
145 screen_it api "$NOVA_DIR/bin/nova-api --flagfile=/etc/nova/nova-manage.conf"145 screen_it api "$NOVA_DIR/bin/nova-api"
146 screen_it objectstore "$NOVA_DIR/bin/nova-objectstore --flagfile=/etc/nova/nova-manage.conf"146 screen_it objectstore "$NOVA_DIR/bin/nova-objectstore"
147 screen_it compute "$NOVA_DIR/bin/nova-compute --flagfile=/etc/nova/nova-manage.conf"147 screen_it compute "$NOVA_DIR/bin/nova-compute"
148 screen_it network "$NOVA_DIR/bin/nova-network --flagfile=/etc/nova/nova-manage.conf"148 screen_it network "$NOVA_DIR/bin/nova-network"
149 screen_it scheduler "$NOVA_DIR/bin/nova-scheduler --flagfile=/etc/nova/nova-manage.conf"149 screen_it scheduler "$NOVA_DIR/bin/nova-scheduler"
150 screen_it volume "$NOVA_DIR/bin/nova-volume --flagfile=/etc/nova/nova-manage.conf"150 screen_it volume "$NOVA_DIR/bin/nova-volume"
151 screen_it test ". $NOVA_DIR/novarc"151 screen_it test ". $NOVA_DIR/novarc"
152 screen -S nova -x152 screen -S nova -x
153fi153fi