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
This commit is contained in:
Ruby Loo 2016-12-22 12:39:15 -05:00
parent 2a4d3cc5e8
commit 75bc194a45

View File

@ -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