Problems with VM network
Hi everyone.
I have issues with networking of the instances. I'm running openstack (nova, glance, dashbord) in a single server configuration.
I used https:/
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
My nova config:
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--lock_
--verbose
--s3_host=
--rabbit_
--cc_host=
--ec2_url=http://
--fixed_
--network_size=256
--FAKE_
--routing_
--verbose
--sql_connectio
--network_
--flat_
--flat_
--flat_
--glance_
--image_
Revision history for this message
|
#2 |
ifconfig
br100 Link encap:Ethernet HWaddr 00:22:4d:47:ce:ea
inet addr:172.16.132.1 Bcast:172.16.132.7 Mask:255.
inet6 addr: fe80::d43a:
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1382929 errors:0 dropped:0 overruns:0 frame:0
TX packets:13982 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:116072818 (116.0 MB) TX bytes:5473461 (5.4 MB)
eth0 Link encap:Ethernet HWaddr 00:22:4d:47:ce:ea
inet6 addr: fe80::222:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1508516 errors:0 dropped:0 overruns:0 frame:0
TX packets:24849 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:148791419 (148.7 MB) TX bytes:8636826 (8.6 MB)
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:87104826 errors:0 dropped:0 overruns:0 frame:0
TX packets:87104826 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:7048356308 (7.0 GB) TX bytes:7048356308 (7.0 GB)
virbr0 Link encap:Ethernet HWaddr 56:df:01:7e:ff:f3
inet addr:192.168.122.1 Bcast:192.
UP BROADCAST RUNNING 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
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vnet0 Link encap:Ethernet HWaddr fe:16:3e:20:db:ce
inet6 addr: fe80::fc16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:378 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:52617 (52.6 KB)
Revision history for this message
|
#3 |
iptables-save
# Generated by iptables-save v1.4.10 on Mon May 16 14:15:37 2011
*nat
:PREROUTING ACCEPT [204:30221]
:INPUT ACCEPT [7:629]
:OUTPUT ACCEPT [42:2568]
:POSTROUTING ACCEPT [212:28741]
:nova-compute-
:nova-compute-
:nova-compute-
:nova-compute-
:nova-compute-snat - [0:0]
:nova-network-
:nova-network-
:nova-network-
:nova-network-
:nova-network-snat - [0:0]
:nova-postrouti
-A PREROUTING -j nova-compute-
-A PREROUTING -j nova-network-
-A OUTPUT -j nova-compute-OUTPUT
-A OUTPUT -j nova-network-OUTPUT
-A POSTROUTING -j nova-compute-
-A POSTROUTING -j nova-network-
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p udp -j MASQUERADE --to-ports 1024-65535
-A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE
-A POSTROUTING -j nova-postroutin
-A nova-compute-snat -j nova-compute-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-snat -j nova-network-
-A nova-network-snat -s 172.16.0.0/12 -j SNAT --to-source 192.168.160.28
-A nova-postroutin
-A nova-postroutin
COMMIT
# Completed on Mon May 16 14:15:37 2011
# Generated by iptables-save v1.4.10 on Mon May 16 14:15:37 2011
*mangle
:PREROUTING ACCEPT [978747:84150720]
:INPUT ACCEPT [977235:83915622]
:FORWARD ACCEPT [10843:1610293]
:OUTPUT ACCEPT [973316:84473312]
:POSTROUTING ACCEPT [984159:86083605]
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed on Mon May 16 14:15:37 2011
# Generated by iptables-save v1.4.10 on Mon May 16 14:15:37 2011
*filter
:INPUT ACCEPT [51922:4567636]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [51702:4640910]
:nova-compute-
:nova-compute-INPUT - [0:0]
:nova-compute-
:nova-compute-
:nova-compute-local - [0:0]
:nova-compute-
:nova-filter-top - [0:0]
:nova-network-
:nova-network-INPUT - [0:0]
:nova-network-
:nova-network-local - [0:0]
-A INPUT -j nova-compute-INPUT
-A INPUT -j nova-network-INPUT
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A FORWARD -j nova-filter-top
-A FORWARD -j nova-compute-
-A FORWARD -j nova-network-
-A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT
-A FORWARD -i virbr0 -o virbr0 -j ACCEPT
-A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-
-A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-
-A OUTPUT -j nova-filter-top
-A OUTPUT -j nova-compute-OUTPUT
-A OUTPUT -j nova-network-OUTPUT
-A nova-compute-
-A nova-compute-
-A nova-compute-
-A nova-compute-
-A nova-compute-
-A nova-compute-
-A nova-compute-
-A nova-compute-local -d 172.16.132.2/32 -j nova-compute-
-A nova-compute-
-A nova-filter-top -j nova-compute-local
-A nova-filter-top -j nova-network-local
-A nova-network-
-A nova-network-
COMMIT
# Completed on Mon May 16 14:15:37 2011
Revision history for this message
|
#4 |
(on eof instances log)
2011-05-16 14:12:34.039: starting up
LC_ALL=C PATH=/usr/
char device redirected to /dev/pts/2
Read failed
Revision history for this message
|
#5 |
/var/lib/
Revision history for this message
|
#6 |
euca-describe-
RESERVATION r-hrngqdk8 OMF2 default
INSTANCE i-0000000e ami-00000001 172.16.132.4 172.16.132.4 running key2011 (OMF2, U114S) 0 m1.tiny 2011-05-
RESERVATION r-qpogpp27 OMF2 default
INSTANCE i-0000000f ami-00000001 172.16.132.2 172.16.132.2 running key2011 (OMF2, U114S) 0 m1.tiny 2011-05-
Revision history for this message
|
#7 |
ping 172.16.132.4
PING 172.16.132.4 (172.16.132.4) 56(84) bytes of data.
From 172.16.132.1 icmp_seq=1 Destination Host Unreachable
From 172.16.132.1 icmp_seq=2 Destination Host Unreachable
From 172.16.132.1 icmp_seq=3 Destination Host Unreachable
From 172.16.132.1 icmp_seq=5 Destination Host Unreachable
From 172.16.132.1 icmp_seq=6 Destination Host Unreachable
From 172.16.132.1 icmp_seq=7 Destination Host Unreachable
From 172.16.132.1 icmp_seq=8 Destination Host Unreachable
From 172.16.132.1 icmp_seq=9 Destination Host Unreachable
ssh 172.16.132.4
ssh: connect to host 172.16.132.4 port 22: No route to host
Revision history for this message
|
#8 |
cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.160.28
netmask 255.255.255.0
network 192.168.160.0
broadcast 192.168.160.255
gateway 192.168.160.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 192.168.2.3
dns-search ddns.myserver.com
Revision history for this message
|
#9 |
euca-describe-group
GROUP OMF default default
PERMISSION OMF default ALLOWS icmp -1 -1 FROM CIDR 0.0.0.0/0
PERMISSION OMF default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0
Revision history for this message
|
#10 |
ps aux|grep -i dnsmasq
nobody 31985 0.0 0.0 23184 1144 ? S 14:26 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=
root 31986 0.0 0.0 23052 408 ? S 14:26 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=
Revision history for this message
|
#11 |
Your DHCP start ends in .10 but nova is assigning .2+ You will probably have to either switch the start address to .2 or edit the database and set reserved=1 for .2 - .9 so nova doesn't give them out.
Vish
On May 16, 2011, at 8:41 AM, Nickolas Olazabal wrote:
> Question #157719 on OpenStack Compute (nova) changed:
> https:/
>
> Nickolas Olazabal gave more information on the question:
> ps aux|grep -i dnsmasq
>
> nobody 31985 0.0 0.0 23184 1144 ? S 14:26 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=
> root 31986 0.0 0.0 23052 408 ? S 14:26 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).
Can you help with this problem?
Provide an answer of your own, or ask Nickolas Olazabal for more information if necessary.