Beispiel #1
0
 def test_abandon_config(self, mock_wi, client):
     _mock_pywsman_responses(client, _set_config())
     with task_manager.acquire(self.context, self.node.uuid,
                               shared=False) as task:
         task.node = self.node
         bios.abandon_config(task)
     self.assertTrue(mock_wi.called)
Beispiel #2
0
 def test_abandon_config(self, mock_wi, client):
     _mock_pywsman_responses(client, _set_config())
     with task_manager.acquire(self.context, self.node.uuid,
                               shared=False) as task:
         task.node = self.node
         bios.abandon_config(task)
     self.assertTrue(mock_wi.called)
    def abandon_bios_config(self, task, **kwargs):
        """Abandon a BIOS configuration job.

        This method is used to abandon a BIOS configuration previously
        submitted through set_bios_config().

        :param task: a TaskManager instance containing the node to act on.
        :param kwargs: not used.
        :raises: DracOperationError on an error from python-dracclient.
        """
        bios.abandon_config(task)
Beispiel #4
0
    def abandon_bios_config(self, task, **kwargs):
        """Abandon a BIOS configuration job.

        This method is used to abandon a BIOS configuration previously
        submitted through set_bios_config().

        :param task: a TaskManager instance containing the node to act on.
        :param kwargs: not used.
        :raises: DracOperationError on an error from python-dracclient.
        """
        drac_bios.abandon_config(task)
Beispiel #5
0
    def abandon_bios_config(self, task, **kwargs):
        """Abandon a BIOS configuration job.

        This method is used to abandon a BIOS configuration job previously
        submitted through set_bios_config().

        :param task: the ironic task for abandoning the changes.
        :param kwargs: not used.
        :raises: DracClientError on an error from pywsman library.
        :raises: DracOperationFailed on error reported back by DRAC.
        :raises: DracUnexpectedReturnValue if the drac did not report success.
        :returns: A dictionary containing the abandoned key with no return
                  value.
        """
        bios.abandon_config(task)
        return {'abandoned': None}
Beispiel #6
0
    def abandon_bios_config(self, task, **kwargs):
        """Abandon a BIOS configuration job.

        This method is used to abandon a BIOS configuration job previously
        submitted through set_bios_config().

        :param task: the ironic task for abandoning the changes.
        :param kwargs: not used.
        :raises: DracClientError on an error from pywsman library.
        :raises: DracOperationFailed on error reported back by DRAC.
        :raises: DracUnexpectedReturnValue if the drac did not report success.
        :returns: A dictionary containing the abandoned key with no return
                  value.
        """
        bios.abandon_config(task)
        return {'abandoned': None}