summaryrefslogtreecommitdiff
path: root/releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml
diff options
context:
space:
mode:
authorRuby Loo <ruby.loo@intel.com>2016-09-13 17:46:27 -0400
committerRuby Loo <ruby.loo@intel.com>2016-09-15 11:14:20 -0400
commitec202c444ba159797403407c771e24fbc2ddcd4f (patch)
tree1ad35cbafbd198f82d92ba361d06b2330693786e /releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml
parent57d4e0ce3d18f738c1fbe7453421833f9712f534 (diff)
downloadironic-ec202c444ba159797403407c771e24fbc2ddcd4f.tar.gz
Separate WSGIService from RPCService
This patch fixes a problem which prevented Ironic from honoring the interval values configuration for the periodic tasks. Since the interval values are passed to a decorator, the configuration options should be evaluated prior to importing the module which contains the periodic tasks. In our case this was not happening due to the chain of imports going from ironic.cmd.conductor -> ironic.common.service -> ironic.api.app -> ... -> ironic.conductor.manager. This caused the @periodic decorators to be evaluated before the configuration options were loaded. This patch breaks that chain of imports by separating the WSGIService and RPCService classes into two separate files. The conductor uses the RPCService, and since it is now in a separate file from WSGIService, it no longer pulls in ironic.api.app, ..., and ironic.conductor.manager. (ironic.api.app was being imported because WSGIService needed it.) Change-Id: Ie318e7bb2d2c2d971a796ab8960be33fccbd88f3 Closes-Bug: #1562258 Co-Authored-By: Lucas Alvares Gomes <lucasagomes@gmail.com>
Diffstat (limited to 'releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml')
-rw-r--r--releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml b/releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml
new file mode 100644
index 000000000..a16117051
--- /dev/null
+++ b/releasenotes/notes/conductor_early_import-fd29fa8b89089977.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+ - Fixes a bug which prevented the ironic-conductor service from
+ using the interval values from the configuration options, for
+ the periodic tasks. Instead, the default values had been used.