← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1385318] Re: Nova fails to add fixed IP

 

** Also affects: nova
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1385318

Title:
  Nova fails to add fixed IP

Status in OpenStack Neutron (virtual network service):
  New
Status in OpenStack Compute (Nova):
  New

Bug description:
  I created instance with one NIC attached.
  Then I try to attach another NIC:

  nova add-fixed-ip  ServerId NetworkId

  Nova compute raises exception:

  2014-10-24 15:40:33.925 31955 ERROR oslo.messaging.rpc.dispatcher [req-43570a05-937a-4ddf-a0e9-e05d42660817 ] Exception during message handling: Network could not be found for instance 09b6e137-37d6-475d-992c-bdcb7d3cb841.
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/compute/manager.py", line 414, in decorated_function
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     payload)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/compute/manager.py", line 326, in decorated_function
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/compute/manager.py", line 314, in decorated_function
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/compute/manager.py", line 3915, in add_fixed_ip_to_instance
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     network_id)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/network/base_api.py", line 61, in wrapper
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     res = f(self, context, *args, **kwargs)
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher   File "/home/vb/.virtualenvs/ecs/local/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 684, in add_fixed_ip_to_instance
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher     instance_id=instance['uuid'])
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher NetworkNotFoundForInstance: Network could not be found for instance 09b6e137-37d6-475d-992c-bdcb7d3cb841.
  2014-10-24 15:40:33.925 31955 TRACE oslo.messaging.rpc.dispatcher 

  
  In nova/network/neutronv2/api.py ther's line:

  neutronv2.get_client(context).list_ports(**search_opts)

  It cannot find port by device_id. Probably because nova do not create
  port ?

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


References