← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1956036] [NEW] Interface dettach and attach events are not being triggered

 

Public bug reported:

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

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1956036

Title:
  Interface dettach and attach events are not being triggered

Status in OpenStack Compute (nova):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1956036/+subscriptions