Skip to content

Commit 7686af4

Browse files
committed
Fixes basic openstack deploy bugs
1 parent 3367c7a commit 7686af4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: deploy-basic-openstack-instance.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
wget http://dev.centos.org/centos/hyper-v/CentOS-6.4-x86_64-Minimal-OpenStack.image.qcow2.bz2
45
bunzip2 CentOS-6.4-x86_64-Minimal-OpenStack.image.qcow2.bz2
@@ -8,7 +9,7 @@ mkdir -p ~/.ssh
89
nova keypair-add key1 > ~/.ssh/id_rsa
910
chmod 600 ~/.ssh/id_rsa
1011

11-
quantum net-create net1 | awk '{if (NR == 6) {print $4}}'`
12+
NET1=`quantum net-create net1 | awk '{if (NR == 6) {print $4}}'`
1213
SUBNETID1=`quantum subnet-create net1 10.0.1.0/24 --dns_nameservers list=true 8.8.8.8 | awk '{if (NR == 11) {print $4}}'`
1314

1415
ROUTERID1=`quantum router-create router1 | awk '{if (NR == 7) {print $4}}'`

0 commit comments

Comments
 (0)