← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1285886] Re: update_port passes device_id=None but neutron expects ''

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-1

-- 
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/1285886

Title:
  update_port passes device_id=None but neutron expects ''

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  2014-02-27 14:08:23.013 ERROR nova.network.neutronv2.api [req-598b0d2f-e4e9-40eb-a9d4-027975d08b39 demo demo] Failed to delete neutron port 153f472b-f662-497b-bc7c-3cc362157ab1
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api Traceback (most recent call last):
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/nova/nova/network/neutronv2/api.py", line 420, in deallocate_for_instance
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     neutron.update_port(port, port_req_body)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 111, in with_params
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     ret = self.function(instance, *args, **kwargs)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 321, in update_port
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     return self.put(self.port_path % (port), body=body)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1245, in put
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     headers=headers, params=params)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1221, in retry_request
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     headers=headers, params=params)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1164, in do_request
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     self._handle_fault_response(status_code, replybody)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 1134, in _handle_fault_response
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     exception_handler_v20(status_code, des_error_body)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api   File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 84, in exception_handler_v20
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api     message=error_dict)
  2014-02-27 14:08:23.013 TRACE nova.network.neutronv2.api NeutronClientException: Invalid input for device_id. Reason: 'None' is not a valid string.



  2014-02-27 14:08:23.011 ERROR neutron.api.v2.resource [req-3f133c17-198f-412d-b57e-66bbf0fcfbcb neutron abd2b56aa998417ba5af609a680a138d] update failed
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 84, in resource
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 466, in update
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource     allow_bulk=self._allow_bulk)
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 600, in prepare_request_body
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource     raise webob.exc.HTTPBadRequest(msg)
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource HTTPBadRequest: Invalid input for device_id. Reason: 'None' is not a valid string.
  2014-02-27 14:08:23.011 TRACE neutron.api.v2.resource

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


References