← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1285841] [NEW] NSX: logical switch port must be an RFC 4122 UUID

 

Public bug reported:

The port creation in NS X fail with following error. This is in latest
HEAD 2014.1.a913.g9ca7116. Looks like the port UUID is not compatible
with RFC 4122.

2014-02-27 18:59:27,308 (neutron.plugins.nicira.api_client.client): ERROR client request Received error code: 400
2014-02-27 18:59:27,309 (neutron.plugins.nicira.api_client.client): ERROR client request Server Error Message: LogicalSwitchPortConfig.security_profiles.$item.0: LogicalSwitchPortConfig.security_profiles.$arrayitems: must be an RFC 4122 UUID
2014-02-27 18:59:27,313 (NeutronPlugin): ERROR NeutronPlugin _handle_create_port_exception An exception occurred while creating the quantum port 902c6e49-2d41-4cb7-9cf7-cc1
64b57bd17 on the NVP plaform
Traceback (most recent call last):
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 465, in _nvp_create_port
    True)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 426, in _nvp_create_port_helper
    port_data.get(addr_pair.ADDRESS_PAIRS))
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nsxlib/switch.py", line 348, in create_lport
    cluster=cluster)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nvplib.py", line 135, in do_request
    res = cluster.api_client.request(*args)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/client.py", line 119, in request
    exception.ERROR_MAPPINGS[status](response)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/exception.py", line 91, in zero
    raise NsxApiException()
NsxApiException: An unknown exception occurred.
2014-02-27 18:59:27,314 (NeutronPlugin): ERROR NeutronPlugin create_port Unable to create port or set port attachment in NVP.
2014-02-27 18:59:27,339 (neutron.db.db_base_plugin_v2): DEBUG db_base_plugin_v2 _delete_ip_allocation Delete allocated IP 17.177.36.209 (1f740648-85c5-4081-a04d-bba6a3eb6ec
f/66ebd803-21d2-4cdf-a336-61dd421589d4)
2014-02-27 18:59:27,373 (neutron.api.v2.resource): ERROR resource resource create failed
Traceback (most recent call last):
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
    result = method(request=request, **args)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/api/v2/base.py", line 411, in create
    obj = obj_creator(request.context, **kwargs)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 1207, in create_port
    self._delete_port(context, neutron_port_id)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/openstack/common/excutils.py", line 68, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 1191, in create_port
    port_create_func(context, port_data)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 480, in _nvp_create_port
    lport and lport['uuid'])
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 442, in _handle_create_port_exception
    LOG.exception(msg)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/openstack/common/excutils.py", line 68, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 465, in _nvp_create_port
    True)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 426, in _nvp_create_port_helper
    port_data.get(addr_pair.ADDRESS_PAIRS))
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nsxlib/switch.py", line 348, in create_lport
    cluster=cluster)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nvplib.py", line 135, in do_request
    res = cluster.api_client.request(*args)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/client.py", line 119, in request
    exception.ERROR_MAPPINGS[status](response)
  File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/exception.py", line 91, in zero
    raise NsxApiException()
NsxApiException: An unknown exception occurred.
2014-02-27 18:59:27,376 (neutron.wsgi): INFO log write 17.176.14.11 - - [27/Feb/2014 18:59:27] "POST /v2.0/ports.json HTTP/1.1" 500 230 0.471858

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: neutron-core 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/1285841

Title:
  NSX: logical switch port must be an RFC 4122 UUID

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  The port creation in NS X fail with following error. This is in latest
  HEAD 2014.1.a913.g9ca7116. Looks like the port UUID is not compatible
  with RFC 4122.

  2014-02-27 18:59:27,308 (neutron.plugins.nicira.api_client.client): ERROR client request Received error code: 400
  2014-02-27 18:59:27,309 (neutron.plugins.nicira.api_client.client): ERROR client request Server Error Message: LogicalSwitchPortConfig.security_profiles.$item.0: LogicalSwitchPortConfig.security_profiles.$arrayitems: must be an RFC 4122 UUID
  2014-02-27 18:59:27,313 (NeutronPlugin): ERROR NeutronPlugin _handle_create_port_exception An exception occurred while creating the quantum port 902c6e49-2d41-4cb7-9cf7-cc1
  64b57bd17 on the NVP plaform
  Traceback (most recent call last):
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 465, in _nvp_create_port
      True)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 426, in _nvp_create_port_helper
      port_data.get(addr_pair.ADDRESS_PAIRS))
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nsxlib/switch.py", line 348, in create_lport
      cluster=cluster)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nvplib.py", line 135, in do_request
      res = cluster.api_client.request(*args)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/client.py", line 119, in request
      exception.ERROR_MAPPINGS[status](response)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/exception.py", line 91, in zero
      raise NsxApiException()
  NsxApiException: An unknown exception occurred.
  2014-02-27 18:59:27,314 (NeutronPlugin): ERROR NeutronPlugin create_port Unable to create port or set port attachment in NVP.
  2014-02-27 18:59:27,339 (neutron.db.db_base_plugin_v2): DEBUG db_base_plugin_v2 _delete_ip_allocation Delete allocated IP 17.177.36.209 (1f740648-85c5-4081-a04d-bba6a3eb6ec
  f/66ebd803-21d2-4cdf-a336-61dd421589d4)
  2014-02-27 18:59:27,373 (neutron.api.v2.resource): ERROR resource resource create failed
  Traceback (most recent call last):
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
      result = method(request=request, **args)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/api/v2/base.py", line 411, in create
      obj = obj_creator(request.context, **kwargs)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 1207, in create_port
      self._delete_port(context, neutron_port_id)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/openstack/common/excutils.py", line 68, in __exit__
      six.reraise(self.type_, self.value, self.tb)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 1191, in create_port
      port_create_func(context, port_data)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 480, in _nvp_create_port
      lport and lport['uuid'])
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 442, in _handle_create_port_exception
      LOG.exception(msg)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/openstack/common/excutils.py", line 68, in __exit__
      six.reraise(self.type_, self.value, self.tb)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 465, in _nvp_create_port
      True)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 426, in _nvp_create_port_helper
      port_data.get(addr_pair.ADDRESS_PAIRS))
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nsxlib/switch.py", line 348, in create_lport
      cluster=cluster)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/nvplib.py", line 135, in do_request
      res = cluster.api_client.request(*args)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/client.py", line 119, in request
      exception.ERROR_MAPPINGS[status](response)
    File "/usr/local/csi/share/csi-neutron.venv/lib/python2.6/site-packages/neutron/plugins/nicira/api_client/exception.py", line 91, in zero
      raise NsxApiException()
  NsxApiException: An unknown exception occurred.
  2014-02-27 18:59:27,376 (neutron.wsgi): INFO log write 17.176.14.11 - - [27/Feb/2014 18:59:27] "POST /v2.0/ports.json HTTP/1.1" 500 230 0.471858

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


Follow ups

References