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

Bug #1435712 reported by Roman Podoliaka
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
MOS Nova
6.0.x
In Progress
High
MOS Nova
6.1.x
Fix Released
High
MOS Nova

Bug Description

Upstream bug: https://bugs.launchpad.net/nova/+bug/1408529

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

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Raising the priority for 6.0.1 as this has been escalated by MOX team.

Changed in mos:
status: Triaged → Fix Committed
Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package nova has been built for project openstack/nova
Package version == 2014.2.2, package release == fuel6.0.1.mira7.git.9ff40f4.1009d65

Changeset: https://review.fuel-infra.org/4873
project: openstack/nova
branch: openstack-ci/fuel-6.0.1/2014.2
author: Roman Podoliaka
committer: Roman Podoliaka
subject: Transform IPAddress to string when creating port
status: patchset-created

Files placed on repository:
openstack-nova-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-api-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-cells-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-cert-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-common-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-compute-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-conductor-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-console-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-doc-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-network-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-novncproxy-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-objectstore-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
openstack-nova-scheduler-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.noarch.rpm
python-nova-2014.2.2-fuel6.0.1.mira7.git.9ff40f4.1009d65.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-4873/centos

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

DEB package nova has been built for project openstack/nova
Package version == 2014.2.2, package release == fuel6.0.1~mira6+git.9ff40f4.1009d65

Changeset: https://review.fuel-infra.org/4873
project: openstack/nova
branch: openstack-ci/fuel-6.0.1/2014.2
author: Roman Podoliaka
committer: Roman Podoliaka
subject: Transform IPAddress to string when creating port
status: patchset-created

