Disable DHCP completely when no nodes are on introspection
Currently we keep DHCP always open for new nodes. This is an overkill, as we
always know which nodes are on introspection. It also causes problems when not
all node NIC's are registered in Ironic, as these NIC's might get DHCP from our
server.
This change reduces probability of wrong nodes accessing our DHCP by REJECT'ing
all DHCP requests when no nodes are on introspection and node_not_found_hook is
not set. It does not solve the problem completely: conflicts are still possible
during the introspection.
Change-Id: I7a50c02023ef4364e14825cd80fa75565fac3dc8
Partial-Bug: #1557979
(cherry picked from commit 405c7de1f8671eb5da7eb5dbf996f519b70b32d9)
Reviewed: https:/ /review. openstack. org/293475 /git.openstack. org/cgit/ openstack/ ironic- inspector/ commit/ ?id=39eb964134f 2ff13288ac11730 5ae226267c2e47
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 39eb964134f2ff1 3288ac117305ae2 26267c2e47
Author: Dmitry Tantsur <email address hidden>
Date: Wed Mar 16 11:32:22 2016 +0100
Disable DHCP completely when no nodes are on introspection
Currently we keep DHCP always open for new nodes. This is an overkill, as we
always know which nodes are on introspection. It also causes problems when not
all node NIC's are registered in Ironic, as these NIC's might get DHCP from our
server.
This change reduces probability of wrong nodes accessing our DHCP by REJECT'ing
all DHCP requests when no nodes are on introspection and node_not_found_hook is
not set. It does not solve the problem completely: conflicts are still possible
during the introspection.
Change-Id: I7a50c02023ef43 64e14825cd80fa7 5565fac3dc8 5da7eb5dbf996f5 19b70b32d9)
Partial-Bug: #1557979
(cherry picked from commit 405c7de1f8671eb