← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1408529] [NEW] nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx'

 

Public bug reported:

now nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' will failed,
the error in nova-compute log is bellow:

  File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84
, in wrapper
    ret = obj(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/cl
ient.py", line 1266, in serialize
    self.get_attr_metadata()).serialize(data, self.content_type())
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
serializer.py", line 390, in serialize
    return self._get_serialize_handler(content_type).serialize(data)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
serializer.py", line 54, in serialize
    return self.dispatch(data, action=action)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
serializer.py", line 44, in dispatch
    return action_method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
serializer.py", line 66, in default
    return jsonutils.dumps(data, default=sanitizer)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/opensta
ck/common/jsonutils.py", line 168, in dumps
    return json.dumps(value, default=default, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 250, in dumps
    sort_keys=sort_keys, **kw).encode(obj)
  File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
    return _iterencode(o, 0)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
serializer.py", line 65, in sanitizer
    return six.text_type(obj, 'utf8')
TypeError: coercing to Unicode: need string or buffer, IPAddress fou
nd

** Affects: nova
     Importance: Undecided
     Assignee: shihanzhang (shihanzhang)
         Status: New


** Tags: python-neutronclient

** Changed in: nova
     Assignee: (unassigned) => shihanzhang (shihanzhang)

** Tags added: python-neutronclient

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

Title:
  nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx'

Status in OpenStack Compute (Nova):
  New

Bug description:
  now nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' will
  failed, the error in nova-compute log is bellow:

    File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84
  , in wrapper
      ret = obj(*args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/cl
  ient.py", line 1266, in serialize
      self.get_attr_metadata()).serialize(data, self.content_type())
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
  serializer.py", line 390, in serialize
      return self._get_serialize_handler(content_type).serialize(data)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
  serializer.py", line 54, in serialize
      return self.dispatch(data, action=action)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
  serializer.py", line 44, in dispatch
      return action_method(*args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
  serializer.py", line 66, in default
      return jsonutils.dumps(data, default=sanitizer)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/opensta
  ck/common/jsonutils.py", line 168, in dumps
      return json.dumps(value, default=default, **kwargs)
    File "/usr/lib/python2.7/json/__init__.py", line 250, in dumps
      sort_keys=sort_keys, **kw).encode(obj)
    File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
      chunks = self.iterencode(o, _one_shot=True)
    File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
      return _iterencode(o, 0)
    File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/
  serializer.py", line 65, in sanitizer
      return six.text_type(obj, 'utf8')
  TypeError: coercing to Unicode: need string or buffer, IPAddress fou
  nd

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


Follow ups

References