There are actually 2 places in lease_fixed_ip where exceptions are thrown.
One =
if not instance_ref: raise exception.Error(_('IP %s leased that is not associated') % address)
which should indeed be a instanceNotFound.
However there is also a second exception which looks like it needs to stay as is (bad MAC).
There are actually 2 places in lease_fixed_ip where exceptions are thrown.
One =
if not instance_ref: Error(_ ('IP %s leased that is not associated') %
address)
raise exception.
which should indeed be a instanceNotFound.
However there is also a second exception which looks like it needs to stay as is (bad MAC).