Friday, February 27, 2015

Chargeback Certificate expired

 One of the most common settings I’ve seen on vCenter Chargeback Manager implementation is the utilization of the self signed certification.
I might be due to the certification process being so easy and simple or may be because it’s targeted to internal users that they just don’t bother replacing it for a valid certification.

One of the characteristics of Chargeback self signed certification is it’s duration. By default it’s valid for only 60 days. Meaning that you need to replace it every other month or you start having connection problems, like me : (

My scheduled reports were failing on vRealize Orchestrator with error: Cannot execute query: CertificateExpiredException
To put an end on certificate replaced nightmare, I decided to increase the duration period.
The nice tool that generates and replaces Chargeback’s self signed certification is just a simple script located at: C:\Program Files (x86)\VMware\VMware vCenter Chargeback\Apache2.2\bin

The script is called Generate_Ssl_Certificate

 Edit it and find the following line:

Replace the –days 60 to –days (whatever you want)

echo "Generating a Self-Signed Certificate"...
openssl.exe x509 -req -days 60 -in default.csr -signkey default.key -out default.cert
if not %ERRORLEVEL%==0 goto :error

I made mine yearly

echo "Generating a Self-Signed Certificate"...
openssl.exe x509 -req -days 365 -in default.csr -signkey default.key -out default.cert
if not %ERRORLEVEL%==0 goto :error

Now you just need to regenerate it as usual.
Run Generate SSL Certificate

And follow the steps on the screen

How long do you make your certification validation ???

Tuesday, February 10, 2015

vCloud Director Interoperability Matrix

Another tip for my Service Providers' buddies !!!!

Since vCloud Director and Chargeback  were declared to be exclusive for Service Providers, starting at version 5.6.3 and 2.7 respectively, VMware decided to do not update the information about them at Interoperability Matrix anymore.

So, where do I find information about compatibility of those products ?

If you paid attention enough you will see that on the product’s page there’s a Technical section with the interoperability matrixes of them.

Just in case, here’s the product’s Home Page.

It was not that difficult, was it ?!?!

Thursday, February 5, 2015

Chargeback Reporting Fail

If you follow my posts, you might have realized I’m writing a lot about vCloud Director and Chargeback. Well, that’s simple. I’m jumping from Service Provider to Service Provider implementing Cloud solutions. Have you started yours already ?!?

This week’s issue is about exporting Chargeback’s Report for a vCloud Director Hierarchy using vRealize Orchestrator (vRO).
My client wants to automatically exports Chargeback reports, what better tool for the job than vRO, hein ?!?!?

Instead of creating everything from scratch, we installed the plug-in for Chargeback (be aware of compatibilities’ version) in order to use the built-in Reporting workflow.

 One thing pop up immediately, the reports for some clients, finished properly while others end-up abruptly with the following error: Cannot convert org.mozilla.javascript.NativeArray@76ad5dfd to java.lang.Integer[] (Dynamic Script Module name : generateReport#19)

After some investigation, we figured out that Org vDCs without any Org Network were the ones failing constantly.
I contacted the VMware Engineering team, which confirmed this bug and provided me a new workflow for testing.
After updating the workflow all my reports concluded successfully.

If you are facing this issue and the fix did not make it’s way out to the production yet, just open up a case with VMware support and mention of my case (SR14569943212).

Happy Reporting !!!

Who am I

My photo
I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell

Most Viewed Posts

Blog Archive