The event is also notified even it is not a versioned notification and not whitelisted

Bug #1969698 reported by Wenping Song
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

IMO, we shouldnot send the event that is not a versioned notification and not whitelisted.
https://github.com/openstack/nova/blob/master/nova/rpc.py#L413, need to put L420 to else condiftion.

Wenping Song (wenping1)
description: updated
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

We either raise an Error or emit a warning depending on the fact that the code runs in a test env or in production. The self.fatal is set to True by ForbidNewLegacyNotificationFixture that is used in our base TestCase class.

The logic here is that we should not introduce new legacy notifications.

If that happens then the test case covering the new legacy notification will fail with the exception raised at L416.

Originally we did not block new legacy notifications in production (when self.fatal is False) environment as nova allows out of tree code to be imported like scheduler filters, or virt drivers, and we don't want to break those code in production if they emitting legacy notifications.

What do you suggest here? Should we raise exception for non whitelisted legacy notifications in production env? If so then please bring this up on the ML or weekly meeting as this needs a wider discussion.

I set this to incomplete. Please set it back to new if the wider discussion results in an agreement to raise such exception in production.

Changed in nova:
status: New → Incomplete
tags: added: notifications
Revision history for this message
Wenping Song (wenping1) wrote :

We neednot raise exeption for non whitelisted legacy notifications in production env. I suggest not to send the event that not in legacy notifications whitelist. Because in our production env, we may not need so much legacy notifications, when we change the whitelist, it doesnot take effect.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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