Ejemplo n.º 1
0
 def __init__(self):
     if not importutils.try_import('UcsSdk'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import UcsSdk library"))
     self.power = ucs_power.Power()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ucs_mgmt.UcsManagement()
     self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 2
0
 def __init__(self):
     if not importutils.try_import('pywsman'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pywsman library"))
     self.power = amt_power.AMTPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = amt_management.AMTManagement()
     self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 3
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = agent.AgentVendorInterface()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndSSHDriver')
     self.console = ssh.ShellinaboxConsole()
Ejemplo n.º 4
0
 def setUp(self):
     super(TestAgentVendor, self).setUp()
     mgr_utils.mock_the_extension_manager(driver="fake_agent")
     self.passthru = agent.AgentVendorInterface()
     n = {
         'driver': 'fake_agent',
         'instance_info': INSTANCE_INFO,
         'driver_info': DRIVER_INFO
     }
     self.node = object_utils.create_test_node(self.context, **n)
 def __init__(self):
     if not importutils.try_import('pyremotevbox'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyremotevbox library"))
     self.power = virtualbox.VirtualBoxPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = virtualbox.VirtualBoxManagement()
     self.vendor = agent.AgentVendorInterface()
     self.raid = agent.AgentRAID()
Ejemplo n.º 6
0
    def __init__(self):
        if not importutils.try_import('scciclient.irmc.scci'):
            raise exception.DriverLoadError(
                driver=self.__class__.__name__,
                reason=_("Unable to import python-scciclient library"))

        self.power = power.IRMCPower()
        self.deploy = deploy.IRMCVirtualMediaAgentDeploy()
        self.console = ipmitool.IPMIShellinaboxConsole()
        self.management = management.IRMCManagement()
        self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 7
0
Archivo: ilo.py Proyecto: skw0rm/ironic
    def __init__(self):
        if not importutils.try_import('proliantutils'):
            raise exception.DriverLoadError(
                driver=self.__class__.__name__,
                reason=_("Unable to import proliantutils library"))

        self.power = power.IloPower()
        self.deploy = deploy.IloVirtualMediaAgentDeploy()
        self.console = deploy.IloConsoleInterface()
        self.management = management.IloManagement()
        self.vendor = agent.AgentVendorInterface()
 def __init__(self):
     if not importutils.try_import('ImcSdk'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import ImcSdk library"))
     self.power = cimc_power.Power()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = cimc_mgmt.CIMCManagement()
     self.vendor = agent.AgentVendorInterface()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndCIMCDriver')
Ejemplo n.º 9
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ipmitool.IPMIManagement()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.agent_vendor = agent.AgentVendorInterface()
     self.ipmi_vendor = ipmitool.VendorPassthru()
     self.mapping = {'send_raw': self.ipmi_vendor,
                     'bmc_reset': self.ipmi_vendor,
                     'heartbeat': self.agent_vendor}
     self.driver_passthru_mapping = {'lookup': self.agent_vendor}
     self.vendor = utils.MixinVendorInterface(
         self.mapping,
         driver_passthru_mapping=self.driver_passthru_mapping)
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMIToolDriver')
Ejemplo n.º 10
0
 def setUp(self):
     super(AgentRAIDTestCase, self).setUp()
     mgr_utils.mock_the_extension_manager(driver="fake_agent")
     self.passthru = agent.AgentVendorInterface()
     self.target_raid_config = {
         "logical_disks": [{
             'size_gb': 200,
             'raid_level': 0,
             'is_root_volume': True
         }, {
             'size_gb': 200,
             'raid_level': 5
         }]
     }
     self.clean_step = {'step': 'create_configuration', 'interface': 'raid'}
     n = {
         'driver': 'fake_agent',
         'instance_info': INSTANCE_INFO,
         'driver_info': DRIVER_INFO,
         'driver_internal_info': DRIVER_INTERNAL_INFO,
         'target_raid_config': self.target_raid_config,
         'clean_step': self.clean_step,
     }
     self.node = object_utils.create_test_node(self.context, **n)
Ejemplo n.º 11
0
 def __init__(self):
     self.power = fake.FakePower()
     self.deploy = agent.AgentDeploy()
     self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 12
0
 def __init__(self):
     self.power = fake.FakePower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.vendor = agent.AgentVendorInterface()
     self.raid = agent.AgentRAID()
 def __init__(self):
     self.power = wol.WakeOnLanPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 14
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = agent.AgentVendorInterface()
Ejemplo n.º 15
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.vendor = agent.AgentVendorInterface()