Files placed on repository:
nova-ajax-console-proxy_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-api-ec2_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-api-metadata_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-api-os-compute_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-api-os-volume_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-api_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-baremetal_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-cells_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-cert_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-common_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-kvm_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-libvirt_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-lxc_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-qemu_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-vmware_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute-xen_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-compute_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-conductor_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-console_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-consoleauth_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-doc_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-network_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-novncproxy_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-objectstore_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-scheduler_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-spiceproxy_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-volume_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
nova-xvpvncproxy_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_all.deb
python-nova_2014.2.2-fuel6.0.1~mira6+git.9ff40f4.1009d65_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-4873/ubuntu

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-neutronclient (openstack-ci/fuel-6.0-updates/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.0-updates/2014.2
Change author: Alex Ermolov <email address hidden>
Review: https://review.fuel-infra.org/4942

Changed in mos:
status: Fix Committed → In Progress
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.mira22.git.f11239d.3d5c0c2

Changeset: https://review.fuel-infra.org/4942
project: openstack/python-neutronclient
branch: openstack-ci/fuel-6.0-updates/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.mira22.git.f11239d.3d5c0c2.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-updates-stable-4942/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~mira19+git.f11239d.3d5c0c2

Changeset: https://review.fuel-infra.org/4942
project: openstack/python-neutronclient
branch: openstack-ci/fuel-6.0-updates/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~mira19+git.f11239d.3d5c0c2_all.deb
python-quantumclient_2.3.9-fuel6.0~mira19+git.f11239d.3d5c0c2_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-updates-stable-4942/ubuntu

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/python-neutronclient (openstack-ci/fuel-6.0.1/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.0.1/2014.2
Change author: Alex Ermolov <email address hidden>
Review: https://review.fuel-infra.org/4940

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.bb05e8f.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.bb05e8f.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.bb05e8f.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.bb05e8f.6dab7d0_all.deb
python-quantumclient_2.3.9-fuel6.0.1~mira20+git.bb05e8f.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

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/nova (openstack-ci/fuel-6.0-updates/2014.2)

Fix proposed to branch: openstack-ci/fuel-6.0-updates/2014.2
Change author: Alex Ermolov <email address hidden>
Review: https://review.fuel-infra.org/4944

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

RPM package nova has been built for project openstack/nova
Package version == 2014.2, package release == fuel6.0.mira22.git.d8ad272.bea7645

Changeset: https://review.fuel-infra.org/4944
project: openstack/nova
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Transform IPAddress to string when creating port
status: patchset-created

Files placed on repository:
openstack-nova-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-api-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-cells-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-cert-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-common-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-compute-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-conductor-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-console-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-doc-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-network-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-novncproxy-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-objectstore-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
openstack-nova-scheduler-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.noarch.rpm
python-nova-2014.2-fuel6.0.mira22.git.d8ad272.bea7645.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-updates-stable-4944/centos

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

DEB package nova has been built for project openstack/nova
Package version == 2014.2, package release == fuel6.0~mira22+git.d8ad272.bea7645

Changeset: https://review.fuel-infra.org/4944
project: openstack/nova
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Transform IPAddress to string when creating port
status: patchset-created

Files placed on repository:
nova-ajax-console-proxy_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-api-ec2_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-api-metadata_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-api-os-compute_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-api-os-volume_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-api_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-baremetal_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-cells_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-cert_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-common_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-kvm_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-libvirt_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-lxc_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-qemu_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-vmware_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute-xen_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-compute_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-conductor_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-console_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-consoleauth_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-doc_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-network_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-novncproxy_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-objectstore_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-scheduler_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-spiceproxy_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-volume_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
nova-xvpvncproxy_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_all.deb
python-nova_2014.2-fuel6.0~mira22+git.d8ad272.bea7645_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-updates-stable-4944/ubuntu

Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Mescanef from devops team confirmed that Fuel Devops McRobotson mistakenly put the bug from 'Fix Committed' to 'In Progress' state. So I am returning it back.

Changed in mos:
status: In Progress → Fix Committed
tags: added: customer-found
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/nova (openstack-ci/fuel-6.0-updates/2014.2)

Reviewed: https://review.fuel-infra.org/4944
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-ci/fuel-6.0-updates/2014.2

Commit: d8ad272db279dfc2b062c6ed4ed5a14c09ac7963
Author: Alex Ermolov <email address hidden>
Date: Tue Apr 14 10:19:40 2015

Transform IPAddress to string when creating port

If ip address is provided when running nova boot, nova compute
will invoke neutron client to create a port. However, the ip
address parameter is an IPAddress object so neutron client will
fail to send the request to neutron server. Transform IPAddress
object to string to address this issue.

Change-Id: I858cca475748795aa2532f32bfe0f1443b30966f
Closes-Bug: #1435712

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

Reviewed: https://review.fuel-infra.org/4944
Committed: https://review.fuel-infra.org/gitweb?p=openstack/nova.git;a=commitdiff;h=d8ad272db279dfc2b062c6ed4ed5a14c09ac7963
Submitter: Vitaly Sedelnik
Branch: openstack-ci/fuel-6.0-updates/2014.2

commit d8ad272db279dfc2b062c6ed4ed5a14c09ac7963
Author: Alex Ermolov <email address hidden>

Transform IPAddress to string when creating port

If ip address is provided when running nova boot, nova compute
will invoke neutron client to create a port. However, the ip
address parameter is an IPAddress object so neutron client will
fail to send the request to neutron server. Transform IPAddress
object to string to address this issue.

Change-Id: I858cca475748795aa2532f32bfe0f1443b30966f
Closes-Bug: #1435712

Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I've verified it on MOS 6.1 (build 395) - fixed!
Proof: http://paste.mirantis.net/show/408/

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-neutronclient (openstack-ci/fuel-6.1/2014.2)

Change abandoned by Alexander Ignatov <email address hidden> on branch: openstack-ci/fuel-6.1/2014.2
Review: https://review.fuel-infra.org/5878
Reason: 6.1 released already, not needed

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-neutronclient (openstack-ci/fuel-6.0.1/2014.2)

Change abandoned by Alexander Ignatov <email address hidden> on branch: openstack-ci/fuel-6.0.1/2014.2
Review: https://review.fuel-infra.org/4940
Reason: 6.0.1 release is not going to be released, thus abandoned

Revision history for this message
Alex Ermolov (aermolov) wrote :

Fix for 6.0 turns out to be not fulley merged, so reopened.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/python-neutronclient (openstack-ci/fuel-6.0-updates/2014.2)

Change abandoned by Alex Ermolov <email address hidden> on branch: openstack-ci/fuel-6.0-updates/2014.2
Review: https://review.fuel-infra.org/4942

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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