Make DB migration "Add indexes to RBACs" conditional
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Rodolfo Alonso |
Bug Description
This bug is related to [1] and the patch [2] (added in Yoga).
Some administrators, using older versions, are experiencing the issue reported in [1]. For example, one user has an environment that has several external networks with multiple projects (1K) and multiple network RBACs (around 2.5K). The CLI command "openstack network list", executed by a project member (not an admin), is timing out.
I've manually tested in a lab environments, based in stable/train (RH OSP16). I've manually backported [2] and added the indexes to the database. The network list API command improves from 2.5 seconds to 0.4 seconds [3]. In a loaded environment where the API times are slower, that improvement (5x) could be critical.
This is why I'm proposing this bug, to make the DB migration in [2] conditional. That means adding a check before adding any index. If the index is already present in the DB, that means the admin has manually added it. If not, the migration will add it.
The change I'm proposing **does NOT affect** any new deployment or any upgrade from a system without the indexes manually added.
[1]https:/
[2]https:/
[3]https:/
tags: | added: db |
Changed in neutron: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/884617
Review: https:/