Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vRA 7.0.1 REST API Reservation Service - Getting computeResourceReservedMemory problem

$
0
0

Hello,

 

i've been making a vRO Workflow to automate Business Group, Entitlement and Reservation creation, and i've stumbled upon a problamatic behavior of the vRA REST API.

 

In the Reservation Creation part of my workflow, im using the vRA REST API Reservation Service in order to create the reservation.

 

The user requests how much memory and storage he wants the reservation assigned. before i create the reservation, i want to check if the requested memory + the already allocated memory from the requested Compute Resource, doesnt pass the physical memory available (we do not want to overprovison).

 

in the vRA GUI, i can see the fields "Physical", "Total Reserved", and "This Reservation".

 

when i do a GET of a specific reservation (with /reservation/#id#), i get the corresponding fields from the GUI, which are "computeResourceMemoryTotalSizeMB","computeResourceMemoryReservedTotalSizeMB, and "memoryReservedSizeMb"

 

I want to achieve the check i stated in paragraph 3 by doing a GET of a golden reservation (which serves as a template for creating the other reservations), get the "computeResourceMemoryReservedTotalSizeMB" field, and doing the math against the physical and requested memory.


However, the "computeResourceMemoryReservedTotalSizeMB" field doesnt get updated with the summation of other reservations that were added after the golden reservation was created/last updated. The only way i could make it to update was to manually go to the vRA GUI, Edit said reservation, and save it (Clicking "Finish" without changing anything).


I tried doing a PUT to the reservation with no changes to the JSON to try and trigger the field, but it didn't help.

I also tried doing a PUT and deleting the "computeResourceMemoryReservedTotalSizeMB" field, but it also didn't help.


Would like for a solution for this problem.. if not, is there maybe another way i can get this information (Total Reserved Memory of a Compute Resource)?


Thanks!




Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>