yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #84681
[Bug 1906228] Re: extending api in nova
This is not a bug so I'm closing this report as Invalid.
Please join to the #openstack-nova IRC channel on freenode if you have
nova developement related questions. Also for such questions it is
always good to have the code in question pushed as a review to
review.opendev.org so we can see what you are trying to do.
As a first guess you missed adding your the module of your new oslo
versionedobject to
https://github.com/openstack/nova/blob/16cabdd100b88aa72f93a0c5c87ed8a186be786d/nova/objects/__init__.py#L23
** Changed in: nova
Status: New => Invalid
--
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):
Invalid
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
References