ironic.drivers.modules.drac.job module

DRAC Lifecycle job specific methods

ironic.drivers.modules.drac.job.get_job(node, job_id)[source]

Get the details of a Lifecycle job of the node.

Parameters:
  • node – an ironic node object.

  • job_id – ID of the Lifecycle job.

Returns:

a Job object from dracclient.

Raises:

DracOperationError on an error from python-dracclient.

ironic.drivers.modules.drac.job.list_unfinished_jobs(node)[source]

List unfinished config jobs of the node.

Parameters:

node – an ironic node object.

Returns:

a list of Job objects from dracclient.

Raises:

DracOperationError on an error from python-dracclient.

ironic.drivers.modules.drac.job.validate_job_queue(node, name_prefix=None)[source]

Validates the job queue on the node.

It raises an exception if an unfinished configuration job exists. :param node: an ironic node object. :param name_prefix: A name prefix for jobs to validate. :raises: DracOperationError on an error from python-dracclient.

ironic.drivers.modules.drac.job.wait_for_job_completion(node, retries=240)[source]

Wait for job to complete

It will wait for the job to complete for 20 minutes and raises timeout if job never complete within given interval of time. :param node: an ironic node object. :param retries: no of retries to make conductor wait. :raises: DracOperationError on exception raised from python-dracclient or a timeout while waiting for job completion.