Nova crashes when added new RPC interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
For some reason I need to add a RPC interface to nova-compute. When I tested the new interface, I got this error:
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
2018-09-03 02:23:56.870 70765 ERROR oslo_messaging.
The function`
def serialize_
if isinstance(entity, (tuple, list, set, dict)):
entity = self._process_
elif (hasattr(entity, 'obj_to_primitive') and
entity = entity.
return entity
hasattr(entity, 'obj_to_primitive') and callable(
I'm going to mark this as invalid. If you want some help debugging your code, you can post it to gerrit and get some help there to identify what is wrong in your change, but it looks like you're trying to send the SchedulerReport Client over RPC and that object is not serializable.