Repository navigation
networking-baremetal: fix pool queue leak - #843
Merged
Merged
Conversation
The ironic-neutron-agent names its member-manager notification pool after self.agent_id, a UUID generated anew on every start. With rabbit_quorum_queue = true, amqp_auto_delete cannot be used, so each restart creates a new durable queue ironic-neutron-agent-member-manager-pool-<uuid> while the previous one stays bound to the notification exchange without a consumer and keeps accumulating messages. Operators have reported orphaned queues with hundreds of thousands of messages and steadily growing RabbitMQ memory use. Carry the upstream fix for 2024.1, 2024.2, 2025.1 and 2025.2: https://review.opendev.org/c/openstack/networking-baremetal/+/998079 It uses self.agent_host (socket.gethostname(), already set on all these branches) as the pool name instead, so the same queue is reused across restarts on a host. The patch is the stable/2026.1 cherry-pick, release note included, with the hunk header moved to match each sdist so that it applies without offset. Applying it with an offset would leave an ironic_neutron_agent.py.orig behind in the tarball. The file is named like git format-patch output, as the other carried upstream commits are. 2026.1 needs no patch: the fix is merged on stable/2026.1 and the stable-2026.1 tarball already contains it. neutron plugins are not among the projects that the generated kolla-build.conf lists as tarballs, so kolla downloads networking-baremetal itself and 003-patch.sh never sees it. Add a neutron-base-plugin-networking-baremetal section next to neutron in the four templates, pointing at the same networking-baremetal tarball kolla would use by default (unmaintained-2024.1, stable-<release> otherwise), so it is downloaded, patched and repacked like the others. This is the same routing as for magnum-ui. All four kolla refs, including the 2024.2-eol tag, know this source name. networking-baremetal is installed into neutron-base, but the agent runs from the ironic-neutron-agent image built on top of it. 2024.1 builds only the images listed in KOLLA_IMAGES, and ^neutron does not match ironic-neutron-agent, so add ^ironic-neutron-agent there. Otherwise the patched neutron-base would never reach the agent image. The other releases build all images. The patch only stops new queues from piling up. Queues already left behind by earlier restarts have to be deleted manually once. Related: osism/issues#1470 Related: https://bugs.launchpad.net/networking-baremetal/+bug/2086303 Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Roger Luethi <luethi@osism.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Carries the upstream networking-baremetal fix for orphaned RabbitMQ quorum queues to 2024.1, 2024.2, 2025.1 and 2025.2.
Problem
ironic-neutron-agentnames its member-manager notification pool after a UUID generated on every start. Withrabbit_quorum_queue = true,amqp_auto_deletecan't be used, so each restart leaves behind a durableironic-neutron-agent-member-manager-pool-<uuid>queue with no consumer that keeps collecting notifications. Operators have reported queues with hundreds of thousands of messages and growing RabbitMQ memory use.Change
*.origin the tarball.kolla-build.conf, so kolla downloads networking-baremetal itself and003-patch.shwould never patch it. Aneutron-base-plugin-networking-baremetalsection routes it throughtarballs/, as was already done for magnum-ui.KOLLA_IMAGES: add^ironic-neutron-agent. networking-baremetal is installed intoneutron-base, but the agent runs fromironic-neutron-agent, which^neutrondoesn't match.2026.1 needs nothing: the fix is already in the stable-2026.1 tarball.
Verification
003-patch.shagainst the networking-baremetal tarball: the patch applied, was recorded as applied, left no*.orig, and the repacked agent code usesself.agent_host.2024.2-eoltag) knows theneutron-base-plugin-networking-baremetalsource name.zuullabel runs.Operator note
The patch only prevents new orphaned queues. Queues left behind by earlier restarts have to be deleted manually once.
🤖 Generated with Claude Code