diff options
author | Dmitry Tantsur <dtantsur@redhat.com> | 2014-09-22 14:24:48 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@redhat.com> | 2014-09-22 14:24:48 +0200 |
commit | a3c4c80bbf36013a43c01df2d76c18ec2d7ea767 (patch) | |
tree | a9bd36decf2a4439fe1ac65b97d53088c1675b94 /ironic/dhcp | |
parent | efd63cbf53846ae34ad8ba319ff221c7e26e5e65 (diff) | |
download | ironic-a3c4c80bbf36013a43c01df2d76c18ec2d7ea767.tar.gz |
Neutron DHCP implementation to raise exception if no ports have VIF
Currently only warning is risen, though deploy can't succeed in this
case for both PXE and Agent drivers.
Change-Id: If57a33818f5da820277c94b7b0ae642d29a698ce
Closes-Bug: #1362060
Diffstat (limited to 'ironic/dhcp')
-rw-r--r-- | ironic/dhcp/neutron.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ironic/dhcp/neutron.py b/ironic/dhcp/neutron.py index 1edbdace4..c5dae49c2 100644 --- a/ironic/dhcp/neutron.py +++ b/ironic/dhcp/neutron.py @@ -145,10 +145,10 @@ class NeutronDHCPApi(base.BaseDHCP): """ vifs = network.get_node_vif_ids(task) if not vifs: - LOG.warning(_LW("No VIFs found for node %(node)s when attempting " - "to update DHCP BOOT options."), - {'node': task.node.uuid}) - return + raise exception.FailedToUpdateDHCPOptOnPort( + _("No VIFs found for node %(node)s when attempting " + "to update DHCP BOOT options.") % + {'node': task.node.uuid}) failures = [] for port_id, port_vif in vifs.items(): |