[neutron] set/find dhcp-server address

Volodymyr Litovka doka.ua at gmx.com
Sat May 25 18:22:41 UTC 2019


Dear colleagues,

is there way to explicitly assign DHCP address when creating subnet? The
issue is that it isn't always first address from allocation pool, e.g.

$ openstack port list
+--------------------------------------+-------+-------------------+------------------------------------------------------------------------------+--------+
| ID                                   | Name  | MAC Address       | Fixed IP Addresses                                                           | Status |
+--------------------------------------+-------+-------------------+------------------------------------------------------------------------------+--------+
| 0897bcc4-6cad-479c-8743-ca7cc5a57271 |       | 72:d0:1c:d1:6b:51 | ip_address='172.16.53.3', subnet_id='20329549-124c-484d-8278-edca9829e262'   | ACTIVE |
|                                      |       |                   | ip_address='172.16.54.2', subnet_id='07249cd3-11a9-4da7-a4db-bd838aa8c4e7'   |        |

both subnet have similar configuration of allocation pool
(172.16.xx.2-254/24) and there are two different addresses for DHCP in
every subnet.

This makes a trouble during project generation with pre-assigned
addresses for servers if the pre-assigned address is same as
[surprisigly, non-first] address of DHCP namespace.

And, may be, there is a way to determine this address in more simple way
than looking into 'openstack port list' output, searching for port (a)
without name and (b) with multiple addresses from all belonging subnets
:) At the moment, 'openstack subnet show' say nothing about assigned
DHCP-address.

Thank you!

--
Volodymyr Litovka
   "Vision without Execution is Hallucination." -- Thomas Edison

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190525/3ab9aad9/attachment-0001.html>


More information about the openstack-discuss mailing list