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:
linggao 2013-09-09 20:52:18 +00:00
parent d5d42ad655
commit 86934b81c5
7 changed files with 20 additions and 20 deletions

View File

@ -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)

View File

@ -106,7 +106,7 @@ class Connection(object):
'instance_uuid': None,
'power_state': states.NOSTATE,
'provision_state': states.NOSTATE,
'driver': 'pxe_ipmi',
'driver': 'pxe_ipmitool',
'driver_info': { ... },
'properties': { ... },
'extra': { ... },

View File

@ -20,7 +20,7 @@ Fake drivers used in testing.
from ironic.drivers import base
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 ssh
@ -34,11 +34,11 @@ class FakeDriver(base.BaseDriver):
self.vendor = fake.FakeVendor()
class FakeIPMIDriver(base.BaseDriver):
class FakeIPMIToolDriver(base.BaseDriver):
"""Example implementation of a Driver."""
def __init__(self):
self.power = ipmi.IPMIPower()
self.power = ipmitool.IPMIPower()
self.deploy = fake.FakeDeploy()
self.vendor = self.power

View File

@ -19,13 +19,13 @@ PXE Driver and supporting meta-classes.
"""
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 ssh
class PXEAndIPMIDriver(base.BaseDriver):
"""PXE + IPMI driver.
class PXEAndIPMIToolDriver(base.BaseDriver):
"""PXE + IPMITool driver.
This driver implements the `core` functionality, combinding
:class:ironic.drivers.ipmi.IPMI for power on/off and reboot with
@ -34,7 +34,7 @@ class PXEAndIPMIDriver(base.BaseDriver):
"""
def __init__(self):
self.power = ipmi.IPMIPower()
self.power = ipmitool.IPMIPower()
self.deploy = pxe.PXEDeploy()
self.rescue = self.deploy
self.vendor = pxe.IPMIVendorPassthru()

View File

@ -17,7 +17,7 @@
# License for the specific language governing permissions and limitations
# under the License.
"""Test class for IPMI driver module."""
"""Test class for IPMITool driver module."""
import os
import stat
@ -31,7 +31,7 @@ from ironic.common import states
from ironic.common import utils
from ironic.conductor import task_manager
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.conductor import utils as mgr_utils
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
class IPMIPrivateMethodTestCase(base.TestCase):
class IPMIToolPrivateMethodTestCase(base.TestCase):
def setUp(self):
super(IPMIPrivateMethodTestCase, self).setUp()
super(IPMIToolPrivateMethodTestCase, self).setUp()
self.node = db_utils.get_test_node(
driver='fake_ipmi',
driver='fake_ipmitool',
driver_info=db_utils.ipmi_info)
self.info = ipmi._parse_driver_info(self.node)
@ -152,15 +152,15 @@ class IPMIPrivateMethodTestCase(base.TestCase):
self.assertEqual(state, states.ERROR)
class IPMIDriverTestCase(db_base.DbTestCase):
class IPMIToolDriverTestCase(db_base.DbTestCase):
def setUp(self):
super(IPMIDriverTestCase, self).setUp()
super(IPMIToolDriverTestCase, self).setUp()
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(
driver='fake_ipmi',
driver='fake_ipmitool',
driver_info=db_utils.ipmi_info)
self.info = ipmi._parse_driver_info(self.node)
self.dbapi.create_node(self.node)

View File

@ -35,10 +35,10 @@ console_scripts =
ironic.drivers =
fake = ironic.drivers.fake:FakeDriver
fake_ipmi = ironic.drivers.fake:FakeIPMIDriver
fake_ipmitool = ironic.drivers.fake:FakeIPMIToolDriver
fake_ssh = ironic.drivers.fake:FakeSSHDriver
fake_pxe = ironic.drivers.fake:FakePXEDriver
pxe_ipmi = ironic.drivers.pxe:PXEAndIPMIDriver
pxe_ipmitool = ironic.drivers.pxe:PXEAndIPMIToolDriver
pxe_ssh = ironic.drivers.pxe:PXEAndSSHDriver
[pbr]