The event is also notified even it is not a versioned notification and not whitelisted
Bug #1969698 reported by
Wenping Song
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:/
description: | updated |
To post a comment you must log in.
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 ForbidNewLegacy NotificationFix ture 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.