Bug 2161229

Summary: Add rate-limiting to metadata agents
Product: Red Hat OpenStack Reporter: Bernard Cafarelli <bcafarel>
Component: openstack-neutronAssignee: Miguel Lavalle <mlavalle>
Status: ON_DEV --- QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: urgent    
Version: 17.0 (Wallaby)CC: chrisw, dhughes, ekuris, mlavalle, scohen, smsallem, ykarel
Target Milestone: z1Keywords: Triaged
Target Release: 17.1Flags: lsvaty: needinfo? (mlavalle)
ifrangs: needinfo? (mlavalle)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bernard Cafarelli 2023-01-16 10:50:05 UTC
This bugzilla goal is to complete upstream launchpad bug [0] and include it in OSP:

At the moment, there is no limit on how many requests the metadata-agent will handle. Some users may sometimes run scripts in their instances that
try to query the metadata endpoint at high rate (for example a bugged k8s cloud controller manager), causing an increased load on some or all the
component above the metadata-agent.

Spec was accepted and merged [1], but proposed code change was not fully completed [2]

[0] https://bugs.launchpad.net/neutron/+bug/1989199
[1] https://review.opendev.org/c/openstack/neutron-specs/+/856831
[2] https://review.opendev.org/c/openstack/neutron/+/858879