[neutron][queens] dhcp issue

Ignazio Cassano ignaziocassano at gmail.com
Wed Dec 11 08:39:56 UTC 2019


Thanks for your help:
[root at podto2-osctrl01 ~]# neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+--------------------------------------+----------------------------------------------------+----------------------------------+--------------------------------------------------------+
| id                                   | name
                | tenant_id                        | subnets
                                 |
+--------------------------------------+----------------------------------------------------+----------------------------------+--------------------------------------------------------+
| 00361d96-0ea2-4378-8909-dbf7ef4c883f | NVLP2-Provider-backoffice1
                | 85cace94dcc7484c85ff9337eb1d0c4c |
9ba2a03d-3f95-494f-bd38-7fe85471465d 10.138.179.0/24   |
| 28ac0a79-17a9-46f5-a418-77f386b821b5 | NVLP2-Provider-Bk
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
0705b470-ce99-46c8-944c-cfbfc6a2a5f7 10.138.177.0/24   |
| 2e3edf38-7648-4ac8-a8d7-11448adedcca | NVLP2-Ext-Internet
                | 85cace94dcc7484c85ff9337eb1d0c4c |
ff797a1f-7de4-4998-9bdc-29d1241ffb5b 84.240.191.0/24   |
| 34a3e80d-a662-4665-ad6f-a7a83e2be346 | NVLP2-Ext-Rupar
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
1a88e004-7062-4702-8965-b18ea9d6af87 10.138.181.0/24   |
| 435e5609-c91a-4e42-bd1a-87dbc24e4afa | HA network tenant
85cace94dcc7484c85ff9337eb1d0c4c |                                  |
5bbb31c3-a2cd-4e30-a194-60cee122d0e9 169.254.192.0/18  |
| 7f41aa95-b108-4224-9088-21e32d554646 | admin-self-net
                | 85cace94dcc7484c85ff9337eb1d0c4c |
272ca9b5-2aa0-45d2-90b4-70abe4feac49 192.168.90.0/24   |
|                                      |
                 |                                  |
ea1c69b8-ded6-4028-bba9-63db12213e36 192.168.100.0/24  |
| 8b876fb6-10a3-4e92-a499-f62a9d3aa32b | net-vx4-private
                 | 4e44aad117b64a34806c4785b31c3f88 |
dcd2ad5c-afb5-420b-bfa8-7b89ab511f5b 192.168.213.0/24  |
| 993f14c9-1b40-47b7-8ee5-fcb00ef92d48 | HA network tenant
4e44aad117b64a34806c4785b31c3f88 |                                  |
d2129401-0349-4da3-87fa-5e521b071377 169.254.192.0/18  |
| a91bb860-32d6-4961-a319-bf39a492ff92 | NVL-INTERPOD-VNI-PRIV
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
7b8987f7-da16-48c0-b86c-f3c4fd507f22 10.138.240.48/28  |
|                                      |
                 |                                  |
a855f85b-46b7-4463-993b-8d867fb38556 10.138.240.0/28   |
| b11bd55d-c57b-48d1-9be4-ab690624fb76 | NVLP2-Prov-WEB
                | 85cace94dcc7484c85ff9337eb1d0c4c |
5f369cf5-8b26-4996-97d5-24434f928a84 10.138.236.32/27  |
|                                      |
                 |                                  |
adbe60f2-e02b-4294-8eb8-18ffb0b8bcda 10.138.168.0/21   |
|                                      |
                 |                                  |
ae1386b4-c6bc-4c69-909a-1e902df3bc3f 10.138.232.0/27   |
|                                      |
                 |                                  |
aefeeb08-7fb8-43c7-adc8-e8b0538b57d9 10.138.236.128/27 |
|                                      |
                 |                                  |
b22247e8-fa4a-48bd-8a3f-dde5f22ee866 10.138.236.0/27   |
|                                      |
                 |                                  |
d3e834ef-5f7c-43b7-b52d-fd8e223e6c50 10.138.232.128/27 |
|                                      |
                 |                                  |
d87341b3-f953-4a93-bcaf-46524fbb3408 10.138.236.96/27  |
|                                      |
                 |                                  |
de2c0bc9-85d4-4e5b-b1ae-d39ae6bbc6ee 10.138.200.0/21   |
|                                      |
                 |                                  |
