← Back to team overview

openstack team mailing list archive

Re: Allocating dynamic IP to the VMs

 

Hello Sylvain,

I am sorry I got caught up with another project in the past few weeks,
hence my late reply. Please bare with me.

The floating ip is bound to the qg-550803ee-ce bridge.

root@controller:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
    link/ether d4:ae:52:bb:aa:20 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.225/24 brd 192.168.2.255 scope global eth0
    inet6 fe80::d6ae:52ff:febb:aa20/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen
1000
    link/ether d4:ae:52:bb:aa:21 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.1/24 brd 10.10.10.255 scope global eth1
    inet6 fe80::d6ae:52ff:febb:aa21/64 scope link
       valid_lft forever preferred_lft forever
 31: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether e6:fe:c6:5e:73:47 brd ff:ff:ff:ff:ff:ff
32: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UNKNOWN
    link/ether f6:26:0f:0d:32:45 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f426:fff:fe0d:3245/64 scope link
       valid_lft forever preferred_lft forever
33: tapd648cfe0-f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN
    link/ether fa:16:3e:9a:2c:29 brd ff:ff:ff:ff:ff:ff
    inet 10.5.5.2/24 brd 10.5.5.255 scope global tapd648cfe0-f6
    inet6 fe80::f816:3eff:fe9a:2c29/64 scope link
       valid_lft forever preferred_lft forever
34: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 5e:2b:f9:ca:c6:40 brd ff:ff:ff:ff:ff:ff
35: qr-9e818b07-92: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN
    link/ether fa:16:3e:01:48:1d brd ff:ff:ff:ff:ff:ff
    inet 10.5.5.1/24 brd 10.5.5.255 scope global qr-9e818b07-92
    inet6 fe80::f816:3eff:fe01:481d/64 scope link
       valid_lft forever preferred_lft forever
36: qg-550803ee-ce: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN
    link/ether fa:16:3e:fc:87:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.151/24 brd 192.168.2.255 scope global qg-550803ee-ce
    inet 192.168.2.152/32 brd 192.168.2.152 scope global qg-550803ee-ce
    inet6 fe80::f816:3eff:fefc:871c/64 scope link
       valid_lft forever preferred_lft forever

But I can not ping the floating ip.

root@controller:~# quantum net-list -- --router:external True
+-------------------------------------------------------------+----------+-----------------------------------------------------------+
| id                                                          | name   |
 subnets                                               |
+------------------------------------------------------------+-----------+-----------------------------------------------------------+
| a83c3409-6c79-4bb7-9557-010f3b56024f  | ext_net |
fb3439f4-2afa-4cdc-86a6-aaee2ce1a3a3  |
+------------------------------------------------------------+-----------+-----------------------------------------------------------+

root@controller:~# quantum floatingip-list
+-----------------------------------------------------------+--------------------------+----------------------------+------------------------------------------------------------+
| id                                                          |
fixed_ip_address | floating_ip_address | port_id
                       |
+------------------------------------------------------------+-------------------------+----------------------------+------------------------------------------------------------+
| 46311a66-5793-43af-be74-612580e505ca | 10.5.5.3              |
192.168.2.152       | 529f6c56-8037-489a-a120-b97675d1745f  |
+----------------------------------------------------------
-+-------------------------+----------------------------+------------------------------------------------------------+

Any idea?


On 25 March 2013 16:09, Sylvain Bauza <sylvain.bauza@xxxxxxxxxxxx> wrote:

>  Le 25/03/2013 16:00, Chathura M. Sarathchandra Magurawalage a écrit :
>
>
> I can not see anything going through qg-XXXX interface.
>
>
> Your iptables seem correct.
> Could you please "ip a" and make sure floating ip is bound to qg-XXXX ?
>
> Are you sure that floating IPs are working properly on your setup ?
>
> -Sylvain
>

Follow ups

References