Am testing the latest and greatest Rancher and am hiving certain issues with its API. Since I am utilizing API a lot it happens that I am not getting response every time.
I am using terraform to spin up Azure VMs. One of the instance is meant for Rancher server and once I run Rancher docker image I am waiting on it to come up and become responsive. Once it’s up I start to interact with API via simple curl calls. Unfortunately curl doesn’t always return values I am looking for but
null instead. If I
ssh into the Azure Vm and try the exact same curl command, it works. I’ve tried playing around with timers and setting
sleep in different places, giving it time to set everything internally and only then to start interacting with API and that did change things to the better, but not always as I am still not getting values while provisioning the instance.
There seems to be a similar issue for an previous version Rancher API timeout but there was no response.
Thank you in advance for any suggestion and guidelines!