def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ipmitool.IPMIManagement()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.ipmi_vendor = ipmitool.VendorPassthru()
     self.nm_vendor = nm_vendor.IntelNMVendorPassthru()
     self.mapping = {
         'send_raw': self.ipmi_vendor,
         'bmc_reset': self.ipmi_vendor,
         'control_nm_policy': self.nm_vendor,
         'set_nm_policy': self.nm_vendor,
         'get_nm_policy': self.nm_vendor,
         'remove_nm_policy': self.nm_vendor,
         'set_nm_policy_suspend': self.nm_vendor,
         'get_nm_policy_suspend': self.nm_vendor,
         'remove_nm_policy_suspend': self.nm_vendor,
         'get_nm_capabilities': self.nm_vendor,
         'get_nm_version': self.nm_vendor,
         'get_nm_statistics': self.nm_vendor,
         'reset_nm_statistics': self.nm_vendor
     }
     self.vendor = utils.MixinVendorInterface(self.mapping)
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMIToolDriver')
 def __init__(self):
     if not importutils.try_import('iboot'):
         raise ironic_exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import iboot library"))
     self.power = iboot_power.IBootPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
Пример #3
0
 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.deploy = agent.AgentDeploy()
     self.management = virtualbox.VirtualBoxManagement()
     self.vendor = agent.AgentVendorInterface()
Пример #4
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.deploy = agent.AgentDeploy()
     self.management = ucs_mgmt.UcsManagement()
     self.vendor = agent.AgentVendorInterface()
Пример #5
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')
Пример #6
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndSSHDriver')
     self.console = ssh.ShellinaboxConsole()
Пример #7
0
 def __init__(self):
     if not importutils.try_import('pywsman'):
         raise ironic_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()
Пример #8
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.vendor = ipmitool.VendorPassthru()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMIToolDriver')
Пример #9
0
 def setUp(self):
     super(TestAgentDeploy, self).setUp()
     mgr_utils.mock_the_extension_manager(driver='fake_agent')
     self.driver = agent.AgentDeploy()
     n = {
         'driver': 'fake_agent',
         'instance_info': INSTANCE_INFO,
         'driver_info': DRIVER_INFO
     }
     self.node = object_utils.create_test_node(self.context, **n)
Пример #10
0
 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()
Пример #11
0
 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.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndCIMCDriver')
Пример #12
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.boot = boot.IRMCVirtualMediaBoot()
        self.deploy = agent.AgentDeploy()
        self.console = ipmitool.IPMIShellinaboxConsole()
        self.management = management.IRMCManagement()
        self.inspect = inspect.IRMCInspect()
 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()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndUcsDriver')
Пример #14
0
    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.boot = boot.IloVirtualMediaBoot()
        self.deploy = agent.AgentDeploy()
        self.console = console.IloConsoleInterface()
        self.management = management.IloManagement()
        self.inspect = inspect.IloInspect()
        self.raid = agent.AgentRAID()
Пример #15
0
 def setUp(self):
     super(TestAgentDeploy, self).setUp()
     mgr_utils.mock_the_extension_manager(driver='fake_agent')
     self.driver = agent.AgentDeploy()
     n = {
         'driver': 'fake_agent',
         'instance_info': INSTANCE_INFO,
         'driver_info': DRIVER_INFO,
         'driver_internal_info': DRIVER_INTERNAL_INFO,
     }
     self.node = object_utils.create_test_node(self.context, **n)
     self.ports = [
         object_utils.create_test_port(self.context, node_id=self.node.id)
     ]
     dhcp_factory.DHCPFactory._dhcp_provider = None
Пример #16
0
    def __init__(self):
        if not importutils.try_import('oneview_client.client'):
            raise exception.DriverLoadError(
                driver=self.__class__.__name__,
                reason=_("Unable to import python-oneviewclient library"))

        # Checks connectivity to OneView and version compatibility on driver
        # initialization
        oneview_client = common.get_oneview_client()
        oneview_client.verify_oneview_version()
        oneview_client.verify_credentials()
        self.power = power.OneViewPower()
        self.management = management.OneViewManagement()
        self.boot = pxe.PXEBoot()
        self.deploy = agent.AgentDeploy()
        self.vendor = vendor.AgentVendorInterface()
Пример #17
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')
Пример #18
0
 def __init__(self):
     self.power = power.BMCRedfishPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = management.BMCRedfishManagement()
Пример #19
0
 def __init__(self):
     self.power = fake.FakePower()
     self.deploy = agent.AgentDeploy()
     self.vendor = agent.AgentVendorInterface()
Пример #20
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.vendor = agent.AgentVendorInterface()
Пример #21
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = agent.AgentVendorInterface()
 def __init__(self):
     self.boot = pxe.PXEBoot()
     self.power = wol_power.WakeOnLanPower()
     self.deploy = agent.AgentDeploy()
 def __init__(self):
     self.power = wol.WakeOnLanPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.vendor = agent.AgentVendorInterface()
Пример #24
0
 def __init__(self):
     self.power = fake.FakePower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.raid = agent.AgentRAID()
 def __init__(self):
     self.power = power.LibvirtPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = power.LibvirtManagement()
     self.raid = agent.AgentRAID()