← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1894966] Re: Create servergroup failed with unexpected error

 

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

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

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

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

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

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

** Also affects: nova/ussuri
   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/1894966

Title:
  Create servergroup failed with unexpected error

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) ocata series:
  New
Status in OpenStack Compute (nova) pike series:
  New
Status in OpenStack Compute (nova) queens series:
  New
Status in OpenStack Compute (nova) rocky series:
  New
Status in OpenStack Compute (nova) stein series:
  New
Status in OpenStack Compute (nova) train series:
  New
Status in OpenStack Compute (nova) ussuri series:
  New

Bug description:
  Create a serverGroup with policies set to [] will cause nova api
  return unexpected error.

  
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.307 9 DEBUG nova.api.openstack.wsgi [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] Action: 'create', calling method: <function Controller.__getattribute__.<locals>.version_select at 0x7f0600e5d680>, body: {"server_group": {"name": "tpp-test-archetype-app-sandbox-vlyo", "policies": []}} _process_stack /usr/lib/python3.7/site-packages/nova/api/openstack/wsgi.py:520
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.336 9 DEBUG nova.quota [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] Getting quotas for project 9425beb60c8746518fd77513191623ea. Resources: {'server_groups'} _get_quotas /usr/lib/python3.7/site-packages/nova/quota.py:390
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.340 9 DEBUG nova.quota [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] Getting quotas for user 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 and project 9425beb60c8746518fd77513191623ea. Resources: {'server_groups'} _get_quotas /usr/lib/python3.7/site-packages/nova/quota.py:382
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] Unexpected exception in API method: IndexError: list index out of range
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi   File "/usr/lib/python3.7/site-packages/nova/api/openstack/wsgi.py", line 671, in wrapped
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi     return f(*args, **kwargs)
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi   File "/usr/lib/python3.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi   File "/usr/lib/python3.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi   File "/usr/lib/python3.7/site-packages/nova/api/validation/__init__.py", line 110, in wrapper
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi   File "/usr/lib/python3.7/site-packages/nova/api/openstack/compute/server_groups.py", line 201, in create
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi     sg = objects.InstanceGroup(context, policy=policies[0])
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi IndexError: list index out of range
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.351 9 ERROR nova.api.openstack.wsgi
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.354 9 INFO nova.api.openstack.wsgi [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: <class 'IndexError'>
  Aug 25 15:16:16 controller-qf47h5jn62 nova-osapi[752]: 2020-08-25 15:16:16.355 9 DEBUG nova.api.openstack.wsgi [req-d2edaa0f-bc9f-42ac-ba85-1273d25f3799 451d8d24f6428a3cef7409695abb6cbd3a1c4d2ef2b459e1fcdf75a848be8294 9425beb60c8746518fd77513191623ea - default default] Returning 500 to user: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.

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


References