[Openstack] Internet access lost after launching instance
John Smith
lbalbalba at gmail.com
Sat Nov 30 13:55:53 UTC 2013
Hi,
Im trying out devstack in a single vm, and am running into a network
connectivity issue. After I launch an instance, I can successfully
connect to it from the host running devstack.
However, I have lost my internet access from the host running devstack
at this point. Im sure this has to do with me not understanding the
network config fully (of both openstack and the linux os), but I would
be grateful if people would be willing to help me out here.
I have listed what I think are the relevant config settings below.
Thanks.
Regards,
John Smith
--------------------------------------------------
$ cat localrc
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=tokentoken
RECLONE=yes
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
HOST_IP_IFACE=p3p1
PUBLIC_INTERFACE=p3p1
VLAN_INTERFACE=p3p1
FLAT_INTERFACE=p3p1
HOST_IP=192.168.126.142
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
$ nova show myvm
+--------------------------------------+----------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL
|
| OS-EXT-AZ:availability_zone | nova
|
| OS-EXT-SRV-ATTR:host | localhost.localdomain
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | localhost.localdomain
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000001
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-STS:task_state | None
|
| OS-EXT-STS:vm_state | active
|
| OS-SRV-USG:launched_at | 2013-11-30T13:19:27.000000
|
| OS-SRV-USG:terminated_at | None
|
| accessIPv4 |
|
| accessIPv6 |
|
| config_drive |
|
| created | 2013-11-30T13:18:05Z
|
| flavor | m1.nano (42)
|
| hostId |
d1ebe74ccee540605fd901ddda658777655079a4b46f556de0cb51d0 |
| id |
23137912-4e9d-4767-91f6-eda2a12be356 |
| image | cirros-0.3.0-i386
(6c539300-7838-4acd-b66e-70f85f4489ac) |
| key_name | None
|
| metadata | {}
|
| name | myvm
|
| os-extended-volumes:volumes_attached | []
|
| private network | 10.4.128.2
|
| progress | 0
|
| security_groups | default
|
| status | ACTIVE
|
| tenant_id |
d6830ec1b5a24ff7849719ba0a583232 |
| updated | 2013-11-30T13:19:27Z
|
| user_id |
9f2a776df6d3463b89fc5edac4d403c4 |
+--------------------------------------+----------------------------------------------------------+
$ ifconfig -a
br100: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.4.128.1 netmask 255.255.240.0 broadcast 10.4.143.255
inet6 fe80::b003:91ff:fec1:38b5 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:6e:32:be txqueuelen 0 (Ethernet)
RX packets 390 bytes 29771 (29.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 330 bytes 68098 (66.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 52270 bytes 67067386 (63.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52270 bytes 67067386 (63.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p3p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.126.142 netmask 255.255.255.0 broadcast 192.168.126.255
inet6 fe80::20c:29ff:fe6e:32be prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:6e:32:be txqueuelen 1000 (Ethernet)
RX packets 16934 bytes 7058149 (6.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25449 bytes 3835923 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19 base 0x2000
vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc16:3eff:fe99:a5f7 prefixlen 64 scopeid 0x20<link>
ether fe:16:3e:99:a5:f7 txqueuelen 500 (Ethernet)
RX packets 49 bytes 5729 (5.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 185 bytes 26248 (25.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.126.2 0.0.0.0 UG 0 0 0 p3p1
10.4.128.0 0.0.0.0 255.255.240.0 U 0 0 0 br100
192.168.126.0 0.0.0.0 255.255.255.0 U 0 0 0 br100
192.168.126.0 0.0.0.0 255.255.255.0 U 0 0 0 p3p1
$ ping www.google.com
PING www.google.com (173.194.78.147) 56(84) bytes of data.
>From localhost.localdomain (192.168.126.142) icmp_seq=1 Destination
Host Unreachable
>From localhost.localdomain (192.168.126.142) icmp_seq=2 Destination
Host Unreachable
>From localhost.localdomain (192.168.126.142) icmp_seq=3 Destination
Host Unreachable
More information about the Openstack
mailing list