[nova][ops] Problems disabling notifications on state changes
I am disabling ceilometer on my OpenStack Ocata cloud. As fas as I understand, besides stopping the ceilometer services, I can also apply the following changes to nova.conf on the compute nodes: instance_usage_audit = True --> false notify_on_state_change = vm_and_task_state --> None I have a problem with the latter change: # grep ^notify_on_state_change /etc/nova/nova.conf notify_on_state_change=None but in the nova log: 2019-01-21 08:31:48.246 6349 ERROR nova ConfigFileValueError: Value for option notify_on_state_change is not valid: Valid values are [None, vm_state, vm_and_task_state], but found 'None' I have also tried setting notify_on_state_change=<None> but it complains that it is not a valid value I can simply comment that line, but I am afraid there is a problem somewhere Thanks, Massimo
On Mon, Jan 21, 2019 at 8:42 AM, Massimo Sgaravatto <massimo.sgaravatto@gmail.com> wrote:
I am disabling ceilometer on my OpenStack Ocata cloud.
As fas as I understand, besides stopping the ceilometer services, I can also apply the following changes to nova.conf on the compute nodes:
instance_usage_audit = True --> false notify_on_state_change = vm_and_task_state --> None
I have a problem with the latter change:
# grep ^notify_on_state_change /etc/nova/nova.conf notify_on_state_change=None
but in the nova log:
2019-01-21 08:31:48.246 6349 ERROR nova ConfigFileValueError: Value for option notify_on_state_change is not valid: Valid values are [None, vm_state, vm_and_task_state], but found 'None'
I have also tried setting
notify_on_state_change=<None>
but it complains that it is not a valid value
I can simply comment that line, but I am afraid there is a problem somewhere
If you want to turn off all the notification sending from Nova, then I suggest to add the following [1] to the nova.conf: [oslo_messaging_notifications] driver = noop I verified in a devstack that if you not specify the notify_on_state_change attribute in the config file then it properly defaults to None. I think there is no way to specify the None value othervise in the config file. Cheers, gibi [1] https://docs.openstack.org/oslo.messaging/latest/configuration/opts.html#osl...
Thanks, Massimo
Thanks a lot ! Cheers, Massimo On Mon, Jan 21, 2019 at 10:49 AM Balázs Gibizer <balazs.gibizer@ericsson.com> wrote:
On Mon, Jan 21, 2019 at 8:42 AM, Massimo Sgaravatto <massimo.sgaravatto@gmail.com> wrote:
I am disabling ceilometer on my OpenStack Ocata cloud.
As fas as I understand, besides stopping the ceilometer services, I can also apply the following changes to nova.conf on the compute nodes:
instance_usage_audit = True --> false notify_on_state_change = vm_and_task_state --> None
I have a problem with the latter change:
# grep ^notify_on_state_change /etc/nova/nova.conf notify_on_state_change=None
but in the nova log:
2019-01-21 08:31:48.246 6349 ERROR nova ConfigFileValueError: Value for option notify_on_state_change is not valid: Valid values are [None, vm_state, vm_and_task_state], but found 'None'
I have also tried setting
notify_on_state_change=<None>
but it complains that it is not a valid value
I can simply comment that line, but I am afraid there is a problem somewhere
If you want to turn off all the notification sending from Nova, then I suggest to add the following [1] to the nova.conf: [oslo_messaging_notifications]
driver = noop
I verified in a devstack that if you not specify the notify_on_state_change attribute in the config file then it properly defaults to None. I think there is no way to specify the None value othervise in the config file.
Cheers, gibi [1]
https://docs.openstack.org/oslo.messaging/latest/configuration/opts.html#osl...
Thanks, Massimo
participants (2)
-
Balázs Gibizer
-
Massimo Sgaravatto