<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>James,<br><br>I find out that our self-created Ubuntu-image was the cause of this issue.<br>Trying out a cloud-image downloaded from Ubuntu, the instance came up as expected.<br><div><span name="x"></span><br>Mvrgr.,<br><br>Geert Willems<br>Systeembeheerder<br>     <br>Vlaamse Overheid<br>DEPARTEMENT LEEFMILIEU, NATUUR & ENERGIE<br>Afdeling Centraal Databeheer<br>T 02 553 11 58<br>geert.willems@milieuinfo.be<br>Koning Albert II-laan 20 bus 8, 1000 Brussel<br>www.lne.be<span name="x"></span><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Geert Willems" <willemgf@milieuinfo.be><br><b>To: </b>"James Denton" <james.denton@rackspace.com><br><b>Cc: </b>openstack@lists.openstack.org<br><b>Sent: </b>Thursday, April 9, 2015 8:15:59 AM<br><b>Subject: </b>Re: [Openstack] Neutron vxlan-setup: new instance does not get the        correct network config<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: #000000">Hi James,<br><br>Thanks your feedback.<br>Indeed, our instance is running Ubuntu.<br>The /var/lib/dhcp/dhclient.eth0.leases file has the option routers line, containing the default GW of our subnet.<br><br>Regarding the dnsmasq-config, I guess you mean the config in /etc/neutron/dhcp_agent.ini file.<br>It contains following active configuration as described in the installation documentation (http://docs.openstack.org/juno/install-guide/install/apt/content/neutron-network-node.html):<br><blockquote>[DEFAULT]<br>verbose = True<br>interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver<br>dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq<br>use_namespaces = True<br>dhcp_delete_namespaces = True<br></blockquote><div>Mvrgr., Kinds regards,<br><br>Geert Willems<br>Systeembeheerder<br>     <br>Vlaamse Overheid<br>DEPARTEMENT LEEFMILIEU, NATUUR & ENERGIE<br>Afdeling Centraal Databeheer<br>T 02 553 11 58<br>geert.willems@milieuinfo.be<br>Koning Albert II-laan 20 bus 8, 1000 Brussel<br>www.lne.be<span></span><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"James Denton" <james.denton@rackspace.com><br><b>To: </b>"Geert Willems" <willemgf@milieuinfo.be>, openstack@lists.openstack.org<br><b>Sent: </b>Thursday, April 9, 2015 1:11:49 AM<br><b>Subject: </b>Re: [Openstack] Neutron vxlan-setup: new instance does not get the        correct network config<br><br>


<style style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin:0}--></style>