e0a4ce65-9d39-496d-960c-88272cafad55 10.138.236.64/27  |
|                                      |
                 |                                  |
ee1bfd8b-231d-4e1d-83c8-d8d66346acef 10.138.232.32/27  |
|                                      |
                 |                                  |
efd1f72c-8bd3-4b25-a3fc-e2698dd734d7 10.138.136.0/21   |
|                                      |
                 |                                  |
f4b9f50b-18e9-49b2-b0db-6a51cf968e95 10.138.232.64/27  |
|                                      |
                 |                                  |
f986c4b1-1efc-4973-87a8-74db536ac1c0 10.138.232.96/27  |
| b250fb4e-5d36-4aa6-bcfb-c623166312ca | net-vx1-private
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
e0e82224-93e1-4369-b9c1-7d0ac1614837 192.168.213.0/24  |
| c767ef08-c1fb-45ed-bf1e-a4c464e12b93 | private-net
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
fb8ec92c-afa6-48f1-b7f8-25e77462b28b 192.192.100.0/24  |
| cd8a928b-42ae-4673-ae19-c687cfd181d4 | NVLP2-Prov-BE
                 | 85cace94dcc7484c85ff9337eb1d0c4c |
37b2ba42-6158-4a5f-96f0-48e476b4cd45 10.138.160.0/21   |
|                                      |
                 |                                  |
8502138b-c2c0-4436-bec5-9221a36e0c8c 10.138.192.0/21   |
|                                      |
                 |                                  |
ceabf390-6489-4b5d-a5b9-305176def3a1 10.138.128.0/21   |
| dede00bb-bc23-40a8-a3b9-b273eb7533ff | NVLP2-Prov-WEB2-test-2-network
                | e28e45dbbb3e4471a8fb6dd6cb99d01d |
92da59f1-df82-470b-a2ea-9b9b6f6c8e5e 10.138.185.112/28 |
|                                      |
                 |                                  |
b8668626-8c05-4c7d-a70b-a1485f0d666e 10.138.217.112/28 |
+--------------------------------------+----------------------------------------------------+----------------------------------+--------------------------------------------------------+

[root at podto2-osctrl01 ~]# neutron subnet-list
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+--------------------------------------+---------------------------------------------------+----------------------------------+-------------------+--------------------------------------------------------+
| id                                   | name
               | tenant_id                        | cidr              |
