Hi Geert,

Assuming you're using an Ubuntu instance, what do you see in the 
/var/lib/dhcp/dhclient.leases file? It may be named dhclient.ethX.leases. In 
there would be lease information provided by dnsmasq. Is the 'option routers' 
line there? It may also be helpful to see what dnsmasq is configured to send on 
the network node. You may want to restart neutron-dhcp-agent on the network 
node and see if that resolves it.


James



________________________________
From: Geert Willems <wille...@milieuinfo.be>
Sent: Wednesday, April 8, 2015 5:55 AM
To: openstack@lists.openstack.org
Subject: [Openstack] Neutron vxlan-setup: new instance does not get the correct 
network config

Hi,

I just got a manual install/conbfiguration of openstack Juno up and running 
under Ubuntu 14.04 as a POC.

POC-details:

  *   1 controller node
  *   1 network node
  *   1 compute node
  *   ceph-storage
  *   neutron vxlan-config

Here extra detailed info of what we have configured in neutron and nova:

root@controller:~# neutron net-list
+--------------------------------------+------------+-------------------------------------------------------+
| id                                   | name       | subnets                   
                            |
+--------------------------------------+------------+-------------------------------------------------------+
| f3091d1f-db16-4294-96ac-3ed1dd8d15f9 | ext-net    | 
95c8476b-167d-4e23-9fe1-3b0511775597 10.17.0.0/16     |
| e4c2d1a5-886b-47f0-9f40-c9bf4fce3d04 | goob-net   | 
2033252f-b19c-40ec-8845-81a48f99665d 10.19.0.0/16     |
| 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493 | test-net-1 | 
84d3757d-a1df-4af1-87d3-10d4834e80a2 192.168.100.0/24 |
+--------------------------------------+------------+-------------------------------------------------------+
root@controller:~# neutron net-show 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493 |
| name                      | test-net-1                           |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 8201                                 |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 84d3757d-a1df-4af1-87d3-10d4834e80a2 |
| tenant_id                 | a9fd57125a50463e866490caf820efdc     |
+---------------------------+--------------------------------------+
root@controller:~# neutron net-show f3091d1f-db16-4294-96ac-3ed1dd8d15f9
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | f3091d1f-db16-4294-96ac-3ed1dd8d15f9 |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 95c8476b-167d-4e23-9fe1-3b0511775597 |
| tenant_id                 | a9fd57125a50463e866490caf820efdc     |
+---------------------------+--------------------------------------+
root@controller:~# neutron subnet-list
+--------------------------------------+---------------+------------------+--------------------------------------------------------+
| id                                   | name          | cidr             | 
allocation_pools                                       |
+--------------------------------------+---------------+------------------+--------------------------------------------------------+
| 95c8476b-167d-4e23-9fe1-3b0511775597 | ext-subnet    | 10.17.0.0/16     | 
{"start": "10.17.1.1", "end": "10.17.255.254"}         |
| 2033252f-b19c-40ec-8845-81a48f99665d | goob-subnet   | 10.19.0.0/16     | 
{"start": "10.19.1.1", "end": "10.19.255.254"}         |
| 84d3757d-a1df-4af1-87d3-10d4834e80a2 | test-subnet-1 | 192.168.100.0/24 | 
{"start": "192.168.100.100", "end": "192.168.100.150"} |
+--------------------------------------+---------------+------------------+--------------------------------------------------------+
root@controller:~# neutron subnet-show 84d3757d-a1df-4af1-87d3-10d4834e80a2
+-------------------+--------------------------------------------------------+
| Field             | Value                                                  |
+-------------------+--------------------------------------------------------+
| allocation_pools  | {"start": "192.168.100.100", "end": "192.168.100.150"} |
| cidr              | 192.168.100.0/24                                       |
| dns_nameservers   | 10.17.0.2                                              |
| enable_dhcp       | True                                                   |
| gateway_ip        | 192.168.100.1                                          |
| host_routes       |                                                        |
| id                | 84d3757d-a1df-4af1-87d3-10d4834e80a2                   |
| ip_version        | 4                                                      |
| ipv6_address_mode |                                                        |
| ipv6_ra_mode      |                                                        |
| name              | test-subnet-1                                          |
| network_id        | 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493                   |
| tenant_id         | a9fd57125a50463e866490caf820efdc                       |
+-------------------+--------------------------------------------------------+
root@controller:~# nova list
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+
| ID                                   | Name        | Status | Task State | 
Power State | Networks                   |
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+
| 261ebe35-19bf-4f4f-8fdf-1548b5a94874 | test-node-1 | ACTIVE | -          | 
Running     | test-net-1=192.168.100.103 |
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+
root@controller:~# nova show 261ebe35-19bf-4f4f-8fdf-1548b5a94874
+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                  
                  |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                   
                  |
| OS-EXT-AZ:availability_zone          | nova                                   
                  |
| OS-EXT-SRV-ATTR:host                 | dc2-ch1-bl4                            
                  |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | dc2-ch1-bl4.cumuli.be                  
                  |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000001b                      
                  |
| OS-EXT-STS:power_state               | 1                                      
                  |
| OS-EXT-STS:task_state                | -                                      
                  |
| OS-EXT-STS:vm_state                  | active                                 
                  |
| OS-SRV-USG:launched_at               | 2015-04-08T09:35:45.000000             
                  |
