The pci-irq-affinity-agent currently receives notifications
from Rabbit for only three instance event types: create, resize
and delete. As consequence of this, the agent doesn't set IRQ
affinity settings correctly when other types of operation are
executed against an instance, like a migration or shutdown.
This commit refactor the listener notifications endpoints to
only two types: "instance online" and "instance offline", and
adds other relevant event types to be received by the agent.
Also this commit removes unused imports from the agent code.
Test Plan:
PASS: Verify that agent handles online operations for
instances that match PCI IRQ affine conditions
PASS: Verify that agent handles offline operations
instances that match PCI IRQ affine conditions
PASS: Boot instance, trigger live migrate, verify agent
resetting IRQ affinity on source host and setting
IRQ affinity on destination host
PASS: Boot instance, trigger cold migrate, verify agent
resetting IRQ affinity on source host and setting
IRQ affinity on destination host
Regression:
PASS: Verify that OpenStack applies successfully
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/821910 /opendev. org/starlingx/ utilities/ commit/ 50c00c7450cfe46 17474cb5b1305af e5dd629733
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 50c00c7450cfe46 17474cb5b1305af e5dd629733
Author: Heitor Matsui <email address hidden>
Date: Wed Dec 15 18:46:11 2021 -0300
Add event types to Rabbit notification listener
The pci-irq- affinity- agent currently receives notifications
from Rabbit for only three instance event types: create, resize
and delete. As consequence of this, the agent doesn't set IRQ
affinity settings correctly when other types of operation are
executed against an instance, like a migration or shutdown.
This commit refactor the listener notifications endpoints to
only two types: "instance online" and "instance offline", and
adds other relevant event types to be received by the agent.
Also this commit removes unused imports from the agent code.
Test Plan:
PASS: Verify that agent handles online operations for
instances that match PCI IRQ affine conditions
PASS: Verify that agent handles offline operations
instances that match PCI IRQ affine conditions
PASS: Boot instance, trigger live migrate, verify agent
resetting IRQ affinity on source host and setting
IRQ affinity on destination host
PASS: Boot instance, trigger cold migrate, verify agent
resetting IRQ affinity on source host and setting
IRQ affinity on destination host
Regression:
PASS: Verify that OpenStack applies successfully
Closes-bug: 1955051 /review. opendev. org/c/starlingx /openstack- armada- app/+/822357 5774c57065a3e82 e9ae081d234
Depends-on: https:/
Change-Id: I9f02730ec6110d
Signed-off-by: Heitor Matsui <email address hidden>
Co-authored-by: Iago Estrela <email address hidden>