Interface dettach and attach events are not being triggered

Bug #1956036 reported by Iago Filipe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Iago Filipe

Bug Description

Description
===========
Nova has two kinds of notification publishing mechanisms to RabbitMQ, legacy and non-legacy (unversioned and versioned). The network interface attach/detach events are triggered only in the versioned RabbitMQ topic.

Seen on Ussuri and above (till master)

The problem seems to be on nova.compute.manager.ComputeManager._detach_interface and nova.compute.manager.ComputeManager._attach_interface, is not calling self._notify_about_instance_usage which is used to push messages to the unversioned topic.

Besides that, on nova.rpc.LegacyValidatingNotifier the allowed_legacy_notification_event_types doesn't contains the interface events (described in the documentation[1]).

Therefore, the solution is: add the event to the array described above and call the notify_about_instance_usage inside attach and detach methods on ComputeManager.

Expected result
===============
Interface events published to unversioned and versioned topics.

Actual result
=============
Interface events published only to the versioned topic.

[1]https://docs.openstack.org/nova/latest/reference/notifications.html

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/823200

Changed in nova:
status: New → In Progress
Iago Filipe (ifest1)
Changed in nova:
assignee: nobody → Iago Filipe (ifest1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by "Iago Filipe <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/nova/+/823200

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.