This section includes several use cases that show how the Policy Debugger works and how to use it. The following use cases are included:
The objective of this use case is to run a job that sits 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 recreate the use case.
In the Orchestrate Development Client, create a user named debugger.
Deploy quickie.job from the /examples directory.
In the Orchestrate Development Client, create a schedule named quickie, specifying the quickie job and the debugger user.
In the Orchestrate Development Client, create a policy and name it debuggerExample. The policy needs to specify that the resource used belongs to the group called debugger.
In the Orchestrate Development Client, associate the debuggerExample policy to the quickie job.
In the Job Scheduler view of the Orchestrate Development Client, select the quickie schedule, then click to run the quickie schedule.
In the Job Monitor view of the Orchestrate Development Client, select the
tab and verify that the job is in the waiting state.In the Constraints Table view, open the
drop down list, then select .In the Match Context area of the Constraints Table view, open the Resource drop 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 a few 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 on the blocking constraint and select
.