allocation_pools                                       |
+--------------------------------------+---------------------------------------------------+----------------------------------+-------------------+--------------------------------------------------------+
| 0705b470-ce99-46c8-944c-cfbfc6a2a5f7 | NVLP2-Provider-Bk-subnet
               | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.177.0/24   |
{"start": "10.138.177.70", "end": "10.138.177.100"}    |
| 1a88e004-7062-4702-8965-b18ea9d6af87 | NVLP2-Ext-Rupar-subnet
               | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.181.0/24   |
{"start": "10.138.181.20", "end": "10.138.181.150"}    |
| 272ca9b5-2aa0-45d2-90b4-70abe4feac49 | admin-self-subnet2
               | 85cace94dcc7484c85ff9337eb1d0c4c | 192.168.90.0/24   |
{"start": "192.168.90.10", "end": "192.168.90.254"}    |
| 37b2ba42-6158-4a5f-96f0-48e476b4cd45 | NVLP2-Prov-BE-subnet
               | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.160.0/21   |
{"start": "10.138.160.20", "end": "10.138.164.255"}    |
| 5bbb31c3-a2cd-4e30-a194-60cee122d0e9 | HA subnet tenant
85cace94dcc7484c85ff9337eb1d0c4c |                                  |
169.254.192.0/18  | {"start": "169.254.192.1", "end": "169.254.255.254"}   |
| 5f369cf5-8b26-4996-97d5-24434f928a84 |
NVLP2-Prov-Rupar02-2-0cf8fe671a-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.236.32/27  | {"start":
"10.138.236.35", "end": "10.138.236.47"}     |
| 7b8987f7-da16-48c0-b86c-f3c4fd507f22 | NVLP2-Interpod-subnet-x4
               | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.240.48/28  |
{"start": "10.138.240.61", "end": "10.138.240.61"}     |
| 8502138b-c2c0-4436-bec5-9221a36e0c8c | NVLP2-Prov-BE-subnet-78bc7d0889
                | e8c2a22432174638bdee830274845c38 | 10.138.192.0/21   |
{"start": "10.138.192.20", "end": "10.138.196.255"}    |
| 92da59f1-df82-470b-a2ea-9b9b6f6c8e5e |
NVLP2-Prov-WEB2-test-2-284f32dbb8-subnet          |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.185.112/28 | {"start":
"10.138.185.114", "end": "10.138.185.119"}   |
| 9ba2a03d-3f95-494f-bd38-7fe85471465d | NVLP2-Provider-backoffice1-subnet
                | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.179.0/24   |
{"start": "10.138.179.20", "end": "10.138.179.150"}    |
| a855f85b-46b7-4463-993b-8d867fb38556 | NVLP2-Interpod-subnet-x1
               | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.240.0/28   |
{"start": "10.138.240.13", "end": "10.138.240.14"}     |
| adbe60f2-e02b-4294-8eb8-18ffb0b8bcda | NVLP2-Prov-WEB-subnet
                | 85cace94dcc7484c85ff9337eb1d0c4c | 10.138.168.0/21   |
{"start": "10.138.168.20", "end": "10.138.172.255"}    |
| ae1386b4-c6bc-4c69-909a-1e902df3bc3f |
NVLP2-Prov-Rupar01-2-d0f1fa90f7-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.232.0/27   | {"start":
"10.138.232.3", "end": "10.138.232.15"}      |
| aefeeb08-7fb8-43c7-adc8-e8b0538b57d9 |
NVLP2-Prov-Rupar05-2-93db411f87-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.236.128/27 | {"start":
"10.138.236.131", "end": "10.138.236.143"}   |
| b22247e8-fa4a-48bd-8a3f-dde5f22ee866 |
NVLP2-Prov-Rupar01-2-6e53be6e00-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.236.0/27   | {"start":
"10.138.236.3", "end": "10.138.236.15"}      |
| b8668626-8c05-4c7d-a70b-a1485f0d666e |
NVLP2-Prov-WEB2-test-2-dbe7f3376f-subnet          |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.217.112/28 | {"start":
"10.138.217.114", "end": "10.138.217.119"}   |
| ceabf390-6489-4b5d-a5b9-305176def3a1 | NVLP2-Prov-BE-subnet-42bda158af
                | e8c2a22432174638bdee830274845c38 | 10.138.128.0/21   |
{"start": "10.138.128.20", "end": "10.138.132.255"}    |
| d2129401-0349-4da3-87fa-5e521b071377 | HA subnet tenant
4e44aad117b64a34806c4785b31c3f88 |                                  |
169.254.192.0/18  | {"start": "169.254.192.1", "end": "169.254.255.254"}   |
| d3e834ef-5f7c-43b7-b52d-fd8e223e6c50 |
NVLP2-Prov-Rupar05-2-97e7a2473d-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.232.128/27 | {"start":
"10.138.232.131", "end": "10.138.232.143"}   |
| d87341b3-f953-4a93-bcaf-46524fbb3408 |
NVLP2-Prov-Rupar04-2-a8223d4e2e-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.236.96/27  | {"start":
"10.138.236.99", "end": "10.138.236.111"}    |
| dcd2ad5c-afb5-420b-bfa8-7b89ab511f5b | sub-vx4
                | 4e44aad117b64a34806c4785b31c3f88 | 192.168.213.0/24  |
{"start": "192.168.213.100", "end": "192.168.213.200"} |
| de2c0bc9-85d4-4e5b-b1ae-d39ae6bbc6ee | NVLP2-Prov-WEB-subnet-ae476243c2
               | e8c2a22432174638bdee830274845c38 | 10.138.200.0/21   |
{"start": "10.138.200.20", "end": "10.138.204.255"}    |
| e0a4ce65-9d39-496d-960c-88272cafad55 |
NVLP2-Prov-Rupar03-2-3c7a3850d1-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.236.64/27  | {"start":
"10.138.236.67", "end": "10.138.236.79"}     |
| e0e82224-93e1-4369-b9c1-7d0ac1614837 | sub-vx1
                | 85cace94dcc7484c85ff9337eb1d0c4c | 192.168.213.0/24  |
{"start": "192.168.213.100", "end": "192.168.213.200"} |
| ea1c69b8-ded6-4028-bba9-63db12213e36 | admin-self-subnet1
               | 85cace94dcc7484c85ff9337eb1d0c4c | 192.168.100.0/24  |
{"start": "192.168.100.2", "end": "192.168.100.254"}   |
| ee1bfd8b-231d-4e1d-83c8-d8d66346acef |
NVLP2-Prov-Rupar02-2-ecfee60675-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.232.32/27  | {"start":
"10.138.232.35", "end": "10.138.232.47"}     |
| efd1f72c-8bd3-4b25-a3fc-e2698dd734d7 | NVLP2-Prov-WEB-subnet-e7e65a3ed6
               | e8c2a22432174638bdee830274845c38 | 10.138.136.0/21   |
{"start": "10.138.136.20", "end": "10.138.140.255"}    |
| f4b9f50b-18e9-49b2-b0db-6a51cf968e95 |
NVLP2-Prov-Rupar03-2-40976657fe-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.232.64/27  | {"start":
"10.138.232.67", "end": "10.138.232.79"}     |
| f986c4b1-1efc-4973-87a8-74db536ac1c0 |
NVLP2-Prov-Rupar04-2-729355c12e-subnet            |
e28e45dbbb3e4471a8fb6dd6cb99d01d | 10.138.232.96/27  | {"start":
"10.138.232.99", "end": "10.138.232.111"}    |
| fb8ec92c-afa6-48f1-b7f8-25e77462b28b | provate-subnet
               | 85cace94dcc7484c85ff9337eb1d0c4c | 192.192.100.0/24  |
{"start": "192.192.100.2", "end": "192.192.100.254"}   |
| ff797a1f-7de4-4998-9bdc-29d1241ffb5b | NVLP2-Ext-Internet-subnet
                | 85cace94dcc7484c85ff9337eb1d0c4c | 84.240.191.0/24   |
{"start": "84.240.191.2", "end": "84.240.191.170"}     |
+--------------------------------------+---------------------------------------------------+----------------------------------+-------------------+--------------------------------------------------------+
[root at podto2-osctrl01 ~]# neutron subnet-show
NVLP2-Prov-Rupar04-2-729355c12e-subnet
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+-------------------+-----------------------------------------------------------------+
| Field             | Value
          |
