<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>We're seeing an issue where neutron-server (Havana) iterates over all security groups (with an individual SELECT query for each), rather than just the security groups in the tenant. We can trigger this by creating a port using the default security group.
If we specify no security groups, or a specific security group, it works fine.</div>
<div><br>
</div>
<div>We have ~1000 tenants and 10 security groups in each tenant in this environment. So this ultimately results in 10k SQL queries, which tanks neutron-server for a few minutes. Note that all the tenants are in the same network.</div>
<div><br>
</div>
<div>Still trying to run down where in the code this is happening. But I've been able to trace the SQL queries up to when it starts the iteration: <a href="http://pastebin.com/ZkP5idkJ">http://pastebin.com/ZkP5idkJ</a></div>
<div><br>
</div>
<div>You can see where the first two queries get the groups/rules just for the specific tenant. But then after that, it's the same queries, but for groups/rules in
<span style="font-weight: bold; ">all</span> tenants.</div>
<div><br>
</div>
<div>We will continue looking into it to see what we can find, but any suggestions or ideas would be appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Mike</div>
<div><u><br>
</u></div>
</body>
</html>