Horizon doesn't display ipaddresses of a VM when a lot of ports attached

Bug #1516200 reported by Alexander Bozhenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Medium
Unassigned

Bug Description

This comes from here:
https://bugs.launchpad.net/horizon/+bug/1349841

When number of ports attached to a vm is more than 200+, so this exception is happening
https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L568
I see that type of filter_values is set.

So on this line https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L576
filter_values becomes a list with one set element.
After that all_filter_len, allowed_filter_len and chunk_size calculated wrong, and resources returned from that procedure is empty.

See comment on line 554 here:
https://review.openstack.org/#/c/110291/2/openstack_dashboard/api/neutron.py

You can reproduce it by attaching 200+ ports to one vm, so url length of a request to neutron-server api with list of all the ports is more than 8192, or by attaching just several ports to a vm and reducing max url length in neutron server.

Let me know if additional information needed.

Tags: neutron
summary: Horizon doesn't display ipaddresses of a VM when a lot of ports attached
- to the vm
Paul Karikh (pkarikh)
Changed in horizon:
assignee: nobody → Paul Karikh (pkarikh)
Paul Karikh (pkarikh)
Changed in horizon:
assignee: Paul Karikh (pkarikh) → nobody
Matthias Runge (mrunge)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Timur Sufiev (tsufiev-x)
tags: added: neutron
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I checked a comment from Alexander https://review.opendev.org/c/openstack/horizon/+/110291/2/openstack_dashboard/api/neutron.py#554.
The logic pointed out was originally introduced to convert a string into a list, but it was an expected behavior when a set or other sequence was passed.
I believe it was fixed as part of commit 36515b38b2ab990aa16e14e9a410b710df661652 (https://review.opendev.org/c/openstack/horizon/+/653675).

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.