| OS-SRV-USG:terminated_at             | -                                      
                  |
| accessIPv4                           |                                        
                  |
| accessIPv6                           |                                        
                  |
| config_drive                         |                                        
                  |
| created                              | 2015-04-08T09:34:57Z                   
                  |
| flavor                               | m1.small (2)                           
                  |
| hostId                               | 
6bfb7295f3afb27611d2c47f214325fa8231e26afa734b932b53b2d4 |
| id                                   | 261ebe35-19bf-4f4f-8fdf-1548b5a94874   
                  |
| image                                | Ubuntu_14.04-base 
(4b0497d4-b508-4249-8a2a-3b0376aa5aca) |
| key_name                             | -                                      
                  |
| metadata                             | {}                                     
                  |
| name                                 | test-node-1                            
                  |
| os-extended-volumes:volumes_attached | []                                     
                  |
| progress                             | 0                                      
                  |
| security_groups                      | default                                
                  |
| status                               | ACTIVE                                 
                  |
| tenant_id                            | a9fd57125a50463e866490caf820efdc       
                  |
| test-net-1 network                   | 192.168.100.103                        
                  |
| updated                              | 2015-04-08T09:35:46Z                   
                  |
| user_id                              | a89fb1a5f42c40159d50af3acc57349d       
                  |
+--------------------------------------+----------------------------------------------------------+

root@controller:~# neutron agent-list
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host        | 
alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+
| fe33fe6b-450d-4dbb-8224-c4561456ee39 | L3 agent           | dc2-ch1-bl5 | :-) 
  | True           | neutron-l3-agent          |
| 19d78778-31d4-47ac-a58a-b6ae84d53cf6 | Metadata agent     | dc2-ch1-bl5 | :-) 
  | True           | neutron-metadata-agent    |
| 8cdcf571-a04c-4b05-973a-997724b63e8c | Open vSwitch agent | dc2-ch1-bl5 | :-) 
  | True           | neutron-openvswitch-agent |
| 8593e080-0c41-4e3c-96d6-7d1848de552d | DHCP agent         | dc2-ch1-bl5 | :-) 
  | True           | neutron-dhcp-agent        |
| 04dd2466-63f2-4732-a9bf-f825d77e57f9 | Open vSwitch agent | dc2-ch1-bl4 | :-) 
  | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+
root@controller:~# neutron agent-show 8cdcf571-a04c-4b05-973a-997724b63e8c
+---------------------+--------------------------------------------+
| Field               | Value                                      |
+---------------------+--------------------------------------------+
| admin_state_up      | True                                       |
| agent_type          | Open vSwitch agent                         |
| alive               | True                                       |
| binary              | neutron-openvswitch-agent                  |
| configurations      | {                                          |
|                     |      "arp_responder_enabled": false,       |
|                     |      "tunneling_ip": "10.20.0.53",         |
|                     |      "devices": 3,                         |
|                     |      "l2_population": false,               |
|                     |      "tunnel_types": [                     |
|                     |           "vxlan"                          |
|                     |      ],                                    |
|                     |      "enable_distributed_routing": false,  |
|                     |      "bridge_mappings": {                  |
|                     |           "external": "br-ex",             |
|                     |           "goob": "br-goob"                |
|                     |      }                                     |
|                     | }                                          |
| created_at          | 2015-03-17 14:53:21.264050                 |
| description         |                                            |
| heartbeat_timestamp | 2015-04-08 10:22:51.524701                 |
| host                | dc2-ch1-bl5                                |
| id                  | 8cdcf571-a04c-4b05-973a-997724b63e8c       |
| started_at          | 2015-04-07 09:24:53.927501                 |
| topic               | N/A                                        |
+---------------------+--------------------------------------------+
root@dc2-kvm1:~# neutron agent-show 04dd2466-63f2-4732-a9bf-f825d77e57f9
+---------------------+--------------------------------------------+
| Field               | Value                                      |
+---------------------+--------------------------------------------+
| admin_state_up      | True                                       |
| agent_type          | Open vSwitch agent                         |
| alive               | True                                       |
| binary              | neutron-openvswitch-agent                  |
| configurations      | {                                          |
|                     |      "arp_responder_enabled": false,       |
|                     |      "tunneling_ip": "10.20.0.52",         |
|                     |      "devices": 1,                         |
|                     |      "l2_population": false,               |
|                     |      "tunnel_types": [                     |
|                     |           "vxlan"                          |
|                     |      ],                                    |
|                     |      "enable_distributed_routing": false,  |
|                     |      "bridge_mappings": {}                 |
|                     | }                                          |
| created_at          | 2015-03-18 08:00:45.637023                 |
| description         |                                            |
| heartbeat_timestamp | 2015-04-08 10:48:32.826381                 |
| host                | dc2-ch1-bl4                                |
| id                  | 04dd2466-63f2-4732-a9bf-f825d77e57f9       |
| started_at          | 2015-04-08 09:33:37.871259                 |
| topic               | N/A                                        |
+---------------------+--------------------------------------------+


The problem with our instance is that it does not get the default gateway 
configured correctly.

During startup of the instance I could see following messages:

[X]

[X]

When I manually add the default router 192.168.100.1, it all seems to work 
well, but I wonder why this is not the case during boot by dhcp.


Regards,

Willemgf
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to