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

Bug #1438124 reported by Alex Ermolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Confirmed
Low
Alex Ermolov
6.0.x
In Progress
Low
Alex Ermolov
6.1.x
Confirmed
Low
Alex Ermolov

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

Alex Ermolov (aermolov)
Changed in python-neutronclient:
assignee: nobody → Alex Ermolov (aermolov)
Changed in mos:
assignee: nobody → Alex Ermolov (aermolov)
Changed in python-neutronclient:
status: New → In Progress
Changed in mos:
status: New → In Progress
no longer affects: python-neutronclient
no longer affects: python-neutronclient (Ubuntu)
Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package python-neutronclient has been built for project openstack/python-neutronclient
Package version == 2.3.9, package release == fuel6.0.1.mira23.git.7221f56.6dab7d0

Changeset: https://review.fuel-infra.org/4940
project: openstack/python-neutronclient
branch: openstack-ci/fuel-6.0.1/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Fix TypeError for six.text_type
status: patchset-created

Files placed on repository:
python-neutronclient-2.3.9-fuel6.0.1.mira23.git.7221f56.6dab7d0.noarch.rpm

NOTE: Changeset is not merged, created temporary package repository.
RPM repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0.1-stable-4940/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package python-neutronclient has been built for project openstack/python-neutronclient
Package version == 2.3.9, package release == fuel6.0.1~mira20+git.7221f56.6dab7d0

Changeset: https://review.fuel-infra.org/4940
project: openstack/python-neutronclient
branch: openstack-ci/fuel-6.0.1/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Fix TypeError for six.text_type
status: patchset-created

Files placed on repository:
python-neutronclient_2.3.9-fuel6.0.1~mira20+git.7221f56.6dab7d0_all.deb
python-quantumclient_2.3.9-fuel6.0.1~mira20+git.7221f56.6dab7d0_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0.1-stable-4940/ubuntu

tags: added: neutron
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.