← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1333471] Re: Checking security group in nova immediately after instance is created results in error

 

Backport patch for this was merged actually merged afew days ago.

https://review.openstack.org/#/c/106674/

Sorry should have linked to it earlier.

** Changed in: nova
       Status: Won't Fix => Fix Committed

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

Title:
  Checking security group in nova immediately after instance is created
  results in error

Status in OpenStack Compute (Nova):
  Fix Committed

Bug description:
  Environment:
  Openstack Havana with Neutron for networking and security groups

  Error:
  Response from nova:
  The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400

  In nova-api log
  014-06-19 00:48:39.483 17462 ERROR nova.api.openstack.wsgi [req-60aa8941-d129-4018-a30f-f815f0770118 10764ccc2d154d0a919f5104872fb9a8 2b60ae3ba5bd41d893674d0e57ae4390] Exception handling resource: 'NoneType' object is not iterable
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 997, in _process_stack
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1078, in dispatch
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 438, in index
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi     for group in groups]
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi TypeError: 'NoneType' object is not iterable
  2014-06-19 00:48:39.483 17462 TRACE nova.api.openstack.wsgi 
  2014-06-19 00:48:39.485 17462 INFO nova.osapi_compute.wsgi.server [req-60aa8941-d129-4018-a30f-f815f0770118 10764ccc2d154d0a919f5104872fb9a8 2b60ae3ba5bd41d893674d0e57ae4390] 10.147.22.73,54.225.248.128 "GET /v2/2b60ae3ba5bd41d893674d0e57ae4390/servers/c7e5f472-57fb-4a95-95cf-45c6506db0cd/os-security-groups HTTP/1.1" status: 400 len: 362 time: 0.0710380

  Steps to reproduce:
  1) Create new instance
  2) Immediately check security group through nova (/v2/$tenant/servers/$server_id/os-security-groups
  3) Wait several seconds and try again (Works if given a small delay between instance creation and checking sec group)

  Notes: This error did not come up in earlier versions of havana, but
  started after a recent upgrade

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


References