Failed to list security group tags

Bug #1817219 reported by Lingxian Kong
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

branch: master
environment: devstack
error log: http://paste.openstack.org/show/745657/
```
Feb 22 10:40:15 lingxiankong-pc neutron-server[3164]: DEBUG neutron.wsgi [-] (3195) accepted ('192.168.206.8', 41556) {{(pid=3195) server /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py:956}}
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation [None req-acd651ef-cef2-4b36-9d46-7b81e4d18793 demo demo] GET failed.: TypeError: argument of type 'NoneType' is not iterable
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation Traceback (most recent call last):
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 682, in __call__
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation controller, args, kwargs = self.find_controller(state)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 858, in find_controller
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation controller, args, kw = super(Pecan, self).find_controller(_state)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 550, in find_controller
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation self.handle_hooks(self.determine_hooks(controller), 'before', state)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 865, in handle_hooks
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation return super(Pecan, self).handle_hooks(hooks, *args, **kw)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/pecan/core.py", line 342, in handle_hooks
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation result = getattr(hook, hook_type)(*args)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/neutron/neutron/pecan_wsgi/hooks/query_parameters.py", line 101, in before
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation filters = _set_filters(state, controller)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/neutron/neutron/pecan_wsgi/hooks/query_parameters.py", line 81, in _set_filters
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation is_filter_validation_supported=controller.filter_validation)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/opt/stack/neutron/neutron/api/api_common.py", line 87, in get_filters_from_dict
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation attributes.populate_project_info(attr_info)
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation File "/usr/local/lib/python2.7/dist-packages/neutron_lib/api/attributes.py", line 49, in populate_project_info
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation if 'tenant_id' in attributes and 'project_id' not in attributes:
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation TypeError: argument of type 'NoneType' is not iterable
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: ERROR neutron.pecan_wsgi.hooks.translation
Feb 22 10:40:16 lingxiankong-pc neutron-server[3164]: INFO neutron.wsgi [None req-acd651ef-cef2-4b36-9d46-7b81e4d18793 demo demo] 192.168.206.8 "GET /v2.0/security_groups/c63a2657-300b-4ab0-9201-65b49e3ba815/tags HTTP/1.1" status: 500 len: 368 time: 0.4839101
```

Revision history for this message
Brian Haley (brian-haley) wrote :

I don't see this happen with the current master branch:

$ curl -s -H "X-Auth-Token: $(openstack token issue | awk '/ id / {print $4}')" 10.18.57.47:9696/v2.0/security-groups/f1e644b1-9482-4bd6-a67c-cb06687ac8d8/tags
{"tags": []}

Or even with 'openstack security group show f1e644b1-9482-4bd6-a67c-cb06687ac8d8 -c tags'

Can you still reproduce it or give more detail on what commands you are running? Thanks.

Changed in neutron:
status: New → Incomplete
Revision history for this message
Lingxian Kong (kong) wrote :

@Brian, thanks for the response. I tested in the stable/stein, the issue has gone.

Changed in neutron:
status: Incomplete → 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.