Ask Your Question
0

VM doesn't get IP with Neutron (icehouse, centos 6.5)

asked 2014-09-22 12:31:30 -0600

Iván Sixto gravatar image

updated 2014-09-24 09:21:28 -0600

Hi, I've got this network design on a fresh installation ( http://oi60.tinypic.com/2cglw2c.jpg ).

PROBLEM WHEN I LAUNCH AN INSTANCE (doesn't get IP on external network):

Starting acpid: OK
cirros-ds 'local' up at 1.00
no results found for mode=local. up 1.07. searched: nocloud configdrive ec2
Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cirros-ds 'net' up at 181.28
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 181.29. request failed
failed 2/20: up 183.44. request failed
failed 3/20: up 185.45. request failed
failed 4/20: up 187.46. request failed
failed 5/20: up 189.47. request failed
failed 6/20: up 191.48. request failed
failed 7/20: up 193.49. request failed
failed 8/20: up 195.50. request failed
failed 9/20: up 197.51. request failed
failed 10/20: up 199.52. request failed
failed 11/20: up 201.53. request failed
failed 12/20: up 203.54. request failed
failed 13/20: up 205.55. request failed
failed 14/20: up 207.56. request failed
failed 15/20: up 209.57. request failed
failed 16/20: up 211.58. request failed
failed 17/20: up 213.59. request failed
failed 18/20: up 215.60. request failed
failed 19/20: up 217.61. request failed
failed 20/20: up 219.61. request failed
failed to read iid from metadata. tried 20
no results found for mode=net. up 221.62. searched: nocloud configdrive ec2
failed to get instance-id of datasource

CONTROLLER NODE:

eth0 (external)

DEVICE="eth0"
BOOTPROTO="static"
IPADDR=10.51.1.226
NETMASK=255.255.255.0
GATEWAY=10.51.1.1
ONBOOT="yes"
TYPE="Ethernet"
DEFROUTE=yes
NAME="System eth0"

eth1 (management)

DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO="static"
IPADDR=192.168.10.2
PREFIX=24
DEFROUTE=no
NAME="System eth1"
DNS1=10.51.1.1

NETWORK NODE:

eth0 (external)

DEVICE=eth0
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE=br-ex
NM_CONTROLLED=no
IPV6INIT=no

eth1 (management)

DEVICE="eth1"
ONBOOT="yes"
IPADDR=192.168.10.3
PREFIX=24
NAME=Interna

eth1:0 (tunnel)

DEVICE="eth1:0"
ONBOOT="yes"
IPADDR=192.168.11.3
PREFIX=24
NAME=Tunel

br-ex

DEVICE="br-ex"
BOOTPROTO="static"
IPADDR="10.51.1.218"
NETMASK="255.255.255.0"
DNS1="8.8.8.8"
BROADCAST="10.51.1.255"
GATEWAY="10.51.1.1"
NM_CONTROLLED="no"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no
ONBOOT="yes"
TYPE="OVSBridge"
DEVICETYPE="ovs"

ovs-vsctl show

9bae8809-e0a1-4e64-b5dd-203e83945574
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qr-6e233dc7-40"
            tag: 1
            Interface "qr-6e233dc7-40"
                type: internal
    Bridge br-tun
        Port br-tun
            Interface br-tun
                type: internal
        Port "gre-c0a80b04"
            Interface "gre-c0a80b04"
                type: gre
                options: {in_key=flow, local_ip="192.168.11.3", out_key=flow, remote_ip="192.168.11.4"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-ex
        Port "eth0 ...
(more)
edit retag flag offensive close merge delete

Comments

Troubleshoot nova-metadata server access per http://bderzhavets.blogspot.com/2014/...
Verify *.ini && *.conf files per https://kashyapc.fedorapeople.org/vir...

dbaxps gravatar imagedbaxps ( 2014-09-22 13:11:43 -0600 )edit

Just for clear my mind (and sorry if is a stupid question), but...

If I can get a IP on a virtual network and ping external network from there... It makes sense and error on config files? I mean, tunnel is working fine, right? If I am able to ping external network from virtual network?

Iván Sixto gravatar imageIván Sixto ( 2014-09-22 13:26:29 -0600 )edit

Yes, can you (from within VM)
$ curl lxer.com

dbaxps gravatar imagedbaxps ( 2014-09-22 13:39:12 -0600 )edit

From VM, ping to lxer.com : perfect thanks to DNS added in subnet definition.

Iván Sixto gravatar imageIván Sixto ( 2014-09-22 13:45:29 -0600 )edit

$ curl lxer.com ( not only ping)

dbaxps gravatar imagedbaxps ( 2014-09-22 13:47:31 -0600 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2014-09-24 23:25:17 -0600

makton gravatar image

updated 2014-09-24 23:26:41 -0600

I went through this with my setup and found a strange issue. This issue made me sensitive to what I expect to see in the br-int.

First. your DHCP service is not within your br-int and not tagged with the VLAN id of which your instance's router is at. May I please see your dhcp_agnet.conf, as the interface for your dhcp service isn't even showing on your vswitch. My guess is that you do not have the dhcp agent configured.

Second, I found it easier to use the dashboard for assigning a floating ip, but you can auto assign a floating IP when an instance is created by setting "auto_assign_floating_ip=True" in the nova.conf. You sill need the dhcp agent configured.

Hope this helps.

edit flag offensive delete link more
0

answered 2014-09-22 23:53:26 -0600

dbaxps gravatar image

updated 2014-09-24 04:08:08 -0600

Controller :-

[root@icehouse1 ~]# cat /etc/nova/nova.conf | grep -v ^$ | grep -v ^#|grep metadata
enabled_apis=ec2,osapi_compute,metadata
metadata_listen=0.0.0.0
metadata_listen_port=8775
metadata_workers=2
service_neutron_metadata_proxy=True
neutron_metadata_proxy_shared_secret=227f7bbc8b6f4f74
metadata_host=192.168.1.127

Neutron Server :-

[root@icehouse1 ~]# cat  /etc/neutron/l3_agent.ini | grep -v ^# | grep -v ^$
[DEFAULT]
debug = False
interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver
use_namespaces = True
handle_internal_only_routers = True
external_network_bridge = br-ex
metadata_port = 9697
send_arp_for_ha = 3
periodic_interval = 40
periodic_fuzzy_delay = 5
enable_metadata_proxy = True
router_delete_namespaces = False

[root@icehouse1 ~]# cat  /etc/neutron/metadata_agent.ini | grep -v ^# | grep -v ^$
[DEFAULT]
debug = False
auth_url = http://192.168.1.127:35357/v2.0
auth_region = RegionOne
auth_insecure = False
admin_tenant_name = services
admin_user = neutron
admin_password = 5f11f559abc94440
nova_metadata_ip = 192.168.1.127
nova_metadata_port = 8775
metadata_proxy_shared_secret =227f7bbc8b6f4f74
metadata_workers = 0

You wrote :-

EDIT: Maybe a DHCP problem with external network? I've tested creating a network for a tenant and a router to permit access to external network devices. Cirros VM gets IP on that network and even ping to those devices works as expected. Problem? I think there is a problem with the dhcp server on network 10.51.1.0/24. Possible? Or maybe neutron config problem?

If you assign floating IP to CirrOS VM via DHCP mode activated on external network , that is a mistake. View http://textuploader.com/1hey section "Boot an instance and attach Floating IP"
You may also view official instruction http://docs.openstack.org/user-guide/...

edit flag offensive delete link more

Comments

Sorry, but for "Neutron Server" do you mean Network Node or Controller node (running neutron-server service)?

Iván Sixto gravatar imageIván Sixto ( 2014-09-23 10:46:26 -0600 )edit

I mean "Network Node"

dbaxps gravatar imagedbaxps ( 2014-09-23 11:04:27 -0600 )edit

Same result... :S

Iván Sixto gravatar imageIván Sixto ( 2014-09-23 14:42:44 -0600 )edit

Are you running QPIDD or RABBITMQ ?

dbaxps gravatar imagedbaxps ( 2014-09-23 23:19:49 -0600 )edit

Could you explain "DHCPREQUEST on eth0 to 10.51.1.1 port 67" on Compute Node. Should be static IP.

dbaxps gravatar imagedbaxps ( 2014-09-23 23:47:40 -0600 )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: 2014-09-22 12:31:30 -0600

Seen: 2,171 times

Last updated: Sep 24 '14