VMware Cloud Community
orian
Hot Shot
Hot Shot

Approve System properties

Hi,

I installed Vra 7.5.

When creating a new virtual machine, I want to send the system properties (cpu, memory) to approve (with some other custom properties I have created before)

I use "Pre Approval" Subscription and "Service Catalog - Catalog Item Reuqest - Virtual Machine" Approval Polices.

In the Approval Policy I checked the CPU and Memory checkbox under System Properties

In the custom properties I added my custom properties.

When I try to create a new virtual machine the subscription runs successfully, but I receive only my custom properties.

The system properties (cpu, memory) don't appear.

I run this code in order to see the info from the vra:

var fieldNames = input.get("fieldNames");

var fieldValues = input.get("fieldValues");

var requestInfo = input.get("requestInfo");

var sourceInfo = input.get("sourceInfo");

System.log("filedNames: "+ fieldNames.keys);

System.log("fieldValues: " + fieldValues.keys);

System.log("requestInfo: " + requestInfo.keys);

System.log("sourceInfo: " + sourceInfo.keys);

System.log("*************filedNames: ");

for each (var name in fieldNames.keys){

     System.log(name + ": " + fieldNames.get(name));

}

System.log("************fieldValues: ");

for each (var name in fieldValues.keys){

     System.log(name + ": " + fieldValues.get(name));

}

System.log("************requestInfo: ");

for each (var name in requestInfo.keys){

     System.log(name + ": " + requestInfo.get(name));

}

System.log("************sourceInfo: ");

for each (var name in sourceInfo.keys){

     System.log(name + ": " + sourceInfo.get(name));

}

In vra 7.3 it works fine, and I can see source-provider-cpu and source-provider-memory on the output of same script.

Thanks!

Reply
0 Kudos
3 Replies
orian
Hot Shot
Hot Shot

any idea?

Reply
0 Kudos
daphnissov
Immortal
Immortal

Do you have hotfix 5 installed?

Reply
0 Kudos
orian
Hot Shot
Hot Shot

what is hotfix 5?

I took the last installation from vmware web.

Reply
0 Kudos