Rename ipmi driver to ipmitool
To make naming more consistent with other ipmi drivers that will be introduced later, the module name for ipmi driver that uses the ipmitool is renamed from ipmi to ipmitool. Change-Id: I8ec0d4beb29a06af7b27d3ff0620fab5446579b1
This commit is contained in:
parent
d5d42ad655
commit
86934b81c5
@ -79,7 +79,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Options defined in ironic.drivers.modules.ipmi
|
# Options defined in ironic.drivers.modules.ipmitool
|
||||||
#
|
#
|
||||||
|
|
||||||
# path to baremetal terminal program (string value)
|
# path to baremetal terminal program (string value)
|
||||||
|
@ -106,7 +106,7 @@ class Connection(object):
|
|||||||
'instance_uuid': None,
|
'instance_uuid': None,
|
||||||
'power_state': states.NOSTATE,
|
'power_state': states.NOSTATE,
|
||||||
'provision_state': states.NOSTATE,
|
'provision_state': states.NOSTATE,
|
||||||
'driver': 'pxe_ipmi',
|
'driver': 'pxe_ipmitool',
|
||||||
'driver_info': { ... },
|
'driver_info': { ... },
|
||||||
'properties': { ... },
|
'properties': { ... },
|
||||||
'extra': { ... },
|
'extra': { ... },
|
||||||
|
@ -20,7 +20,7 @@ Fake drivers used in testing.
|
|||||||
|
|
||||||
from ironic.drivers import base
|
from ironic.drivers import base
|
||||||
from ironic.drivers.modules import fake
|
from ironic.drivers.modules import fake
|
||||||
from ironic.drivers.modules import ipmi
|
from ironic.drivers.modules import ipmitool
|
||||||
from ironic.drivers.modules import pxe
|
from ironic.drivers.modules import pxe
|
||||||
from ironic.drivers.modules import ssh
|
from ironic.drivers.modules import ssh
|
||||||
|
|
||||||
@ -34,11 +34,11 @@ class FakeDriver(base.BaseDriver):
|
|||||||
self.vendor = fake.FakeVendor()
|
self.vendor = fake.FakeVendor()
|
||||||
|
|
||||||
|
|
||||||
class FakeIPMIDriver(base.BaseDriver):
|
class FakeIPMIToolDriver(base.BaseDriver):
|
||||||
"""Example implementation of a Driver."""
|
"""Example implementation of a Driver."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.power = ipmi.IPMIPower()
|
self.power = ipmitool.IPMIPower()
|
||||||
self.deploy = fake.FakeDeploy()
|
self.deploy = fake.FakeDeploy()
|
||||||
self.vendor = self.power
|
self.vendor = self.power
|
||||||
|
|
||||||
|
@ -19,13 +19,13 @@ PXE Driver and supporting meta-classes.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from ironic.drivers import base
|
from ironic.drivers import base
|
||||||
from ironic.drivers.modules import ipmi
|
from ironic.drivers.modules import ipmitool
|
||||||
from ironic.drivers.modules import pxe
|
from ironic.drivers.modules import pxe
|
||||||
from ironic.drivers.modules import ssh
|
from ironic.drivers.modules import ssh
|
||||||
|
|
||||||
|
|
||||||
class PXEAndIPMIDriver(base.BaseDriver):
|
class PXEAndIPMIToolDriver(base.BaseDriver):
|
||||||
"""PXE + IPMI driver.
|
"""PXE + IPMITool driver.
|
||||||
|
|
||||||
This driver implements the `core` functionality, combinding
|
This driver implements the `core` functionality, combinding
|
||||||
:class:ironic.drivers.ipmi.IPMI for power on/off and reboot with
|
:class:ironic.drivers.ipmi.IPMI for power on/off and reboot with
|
||||||
@ -34,7 +34,7 @@ class PXEAndIPMIDriver(base.BaseDriver):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.power = ipmi.IPMIPower()
|
self.power = ipmitool.IPMIPower()
|
||||||
self.deploy = pxe.PXEDeploy()
|
self.deploy = pxe.PXEDeploy()
|
||||||
self.rescue = self.deploy
|
self.rescue = self.deploy
|
||||||
self.vendor = pxe.IPMIVendorPassthru()
|
self.vendor = pxe.IPMIVendorPassthru()
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""Test class for IPMI driver module."""
|
"""Test class for IPMITool driver module."""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
@ -31,7 +31,7 @@ from ironic.common import states
|
|||||||
from ironic.common import utils
|
from ironic.common import utils
|
||||||
from ironic.conductor import task_manager
|
from ironic.conductor import task_manager
|
||||||
from ironic.db import api as db_api
|
from ironic.db import api as db_api
|
||||||
from ironic.drivers.modules import ipmi
|
from ironic.drivers.modules import ipmitool as ipmi
|
||||||
from ironic.tests import base
|
from ironic.tests import base
|
||||||
from ironic.tests.conductor import utils as mgr_utils
|
from ironic.tests.conductor import utils as mgr_utils
|
||||||
from ironic.tests.db import base as db_base
|
from ironic.tests.db import base as db_base
|
||||||
@ -40,12 +40,12 @@ from ironic.tests.db import utils as db_utils
|
|||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
|
||||||
class IPMIPrivateMethodTestCase(base.TestCase):
|
class IPMIToolPrivateMethodTestCase(base.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(IPMIPrivateMethodTestCase, self).setUp()
|
super(IPMIToolPrivateMethodTestCase, self).setUp()
|
||||||
self.node = db_utils.get_test_node(
|
self.node = db_utils.get_test_node(
|
||||||
driver='fake_ipmi',
|
driver='fake_ipmitool',
|
||||||
driver_info=db_utils.ipmi_info)
|
driver_info=db_utils.ipmi_info)
|
||||||
self.info = ipmi._parse_driver_info(self.node)
|
self.info = ipmi._parse_driver_info(self.node)
|
||||||
|
|
||||||
@ -152,15 +152,15 @@ class IPMIPrivateMethodTestCase(base.TestCase):
|
|||||||
self.assertEqual(state, states.ERROR)
|
self.assertEqual(state, states.ERROR)
|
||||||
|
|
||||||
|
|
||||||
class IPMIDriverTestCase(db_base.DbTestCase):
|
class IPMIToolDriverTestCase(db_base.DbTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(IPMIDriverTestCase, self).setUp()
|
super(IPMIToolDriverTestCase, self).setUp()
|
||||||
self.dbapi = db_api.get_instance()
|
self.dbapi = db_api.get_instance()
|
||||||
self.driver = mgr_utils.get_mocked_node_manager(driver='fake_ipmi')
|
self.driver = mgr_utils.get_mocked_node_manager(driver='fake_ipmitool')
|
||||||
|
|
||||||
self.node = db_utils.get_test_node(
|
self.node = db_utils.get_test_node(
|
||||||
driver='fake_ipmi',
|
driver='fake_ipmitool',
|
||||||
driver_info=db_utils.ipmi_info)
|
driver_info=db_utils.ipmi_info)
|
||||||
self.info = ipmi._parse_driver_info(self.node)
|
self.info = ipmi._parse_driver_info(self.node)
|
||||||
self.dbapi.create_node(self.node)
|
self.dbapi.create_node(self.node)
|
@ -35,10 +35,10 @@ console_scripts =
|
|||||||
|
|
||||||
ironic.drivers =
|
ironic.drivers =
|
||||||
fake = ironic.drivers.fake:FakeDriver
|
fake = ironic.drivers.fake:FakeDriver
|
||||||
fake_ipmi = ironic.drivers.fake:FakeIPMIDriver
|
fake_ipmitool = ironic.drivers.fake:FakeIPMIToolDriver
|
||||||
fake_ssh = ironic.drivers.fake:FakeSSHDriver
|
fake_ssh = ironic.drivers.fake:FakeSSHDriver
|
||||||
fake_pxe = ironic.drivers.fake:FakePXEDriver
|
fake_pxe = ironic.drivers.fake:FakePXEDriver
|
||||||
pxe_ipmi = ironic.drivers.pxe:PXEAndIPMIDriver
|
pxe_ipmitool = ironic.drivers.pxe:PXEAndIPMIToolDriver
|
||||||
pxe_ssh = ironic.drivers.pxe:PXEAndSSHDriver
|
pxe_ssh = ironic.drivers.pxe:PXEAndSSHDriver
|
||||||
|
|
||||||
[pbr]
|
[pbr]
|
||||||
|
Loading…
Reference in New Issue
Block a user