Ask Your Question
0

CirrOS is not assigned floating ip

asked 2015-05-14 17:53:34 -0500

lhinds gravatar image

updated 2015-07-16 03:51:28 -0500

So I have an install of Juno deployed using packstack.

I have configured my primary interface and br-ex

[root@cube network-scripts]# cat ifcfg-br-ex 
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.0.11
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
DNS1=192.168.0.1
ONBOOT=yes

[root@cube network-scripts]# cat ifcfg-eno1 
HWADDR=D0:BF:9C:45:FB:DC
NAME=eno1
TYPE=OVSPort
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes
UUID=cf6edbc8-92b9-435a-ac55-b84d256375fc

I have a private and a public network

[root@cube network-scripts]# ovs-vsctl show
90353069-b3c5-40ad-a5f5-1d6c93372e9e
    Bridge br-tun
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-int
        fail_mode: secure
        Port "tap459a8de1-c0"
            tag: 1
            Interface "tap459a8de1-c0"
                type: internal
        Port "qvo836c03c5-26"
            tag: 4
            Interface "qvo836c03c5-26"
        Port br-int
            Interface br-int
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
    Bridge br-ex
        Port "eno1"
            Interface "eno1"
        Port br-ex
            Interface br-ex
                type: internal
    ovs_version: "2.1.3"

I created a public network / router

neutron net-create public -- --router:external=True

neutron subnet-create --name public_subnet --enable_dhcp=False --allocation-pool=start=192.168.0.202,end=192.168.0.220 --gateway=192.168.0.1 public 192.168.0.0/24

networks

Started an instance of cirrus with a floating IP assigned:

cirrus topology

runnning with a floating IP

When I then login to the console, I can see that no address has been assigned to the instance. I also cannot ping or ssh to that instance (a security group is assigned)

console

edit retag flag offensive close merge delete

Comments

Connect the vm to the private network,then tail /var/log/messages when the system is booting to see if the dhcp agent is requesting an IP address. If you don't see it in the logs requesting an IP then some is wrong with your network.

foster gravatar imagefoster ( 2015-05-16 06:06:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-15 08:53:12 -0500

rahuk gravatar image

You will never see the floating-IP in the instance only the OS-local-IP (192.168.0.208) because, the L3 is NATting the floating-IP to the OS-Local-IP

I believe anything is wrong with your Network Configuration... (br-ext, bridgeing ... ?!)

Set "use_ipv6 = False" in your /etc/nova/nova.conf if you want only IPv4

Your cirros VM get a IPv6 i find this confused me :)

regards rahuk

edit flag offensive delete link more

Comments

I have no idea why its getting an ipv6 addr. I do have false set in nova.conf

This is on kilo and I am close to giving up, seems like its very unstable.

lhinds gravatar imagelhinds ( 2015-05-17 15:55:50 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-14 17:53:34 -0500

Seen: 1,645 times

Last updated: Jul 15 '15