← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1352925] [NEW] NVP plugin extension lswitch lport cannot be updated or deleted

 

Public bug reported:

Nicira NVP plugin create extension lswitches when port number on a
bridged (flat) network reaches upper limit (configured by
max_lp_per_bridged_ls in nvp.ini). However, the ports created on
extension lswitches cannot be updated or deleted.

For example, if flat network net1 has already <max_lp_per_bridged_ls>
ports, and a new instance is booted on this network, NVP plugin creates
an extension logical switch in NSX controller, which has an uuid
different from the neutron network, and the new logical port
corresponding to the neutron port will be created on this extension
logical switch.

However, if run neutron port-update for this new port, it will fail:
2014-08-05 07:26:09,984 59933072    ERROR [NVPApiHelper] Server Error Message: lport 'd7df5a6e-ba8b-4a75-9c1d-11279b70d2a0' is not bound to lswitch '7607649d-c29a-4eb2-863a-606e96175185' (it is bound to lswitch 'ccbfdf47-b84c-426d-820c-18984e06d859')
2014-08-05 07:26:09,984 59933072    ERROR [neutron.plugins.nicira.nvplib] Port or Network not found, Error: An unknown exception occurred.
2014-08-05 07:26:09,985 59933072    ERROR [NeutronPlugin] Unable to update port id: d7df5a6e-ba8b-4a75-9c1d-11279b70d2a0.

Similarly, if run nova delete <vm id>, there is similar error:
2014-08-05 02:08:50,938 59933072    DEBUG [neutron.plugins.nicira.api_client.request_eventlet] [7] Completed request 'DELETE /ws.v1/lswitch/7607649d-c29a-4eb2-863a-606e96175185/lport/8eca6560-601d-49bc-896c-c6a4d7059110': 404
2014-08-05 02:08:50,938 59932752    ERROR [NVPApiHelper] Received error code: 404
2014-08-05 02:08:50,938 59932752    ERROR [NVPApiHelper] Server Error Message: lport '8eca6560-601d-49bc-896c-c6a4d7059110' is not bound to lswitch '7607649d-c29a-4eb2-863a-606e96175185' (it is bound to lswitch '720a6577-60cb-45c6-8821-f276de8cb804')
2014-08-05 02:08:50,939 59932752    ERROR [neutron.plugins.nicira.nvplib] Port or Network not found

Root cause:
The extension logical switch has different uuid, but when updating/deleting the port, the original neutron network uuid is used.

This can be fixed either in nvp plugin to save lswitch information in
neutron db, or fixed in NSX controller so that if a port is found in
extension lswitch, it should be updated/deleted instead of reporting
error.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: nicira

** Tags added: nicira

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

Title:
  NVP plugin extension lswitch lport cannot be updated or deleted

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Nicira NVP plugin create extension lswitches when port number on a
  bridged (flat) network reaches upper limit (configured by
  max_lp_per_bridged_ls in nvp.ini). However, the ports created on
  extension lswitches cannot be updated or deleted.

  For example, if flat network net1 has already <max_lp_per_bridged_ls>
  ports, and a new instance is booted on this network, NVP plugin
  creates an extension logical switch in NSX controller, which has an
  uuid different from the neutron network, and the new logical port
  corresponding to the neutron port will be created on this extension
  logical switch.

  However, if run neutron port-update for this new port, it will fail:
  2014-08-05 07:26:09,984 59933072    ERROR [NVPApiHelper] Server Error Message: lport 'd7df5a6e-ba8b-4a75-9c1d-11279b70d2a0' is not bound to lswitch '7607649d-c29a-4eb2-863a-606e96175185' (it is bound to lswitch 'ccbfdf47-b84c-426d-820c-18984e06d859')
  2014-08-05 07:26:09,984 59933072    ERROR [neutron.plugins.nicira.nvplib] Port or Network not found, Error: An unknown exception occurred.
  2014-08-05 07:26:09,985 59933072    ERROR [NeutronPlugin] Unable to update port id: d7df5a6e-ba8b-4a75-9c1d-11279b70d2a0.

  Similarly, if run nova delete <vm id>, there is similar error:
  2014-08-05 02:08:50,938 59933072    DEBUG [neutron.plugins.nicira.api_client.request_eventlet] [7] Completed request 'DELETE /ws.v1/lswitch/7607649d-c29a-4eb2-863a-606e96175185/lport/8eca6560-601d-49bc-896c-c6a4d7059110': 404
  2014-08-05 02:08:50,938 59932752    ERROR [NVPApiHelper] Received error code: 404
  2014-08-05 02:08:50,938 59932752    ERROR [NVPApiHelper] Server Error Message: lport '8eca6560-601d-49bc-896c-c6a4d7059110' is not bound to lswitch '7607649d-c29a-4eb2-863a-606e96175185' (it is bound to lswitch '720a6577-60cb-45c6-8821-f276de8cb804')
  2014-08-05 02:08:50,939 59932752    ERROR [neutron.plugins.nicira.nvplib] Port or Network not found

  Root cause:
  The extension logical switch has different uuid, but when updating/deleting the port, the original neutron network uuid is used.

  This can be fixed either in nvp plugin to save lswitch information in
  neutron db, or fixed in NSX controller so that if a port is found in
  extension lswitch, it should be updated/deleted instead of reporting
  error.

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


Follow ups

References