diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-08-30 16:42:13 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-08-30 16:48:52 +0200 |
commit | 386743148866a2b6dd52738d36733d9377564dcf (patch) | |
tree | 489f29b0d789dd438845b102ad6ffda31a33d8ba /ironic/conf/iscsi.py | |
parent | 3c9f2a834e9256d961e0c622d47bc7699f0cd070 (diff) | |
download | ironic-386743148866a2b6dd52738d36733d9377564dcf.tar.gz |
Prepare for deprecation of iscsi_verify_attempts in ironic-lib
ironic-lib itself is not concerned with iscsi deploy, and this option
is actually used for partition detection retry count. This is
confusing, so this patch moves the option to ironic.
Change-Id: Idacf9b576173f878475a4b7e1503109095dafcd0
Diffstat (limited to 'ironic/conf/iscsi.py')
-rw-r--r-- | ironic/conf/iscsi.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ironic/conf/iscsi.py b/ironic/conf/iscsi.py index c01053f8f..0ac340012 100644 --- a/ironic/conf/iscsi.py +++ b/ironic/conf/iscsi.py @@ -27,7 +27,15 @@ opts = [ help=_('Flags that need to be sent to the dd command, ' 'to control the conversion of the original file ' 'when copying to the host. It can contain several ' - 'options separated by commas.')) + 'options separated by commas.')), + # TODO(dtantsur): update in Ussuri when the deprecated option is removed + # from ironic-lib. + cfg.IntOpt('verify_attempts', + min=1, + help=_('Maximum attempts to verify an iSCSI connection is ' + 'active, sleeping 1 second between attempts. Defaults ' + 'to the deprecated [disk_utils]iscsi_verify_attempts ' + 'option, after its removal will default to 3.')), ] |