Internal error when create accelerator

Bug #1737575 reported by zhuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyborg (OpenStack)
Invalid
Undecided
zhuli

Bug Description

there is a 500 error when calling API to create an accelerator, because the function accelerator_create() got an unexpected keyword argument during rpc dispatcher.

reproduce:

$ curl -g -i -X POST http://10.3.4.1:6666/accelerators -H 'User-Agent: python-novaclient' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Auth-Token: xxxxxxxxx' -d '
{
    "name": "test",
    "description": "test",
    "project_id": "xxxxxxxxxxxxxxxxxx",
    "user_id": "xxxxxxxxxxxxxxx",
    "device_type": "test",
    "acc_type": "test",
    "acc_capability": "test",
    "vendor_id": "test",
    "product_id": "test",
    "remotable": 1
}
HTTP/1.1 500 Internal Server Error
Openstack-Request-Id: req-c2284f0b-fd35-4c27-9310-f27e094f496c
Content-Type: application/json
Content-Length: 776
Date: Mon, 11 Dec 2017 15:55:51 GMT

log of cyborg-conductor service:
Exception during message handling: TypeError: accelerator_create() got an unexpected keyword argument 'values'
ERROR oslo_messaging.rpc.server Traceback (most recent call last):
ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 160, in _process_incoming
ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
ERROR oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
ERROR oslo_messaging.rpc.server TypeError: accelerator_create() got an unexpected keyword argument 'values'

zhuli (zhuli)
Changed in openstack-cyborg:
assignee: nobody → zhuli (zhuli)
zhuli (zhuli)
summary: - Rpc error when create accelerator
+ Internal error when create accelerator
Brin Zhang (zhangbailin)
Changed in openstack-cyborg:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.