project/instances/attach_interface has O(N) scaling time complexity for opening form
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Nicolas Bock | ||
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Ussuri |
Fix Released
|
High
|
Unassigned | ||
Victoria |
Fix Released
|
High
|
Unassigned | ||
Wallaby |
Fix Released
|
High
|
Unassigned | ||
Xena |
Fix Released
|
Undecided
|
Unassigned | ||
horizon (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
[ Impact ]
The time complexity of opening the project/
This is due to
Which loops over the networks and requests the ports associated with the network. For large projects this scaling behavior can become prohibitive.
The patch [1] addresses this issue by reducing the number of API calls and hence the prefactor of the algorithm.
[ Test Plan ]
In order to reproduce the issue, create a Nova VM and then add many networks. On the instances tab in the Horizon UI click on "attach interface" for the VM. It will take a moment for the dialog to appear. The exact time until the dialog appears will depend on the number of networks linearly.
With [1] the time it takes for the dialog box to appear will be significantly shorter.
[ Where problems could occur ]
The patch [1] affects the "attach interface" dialog box and could break this UI feature in case something was wrong with the implementation. It is also possible that due to a bug in the implementation some networks are missing from the dialog.
Changed in horizon: | |
status: | New → In Progress |
description: | updated |
Changed in horizon (Ubuntu): | |
status: | New → Fix Released |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in horizon (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: |
added: verification-done removed: verification-needed |
https:/ /review. opendev. org/c/openstack /horizon/ +/809230/