diff options
author | Ramamani Yeleswarapu <ramamani.yeleswarapu@intel.com> | 2016-04-05 16:12:02 -0700 |
---|---|---|
committer | Ramamani Yeleswarapu <ramamani.yeleswarapu@intel.com> | 2016-06-27 10:23:09 -0700 |
commit | 700ad0567b0f93bbb3c527093156e7c4f09f9402 (patch) | |
tree | a0a3f0cd7fcf845bfb93f140755074f374fc1edd /ironic/conf/ipmi.py | |
parent | fffd74176940003e6d815138ea2c33a655e7118b (diff) | |
download | ironic-700ad0567b0f93bbb3c527093156e7c4f09f9402.tar.gz |
Centralize config options - [ipmi]
Nova style refactor of config options in Ironic.
Change-Id: I3ca346cca5161baeaefc1f976ae5ec38c0122eab
Partial-Bug: #1561100
Diffstat (limited to 'ironic/conf/ipmi.py')
-rw-r--r-- | ironic/conf/ipmi.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ironic/conf/ipmi.py b/ironic/conf/ipmi.py new file mode 100644 index 000000000..4dad3c2d6 --- /dev/null +++ b/ironic/conf/ipmi.py @@ -0,0 +1,42 @@ +# Copyright 2016 Intel Corporation +# +# Copyright 2013 International Business Machines Corporation +# All Rights Reserved. +# Copyright 2016 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from oslo_config import cfg + +from ironic.common.i18n import _ + +opts = [ + cfg.IntOpt('retry_timeout', + default=60, + help=_('Maximum time in seconds to retry IPMI operations. ' + 'There is a tradeoff when setting this value. Setting ' + 'this too low may cause older BMCs to crash and require ' + 'a hard reset. However, setting too high can cause the ' + 'sync power state periodic task to hang when there are ' + 'slow or unresponsive BMCs.')), + cfg.IntOpt('min_command_interval', + default=5, + help=_('Minimum time, in seconds, between IPMI operations ' + 'sent to a server. There is a risk with some hardware ' + 'that setting this too low may cause the BMC to crash. ' + 'Recommended setting is 5 seconds.')), +] + + +def register_opts(conf): + conf.register_opts(opts, group='ipmi') |