Configure nova notification format in non-grenade CI jobs
Nova used to emit versioned and unversioned notiifcations by default but that changed in https://review.opendev.org/603079/ so now nova emits only unversioned notifications by default. Watcher listens for versioned notifications so we need to configure nova to emit both versioned (for Watcher) and unversioned (for Ceilometer) notifications explicitly. This adds an override-defaults file so devstack will load up the nova devstack variable to set the notification_format before importing and stacking the nova lib script. Note that this only fixes the non-grenade CI jobs since grenade requires separate handling for overriding defaults which is proving hard to do and will be addressed in a separate change. Partial-Bug: #1831917 Change-Id: I7e441608b38338eecd80e663ed3abe66a89e504f
This commit is contained in:
parent
899e534761
commit
966a4dfa5f
@ -45,3 +45,9 @@ LOGDAYS=2
|
|||||||
[[post-config|$NOVA_CONF]]
|
[[post-config|$NOVA_CONF]]
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
compute_monitors=cpu.virt_driver
|
compute_monitors=cpu.virt_driver
|
||||||
|
[notifications]
|
||||||
|
# Enable both versioned and unversioned notifications. Watcher only
|
||||||
|
# uses versioned notifications but ceilometer uses unversioned. We
|
||||||
|
# can change this to just versioned when ceilometer handles versioned
|
||||||
|
# notifications from nova: https://bugs.launchpad.net/ceilometer/+bug/1665449
|
||||||
|
notification_format=both
|
||||||
|
@ -49,3 +49,9 @@ LOGDAYS=2
|
|||||||
[[post-config|$NOVA_CONF]]
|
[[post-config|$NOVA_CONF]]
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
compute_monitors=cpu.virt_driver
|
compute_monitors=cpu.virt_driver
|
||||||
|
[notifications]
|
||||||
|
# Enable both versioned and unversioned notifications. Watcher only
|
||||||
|
# uses versioned notifications but ceilometer uses unversioned. We
|
||||||
|
# can change this to just versioned when ceilometer handles versioned
|
||||||
|
# notifications from nova: https://bugs.launchpad.net/ceilometer/+bug/1665449
|
||||||
|
notification_format=both
|
||||||
|
9
devstack/override-defaults
Normal file
9
devstack/override-defaults
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Plug-in overrides
|
||||||
|
# https://docs.openstack.org/devstack/latest/plugins.html#plugin-interface
|
||||||
|
|
||||||
|
# Enable both versioned and unversioned notifications. Watcher only
|
||||||
|
# uses versioned notifications but ceilometer uses unversioned. We
|
||||||
|
# can change this to just versioned when ceilometer handles
|
||||||
|
# versioned notifications from nova:
|
||||||
|
# https://bugs.launchpad.net/ceilometer/+bug/1665449
|
||||||
|
NOVA_NOTIFICATION_FORMAT=both
|
Loading…
Reference in New Issue
Block a user