Enable notification for vm task state update
Add a script command to enable Nova compute.instance.update notifications on VM and task state changes. Change-Id: I639f003d92e184085a332f53c6783e5eca0002fe
This commit is contained in:
@@ -129,6 +129,7 @@ function create_watcher_conf {
|
|||||||
iniset $WATCHER_CONF oslo_messaging_notifications driver "messaging"
|
iniset $WATCHER_CONF oslo_messaging_notifications driver "messaging"
|
||||||
|
|
||||||
iniset $NOVA_CONF oslo_messaging_notifications topics "notifications,watcher_notifications"
|
iniset $NOVA_CONF oslo_messaging_notifications topics "notifications,watcher_notifications"
|
||||||
|
iniset $NOVA_CONF notifications notify_on_state_change "vm_and_task_state"
|
||||||
|
|
||||||
configure_auth_token_middleware $WATCHER_CONF watcher $WATCHER_AUTH_CACHE_DIR
|
configure_auth_token_middleware $WATCHER_CONF watcher $WATCHER_AUTH_CACHE_DIR
|
||||||
configure_auth_token_middleware $WATCHER_CONF watcher $WATCHER_AUTH_CACHE_DIR "watcher_clients_auth"
|
configure_auth_token_middleware $WATCHER_CONF watcher $WATCHER_AUTH_CACHE_DIR "watcher_clients_auth"
|
||||||
|
|||||||
@@ -44,3 +44,6 @@ LOGDAYS=2
|
|||||||
[[post-config|$NOVA_CONF]]
|
[[post-config|$NOVA_CONF]]
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
compute_monitors=cpu.virt_driver
|
compute_monitors=cpu.virt_driver
|
||||||
|
notify_on_state_change = vm_and_task_state
|
||||||
|
[notifications]
|
||||||
|
notify_on_state_change = vm_and_task_state
|
||||||
|
|||||||
@@ -45,3 +45,6 @@ LOGDAYS=2
|
|||||||
[[post-config|$NOVA_CONF]]
|
[[post-config|$NOVA_CONF]]
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
compute_monitors=cpu.virt_driver
|
compute_monitors=cpu.virt_driver
|
||||||
|
notify_on_state_change = vm_and_task_state
|
||||||
|
[notifications]
|
||||||
|
notify_on_state_change = vm_and_task_state
|
||||||
|
|||||||
Reference in New Issue
Block a user