From 75bc194a4596d9ea4c74a8188c59ea673a80a303 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Thu, 22 Dec 2016 12:39:15 -0500 Subject: [PATCH] Update dev-quickstart: interval value cannot be -1 This updates the documentation to set the sync_power_state_interval to a large number instead of -1. Using -1 results in the error ValueError: Periodicity/spacing must be greater than zero instead of -1 -1 used to work until we started using the futurist/periodics code. Change-Id: I1eb95345f8746a6ac7b97352bdeb20ca33e9434c --- doc/source/dev/dev-quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/dev/dev-quickstart.rst b/doc/source/dev/dev-quickstart.rst index 1aeffaf445..54ab65d21c 100644 --- a/doc/source/dev/dev-quickstart.rst +++ b/doc/source/dev/dev-quickstart.rst @@ -341,8 +341,8 @@ want to run a MySQL server on it all the time). # set a fake host name [useful if you want to test multiple services on the same host] sed -i "s/#host = .*/host = test-host/" etc/ironic/ironic.conf.local - # turn off the periodic sync_power_state task, to avoid getting NodeLocked exceptions - sed -i "s/#sync_power_state_interval = 60/sync_power_state_interval = -1/" etc/ironic/ironic.conf.local + # change the periodic sync_power_state_interval to a week, to avoid getting NodeLocked exceptions + sed -i "s/#sync_power_state_interval = 60/sync_power_state_interval = 604800/" etc/ironic/ironic.conf.local # if you opted to install mysql-server, switch the DB connection from sqlite to mysql sed -i "s/#connection = .*/connection = mysql\+pymysql:\/\/root:MYSQL_ROOT_PWD@localhost\/ironic/" etc/ironic/ironic.conf.local