Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Problem getting duplicate reserveation on vra 7.4 with getReservationsForUserAndComponent

$
0
0

I have a small problem after the upgrade from 7.3.1 to 7.4.

I use the action getReservationsForUserAndComponent passing some parameters to get the list of reservation I have available to let the user choose between them (filtering on some variable like operating system or Site Name).

 

This is a typical call in my action that get the list of reservation:

var location = "Napoli"
var tenant = "vsphere.local"
var blueprint = "LinuxServers"
var component = "rhel_base"
var user = "myuserQmydomain"
var host = vCACCAFEHostManager.getDefaultHostForTenant(tenant , true);
System.log("Host: "+host.name);
var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user, tenant, host, blueprint, component);


...


The complete list of reservation is composed by

Those are the reservation Name and ID I get invoking that code:

Name: Roma Windows (vsphere.local) ID:e2f62516-105b-4a9c-81ac-1f7462664c7d

Name: Napoli Windows (vsphere.local) ID:0e533627-f3d7-452c-946e-797a9b4f77f2

Name: Napoli Oracle (vsphere.local) ID:03c4764e-98a0-4c43-9ee7-97f371f376cb

Name: Napoli Linux (vsphere.local) ID:a9ff7bc6-89e9-4ab1-b887-9cfe5a30b7de

Name: Roma Windows (vsphere.local) ID:e2f62516-105b-4a9c-81ac-1f7462664c7d

Name: Napoli Windows (vsphere.local) ID:0e533627-f3d7-452c-946e-797a9b4f77f2

Name: Napoli Oracle (vsphere.local) ID:03c4764e-98a0-4c43-9ee7-97f371f376cb

Name: Napoli Linux (vsphere.local) ID:a9ff7bc6-89e9-4ab1-b887-9cfe5a30b7de

 

I get 2 time the data back from the call, 8 items (the same 4 duplicated).

 

I saw that getReservationsForUserAndComponent now get also a subtenantid that accept the id of the business group. Using the business group id for the correct business group i still get duplicate items so it seems that this is not the problem.

 

Anyone know what is happening and if I'm doing anything wrong? The issue started after 7.3.1 to 7.4 upgrade.


Viewing all articles
Browse latest Browse all 175326

Latest Images

Trending Articles

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