← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1229954] Re: updating address pairs with xml doesn't work

 

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

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

Title:
  updating address pairs with xml doesn't work

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  
  Works fine: neutron port-update 493199d2-d792-4017-b015-894e85a8e32a --allowed-address-pairs list=true type=dict ip_address=10.0.0.1 

  Generates: 
      [{u'ip_address': u'10.0.0.1'}]

  neutron port-update 493199d2-d792-4017-b015-894e85a8e32a --allowed-
  address-pairs list=true type=dict ip_address=10.0.0.1  --request-
  format xml

  Generates: 
      {'allowed_address_pair': {'ip_address': '10.0.0.1'}}

  
  2013-09-24 14:10:34.021 19471 ERROR neutron.api.v2.resource [-] update failed
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 84, in resource
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 460, in update
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource     allow_bulk=self._allow_bulk)
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 589, in prepare_request_body
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource     attr_vals['validate'][rule])
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/extensions/allowedaddresspairs.py", line 53, in _validate_allowed_address_pairs
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource     raise AllowedAddressPairsMissingIP()
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource AllowedAddressPairsMissingIP: AllowedAddressPair must contain ip_address
  2013-09-24 14:10:34.021 19471 TRACE neutron.api.v2.resource

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