Server external event notify response expection

Bug #1795194 reported by zhangxiaohan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trio2o
Confirmed
Undecided
zhangxiaohan

Bug Description

when create vm, neutron notify to nova abort network-vif-unplugged event.trio2o response list to neutron rather than dict.

Error response following:

Sep 28 09:54:49 localhost neutron-server[1161]: #033[01;31mERROR neutron.notifiers.nova [#033[00;36m-#033[01;31m] #033[01;35m#033[01;31mFailed to notify nova on events: [{'status': 'completed', 'tag': u'de264d4b-d447-4a13-8597-5905a4429bbd', 'name': 'network-vif-unplugged', 'server_uuid': u'b3bd23bb-5574-45d9-ad54-6ef2a227e93e'}]#033[00m: TypeError: list indices must be integers, not str
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00mTraceback (most recent call last):
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m File "/opt/stack/neutron/neutron/notifiers/nova.py", line 245, in send_events
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m batched_events)
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/server_external_events.py", line 39, in create
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m return_raw=True)
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 368, in _create
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m return self.convert_into_with_meta(body[response_key], resp)
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00mTypeError: list indices must be integers, not str
Sep 28 09:54:49 localhost neutron-server[1161]: ERROR neutron.notifiers.nova #033[01;35m#033[00m#033[00m

Changed in trio2o:
assignee: nobody → zhangxiaohan (zhangxh502)
baisen (song1)
Changed in trio2o:
status: New → Confirmed
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.