Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str NameLoad Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr decorator_list
N/A N/A 
MSFT OCS Power Driver
 oslo_log log ironic.common exception ironic.common.i18n _ ironic.common.i18n _LE ironic.common states ironic.conductor task_manager ironic.drivers base ironic.drivers.modules.msftocs common msftocs_common ironic.drivers.modules.msftocs msftocsclient N/A LOG N/A N/A log getLogger __name__ N/A POWER_STATES_MAP N/A N/A msftocsclient POWER_STATUS_ON N/A msftocsclient POWER_STATUS_OFF N/A states POWER_ON N/A states POWER_OFF MSFTOCSPower N/A N/A base PowerInterface N/A get_properties N/A N/A self N/A N/A N/A Returns the driver's properties. N/A N/A N/A msftocs_common get_properties N/A validate N/A N/A self task N/A N/A N/A Validate the driver_info in the node.

        Check if the driver_info contains correct required fields.

        :param task: a TaskManager instance containing the target node.
        :raises: MissingParameterValue if any required parameters are missing.
        :raises: InvalidParameterValue if any parameters have invalid values.
         N/A N/A N/A msftocs_common parse_driver_info N/A task node N/A get_power_state N/A N/A self task N/A N/A N/A Get the power state from the node.

        :param task: a TaskManager instance containing the target node.
        :raises: MSFTOCSClientApiException.
         N/A N/A client blade_id N/A N/A msftocs_common get_client_info N/A N/A task node driver_info N/A N/A POWER_STATES_MAP N/A N/A N/A client get_blade_state blade_id N/A set_power_state N/A N/A self task pstate N/A N/A N/A Set the power state of the node.

        Turn the node power on or off.

        :param task: a TaskManager instance contains the target node.
        :param pstate: The desired power state of the node.
        :raises: PowerStateFailure if the power cannot set to pstate.
        :raises: InvalidParameterValue
         N/A N/A client blade_id N/A N/A msftocs_common get_client_info N/A N/A task node driver_info N/A N/A N/A N/A pstate N/A states POWER_ON N/A N/A N/A N/A client set_blade_on blade_id N/A N/A N/A pstate N/A states POWER_OFF N/A N/A N/A N/A client set_blade_off blade_id N/A N/A N/A N/A exception InvalidParameterValue N/A N/A _ Unsupported target_state: %s pstate N/A N/A N/A N/A exception MSFTOCSClientApiException N/A ex N/A N/A N/A N/A LOG exception N/A _LE Changing the power state to %(pstate)s failed. Error: %(err_msg)s N/A pstate err_msg pstate ex N/A N/A N/A exception PowerStateFailure pstate pstate N/A N/A task_manager require_exclusive_lock reboot N/A N/A self task N/A N/A N/A Cycle the power of the node

        :param task: a TaskManager instance contains the target node.
        :raises: PowerStateFailure if failed to reboot.
         N/A N/A client blade_id N/A N/A msftocs_common get_client_info N/A N/A task node driver_info N/A N/A N/A N/A N/A client set_blade_power_cycle blade_id N/A N/A N/A N/A exception MSFTOCSClientApiException N/A ex N/A N/A N/A N/A LOG exception N/A _LE Reboot failed. Error: %(err_msg)s N/A err_msg ex N/A N/A N/A exception PowerStateFailure pstate N/A states REBOOT N/A N/A task_manager require_exclusive_lock N/A