summaryrefslogtreecommitdiff
path: root/releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml
diff options
context:
space:
mode:
authorRuby Loo <rloo@oath.com>2018-05-17 15:22:42 +0000
committerRuby Loo <rloo@oath.com>2018-08-14 01:19:02 +0000
commitf39aae0c95567d78e9a29dbb7e74abe1104c97d0 (patch)
tree08abdee9a8f11db631e5c2b3e368244a54c2b112 /releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml
parent01ae88db376311d3bc44fc3f5d26064eeebc22e7 (diff)
downloadironic-f39aae0c95567d78e9a29dbb7e74abe1104c97d0.tar.gz
Disable periodic tasks if interval set to 0
For periodic tasks that are specified with the decorator @perodics.periodic(), a ValueError exception was raised if a value <= 0 was specified for any of the spacing values (taken from configuration options). Specifying a value <=0 used to work, to disable the task altogether. It broke when we switched to using the futurist package (some time in mitaka cycle). This fixes it so that setting these configuration options to 0 (or a negative value) will disable the periodic tasks: - [conductor]sync_power_state_interval: sync power states for the nodes - [conductor]check_provision_state_interval: - check deployments and time out if the deployment takes too long - check the status of cleaning a node and time out if it takes too long - check the status of inspecting a node and time out if it takes too long - check for and handle nodes that are taken over by new conductors (if an old conductor disappeared) - [conductor]send_sensor_data_interval: send sensor data to ceilometer - [conductor]sync_local_state_interval: refresh a conductor's copy of the consistent hash ring. If any mappings have changed, determines which, if any, nodes need to be "taken over". The ensuing actions could include preparing a PXE environment, updating the DHCP server, and so on. - [oneview]periodic_check_interval: - check for nodes taken over by OneView users - check for nodes freed by OneView users Change-Id: I62708e239295344d0dcf0bff7dd68ec8c34ab9a0 Story: #2002059 Task: #19708
Diffstat (limited to 'releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml')
-rw-r--r--releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml b/releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml
new file mode 100644
index 000000000..a2811537e
--- /dev/null
+++ b/releasenotes/notes/disable_periodic_tasks-0ea39fa7a8a108c6.yaml
@@ -0,0 +1,49 @@
+---
+features:
+ - |
+ Setting these configuration options to 0 will disable the periodic tasks:
+
+ * [conductor]sync_power_state_interval: sync power states for the nodes
+ * [conductor]check_provision_state_interval:
+
+ * check deployments and time out if the deployment takes too long
+ * check the status of cleaning a node and time out if it takes too long
+ * check the status of inspecting a node and time out if it takes too long
+ * check for and handle nodes that are taken over by new conductors (if an
+ old conductor disappeared)
+
+ * [conductor]send_sensor_data_interval: send sensor data to ceilometer
+ * [conductor]sync_local_state_interval: refresh a conductor's copy of the
+ consistent hash ring. If any mappings have changed, determines which,
+ if any, nodes need to be "taken over". The ensuing actions could include
+ preparing a PXE environment, updating the DHCP server, and so on.
+ * [oneview]periodic_check_interval:
+
+ * check for nodes taken over by OneView users
+ * check for nodes freed by OneView users
+
+fixes:
+ - |
+ Fixes an issue where setting these configuration options to 0 caused a
+ ValueError exception to be raised. You can now set them to 0 to disable the
+ associated periodic tasks. (For more information, see `story 2002059
+ <https://storyboard.openstack.org/#!/story/2002059>`_.):
+
+ * [conductor]sync_power_state_interval: sync power states for the nodes
+ * [conductor]check_provision_state_interval:
+
+ * check deployments and time out if the deployment takes too long
+ * check the status of cleaning a node and time out if it takes too long
+ * check the status of inspecting a node and time out if it takes too long
+ * check for and handle nodes that are taken over by new conductors (if an
+ old conductor disappeared)
+
+ * [conductor]send_sensor_data_interval: send sensor data to ceilometer
+ * [conductor]sync_local_state_interval: refresh a conductor's copy of the
+ consistent hash ring. If any mappings have changed, determines which,
+ if any, nodes need to be "taken over". The ensuing actions could include
+ preparing a PXE environment, updating the DHCP server, and so on.
+ * [oneview]periodic_check_interval:
+
+ * check for nodes taken over by OneView users
+ * check for nodes freed by OneView users