Today I have a rather small blogpost for you guys. I noticed that one of my vCloud Usage Meter appliances, still running on an ancient 3.6.1 version build 7359407, had some difficulties collecting data for one of the connected vCenter Servers. I got loads of e-mail messages from the Usage Meter instance with a “Usage Meter Hourly Collection, Errors Detected” subject. In this e-mail however there was no error message mentioned for this specific vCenter Server. So there was no obvious reason for it to fail.

After looking at the log files located at “/var/log/usgmtr“, I noticed the following piece the exception message in the collector.log:

2021-02-24 12:52:06,515 ERROR [Collector vc01-XXXXXXXXXXXX.loc] vc.VCenterCollector:
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at com.sun.proxy.$Proxy97.pbmQueryProfile(Unknown Source)
        at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
        at scala.concurrent.impl.Future$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

Turns out, this is a “bug” in the version of vCloud Usage Meter we are running. Starting from Usage Meter 3.6.1 we need more permissions on the vCenter Server we are collecting from. Previously the only thing required was the “Read-Only” role, since this release you need the additional “Profile-drive Storage View” permission. This isn’t something new for us, but somebody probably removed this permission at some point making it generate this exception.

So if you want to fix this, go ahead and create a new Role in vCenter with only this permission. Assign the user that you will authenticate with this role in the root of the vCenter Server. You can do this by following the next couple of steps:

  1. Login to the HTML5 vSphere Client.
  2. Go to Administration -> Roles.
  3. Add a new Role and call it “vCloud Usage Meter”. Give it the “Profile-drive Storage View” permission.
  4. Browse to the root of the vCenter Server hierarchy and go to the Permissions tab.
  5. Grant the user permissions by adding the role to the user.

Once you did this everything will be fixed and vCloud Usage Meter should be able to collect the inventory again.

Bryan van Eeden

Bryan is an ambitious and seasoned IT professional with almost a decade of experience in designing, building and operating complex (virtual) IT environments. In his current role he tackles customers, complex issues and design questions on a daily basis. Bryan holds several certifications such as VCIX-DCV, VCAP-DCA, VCAP-DCD, V(T)SP and vSAN and vCloud Specialist badges.


Hitesh · July 20, 2021 at 12:20 pm

Hi Bryan, Do you know if VCD 10.2.2 is compatible with vcloud usage meter 4.2. I’ve been checking the vmware documentation but dont see any information.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *