Closed thatsk closed 1 year ago
same message i am getting any help will be much appreciated.
2023/02/01 18:19:05 [DEBUG] fhMap: [map[build:false comment: compute_attributes:map[] compute_profile_id:162 compute_resource_id:41 domain_id:137 host_parameters_attributes:[{Name:puppet_environment Value:farm1}] hostgroup_id:382 image_id:15 medium_id:<nil> model_id:<nil> name:kunal operatingsystem_id:90 owner_id:3 owner_type: provision_method:image puppetclass_ids:[]]]
2023/02/01 18:19:05 [DEBUG] hJSONBytes: [{"host":{"build":false,"comment":"","compute_attributes":{},"compute_profile_id":"162","compute_resource_id":"41","domain_id":"137","host_parameters_attributes":[{"name":"puppet_environment","value":"farm1"}],"hostgroup_id":"382","image_id":"15","medium_id":null,"model_id":null,"name":"kunal","operatingsystem_id":"90","owner_id":"3","owner_type":"","provision_method":"image","puppetclass_ids":[]},"location_id":1,"organization_id":2}]
2023/02/01 18:19:05 [TRACE] foreman/api/client.go#NewRequest
2023/02/01 18:19:05 [DEBUG] method: [POST], endpoint: [/hosts]
2023/02/01 18:19:05 [DEBUG] reqURL: [https://foreman/api/hosts]
2023/02/01 18:19:05 [DEBUG] CreatedHost: Retry #[0]
2023/02/01 18:19:05 [TRACE] foreman/api/client.go#SendAndParse
2023/02/01 18:19:05 [TRACE] foreman/api/client.go#Send
2023/02/01 18:19:10 [DEBUG] server response:{
endpoint: [https://foreman/api/hosts]
method: [POST]
statusCode: [422]
respBody: [{
"error": {"id":null,"errors":{"base":["Failed to create a compute farm-poc-demo (VMware) instance kunal.test: undefined method `include?' for nil:NilClass\n "]},"full_messages":["Failed to create a compute farm-poc-demo (VMware) instance kunal.test: undefined method `include?' for nil:NilClass\n "]}
}
Does it work in the GUI? If not then it's an issue in Foreman and not with this provider.
I removed compute resource and recreated it's resolved now
Hello Team,
I am trying to use the provider its working with esxi 6.0 but not with esxi 6.5 can anyone tell me what the issue why its not working with that. https://community.theforeman.org/t/failed-to-create-a-compute-vmware-vmware-instance-vmhost-undefined-method-include-for-nil-nilclass/6279