<p>Hi Geert,</p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>James<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Geert Willems <willemgf@milieuinfo.be><br>
<b>Sent:</b> Wednesday, April 8, 2015 5:55 AM<br>
<b>To:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> [Openstack] Neutron vxlan-setup: new instance does not get the correct network config</font>
<div> </div>
</div>
<div>
<div style="font-family:Times New Roman; font-size:12pt; color:#000000">Hi,<br>
<br>
I just got a manual install/conbfiguration of openstack Juno up and running under Ubuntu 14.04 as a POC.<br>
<br>
POC-details:<br>
<ul>
<li>1 controller node</li><li>1 network node</li><li>1 compute node</li><li>ceph-storage</li><li>neutron vxlan-config</li></ul>
Here extra detailed info of what we have configured in neutron and nova:<br>
<br>
<font face="courier new, courier, monaco, monospace, sans-serif" size="2">root@controller:~# neutron net-list<br>
+--------------------------------------+------------+-------------------------------------------------------+<br>
| id                                   | name       | subnets                                               |<br>
+--------------------------------------+------------+-------------------------------------------------------+<br>
| f3091d1f-db16-4294-96ac-3ed1dd8d15f9 | ext-net    | 95c8476b-167d-4e23-9fe1-3b0511775597 10.17.0.0/16     |<br>
| e4c2d1a5-886b-47f0-9f40-c9bf4fce3d04 | goob-net   | 2033252f-b19c-40ec-8845-81a48f99665d 10.19.0.0/16     |<br>
| 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493 | test-net-1 | 84d3757d-a1df-4af1-87d3-10d4834e80a2 192.168.100.0/24 |<br>
+--------------------------------------+------------+-------------------------------------------------------+<br>
root@controller:~# neutron net-show 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493<br>
+---------------------------+--------------------------------------+<br>
| Field                     | Value                                |<br>
+---------------------------+--------------------------------------+<br>
| admin_state_up            | True                                 |<br>
| id                        | 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493 |<br>
| name                      | test-net-1                           |<br>
| provider:network_type     | vxlan                                |<br>
| provider:physical_network |                                      |<br>
| provider:segmentation_id  | 8201                                 |<br>
| router:external           | False                                |<br>
| shared                    | False                                |<br>
| status                    | ACTIVE                               |<br>
| subnets                   | 84d3757d-a1df-4af1-87d3-10d4834e80a2 |<br>
| tenant_id                 | a9fd57125a50463e866490caf820efdc     |<br>
+---------------------------+--------------------------------------+<br>
root@controller:~# neutron net-show f3091d1f-db16-4294-96ac-3ed1dd8d15f9<br>
+---------------------------+--------------------------------------+<br>
| Field                     | Value                                |<br>
+---------------------------+--------------------------------------+<br>
| admin_state_up            | True                                 |<br>
| id                        | f3091d1f-db16-4294-96ac-3ed1dd8d15f9 |<br>
| name                      | ext-net                              |<br>
| provider:network_type     | flat                                 |<br>
| provider:physical_network | external                             |<br>
| provider:segmentation_id  |                                      |<br>
| router:external           | True                                 |<br>
| shared                    | True                                 |<br>
| status                    | ACTIVE                               |<br>
| subnets                   | 95c8476b-167d-4e23-9fe1-3b0511775597 |<br>
| tenant_id                 | a9fd57125a50463e866490caf820efdc     |<br>
+---------------------------+--------------------------------------+<br>
root@controller:~# neutron subnet-list<br>
+--------------------------------------+---------------+------------------+--------------------------------------------------------+<br>
| id                                   | name          | cidr             | allocation_pools                                       |<br>
+--------------------------------------+---------------+------------------+--------------------------------------------------------+<br>
| 95c8476b-167d-4e23-9fe1-3b0511775597 | ext-subnet    | 10.17.0.0/16     | {"start": "10.17.1.1", "end": "10.17.255.254"}         |<br>
| 2033252f-b19c-40ec-8845-81a48f99665d | goob-subnet   | 10.19.0.0/16     | {"start": "10.19.1.1", "end": "10.19.255.254"}         |<br>
| 84d3757d-a1df-4af1-87d3-10d4834e80a2 | test-subnet-1 | 192.168.100.0/24 | {"start": "192.168.100.100", "end": "192.168.100.150"} |<br>
+--------------------------------------+---------------+------------------+--------------------------------------------------------+<br>
root@controller:~# neutron subnet-show 84d3757d-a1df-4af1-87d3-10d4834e80a2<br>
+-------------------+--------------------------------------------------------+<br>
| Field             | Value                                                  |<br>
+-------------------+--------------------------------------------------------+<br>
| allocation_pools  | {"start": "192.168.100.100", "end": "192.168.100.150"} |<br>
| cidr              | 192.168.100.0/24                                       |<br>
| dns_nameservers   | 10.17.0.2                                              |<br>
| enable_dhcp       | True                                                   |<br>
| gateway_ip        | 192.168.100.1                                          |<br>
| host_routes       |                                                        |<br>
| id                | 84d3757d-a1df-4af1-87d3-10d4834e80a2                   |<br>
| ip_version        | 4                                                      |<br>
| ipv6_address_mode |                                                        |<br>
| ipv6_ra_mode      |                                                        |<br>
| name              | test-subnet-1                                          |<br>
| network_id        | 91e11a9a-2b89-4ccc-ba77-ca8a2a2e4493                   |<br>
| tenant_id         | a9fd57125a50463e866490caf820efdc                       |<br>
+-------------------+--------------------------------------------------------+<br>
root@controller:~# nova list<br>
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+<br>
| ID                                   | Name        | Status | Task State | Power State | Networks                   |<br>
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+<br>
| 261ebe35-19bf-4f4f-8fdf-1548b5a94874 | test-node-1 | ACTIVE | -          | Running     | test-net-1=192.168.100.103 |<br>
+--------------------------------------+-------------+--------+------------+-------------+----------------------------+<br>
root@controller:~# nova show 261ebe35-19bf-4f4f-8fdf-1548b5a94874<br>
+--------------------------------------+----------------------------------------------------------+<br>
| Property                             | Value                                                    |<br>
+--------------------------------------+----------------------------------------------------------+<br>
| OS-DCF:diskConfig                    | AUTO                                                     |<br>
| OS-EXT-AZ:availability_zone          | nova                                                     |<br>
| OS-EXT-SRV-ATTR:host                 | dc2-ch1-bl4                                              |<br>
| OS-EXT-SRV-ATTR:hypervisor_hostname  | dc2-ch1-bl4.cumuli.be                                    |<br>
| OS-EXT-SRV-ATTR:instance_name        | instance-0000001b                                        |<br>
| OS-EXT-STS:power_state               | 1                                                        |<br>
| OS-EXT-STS:task_state                | -                                                        |<br>
| OS-EXT-STS:vm_state                  | active                                                   |<br>
| OS-SRV-USG:launched_at               | 2015-04-08T09:35:45.000000                               |<br>
| OS-SRV-USG:terminated_at             | -                                                        |<br>
| accessIPv4                           |                                                          |<br>
| accessIPv6                           |                                                          |<br>
| config_drive                         |                                                          |<br>
| created                              | 2015-04-08T09:34:57Z                                     |<br>
| flavor                               | m1.small (2)                                             |<br>
| hostId                               | 6bfb7295f3afb27611d2c47f214325fa8231e26afa734b932b53b2d4 |<br>
| id                                   | 261ebe35-19bf-4f4f-8fdf-1548b5a94874                     |<br>
| image                                | Ubuntu_14.04-base (4b0497d4-b508-4249-8a2a-3b0376aa5aca) |<br>
| key_name                             | -                                                        |<br>
| metadata                             | {}                                                       |<br>
| name                                 | test-node-1                                              |<br>
| os-extended-volumes:volumes_attached | []                                                       |<br>
| progress                             | 0                                                        |<br>
| security_groups                      | default                                                  |<br>
| status                               | ACTIVE                                                   |<br>
| tenant_id                            | a9fd57125a50463e866490caf820efdc                         |<br>
| test-net-1 network                   | 192.168.100.103                                          |<br>
| updated                              | 2015-04-08T09:35:46Z                                     |<br>
| user_id                              | a89fb1a5f42c40159d50af3acc57349d                         |<br>
+--------------------------------------+----------------------------------------------------------+<br>
<br>
root@controller:~# neutron agent-list<br>
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+<br>
| id                                   | agent_type         | host        | alive | admin_state_up | binary                    |<br>
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+<br>
| fe33fe6b-450d-4dbb-8224-c4561456ee39 | L3 agent           | dc2-ch1-bl5 | :-)   | True           | neutron-l3-agent          |<br>
| 19d78778-31d4-47ac-a58a-b6ae84d53cf6 | Metadata agent     | dc2-ch1-bl5 | :-)   | True           | neutron-metadata-agent    |<br>
| 8cdcf571-a04c-4b05-973a-997724b63e8c | Open vSwitch agent | dc2-ch1-bl5 | :-)   | True           | neutron-openvswitch-agent |<br>
| 8593e080-0c41-4e3c-96d6-7d1848de552d | DHCP agent         | dc2-ch1-bl5 | :-)   | True           | neutron-dhcp-agent        |<br>
| 04dd2466-63f2-4732-a9bf-f825d77e57f9 | Open vSwitch agent | dc2-ch1-bl4 | :-)   | True           | neutron-openvswitch-agent |<br>
+--------------------------------------+--------------------+-------------+-------+----------------+---------------------------+<br>
root@controller:~# neutron agent-show 8cdcf571-a04c-4b05-973a-997724b63e8c<br>
+---------------------+--------------------------------------------+<br>
| Field               | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| admin_state_up      | True                                       |<br>
| agent_type          | Open vSwitch agent                         |<br>
| alive               | True                                       |<br>
| binary              | neutron-openvswitch-agent                  |<br>
| configurations      | {                                          |<br>
|                     |      "arp_responder_enabled": false,       |<br>
|                     |      "tunneling_ip": "10.20.0.53",         |<br>
|                     |      "devices": 3,                         |<br>
|                     |      "l2_population": false,               |<br>
|                     |      "tunnel_types": [                     |<br>
|                     |           "vxlan"                          |<br>
|                     |      ],                                    |<br>
|                     |      "enable_distributed_routing": false,  |<br>
|                     |      "bridge_mappings": {                  |<br>
|                     |           "external": "br-ex",             |<br>
|                     |           "goob": "br-goob"                |<br>
|                     |      }                                     |<br>
|                     | }                                          |<br>
| created_at          | 2015-03-17 14:53:21.264050                 |<br>
| description         |                                            |<br>
| heartbeat_timestamp | 2015-04-08 10:22:51.524701                 |<br>
| host                | dc2-ch1-bl5                                |<br>
| id                  | 8cdcf571-a04c-4b05-973a-997724b63e8c       |<br>
| started_at          | 2015-04-07 09:24:53.927501                 |<br>
| topic               | N/A                                        |<br>
+---------------------+--------------------------------------------+</font><br>
<font face="courier new, courier, monaco, monospace, sans-serif" size="2">root@dc2-kvm1:~# neutron agent-show 04dd2466-63f2-4732-a9bf-f825d77e57f9<br>
+---------------------+--------------------------------------------+<br>
| Field               | Value                                      |<br>
+---------------------+--------------------------------------------+<br>
| admin_state_up      | True                                       |<br>
| agent_type          | Open vSwitch agent                         |<br>
| alive               | True                                       |<br>
| binary              | neutron-openvswitch-agent                  |<br>
| configurations      | {                                          |<br>
|                     |      "arp_responder_enabled": false,       |<br>
|                     |      "tunneling_ip": "10.20.0.52",         |<br>
|                     |      "devices": 1,                         |<br>
|                     |      "l2_population": false,               |<br>
|                     |      "tunnel_types": [                     |<br>
|                     |           "vxlan"                          |<br>
|                     |      ],                                    |<br>
|                     |      "enable_distributed_routing": false,  |<br>
|                     |      "bridge_mappings": {}                 |<br>
|                     | }                                          |<br>
| created_at          | 2015-03-18 08:00:45.637023                 |<br>
| description         |                                            |<br>
| heartbeat_timestamp | 2015-04-08 10:48:32.826381                 |<br>
| host                | dc2-ch1-bl4                                |<br>
| id                  | 04dd2466-63f2-4732-a9bf-f825d77e57f9       |<br>
| started_at          | 2015-04-08 09:33:37.871259                 |<br>
| topic               | N/A                                        |<br>
+---------------------+--------------------------------------------+</font><br>
<br>
<br>
The problem with our instance is that it does not get the default gateway configured correctly.<br>
<br>
During startup of the instance I could see following messages:<br>
<br>
<img src="#"><br>
<br>
<img src="#"><br>
<br>
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.<br>
<br>
<div><span></span><br>
Regards,<br>
<br>
Willemgf<br>
</div>
</div>
</div>
</div>


</div><br></div></div><br></div></body></html>