← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1621086] Re: Port delete on router interface remove

 

Looks like this is working as planned.

** Changed in: neutron
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1621086

Title:
  Port delete on router interface remove

Status in neutron:
  Opinion

Bug description:
  1. I create port, then router and then use add_router_interface.
  2. Then I use remove_router_interface.
  3. Port is deleted - and this is unexpected (for me, at least).

  I was using Heat on devstack master to test this.

  Template for stack with port:
  resources:
    media_port:
      type: OS::Neutron::Port
      properties:
        name: media_port
        network: private

  Template for stack with router and router interface:
  heat_template_version: newton
  resources:
    media_router:
      type: OS::Neutron::Router
    media_router_interface:
      type: OS::Neutron::RouterInterface
      properties:
        router: { get_resource: media_router }
        port: media_port

  When I delete second stack, port from first stack is also deleted in neutron.
  https://github.com/openstack/python-neutronclient/blob/master/neutronclient/v2_0/client.py#L873-L876 that is called method and body here will be: { 'port_id': 'SOMEID' }

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1621086/+subscriptions


References