Delete unused 'use_ipv6' config option

The 'use_ipv6' config option is not being used, and Ironic doesn't support
IPv6 (see https://bugs.launchpad.net/ironic/+bug/1325942). Someone may
try to set this value to True, and that wouldn't do anything, so it is
better to delete it and add it back in the future when IPv6 is supported.

I'm not sure it needs a DocImpact since it never worked, but I'll tag
it, just in case we want to document that "the 'use_ipv6' config option
was deleted because it never worked".

Closes-Bug: #1384509
DocImpact

Change-Id: I7704067ca50448ffb0982e653437d151af85471f
This commit is contained in:
Ruby Loo 2014-10-23 00:55:48 +00:00
parent 6e61a6bb97
commit 1a9d58115b
4 changed files with 0 additions and 9 deletions

View File

@ -192,9 +192,6 @@
# IP address of this host. (string value)
#my_ip=10.0.0.1
# Use IPv6. (boolean value)
#use_ipv6=false
#
# Options defined in ironic.api.app

View File

@ -90,7 +90,6 @@ LOG = logging.getLogger(__name__)
CONF = cfg.CONF
CONF.register_opts(pxe_opts, group='pxe')
CONF.import_opt('use_ipv6', 'ironic.netconf')
REQUIRED_PROPERTIES = {

View File

@ -44,9 +44,6 @@ netconf_opts = [
cfg.StrOpt('my_ip',
default=_get_my_ip(),
help='IP address of this host.'),
cfg.BoolOpt('use_ipv6',
default=False,
help='Use IPv6.'),
]
CONF.register_opts(netconf_opts)

View File

@ -20,7 +20,6 @@ from oslo.config import cfg
from ironic.common import config
CONF = cfg.CONF
CONF.import_opt('use_ipv6', 'ironic.netconf')
CONF.import_opt('host', 'ironic.common.service')
@ -36,7 +35,6 @@ class ConfFixture(fixtures.Fixture):
self.conf.set_default('host', 'fake-mini')
self.conf.set_default('connection', "sqlite://", group='database')
self.conf.set_default('sqlite_synchronous', False, group='database')
self.conf.set_default('use_ipv6', True)
self.conf.set_default('verbose', True)
config.parse_args([], default_config_files=[])
self.addCleanup(self.conf.reset)