Problem: I am trying to get available networks of particular compute resource with API "API “/api/compute_resources/1/available_clusters/domain-s7/available_networks” in Foreman v2.1 but it is throwing error “Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server’s log”. I had checked log and it is showing "Backtrace for ‘Action failed’ error (NoMethodError): undefined method network for nil:NilClass"
Expected outcome: List of available networks should be returned
Foreman and Proxy versions: 2.1 & 2.1.0-rc3
Foreman and Proxy plugin versions: 2.1 & 2.1.0-rc3
Not easily unfortunately, vmware itself don’t understand the concept of ID much and it boils down to this method:
We probably could get all clusters and just .detect the one with appropriate ID, but we I’d rather if we move away from using IDs in vmware and just use paths as ids. But I’m really unsure what vmware prefers, that is just my guess from their api documentation and its ruby bindings.