VM instance NOT getting proper IP

Asked by novelkumar

I Have installed devstack method on a single server [NOT VM]. Due to our lab network issue, i need to have the following network setup [for proper routing] :

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.124.81
netmask 255.255.255.0
post-up route add default gw 192.168.124.1 metric 2
pre-down route del default gw 192.168.124.1
# The primary network interface

auto eth1
iface eth1 inet static
address 10.1.62.1
netmask 255.255.192.0
post-up route add default gw 10.1.0.10 metric 1
pre-down route del default gw 10.1.0.10

route -n command shows:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.1.0.10 0.0.0.0 UG 1 0 0 eth1
0.0.0.0 192.168.124.1 0.0.0.0 UG 2 0 0 br100
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br100
10.1.0.0 0.0.0.0 255.255.192.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.124.0 0.0.0.0 255.255.255.0 U 0 0 0 br100

ifconfig from host/controller/compute shows:

br100 Link encap:Ethernet HWaddr ac:16:2d:72:0c:98
          inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
          inet6 addr: fe80::6839:d4ff:fe18:770e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:88 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41121 (41.1 KB) TX bytes:3600 (3.6 KB)

eth0 Link encap:Ethernet HWaddr ac:16:2d:72:0c:98
          inet6 addr: fe80::ae16:2dff:fe72:c98/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:524 errors:0 dropped:34 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:202929 (202.9 KB) TX bytes:4928 (4.9 KB)
          Interrupt:32

eth1 Link encap:Ethernet HWaddr ac:16:2d:72:0c:99
          inet addr:10.1.62.1 Bcast:10.1.63.255 Mask:255.255.192.0
          inet6 addr: fe80::ae16:2dff:fe72:c99/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:472730 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197095 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:521426236 (521.4 MB) TX bytes:16631717 (16.6 MB)
          Interrupt:36

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:27123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27123 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:43731564 (43.7 MB) TX bytes:43731564 (43.7 MB)

virbr0 Link encap:Ethernet HWaddr 9e:fd:d4:f4:20:9d
          inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vnet0 Link encap:Ethernet HWaddr fe:16:3e:e1:40:62
          inet6 addr: fe80::fc16:3eff:fee1:4062/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:1323 (1.3 KB) TX bytes:2976 (2.9 KB)

ISSUE: When i create a VM instance via command ' nova boot --image cirros-0.3.1-x86_64-uec-ramdisk --flavor m1.small test
 ' , it is getting the public IP assigned in 'nova list' as follows:

 nova list
+--------------------------------------+------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------+--------+------------------+
| 44b5a5bd-0da0-4335-8ac6-ad6511e8bf20 | test | ACTIVE | private=10.0.0.4 |
+--------------------------------------+------+--------+------------------+

But as you can see, there is no IP assigned in vnet0.

My localrc is as follows:

ADMIN_PASSWORD=my_password
MYSQL_PASSWORD=my_password
RABBIT_PASSWORD=my_password
SERVICE_PASSWORD=my_password
SERVICE_TOKEN=my_password

I run nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 AND nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 but still not able to ping OR SSH to the instance. This never worked form me.. Plz provide some pointers..

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
novelkumar
Solved:
Last query:
Last reply:
Revision history for this message
novelkumar (novel-kumar) said :
#1

i fixed it.. Please close this