Horizon displays an error message on an empty instances list page

Bug #1814877 reported by Roman Lubianyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Roman Lubianyi

Bug Description

The following error is observed in the Horizon log:
Unable to connect to Neutron: 'frozenset' object has no attribute '_getitem_'

The error happens on the network_list requests when the parameter list is too long. This is the failing line
https://github.com/openstack/horizon/blob/stable/ocata/openstack_dashboard/api/neutron.py#L629

The workaround could look like this

resources = []
filter_values = list(filter_values)
for i in range(0, len(filter_values), chunk_size):
params[filter_attr] = filter_values[i:i + chunk_size]
resources.extend(list_method(**params))
return resources

Revision history for this message
Roman Lubianyi (rlubianyi) wrote :
Changed in fuel:
assignee: nobody → MOS Maintenance (mos-maintenance)
assignee: MOS Maintenance (mos-maintenance) → Roman Lubianyi (rlubianyi)
status: New → Confirmed
Changed in fuel:
milestone: none → 9.2-mu-11
importance: Undecided → Medium
Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Pavel Glazov (pglazovv) wrote :

Verified.
root@node-1:~# cat /usr/lib/python2.7/dist-packages/openstack_dashboard/api/neutron.py | grep "if not isinstance"
        if not isinstance(filter_values, (list, tuple, set, frozenset)):

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Reopened, the issue is not fixed yet.

Changed in fuel:
milestone: 9.2-mu-11 → 9.2-mu-12
status: Fix Released → In Progress
Revision history for this message
Roman Lubianyi (rlubianyi) wrote :
Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Mikhail Samoylov (msamoylov) wrote :

Verified
root@node-1:~# cat /usr/lib/python2.7/dist-packages/openstack_dashboard/api/neutron.py | grep "filter_values = list(filter_values)"
            filter_values = list(filter_values)

Changed in fuel:
status: Fix Committed → Fix Released
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.