baremetal allows to register an interface having an empty mac address

Bug #1238595 reported by Arata Notsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Undecided
Unassigned
OpenStack Compute (nova)
Fix Released
Undecided
Arata Notsu

Bug Description

It leads a network manager to create an invalid entry in dnsmasq's hostsfile, like:

,bm.novalocal,10.0.0.2
(The first column is a mac address. In this case, the instance never receive 10.0.0.2)

In addition, once such a interface is added, we cannot delete it.

    $ nova baremetal-interface-remove 1 ''
    ERROR: Must specify id or address (HTTP 400) (Request-ID: req-d0631fc4-361d-43fa-870a-82e077cd454b)

Tags: baremetal
Arata Notsu (arata776)
tags: added: baremetal
Revision history for this message
Arata Notsu (arata776) wrote :
Changed in nova:
status: New → In Progress
assignee: nobody → Arata Notsu (arata776)
description: updated
Revision history for this message
aeva black (tenbrae) wrote :

I believe this does not affect Ironic, as there is validation of MAC addresses done within the db/api layer, which was not done by Nova.

I will re-open if it is demonstrated that one can create an invalid or empty mac address in Ironic, leading to similar failures.

Changed in ironic:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/51202
Committed: http://github.com/openstack/nova/commit/d3524fb5015ea493f1997dc94589907bdff8f8eb
Submitter: Jenkins
Branch: master

commit d3524fb5015ea493f1997dc94589907bdff8f8eb
Author: Arata Notsu <email address hidden>
Date: Thu Nov 14 17:57:28 2013 +0900

    baremetal: Make api validate mac address

    Check if the address in the form of xx:xx:xx:xx:xx:xx.

    Closes-Bug: 1238595
    Change-Id: Idcba745a011604d7664b62d88f1dede88d10443d

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.