← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1396854] Re: fail to create an instance with specific ip

 

https://review.openstack.org/#/c/149905/
fixed the bug.

** Changed in: tripleo
       Status: In Progress => Fix Released

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

Title:
  fail to create an instance with specific ip

Status in OpenStack Compute (Nova):
  In Progress
Status in tripleo - openstack on openstack:
  Fix Released

Bug description:
  When I using below command to create an instance with specific ip, it
  failed.

  nova boot --image cirros-0.3.2-x86_64-uec --flavor m1.nano --nic net-
  id=5b7930ae-ff24-4dcf-a429-e039cb7502dd,v4-fixed-ip=10.0.0.5 test

  My env is latest devstack on fedora20.



  Here is trace log from nova-compute.
  2014-11-27 11:15:09.565 ERROR nova.compute.manager [-] [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9] Instance failed to spawn
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9] Traceback (most recent call last):
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/compute/manager.py", line 2247, in _build_resources
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     yield resources
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/compute/manager.py", line 2117, in _build_and_run_instance
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     instance_type=instance_type)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2634, in spawn
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     admin_pass=admin_password)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3095, in _create_image
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     content=files, extra_md=extra_md, network_info=network_info)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/api/metadata/base.py", line 167, in __init__
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ec2utils.get_ip_info_for_instance_from_nw_info(network_info)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/api/ec2/ec2utils.py", line 152, in get_ip_info_for_instance_from_nw_info
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     fixed_ips = nw_info.fixed_ips()
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/model.py", line 450, in _sync_wrapper
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     self.wait()
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/model.py", line 482, in wait
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     self[:] = self._gt.wait()
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 173, in wait
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return self._exit_event.wait()
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 125, in wait
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     current.throw(*self._exc)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 212, in main
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     result = function(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/compute/manager.py", line 1647, in _allocate_network_async
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     dhcp_options=dhcp_options)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/api.py", line 423, in allocate_for_instance
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     self._delete_ports(neutron, instance, created_port_ids)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/oslo/utils/excutils.py", line 82, in __exit__
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     six.reraise(self.type_, self.value, self.tb)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/api.py", line 406, in allocate_for_instance
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     security_group_ids, available_macs, dhcp_opts)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/api.py", line 182, in _create_port
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     port_id = port_client.create_port(port_req_body)['port']['id']
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84, in wrapper
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ret = obj(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 98, in with_params
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ret = self.function(instance, *args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 322, in create_port
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return self.post(self.ports_path, body=body)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84, in wrapper
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ret = obj(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1325, in post
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     headers=headers, params=params)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84, in wrapper
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ret = obj(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1236, in do_request
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     body = self.serialize(body)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/opt/stack/nova/nova/network/neutronv2/__init__.py", line 84, in wrapper
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     ret = obj(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 1266, in serialize
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     self.get_attr_metadata()).serialize(data, self.content_type())
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/common/serializer.py", line 390, in serialize
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return self._get_serialize_handler(content_type).serialize(data)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/common/serializer.py", line 54, in serialize
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return self.dispatch(data, action=action)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/common/serializer.py", line 44, in dispatch
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return action_method(*args, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/common/serializer.py", line 66, in default
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return jsonutils.dumps(data, default=sanitizer)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/openstack/common/jsonutils.py", line 168, in dumps
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return json.dumps(value, default=default, **kwargs)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib64/python2.7/json/__init__.py", line 250, in dumps
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     sort_keys=sort_keys, **kw).encode(obj)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     chunks = self.iterencode(o, _one_shot=True)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return _iterencode(o, 0)
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]   File "/usr/lib/python2.7/site-packages/neutronclient/common/serializer.py", line 65, in sanitizer
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9]     return six.text_type(obj, 'utf8')
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9] TypeError: coercing to Unicode: need string or buffer, IPAddress found
  2014-11-27 11:15:09.565 TRACE nova.compute.manager [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9] 
  2014-11-27 11:15:09.588 AUDIT nova.compute.manager [req-0b540dce-5524-4a38-a33d-b3083ecb3d00 admin demo] [instance: 1a8295a2-80b5-4f5c-81bb-414aa832f6b9] Terminating instance

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


References