<div dir="ltr"><div>Hi,<br><br></div>If I'm interpreting this correctly, nova compute is calling get_diagnostics on all instances, including ones currently in a shutdown state.  And then it throws an exception, and adds an entry into the instance_faults table in the database.<br><div><div><div><div><div><br>nova-compute logs this message:<br><br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     executor_callback))<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     executor_callback)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     payload)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 378, in decorated_function<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 195, in __exit__<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 366, in decorated_function<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 4089, in get_diagnostics<br>2017-07-07 16:29:46.184 23077 ERROR oslo_messaging.rpc.dispatcher     method='get_diagnostics')<br><br>2017-07-07 16:30:10.017 23077 ERROR oslo_messaging.rpc.dispatcher InstanceInvalidState: Instance 6ab60005-ccbf-4bc2-95ac-7daf31716754 in power_state 4. Cannot get_diagnostics while the instance is in this state.<br><br></div><div>I don't think it should be trying to gather diags on shutdown instances, and if it did, it shouldn't just create a never-ending stream of errors.<br></div><div>If anyone has any info on if this might be a bug that is fixed in the latest release, or if I can turn off this behavior, it would be appreciated.<br><br></div><div>Best,<br></div><div>Peter<br></div></div></div></div></div></div>