craigso
Enthusiast
Enthusiast

vRA 7.6 - Approval Policies - Require approval for older OS's and oversized VM's

Jump to solution

I'm attempting to create an approval policy that will require manual approval if there is a provisioning request for older OS's (rhel6, win2k8). Along with this, I'd also like to require manual approval for oversized VM's. When I apply this policy to the entitlement, the approval policy is not triggered and the machine provisions.


I've created the policy, which looks like this:

Component Profile > vSphere Machine Image = ValueSet.XXXXXX

pastedImage_0.png


The first part which is looking at a component profile called image, and looking at the valuesets for those images.

The second part is just looking at hardware specs greater than X.


I've applied these to the entitlements as show here:

pastedImage_1.png

This issue with this config is that it seems like only the OS items are getting triggered for approval. All of the hardware specs are ignored, and the machine provisioned without manual approval. Am I missing something here?

0 Kudos
1 Solution

Accepted Solutions
craigso
Enthusiast
Enthusiast

After doing a bit more testing, this was some sort of custom form issue.

The forms had cpu, memory, disk elements on the page. However any user input was being ignored and would pass the default values were where 1cpu, 2gb ram, 40gb disk. I simply removed the form elements then added them back. So now the approval policy is being triggered for both OS and oversized hardware.

View solution in original post

0 Kudos
4 Replies
daphnissov
Immortal
Immortal

The resources statements will not work unless you use the approval type of Virtual Machine, not catalog request.

0 Kudos
craigso
Enthusiast
Enthusiast

I'm using the type Service Catalog - Catalog Item Request - Virtual Machine. Is this what you are referring to?

I want to say if I specify only hardware specs in an approval policy it will work, but if I combine them with the OS settings in the same policy it doesn't work. I'm testing that right now. I'll report back shortly.

0 Kudos
daphnissov
Immortal
Immortal

I can't remember if that's the right type or not, and I don't have a lab handy. If you remove the image profile ones and it works then I guess that's the reason–conflicting or incompatible criteria.

0 Kudos
craigso
Enthusiast
Enthusiast

After doing a bit more testing, this was some sort of custom form issue.

The forms had cpu, memory, disk elements on the page. However any user input was being ignored and would pass the default values were where 1cpu, 2gb ram, 40gb disk. I simply removed the form elements then added them back. So now the approval policy is being triggered for both OS and oversized hardware.

0 Kudos