NSXv: exception when creating multiple IP's on a neutron port

Bug #1476602 reported by Gary Kotton on 2015-07-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vmware-nsx
Undecided
Unassigned

Bug Description

2015-07-21 01:23:32.775 INFO neutron.wsgi [req-2e93d8fe-ab2d-46f8-befe-21d0c47c1dd9 demo d7dd1dc082e94d30b8be81f3e7b88e49] 20.0.0.56 - - [21/Jul/2015 01:23:32] "GET /v2.0/security-groups.json?tenant_id=d7dd1dc082e94d30b8be81f3e7b88e49 HTTP/1.1" 200 1865 0.027508
2015-07-21 01:23:38.729 ERROR neutron.api.v2.resource [req-71bd484e-4471-4f29-9dbb-8d444c2fad00 neutron 671be4e9e2a2437db92224518b409d84] update failed
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 83, in resource
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource result = method(request=request, **args)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 553, in update
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource obj = obj_updater(request.context, id, **kwargs)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v.py", line 923, in update_port
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource self._create_dhcp_static_binding(context, ret_port)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v.py", line 258, in _create_dhcp_static_binding
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource network_id, s_bindings)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/vshield/edge_utils.py", line 1230, in create_dhcp_bindings
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource nsxv_manager.vcns.create_dhcp_binding(edge_id, binding)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/vshield/vcns.py", line 457, in create_dhcp_binding
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource return self.do_request(HTTP_POST, uri, request_config, decode=False)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/vshield/vcns.py", line 102, in do_request
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource headers, encodeParams)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource return Retrying(*dargs, **dkw).call(f, *args, **kw)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 206, in call
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource return attempt.get(self._wrap_exception)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 247, in get
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource six.reraise(self.value[0], self.value[1], self.value[2])
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 200, in call
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/vshield/vcns.py", line 88, in _client_request
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource return client(method, uri, params, headers, encodeParams)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/vshield/common/VcnsApiClient.py", line 112, in request
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource raise cls(uri=uri, status=status, header=header, response=response)
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource RequestBad: Request https://10.160.61.197/api/4.0/edges/edge-55/dhcp/config/bindings is Bad, response {"details":"[Dhcp] Duplicate hostname for binding d79e551a-6ecf-4fe1-a27c-fc3bf5d4890e : VmId null and VnicId null.","errorCode":12504,"moduleName":"vShield Edge"}
2015-07-21 01:23:38.729 TRACE neutron.api.v2.resource

Reviewed: https://review.openstack.org/204017
Committed: https://git.openstack.org/cgit/openstack/vmware-nsx/commit/?id=5b9672240d5f2a6c8cac1b5de6471000e1a3749e
Submitter: Jenkins
Branch: master

commit 5b9672240d5f2a6c8cac1b5de6471000e1a3749e
Author: Gary Kotton <email address hidden>
Date: Tue Jul 21 03:51:42 2015 -0700

    NSXv: only configure DHCP on backend if subnet is configured

    Only create a DHCP binding for a port if DHCP is enabled on the
    subnet.

    Change-Id: I9217b9f6a8e335eb037373b18aab3ff757075740
    Closes-bug: #1476602

Changed in vmware-nsx:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers