neutron GET ports 500 error: 'NoneType' object has no attribute 'qos_policy_id'

Bug #1811740 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
New
Undecided
Unassigned
neutron
New
Undecided
Unassigned

Bug Description

In congress dsvm gate job, neutron qos plugin began experiencing the following 500 error (master branch neutron==14.0.0.0b2.dev52):

2019-01-15 20:05:52,245 25432 INFO [tempest.lib.common.rest_client] Request (TestNeutronV2Driver:test_neutronv2_ports_tables): 500 GET http://146.20.110.24:9696/v2.0/ports 8.637s
2019-01-15 20:05:52,245 25432 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'X-Auth-Token': '<omitted>', 'Accept': 'application/json', 'Content-Type': 'application/json'}
        Body: None
    Response - Headers: {u'x-openstack-request-id': 'req-7b3d042a-af94-419c-ab38-a698bfcc77f5', 'status': '500', u'date': 'Tue, 15 Jan 2019 20:05:52 GMT', u'connection': 'close', 'content-location': 'http://146.20.110.24:9696/v2.0/ports', u'content-type': 'application/json', u'content-length': '150'}
        Body: {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}

But less than a minute later the same call seems to succeed:
2019-01-15 20:06:06,165 25432 INFO [tempest.lib.common.rest_client] Request (TestNeutronV2Driver:test_neutronv2_ports_tables): 200 GET http://146.20.110.24:9696/v2.0/ports 3.911s
2019-01-15 20:06:06,166 25432 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'X-Auth-Token': '<omitted>', 'Accept': 'application/json', 'Content-Type': 'application/json'}
        Body: None

Selected log neutron q-svc log:
ERROR neutron.pecan_wsgi.hooks.translation [None req-7b3d042a-af94-419c-ab38-a698bfcc77f5 tempest-TestNeutronV2Driver-1133229655 tempest-TestNeutronV2Driver-1133229655] GET failed.: AttributeError: 'NoneType' object has no attribute 'qos_policy_id'
[...]
ERROR oslo_messaging.rpc.server File "/opt/stack/new/neutron/neutron/services/qos/qos_plugin.py", line 102, in _extend_port_resource_request
ERROR oslo_messaging.rpc.server if net.qos_policy_id:
ERROR oslo_messaging.rpc.server AttributeError: 'NoneType' object has no attribute 'qos_policy_id'
[http://logs.openstack.org/74/621974/2/check/congress-devstack-api-mysql/8c0dd86/logs/screen-q-svc.txt.gz?level=ERROR#_Jan_15_20_07_10_822453]

The timing and the file suggests the error may have something to do with this recent neutron merge:
https://github.com/openstack/neutron/commit/83eb3e16138cbf3cd2df723020c07ac2f65c88ce

All environmental information is available here: http://logs.openstack.org/74/621974/2/check/congress-devstack-api-mysql/8c0dd86/
http://logs.openstack.org/74/621974/2/check/congress-devstack-api-mysql/8c0dd86/zuul-info/zuul-info.primary.txt

Additional logs are available here:
http://logs.openstack.org/74/621974/2/check/congress-devstack-api-mysql/8c0dd86/logs/

Eric K (ekcs)
description: updated
summary: - neutron qos_plugin AttributeError: 'NoneType' object has no attribute
+ neutron GET ports 500 error: 'NoneType' object has no attribute
'qos_policy_id'
Eric K (ekcs)
description: updated
Revision history for this message
Brian Haley (brian-haley) wrote :
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.