<@UGRJA9TEH> thank you for the quick response. i m...
# troubleshooting
p
@Xiang Fu thank you for the quick response. i missed reading the doc properly. though i use suggested method in doc now i see below error while broker tenants were created server tenant creation fails. even though all server are set to server_untagged error --> {"code":400,"error":"Cannot request more offline instances: 1 or realtime instances: 1 than total instances: 0"} command used --> curl -s -X POST http://pinot-test-controller:9000/tenants -H 'Content-Type: application/json' -d '{"tenantRole":"BROKER","tenantName":"fmBrokerTenant","numberOfInstances":1}' curl -s -X POST http://pinot-test-controller:9000/tenants -H 'Content-Type: application/json' -d '{"tenantRole":"SERVER","tenantName":"fmServerTenant","offlineInstances":1,"realtimeInstances":1}' curl -s -X POST http://pinot-test-controller:9000/tenants -H 'Content-Type: application/json' -d '{"tenantRole":"BROKER","tenantName":"pmBrokerTenant","numberOfInstances":1}' curl -s -X POST http://pinot-test-controller:9000/tenants -H 'Content-Type: application/json' -d '{"tenantRole":"SERVER","tenantName":"pmServerTenant","offlineInstances":1,"realtimeInstances":1}'
x
can you try this:
Copy code
curl -s -X POST http://pinot-test-controller:9000/tenants -H 'Content-Type: application/json' -d '{"tenantRole":"SERVER","tenantName":"fmServerTenant","offlineInstances":1,"realtimeInstances":1,"numberOfInstances":2}'
p
Hi Xiang, Thank you very much for the quick reply based on error i did try total Instances as extra input but did not work. I believe the doc needs correction. Thank you.
x
oh, have you captured the logs from the controller?
the last thing you can do it to directly tag server instances using the server instance api
p
attaching controller logs where we were able to create all tenants successfully using a post install hook. note had to give some sleep time before each api call to create tenant else few were getting executed while other failed. post adding sleep time of 30 sec all api calls were successful.