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 #2
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 #3
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.deploy = pxe.PXEDeploy()
     self.management = ipmitool.IPMIManagement()
     self.vendor = pxe.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndIPMIToolDriver')
Beispiel #4
0
 def __init__(self):
     if not importutils.try_import('scciclient'):
         raise exception.DriverLoadError(
             driver=self.__class__.__name__,
             reason=_("Unable to import python-scciclient library"))
     self.power = irmc_power.IRMCPower()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.deploy = pxe.PXEDeploy()
     self.management = ipmitool.IPMIManagement()
     self.vendor = pxe.VendorPassthru()
Beispiel #5
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.deploy = ilo_deploy.IloPXEDeploy()
     self.vendor = ilo_deploy.IloPXEVendorPassthru()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.management = ipmitool.IPMIManagement()
Beispiel #6
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.deploy = fake.FakeDeploy()
     self.vendor = ipmitool.VendorPassthru()
     self.management = ipmitool.IPMIManagement()
     # NOTE(dtantsur): unlike other uses of Inspector, this one is
     # unconditional, as this driver is designed for testing inspector
     # integration.
     self.inspect = inspector.Inspector()
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):
        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 = ipmitool.IPMIShellinaboxConsole()
        self.management = ipmitool.IPMIManagement()
        self.vendor = agent.AgentVendorInterface()
Beispiel #9
0
    def __init__(self):
        print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        print "our driver is working........."
        print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>"
        self.power = ipmitool.IPMIPower()
        self.deploy = fake.FakeDeploy()

        self.a = fake.FakeVendorA()
        self.b = fake.FakeVendorB()
        self.mapping = {'first_method': self.a,
                        'second_method': self.b}
        self.vendor = utils.MixinVendorInterface(self.mapping)
        self.console = fake.FakeConsole()
        self.management = ipmitool.IPMIManagement()
Beispiel #10
0
    def get_sensors_data(self, task):
        """Get sensors data.

        :param task: a TaskManager instance.
        :raises: FailedToGetSensorData when getting the sensor data fails.
        :raises: FailedToParseSensorData when parsing sensor data fails.
        :raises: InvalidParameterValue if required ipmi parameters
                 are missing.
        :raises: MissingParameterValue if a required parameter is missing.
        :returns: returns a dict of sensor data group by sensor type.

        """
        ilo_common.update_ipmi_properties(task)
        ipmi_management = ipmitool.IPMIManagement()
        return ipmi_management.get_sensors_data(task)
Beispiel #11
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')
Beispiel #12
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.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)
Beispiel #13
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.deploy = fuel_agent.FuelAgentDeploy()
     self.management = ipmitool.IPMIManagement()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.vendor = fuel_agent.FuelAgentVendor()
Beispiel #14
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.boot = pxe.PXEBoot()
     self.deploy = ansible_deploy.AnsibleDeploy()
     self.management = ipmitool.IPMIManagement()
     self.vendor = ipmitool.VendorPassthru()
Beispiel #15
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.IPMISocatConsole()
     self.deploy = fake.FakeDeploy()
     self.vendor = ipmitool.VendorPassthru()
     self.management = ipmitool.IPMIManagement()
Beispiel #16
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.deploy = pxe.PXEDeploy()
     self.management = ipmitool.IPMIManagement()
     self.vendor = pxe.VendorPassthru()
Beispiel #17
0
 def __init__(self):
     self.power = ipmitool.IPMIPower()
     self.deploy = agent.AgentDeploy()
     self.management = ipmitool.IPMIManagement()
     self.console = ipmitool.IPMIShellinaboxConsole()
     self.vendor = agent.AgentVendorInterface()