Verify OpenStack and Floodlight Installation

Verify the Installation with nova and quantum commands:

Shown below is a snapshot of a session immediately after installing devstack:

~/quantum-restproxy$ source openrc demo demo
~/quantum-restproxy$ quantum net-list

~/quantum-restproxy$ quantum net-create net1
Created a new network:

Field

Value

admin_state_up

True

id

9c1cca24-3b7c-456d-afdd-55bc178b1c83

name

net1

shared

False

status

ACTIVE

subnets

 

tenant_id

4fafea2aac994c13a5f3034a35e583f4

~/quantum-restproxy$ quantum subnet-create 9c1cca24-3b7c-456d-afdd-55bc178b1c83 10.2.2.0/24
Created a new subnet:

Field

Value

allocation_pools

{"start": "10.2.2.2", "end": "10.2.2.254"}

cidr

10.2.2.0/24

dns_nameservers

 

enable_dhcp

True

gateway_ip

10.2.2.1

host_routes

 

id

7f03b14a-c15e-4d7b-81a0-8e9e6c6bbd88

ip_version

4

name

 

network_id

9c1cca24-3b7c-456d-afdd-55bc178b1c83

tenant_id

4fafea2aac994c13a5f3034a35e583f4

~/devstack$ IMG_ID=`nova image-list | grep cirros | grep -v kernel | grep -v ram | awk -F "|" '{print $2}'`
~/devstack$ nova boot --image $IMG_ID --flavor 1 --nic net-id=9c1cca24-3b7c-456d-afdd-55bc178b1c83 vm1

Property

Value

OS-DCF:diskConfig

MANUAL

OS-EXT-STS:power_state

0

OS-EXT-STS:task_state

scheduling

OS-EXT-STS:vm_state

building

accessIPv4

 

accessIPv6

 

adminPass

ZTYnQ7PB3Z7M

config_drive

 

created

2012-11-01T06:23:32Z

flavor

m1.tiny

hostId

 

id

fe362118-77e3-441d-bb68-608394256259

image

cirros-0.3.0-x86_64-uec

key_name

None

metadata

{}

name

vm1

progress

0

security_groups

[{u'name': u'default'}]

status

BUILD

tenant_id

4fafea2aac994c13a5f3034a35e583f4

updated

2012-11-01T06:23:32Z

user_id

69c5935b290543278fb3c4037b44fe8e

~/devstack$ nova list

ID

Name

Status

Networks

fe362118-77e3-441d-bb68-608394256259

vm1

ACTIVE

net1=10.2.2.3

~/quantum-restproxy$ ping 10.2.2.3

PING 10.2.2.3 (10.2.2.3) 56(84) bytes of data.
64 bytes from 10.2.2.3: icmp_req=1 ttl=64 time=15.9 ms
64 bytes from 10.2.2.3: icmp_req=2 ttl=64 time=0.684 ms
64 bytes from 10.2.2.3: icmp_req=3 ttl=64 time=0.433 ms
^C
~/quantum-restproxy$ ssh cirros@10.2.2.3
The authenticity of host '10.2.2.3 (10.2.2.3)' can't be established.
RSA key fingerprint is cf:b0:bb:0f:a6:00:0c:87:00:fd:c5:ac:1d:41:03:77.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.2.2.3' (RSA) to the list of known hosts.
cirros@10.2.2.3's password:
$ ifconfig
eth0 Link encap:Ethernet HWaddr FA:16:3E:51:2F:27
inet addr:10.2.2.3 Bcast:10.2.2.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fe51:2f27/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:353 errors:0 dropped:95 overruns:0 frame:0
TX packets:236 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34830 (34.0 KiB) TX bytes:28414 (27.7 KiB)
Interrupt:11

Another Example (based on Essex release. Some command syntax has changed since Folsom.)

Creating Networks, Tenants, VMs

Now we have a working OpenStack server, we can launch a number of VMs on it and associate them with different virtual networks via the Quantum API.

odd_even_essex.sh creates two networks,each for two VMs.  If the nodes are created successfully, a number of tables will be printed, but make sure you WAIT PATIENTLY for the nodes to complete their boot process.  With four VMs nested inside a VM, the execution tends to be slow.  If you want to check whether the boot has completed, you can do, for example, 'sudo tail /opt/stack/nova/instances/instance-00000001/console.log' from time to time until you see the "CIRROS" welcom logo is printed at the end of the console log.

Note that pre-generated key pairs are specified in the script so that later logging into the created nodes does not need a password (with default username cirros).

odd_even_list_essex.sh lists all created networks and hosts by odd_even_essex.sh.

You can log into the OpenStack GUI by browsing the VM host-only adapter address (http://192.168.56.10x).  The login and password is as specified in odd_even_essex.sh (odd user/oddpass, even user/evenpass)

Ping Test

First, from the OpenStack server VM, ssh to one of the created VM

$ ssh cirros@10.4.4.2
(no password would be asked since we configured a key at installation time, and the key resides in .ssh/)
$ ping 10.4.4.3
(should work)
$ ping 10.5.5.2
(should still work, since the VMs have IP routing enabled)
$ sudo ifconfig eth0 netmask 255.0.0.0

In a second terminal on the OpenStack server VM, ssh to one of the created VM

$ ssh cirros@10.5.5.3
$ sudo ifconfig eth0 netmask 255.0.0.0
$ ping 10.4.4.2
(should not work -- Network Unreachable due to VNF)
$ ping 10.5.5.2
(should work - local network)