← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1906228] [NEW] extending api in nova

 

Public bug reported:

Added new table in nova api_db 
Created api for that table in nova 

accessing table from database added in object folder
InstanceSnapshotList getting these error in nova api log

2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/instancesnapshot.py", line 60, in index
2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi     builds = objects.InstanceSnapshotList.get_all(context, hypervisor=hypervisor)
2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi AttributeError: 'module' object has no attribute 'InstanceSnapshotList'
2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi 
2020-11-30 07:55:40.532 11190 INFO nova.api.openstack.wsgi [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - 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.
<type 'exceptions.AttributeError'>
2020-11-30 07:55:40.534 11190 INFO nova.osapi_compute.wsgi.server [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - default default] 192.168.1.107 "GET /v2.1/instancesnapshot/detail HTTP/1.1" status: 500 len: 607 time: 0.4292579

** Affects: nova
     Importance: Undecided
         Status: New

** Summary changed:

- api extended in nova 2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/instancesnapshot.py", line 60, in index 2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi     builds = objects.InstanceSnapshotList.get_all(context, hypervisor=hypervisor) 2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi AttributeError: 'module' object has no attribute 'InstanceSnapshotList' 2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi  2020-11-30 07:55:40.532 11190 INFO nova.api.openstack.wsgi [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - 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. <type 'exceptions.AttributeError'> 2020-11-30 07:55:40.534 11190 INFO nova.osapi_compute.wsgi.server [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - default default] 192.168.1.107 "GET /v2.1/instancesnapshot/detail HTTP/1.1" status: 500 len: 607 time: 0.4292579
+ extending api in nova

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

Title:
  extending api in nova

Status in OpenStack Compute (nova):
  New

Bug description:
  Added new table in nova api_db 
  Created api for that table in nova 

  accessing table from database added in object folder
  InstanceSnapshotList getting these error in nova api log

  2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/instancesnapshot.py", line 60, in index
  2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi     builds = objects.InstanceSnapshotList.get_all(context, hypervisor=hypervisor)
  2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi AttributeError: 'module' object has no attribute 'InstanceSnapshotList'
  2020-11-30 07:55:40.531 11190 ERROR nova.api.openstack.wsgi 
  2020-11-30 07:55:40.532 11190 INFO nova.api.openstack.wsgi [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - 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.
  <type 'exceptions.AttributeError'>
  2020-11-30 07:55:40.534 11190 INFO nova.osapi_compute.wsgi.server [req-55229684-c92f-429f-b6c1-f911da8be0ab ab6959d3b9954f028ab286f54e85eef8 49dc38c68b984713968ac225418a5360 - default default] 192.168.1.107 "GET /v2.1/instancesnapshot/detail HTTP/1.1" status: 500 len: 607 time: 0.4292579

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


Follow ups