imacfj
Enthusiast
Enthusiast

vRO Policy keeps stopping

Hi guys,

we have a vrealize orchestrator policy that is vital to our infrastructure

This policy needs to be running constantly as it is required for any network related updates/changes to take effect

the issue we're having is that sometimes the policy will just randomly stop. This only requires right clicking the policy and starting it, however, the appliances do sometimes have their services fail (due to memory leak problems, which we're also currently looking into)

is there any way to monitor whether a policy is actually running? i know the monitor tab (port 8283) can show whether workflows relating to this policy run or fail, however, this particular workflow wont run at all unless the policy is running, therefore the monitoring tab doesnt help us that much

any help is much appreciated

thanks

0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee

Hi,

Which vRO version is this?

There is a REST API that you can use to monitor the policies. It is a server API, so the base URL is https://vro-address:8281/vco/api/policies/

Open https://vro-address:8281/vco/api/docs in a browser and check the section 'Policy Controller' for list of available REST API to deal with policies.

0 Kudos
imacfj
Enthusiast
Enthusiast

Hi Illian,

thanks for that

we're currently using version 7.4.0.8071781, but when i navigate to the url you sent, i cant seem to see a policy controller section, only service-descriptor-controller, action-controller etc etc

kind regards

0 Kudos
iiliev
VMware Employee
VMware Employee

Right, policy controller is not available in 7.4 GA, it has been introduced in 7.5 GA (not sure if it wasn't back-ported later to some service pack of 7.4, but most likely it isn't).

In this case, you can use a slightly different approach - write your policy monitoring as vRO scripting code, put this code in a vRO workflow (or vRO scripting action), and then use vRO REST API to execute this workflow/action when you want to check the current status of the policies.

For reference, here is some scripting code that shows how to enumerate all policies, and then dumps their names plus their status:

var policies = Server.findAllForType("Policy");

for each (var p in policies) {

  System.log("Policy: '" + p.name + "' status: " + p.status);

}

You can check vRO API Explorer to see what scripting methods/attributes are available for Policy objects.

0 Kudos