Add sync maintenance state periodic task

When ironic nodes go to maintenance state, we should move instance
to maintenance state as well.

Change-Id: Iced6535157668fb5cda9a0459272c13d3e8b3af5
This commit is contained in:
Zhenguo Niu
2017-03-06 19:55:56 +08:00
parent 374de173c7
commit 508b86f9b1
5 changed files with 84 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ opts = [
default=600,
help=_("Interval to sync power states between the database "
"and Ironic, in seconds.")),
cfg.IntOpt('sync_maintenance_interval',
default=600,
help=_("Interval to sync maintenance states between the "
"database and Ironic, in seconds.")),
]