Ironic vif_port_id mismatch with neutron port id if specified multi networks

Bug #1549068 reported by Zhenguo Niu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ironic
Won't Fix
Undecided
Unassigned
OpenStack Compute (nova)
Fix Released
High
Zhenguo Niu
Liberty
Fix Released
High
Zhenguo Niu

Bug Description

when booting an ironic instance with multi networks, we create the network resources with the macs from ironic node ports, and then set the neutron port id back to ironic port's extra/vif_port_id, but the current logic will lead the vif-pif ids pair mismatch.

code:

for vif, pif in zip(network_info, ports):
  port_id = six.text_type(vif['id'])
  patch = [{'op': 'add',
       'path': '/extra/vif_port_id',
       'value': port_id}]
  self.ironicclient.call("port.update", pif.uuid, patch)

we should check whether the mac addresses match between vif and pif before setting the 'vif_port_id'.

Tags: ironic
Changed in nova:
assignee: nobody → Zhenguo Niu (niu-zglinux)
description: updated
Revision history for this message
Zhenguo Niu (niu-zglinux) wrote :

Add Ironic as a affected project to aware ironic guys, this should be fixed in nova side.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/284025

Changed in nova:
status: New → In Progress
description: updated
tags: added: ironic
Dmitry Tantsur (divius)
Changed in ironic:
status: New → Won't Fix
Michael Davies (mrda)
tags: added: mitaka-rc-potential
Michael Davies (mrda)
Changed in nova:
importance: Undecided → High
Changed in nova:
assignee: Zhenguo Niu (niu-zglinux) → sivaramakrishna (sivaramakrishna-g)
Changed in nova:
assignee: sivaramakrishna (sivaramakrishna-g) → Zhenguo Niu (niu-zglinux)
Changed in nova:
assignee: Zhenguo Niu (niu-zglinux) → sivaramakrishna (sivaramakrishna-g)
Changed in nova:
assignee: sivaramakrishna (sivaramakrishna-g) → Zhenguo Niu (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/284025
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e147a63cb396ebaadd7c841a305cf3a52be1d373
Submitter: Jenkins
Branch: master

commit e147a63cb396ebaadd7c841a305cf3a52be1d373
Author: Zhenguo Niu <email address hidden>
Date: Wed Feb 24 17:14:59 2016 +0800

    [Ironic]Match vif-pif mac address before setting 'vif_port_id'

    When booting an ironic instance with multi networks, the ironic port
    'vif_port_id' may mismatch with the corresponding neutron port.

    Closes-Bug: #1549068
    Co-Authored-By: Sivaramakrishna Garimella (<email address hidden>)

    Change-Id: Id5f033136283987eef8de4ce2f6be256e48cdbf8

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/290285

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/290285
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=21141158f7060b8c279a44edfb1aff397b07683b
Submitter: Jenkins
Branch: stable/liberty

commit 21141158f7060b8c279a44edfb1aff397b07683b
Author: Zhenguo Niu <email address hidden>
Date: Wed Feb 24 17:14:59 2016 +0800

    [Ironic]Match vif-pif mac address before setting 'vif_port_id'

    When booting an ironic instance with multi networks, the ironic port
    'vif_port_id' may mismatch with the corresponding neutron port.

    Closes-Bug: #1549068
    Co-Authored-By: Sivaramakrishna Garimella (<email address hidden>)

    Change-Id: Id5f033136283987eef8de4ce2f6be256e48cdbf8
    (cherry picked from commit e147a63cb396ebaadd7c841a305cf3a52be1d373)

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0rc1

This issue was fixed in the openstack/nova 13.0.0.0rc1 release candidate.

Matt Riedemann (mriedem)
tags: removed: mitaka-rc-potential
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 12.0.3

This issue was fixed in the openstack/nova 12.0.3 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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