Using FlatManager, Cannot ping or ssh to the instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have setup nova on single machine.
1) created the br100 interface on the same machine (10.2.3.154)
a)brctl addbr br100
b)brctl addif br100 eth0
c) ifconfig br100 172.16.0.1 broadcast 172.16.0.255 netmask 255.255.255.0
2) Output of ifconfig command
-------
root@ubuntu-
br100 Link encap:Ethernet HWaddr b8:ac:6f:93:48:11
inet addr:172.16.0.1 Bcast:172.16.0.255 Mask:255.255.255.0
inet6 addr: fe80::baac:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:24916 (24.9 KB) TX bytes:368 (368.0 B)
eth0 Link encap:Ethernet HWaddr b8:ac:6f:93:48:11
inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::baac:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:620683 errors:0 dropped:0 overruns:0 frame:0
TX packets:39883 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:67866252 (67.8 MB) TX bytes:2569182 (2.5 MB)
eth1 Link encap:Ethernet HWaddr b8:ac:6f:93:48:12
inet addr:10.2.3.154 Bcast:10.2.3.255 Mask:255.255.255.0
inet6 addr: fe80::baac:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1279604 errors:0 dropped:0 overruns:0 frame:0
TX packets:681876 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:247677217 (247.6 MB) TX bytes:62583469 (62.5 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:209631 errors:0 dropped:0 overruns:0 frame:0
TX packets:209631 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:53337867 (53.3 MB) TX bytes:53337867 (53.3 MB)
vnet0 Link encap:Ethernet HWaddr fe:16:3e:4a:ad:02
inet6 addr: fe80::fc16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4332 (4.3 KB) TX bytes:6380 (6.3 KB)
-------
3) Create network using nova-manage
$/usr/
4) nova.conf
--daemonize=1
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--networks_
--sql_connectio
--scheduler_
--s3_host=
--cc_host=
--rabbit_
--ec2_url=http://
--network_
--fixed_
--network_size=32
--routing_
--verbose
--libvirt_type=kvm
--vlan_
--public_
--default_
--use_ipv6=False
--ec2_prefix=http
--ec2_host=
--ec2_port=8773
--ec2_suffix=
--allow_
5) Run a new instance
$euca-run-instances -k flat -n 1 -t m1.tiny ami-tty
6) New instance launched is in the running state
$root@ubuntu-
RESERVATION r-7m0lu20j admin default
INSTANCE i-00000005 ami-tty 172.16.0.5 172.16.0.5 running flat (admin, ubuntu-volume-01) 0 m1.tiny 2011-02-23 00:52:55 nova
7) Security groups
$root@ubuntu-
GROUP admin default default
PERMISSION admin default ALLOWS icmp -1 -1 FROM CIDR 0.0.0.0/0
PERMISSION admin default ALLOWS tcp 22 22 FROM CIDR 0.0.0.0/0
8) Iptables output
root@ubuntu-
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
nova-local all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
nova-local all -- 0.0.0.0/0 0.0.0.0/0
Chain nova-fallback (1 references)
target prot opt source destination
DROP all -- 0.0.0.0/0 0.0.0.0/0
Chain nova-inst-5 (1 references)
target prot opt source destination
DROP all -- 0.0.0.0/0 0.0.0.0/0 state INVALID
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
nova-sg-1 all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 172.16.0.1 0.0.0.0/0 udp spt:67 dpt:68
ACCEPT all -- 172.16.0.0/24 0.0.0.0/0
nova-fallback all -- 0.0.0.0/0 0.0.0.0/0
Chain nova-local (2 references)
target prot opt source destination
nova-inst-5 all -- 0.0.0.0/0 172.16.0.5
Chain nova-sg-1 (1 references)
target prot opt source destination
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
9) libvirt.xml
<domain type='kvm'>
<name>
<memory>
<os>
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<disk type='file'>
<driver type='qcow2'/>
<source file='/
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='br100'/>
<mac address=
<!-- <model type='virtio'/> CANT RUN virtio network right now -->
<parameter name="PROJMASK" value="
<!-- The order is significant here. File must be defined first -->
<serial type="file">
<source path='/
<target port='1'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>
:q!
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>
</devices>
</domain>
10) tcpdump output
root@ubuntu-
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br100, link-type EN10MB (Ethernet), capture size 96 bytes
17:13:09.119573 IP 0.0.0.0.bootpc > 255.255.
17:13:12.122724 IP 0.0.0.0.bootpc > 255.255.
17:13:15.125840 IP 0.0.0.0.bootpc > 255.255.
17:13:38.180931 IP 0.0.0.0.bootpc > 255.255.
17:13:41.184208 IP 0.0.0.0.bootpc > 255.255.
17:13:44.187426 IP 0.0.0.0.bootpc > 255.255.
I cannot ping or ssh to the instance after the instance is launched successfully using --network_
I feel that even if the network model is flat the vm instance is requesting ip address from dhcp instead of static ip address (/etcnetwork/
Changed in nova: | |
status: | New → Incomplete |
Generally networking does not work if you have an interface with an ip and a bridge bridged into that interface. You generally have to move the ip to the bridge. I'm not sure if that is causing your issue, but it might be.
On Feb 22, 2011, at 5:21 PM, Tushar Patil wrote:
> Public bug reported: ------- ------- ---- volume- 01:/home/ tpatil# ifconfig 6fff:fe93: 4811/64 Scope:Link 6fff:fe93: 4811/64 Scope:Link da000000- da012800 6fff:fe93: 4812/64 Scope:Link dc000000- dc012800 3eff:fe4a: ad02/64 Scope:Link ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------
>
> I have setup nova on single machine.
>
> 1) created the br100 interface on the same machine (10.2.3.154)
>
> a)brctl addbr br100
> b)brctl addif br100 eth0
> c) ifconfig br100 172.16.0.1 broadcast 172.16.0.255 netmask 255.255.255.0
>
> 2) Output of ifconfig command
> -------
> root@ubuntu-
> br100 Link encap:Ethernet HWaddr b8:ac:6f:93:48:11
> inet addr:172.16.0.1 Bcast:172.16.0.255 Mask:255.255.255.0
> inet6 addr: fe80::baac:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:138 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:24916 (24.9 KB) TX bytes:368 (368.0 B)
>
> eth0 Link encap:Ethernet HWaddr b8:ac:6f:93:48:11
> inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::baac:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:620683 errors:0 dropped:0 overruns:0 frame:0
> TX packets:39883 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:67866252 (67.8 MB) TX bytes:2569182 (2.5 MB)
> Interrupt:16 Memory:
>
> eth1 Link encap:Ethernet HWaddr b8:ac:6f:93:48:12
> inet addr:10.2.3.154 Bcast:10.2.3.255 Mask:255.255.255.0
> inet6 addr: fe80::baac:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1279604 errors:0 dropped:0 overruns:0 frame:0
> TX packets:681876 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:247677217 (247.6 MB) TX bytes:62583469 (62.5 MB)
> Interrupt:17 Memory:
>
> 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:209631 errors:0 dropped:0 overruns:0 frame:0
> TX packets:209631 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:53337867 (53.3 MB) TX bytes:53337867 (53.3 MB)
>
> vnet0 Link encap:Ethernet HWaddr fe:16:3e:4a:ad:02
> inet6 addr: fe80::fc16:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:18 errors:0 dropped:0 overruns:0 frame:0
> TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:4332 (4.3 KB) TX bytes:6380 (6.3 KB)
> -------
> 3) Create network using no...