Open StefanKurek opened 2 months ago
Pinging code owners for receiver/vcenter: @djaglowski @schmikei @StefanKurek. See Adding Labels via Comments if you do not have permissions to add labels yourself.
Removing needs triage
as issue was filed by code owner, and generally makes sense to me.
Component(s)
receiver/vcenter
What happened?
Description
While collecting under a new environment setup, I noticed collection errors for a VM that was under a nested Virtual App (a Virtual App that was underneath another Virtual App). This was the first time I had personally seen Virtual Apps nested under Virtual Apps. Errors I saw were similar to:
I was able to track this down to the fact that the Virtual App data was never being scraped for the nested Virtual Apps in my environment. Looking closer at the client, I am pretty sure that this is an issue with the
govmomi
library.For the ResourcePoolList function, there are options for the internal
find
function forParents
andNested
. Virtual Machines under nested Resource Pools don't have any of these issues in this receiver.But in the VirtualAppList function, none of these options are present. My guess is that this is an oversight and should be corrected in the
govmomi
repo.Steps to Reproduce
Collect against any vSphere environment with nested Virtual Apps.
Expected Result
No collection errors.
Actual Result
Collection errors seen for Virtual Machines under any nested Virtual Apps.
Collector version
v0.101.0
Environment information
No response
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response