← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1158684] Re: Pre-created ports get deleted on VM delete

 

Reviewed:  https://review.openstack.org/327046
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=9088891ce72081684761e5cf54d3b3eabab0ca37
Submitter: Jenkins
Branch:    master

commit 9088891ce72081684761e5cf54d3b3eabab0ca37
Author: Sam Betts <sam@xxxxxxxxxxxxxx>
Date:   Wed Nov 30 18:29:04 2016 +0000

    Add Virtual Network Interface Driver APIs
    
    This patch adds the driver API interfaces for the virtual network
    interface API in order to abstract the task of assigning logical network
    interfaces to physical network interfaces.
    
    Since the OpenStack Newton release, Ironic provides an interface for
    pluggable network implementations. Different network implementations may
    want to handle how logical to physical network interface assignment
    happens. To do this the new API calls into new functions on the network
    implementation loaded for the specified node.
    
    This is part 1 of 3, and adds four new functions vif_attach, vif_detach,
    vif_list, port_changed, portgroup_changed, get_current_vif to the base
    network interface class, which should be overridden by network interface
    implementations.
    
    DHCP provider update_mac_address method was deprecated, network
    interface port_changed() and portgroup_changed() should be used instead.
    
    Co-Authored-By: Vasyl Saienko (vsaienko@xxxxxxxxxxxx)
    Change-Id: I0b84cfd85557d18254697f2e539c583ea0f8e88c
    Partial-Bug: #1582188
    Closes-Bug: #1158684


** Changed in: ironic
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1158684

Title:
  Pre-created ports get deleted on VM delete

Status in Group Based Policy:
  Won't Fix
Status in heat:
  Invalid
Status in Ironic:
  Fix Released
Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  1) Pre create a port using port-create
  2) Boot a VM with nova boot --nic port_id=<created port>
  3) Delete a VM.

  Expected: VM should boot using provided port_id at boot time.
  When VM is deleted, port corresponding to pre-created port_id should not get deleted,
  as a lot of application, security settings could have port properties configured in them in a large network.

  Observed behavior:
  There is no way, I could prevent port_id associated with VM from being deleted with nova delete.

To manage notifications about this bug go to:
https://bugs.launchpad.net/group-based-policy/+bug/1158684/+subscriptions