vROps collection fails in Usage Meter after its certificate is replaced
book
Article ID: 322752
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms: After vROps certificate is replaced, data collection for it fails in Usage Meter. When updating the administrator credentials of vROps in Usage Meter, the latter shows 'invalid credentials' for vROps.
Environment
VMware vCloud Usage Meter 3.x
Cause
The reason for this issue is that Basic authentication is disabled in vROps 8.1 and later.
Resolution
To solve this issue follow the steps below.
Procedure
Enable Basic authentication in vROps.
Un-register vCenter in vROps.
Remove the vROps reference from the vCenter MOB.
Re-register vCenter in vROps.
Click Rebuild for the vROps instance in the Usage Meter 3.X web application. For Usage Meter 4.X, remove and then register the vCenter server with which this vROps is associated.
Log out and then log into Usage Meter. vROps will be now discovered.
Enable Authentication for API in vRealize Operations 8.1 and later
Log in to the vRealize Operations Primary node as root via SSH or console.
Open /usr/lib/vmware-vcops/user/conf/api-conf.properties in a text editor.
Change the basicAuthentication.enabled property value to true.
basicAuthentication.enabled=true
Save and close the file.
Restart the REST API service:
service api restart
Repeat steps 1-5 on all other nodes in the vRealize Operations cluster.
Un-register vCenter in vROps
In the vROps UI, navigate to Administration -> Solutions -> Select VMware vSphere.
Click Configure (the gear wheel) and then click Manage Registrations.
Enter the vCenter credentials and click the Unregister button to complete this request.
Now register vCenter back using the Register button.
Remove vROps reference from vCenter MOB page
Open in your browser “https://<vCenter-FQDN-or-IP>/mob/?moid=ExtensionManager”.
Log in with vCenter SSO admin credentials.
Find [“com.vmware.vcops”] and [“com.vmware.vrops”] extension in the extensionList.
Click on those extensions to verify if they are referring to the correct vROPs server.
Click on UnregisterExtension at the bottom.
Provide the extension name and click Invoke Method. Repeat for both extensions. This will remove the vROps reference from vCenter. Refresh the page and ensure they are no longer on the page.
Re-register vCenter in vROps
In the vROps UI, navigate to Administration -> Solutions -> Select VMware vSphere.
Click Configure (the gear wheel) and then click Manage Registrations.
Enter the vCenter credentials and click the Register button to complete this request.
Additional Information
Impact/Risks: vROps collection in Usage Meter fails.