+-------------------+-----------------------------------------------------------------+
| allocation_pools  | {"start": "10.138.232.99", "end": "10.138.232.111"}
          |
| cidr              | 10.138.232.96/27
           |
| created_at        | 2019-11-29T08:14:32Z
           |
| description       |
          |
| dns_nameservers   | 10.103.48.1
          |
|                   | 10.103.48.2
          |
| enable_dhcp       | True
           |
| gateway_ip        | 10.138.232.97
          |
| host_routes       | {"nexthop": "10.138.232.97", "destination": "0.0.0.0/0"}
       |
|                   | {"nexthop": "10.138.232.97", "destination": "
10.138.236.96/27"} |
| id                | f986c4b1-1efc-4973-87a8-74db536ac1c0
           |
| ip_version        | 4
          |
| ipv6_address_mode |
          |
| ipv6_ra_mode      |
          |
| name              | NVLP2-Prov-Rupar04-2-729355c12e-subnet
           |
| network_id        | b11bd55d-c57b-48d1-9be4-ab690624fb76
           |
| project_id        | e28e45dbbb3e4471a8fb6dd6cb99d01d
           |
| revision_number   | 4
          |
| service_types     |
          |
| subnetpool_id     |
          |
| tags              |
          |
| tenant_id         | e28e45dbbb3e4471a8fb6dd6cb99d01d
           |
| updated_at        | 2019-12-10T13:43:02Z
           |


If I create an instance on this subnet , it gets an address in the
allocation-pool correctly, but the default gateway is not 10.138.232.97,
but 10.138.232.65.

This is a gatway of another subnet in the same vlan:
[root at podto2-osctrl01 ~]# neutron subnet-show
NVLP2-Prov-Rupar03-2-40976657fe-subnet
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+-------------------+-----------------------------------------------------------------+
| Field             | Value
          |
+-------------------+-----------------------------------------------------------------+
| allocation_pools  | {"start": "10.138.232.67", "end": "10.138.232.79"}
           |
| cidr              | 10.138.232.64/27
           |
| created_at        | 2019-11-29T08:13:14Z
           |
| description       |
          |
| dns_nameservers   | 10.103.48.1
          |
|                   | 10.103.48.2
          |
| enable_dhcp       | True
           |
| gateway_ip        | 10.138.232.65
          |
| host_routes       | {"nexthop": "10.138.232.65", "destination": "
10.138.236.64/27"} |
| id                | f4b9f50b-18e9-49b2-b0db-6a51cf968e95
           |
| ip_version        | 4
          |
| ipv6_address_mode |
          |
| ipv6_ra_mode      |
          |
| name              | NVLP2-Prov-Rupar03-2-40976657fe-subnet
           |
| network_id        | b11bd55d-c57b-48d1-9be4-ab690624fb76
           |
| project_id        | e28e45dbbb3e4471a8fb6dd6cb99d01d
           |
| revision_number   | 4
          |
| service_types     |
          |
| subnetpool_id     |
          |
| tags              |
          |
| tenant_id         | e28e45dbbb3e4471a8fb6dd6cb99d01d
           |
| updated_at        | 2019-12-11T08:27:20Z
           |
+-------------------+-----------------------------------------------------------------+

The following  is the dnsmasq process:

[root at podto2-osctrl01 ~]# ps -afe|grep dns|grep b76
nobody    70093      1  0 dic02 ?        00:00:04 dnsmasq --no-hosts
--no-resolv
--pid-file=/var/lib/neutron/dhcp/b11bd55d-c57b-48d1-9be4-ab690624fb76/pid
--dhcp-hostsfile=/var/lib/neutron/dhcp/b11bd55d-c57b-48d1-9be4-ab690624fb76/host
--addn-hosts=/var/lib/neutron/dhcp/b11bd55d-c57b-48d1-9be4-ab690624fb76/addn_hosts
--dhcp-optsfile=/var/lib/neutron/dhcp/b11bd55d-c57b-48d1-9be4-ab690624fb76/opts
--dhcp-leasefile=/var/lib/neutron/dhcp/b11bd55d-c57b-48d1-9be4-ab690624fb76/leases
--dhcp-match=set:ipxe,175 --local-service --bind-interfaces
--dhcp-range=set:tag1,10.138.168.0,static,255.255.248.0,86400s
--dhcp-range=set:tag2,10.138.232.0,static,255.255.255.224,86400s
--dhcp-range=set:tag4,10.138.232.128,static,255.255.255.224,86400s
--dhcp-range=set:tag8,10.138.232.32,static,255.255.255.224,86400s
--dhcp-range=set:tag10,10.138.232.64,static,255.255.255.224,86400s
--dhcp-range=set:tag11,10.138.232.96,static,255.255.255.224,86400s
--dhcp-option-force=option:mtu,9000 --dhcp-lease-max=2208 --conf-file=
--domain=site02.nivolapiemonte.it
Ignazio


Il giorno mer 11 dic 2019 alle ore 09:19 Slawek Kaplonski <
skaplons at redhat.com> ha scritto:

> Hi,
>
> Can You maybe give us some more details? Like how exactly this network and
> subnets looks like (neutron net-show and neutron subnet-show), and please
> also check dnsmasq config files - those are located on node where DHCP
> agent is running. If You will do something like:
>
> ps aux | grep <network_id>
>
> You will find dnsmasq process for this network.
>
> > On 10 Dec 2019, at 16:52, Ignazio Cassano <ignaziocassano at gmail.com>
> wrote:
> >
> > Hello Everyone,
> > I have an openstack queens installation based on centos 7.
> > I created a shared vlan network and multiple subnet under it.
> > When I start an instance on one of the subnet network it gets the
> correct ip based on its subnet but the gateway seems random (one of the
> subnet of the vlan).
> >
> > Any suggestion, please ?
> >
> > Ignazio
> >
>
>> Slawek Kaplonski
> Senior software engineer
> Red Hat
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191211/92d49d26/attachment-0001.html>


More information about the openstack-discuss mailing list