I am testing the REST API in AWS with CSR and I'm finding that it works initially after launching a new CSR but after rebooting, power down and re-start it fails to work. I'm using python and my scripts work fine with a test CSR running in Ubuntu on prem.
upon initial launch:
My response for auth is: <Response [200]>
{'kind': 'object#auth-token', 'link': 'https://10.X.X.X:55443/api/v1/auth/token-services/1611286338', 'token-id': 'removed', 'expiry-time': 'Wed Dec 14 13:14:21 2016'}
My token is: <removed>
after reboot:
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.X.X.X', port=55443): Max retries exceeded with url: /api/v1/auth/token-services (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8f8243bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
I've tried this by just adding one config line to the initial launch config - a user with privilege 15, saving and reloading, rebooting, power down/on.
any ideas?
thanks!