Beispiel #1
0
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyghmi library"))
     self.power = ipminative.NativeIPMIPower()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.iscsi_vendor = iscsi_deploy.VendorPassthru()
     self.ipminative_vendor = ipminative.VendorPassthru()
     self.mapping = {
         'send_raw': self.ipminative_vendor,
         'bmc_reset': self.ipminative_vendor,
         'heartbeat': self.iscsi_vendor,
         'pass_bootloader_install_info': self.iscsi_vendor,
         'pass_deploy_info': self.iscsi_vendor,
     }
     self.driver_passthru_mapping = {'lookup': self.iscsi_vendor}
     self.vendor = utils.MixinVendorInterface(self.mapping,
                                              self.driver_passthru_mapping)
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMINativeDriver')
     self.raid = agent.AgentRAID()
 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')
Beispiel #3
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.deploy = pxe_auto_deploy.PXEAutoDeploy()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'pxeauto_ipmitool')
     self.management = ipmitool.IPMIManagement()
Beispiel #4
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ssh.SSHManagement()
     self.inspect = inspector.Inspector.create_if_enabled('PXEAndSSHDriver')
     self.raid = agent.AgentRAID()
     self.console = ssh.ShellinaboxConsole()
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = iscsi_deploy.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled('PXEAndSSHDriver')
     self.raid = agent.AgentRAID()
     self.console = ssh.get_console_driver()
Beispiel #6
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')
Beispiel #7
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ipmitool.IPMIManagement()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMIToolDriver')
     self.vendor = ipmitool.VendorPassthru()
     self.raid = agent.AgentRAID()
Beispiel #8
0
 def __init__(self):
     self.power = ipminative.NativeIPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.vendor = ipminative.VendorPassthru()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndIPMINativeDriver')
Beispiel #9
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.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = virtualbox.VirtualBoxManagement()
     self.raid = agent.AgentRAID()
Beispiel #10
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()
Beispiel #11
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 = ilo_power.IloPower()
     self.boot = pxe.PXEBoot()
     self.deploy = ilo_deploy.IloPXEDeploy()
     self.vendor = ilo_vendor.VendorPassthru()
     self.console = ilo_console.IloConsoleInterface()
     self.management = ilo_management.IloManagement()
     self.inspect = ilo_inspect.IloInspect()
     self.raid = agent.AgentRAID()
Beispiel #12
0
 def __init__(self):
     if not importutils.try_import('pyghmi'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import pyghmi library"))
     self.power = ipminative.NativeIPMIPower()
     self.console = ipminative.NativeIPMIShellinaboxConsole()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ipminative.NativeIPMIManagement()
     self.vendor = ipminative.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMINativeDriver')
     self.raid = agent.AgentRAID()
Beispiel #13
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')
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.get_console_driver()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ipmitool.IPMIManagement()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMIToolDriver')
     self.iscsi_vendor = iscsi_deploy.VendorPassthru()
     self.ipmi_vendor = ipmitool.VendorPassthru()
     self.mapping = {
         'send_raw': self.ipmi_vendor,
         'bmc_reset': self.ipmi_vendor,
         'heartbeat': self.iscsi_vendor,
         'pass_deploy_info': self.iscsi_vendor,
         'pass_bootloader_install_info': self.iscsi_vendor
     }
     self.driver_passthru_mapping = {'lookup': self.iscsi_vendor}
     self.vendor = utils.MixinVendorInterface(
         self.mapping, driver_passthru_mapping=self.driver_passthru_mapping)
     self.raid = agent.AgentRAID()
Beispiel #15
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()