The objective of this use case is to run a job that remmians in the waiting state and to use the policy debugger to identify why it is in the state and to make the necessary changes to get the job to run. The quickie.job is used along with a simple policy that specifies that the resources that are to be used must be in a Resource group called debugger.
Use the following steps to re-create the use case.
In the Orchestration Console, create a user named debugger.
Deploy quickie.job from the /examples directory.
In the Orchestration Console, create a schedule named quickie, specifying the quickie job and the debugger user.
In the Orchestration Console, create a policy and name it debuggerExample. The policy needs to specify that the resource used belongs to the group called debugger.
In the Orchestration Console, associate the debuggerExample policy to the quickie job.
In the Job Scheduler view of the Orchestration Console, select the quickie schedule, then click to run the quickie schedule.
In the Job Monitor view of the Orchestration Console, select thetab and verify that the job is in the waiting state.
In the Constraints Table view, open thedrop-down list, then select .
In the Match Context area of the Constraints Table view, open thedrop-down list, then select any resource to refresh the Constraints Table and Facts Table views.
The Policy Debugger displays a red icon near the constraints that fail to match. The larger, red octagonal icon shows the particular constraint that is “blocking” and preventing the job from running on the resource. This is the constraint that is causing the job to be in a waiting state. The Constraints Table also displays the policy name (debuggerExample) that is contributing the constraint that is causing problems.
There are several ways to get the job to run:
Create a Resource group called debugger, then place a resource in that group to satisfy the constraint specified in the policy.
Disassociate the policy (debuggerExample) from the job (quickie).
In the Constraints Table, right-click the blocking constraint and select.