avoid ironic errs

Change-Id: I5ef9e1452ff91ea48bbda6f766fa6be3feaf394a
Signed-off-by: Zhou Ya <zhou.ya@zte.com.cn>
This commit is contained in:
Zhou Ya
2016-08-10 10:31:12 +08:00
parent 6d30eccf60
commit c2acad5453
2 changed files with 2 additions and 10 deletions

View File

@@ -354,12 +354,7 @@ class Controller(object):
orig_config_set_id)
except exception.Forbidden as e:
LOG.info(e)
# delete ironic host by mac
if host_interface:
min_mac = utils.get_host_min_mac(host_interface)
self.ironicclient.physical_node.get(min_mac)
self.ironicclient.physical_node.delete(min_mac)
# TODO delete ironic host by mac
return dict(host=deleted_host)
except exception.ForbiddenPublicImage:
msg = _LI("Delete denied for public host %(id)s") % {'id': id}