← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1317668] [NEW] fixed_ip object associate method doesn't handle an IPAddress object field

 

Public bug reported:

When an nova.objects.fields:IPAddress or subclass is passed to a
fixed_ip object associate method the following traceback occurs:


Traceback (most recent call last):
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/eventlet/queue.py", line 107, in switch
    self.greenlet.switch(value)
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 194, in main
    result = function(*args, **kwargs)
  File "/home/alaski/dev/nova/nova/compute/manager.py", line 1547, in _allocate_network_async
    dhcp_options=dhcp_options)
  File "/home/alaski/dev/nova/nova/network/api.py", line 46, in wrapped
    return func(self, context, *args, **kwargs)
  File "/home/alaski/dev/nova/nova/network/base_api.py", line 59, in wrapper
    res = f(self, context, *args, **kwargs)
  File "/home/alaski/dev/nova/nova/network/api.py", line 253, in allocate_for_instance
    nw_info = self.network_rpcapi.allocate_for_instance(context, **args)
  File "/home/alaski/dev/nova/nova/network/rpcapi.py", line 175, in allocate_for_instance
    macs=jsonutils.to_primitive(macs))
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, in call
    wait_for_reply=True, timeout=timeout)
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/transport.py", line 87, in _send
    timeout=timeout)
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 146, in send
    return self._send(target, ctxt, message, wait_for_reply, timeout)
  File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 136, in _send
    raise failure
InterfaceError: (InterfaceError) Error binding parameter 2 - probably unsupported type. u'SELECT fixed_ips.created_at AS fixed_ips_created_at, fixed_ips.updated_at AS fixed_ips_updated_at, fixed_ips.deleted_at AS fixed_ips_deleted_at, fixed_ips.deleted AS fixed_ips_deleted, fixed_ips.id AS fixed_ips_id, fixed_ips.address AS fixed_ips_address, fixed_ips.network_id AS fixed_ips_network_id, fixed_ips.virtual_interface_id AS fixed_ips_virtual_interface_id, fixed_ips.instance_uuid AS fixed_ips_instance_uuid, fixed_ips.allocated AS fixed_ips_allocated, fixed_ips.leased AS fixed_ips_leased, fixed_ips.reserved AS fixed_ips_reserved, fixed_ips.host AS fixed_ips_host \nFROM fixed_ips \nWHERE fixed_ips.deleted = ? AND (fixed_ips.network_id = ? OR fixed_ips.network_id IS NULL) AND fixed_ips.reserved = 1 AND fixed_ips.address = ?\n LIMIT ? OFFSET ?' (0, 1, IPAddress('10.0.0.2'), 1, 0)

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  fixed_ip object associate method doesn't handle an IPAddress object
  field

Status in OpenStack Compute (Nova):
  New

Bug description:
  When an nova.objects.fields:IPAddress or subclass is passed to a
  fixed_ip object associate method the following traceback occurs:

  
  Traceback (most recent call last):
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/eventlet/queue.py", line 107, in switch
      self.greenlet.switch(value)
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 194, in main
      result = function(*args, **kwargs)
    File "/home/alaski/dev/nova/nova/compute/manager.py", line 1547, in _allocate_network_async
      dhcp_options=dhcp_options)
    File "/home/alaski/dev/nova/nova/network/api.py", line 46, in wrapped
      return func(self, context, *args, **kwargs)
    File "/home/alaski/dev/nova/nova/network/base_api.py", line 59, in wrapper
      res = f(self, context, *args, **kwargs)
    File "/home/alaski/dev/nova/nova/network/api.py", line 253, in allocate_for_instance
      nw_info = self.network_rpcapi.allocate_for_instance(context, **args)
    File "/home/alaski/dev/nova/nova/network/rpcapi.py", line 175, in allocate_for_instance
      macs=jsonutils.to_primitive(macs))
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, in call
      wait_for_reply=True, timeout=timeout)
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/transport.py", line 87, in _send
      timeout=timeout)
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 146, in send
      return self._send(target, ctxt, message, wait_for_reply, timeout)
    File "/home/alaski/dev/nova/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 136, in _send
      raise failure
  InterfaceError: (InterfaceError) Error binding parameter 2 - probably unsupported type. u'SELECT fixed_ips.created_at AS fixed_ips_created_at, fixed_ips.updated_at AS fixed_ips_updated_at, fixed_ips.deleted_at AS fixed_ips_deleted_at, fixed_ips.deleted AS fixed_ips_deleted, fixed_ips.id AS fixed_ips_id, fixed_ips.address AS fixed_ips_address, fixed_ips.network_id AS fixed_ips_network_id, fixed_ips.virtual_interface_id AS fixed_ips_virtual_interface_id, fixed_ips.instance_uuid AS fixed_ips_instance_uuid, fixed_ips.allocated AS fixed_ips_allocated, fixed_ips.leased AS fixed_ips_leased, fixed_ips.reserved AS fixed_ips_reserved, fixed_ips.host AS fixed_ips_host \nFROM fixed_ips \nWHERE fixed_ips.deleted = ? AND (fixed_ips.network_id = ? OR fixed_ips.network_id IS NULL) AND fixed_ips.reserved = 1 AND fixed_ips.address = ?\n LIMIT ? OFFSET ?' (0, 1, IPAddress('10.0.0.2'), 1, 0)

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


Follow ups

References