WCP service in vCenter 9.1.1.0 might crash with error:
#/var/log/vmware/wcp/wcpsvc.log in the vCenterYYYY-MM-DDThh:mm:ss.sssZ ERROR wcp #### [vc@4413] [handlers/panic.go:27] panic: runtime error: invalid memory address or nil pointer dereference
...
goroutine <ID> [running]:
server/pkg/http/handlers.(*ExitOnPanicHandler).ServeHTTP.func1()
.../server/pkg/http/handlers/panic.go:<LINE> +<OFFSET>
panic(...)
.../src/runtime/panic.go:<LINE> +<OFFSET>
server/dataprovider.(*workloadVpcNetworkModelInMemResourceType).GetAllResources(...)
.../server/dataprovider/workload_vpcnetworkmodel_resource.go:<LINE> +<OFFSET>
server/dataprovider.getInMemoryResources(...)
.../server/dataprovider/inmem_queryhandler.go:<LINE> +<OFFSET>
server/dataprovider.queryInMemoryResourceModel(...)
When the WCP process is down, the Supervisor is no longer displayed in Supervisor Management in the vSphere UI.
vCenter 9.1.1.0
The wcp service crashes because the vpcNetworkInfo has an invalid value. This can happen during data provider model queries e.g. when viewing the Namespaces details in VC UI.
Conditions
This issue occurs under the following conditions:
Trigger
In the environments listed above, clicking into Supervisor Management --> Namespace --> Configure --> General for any vSphere Namespace in the vSphere UI will trigger the crash.
This issue is fixed in VCF 9.1.2.
As a workaround, if the WCP process crashes, manually start it from vCenter.
service-control --start wcp