power.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:ironic-staging-drivers 作者: openstack 项目源码 文件源码
def reboot(self, task):
        """Not supported. Cycles the power to the task's node.

        This operation is not fully supported by the Wake-On-Lan
        driver. So this method will just try to power the task's node on.

        :param task: a TaskManager instance containing the node to act on.
        :raises: InvalidParameterValue if parameters are invalid.
        :raises: MissingParameterValue if required parameters are missing.
        :raises: WOLOperationError if an error occur when sending the
            magic packets

        """
        LOG.info('Reboot called for node %s. Wake-On-Lan does '
                 'not fully support this operation. Trying to '
                 'power on the node.', task.node.uuid)
        self.set_power_state(task, states.POWER_ON)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号