cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
691
Views
0
Helpful
1
Replies

AWS CSR Rest API Fails after reload/reboot

kirk_bollinger
Level 1
Level 1

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!

1 Reply 1

kirk_bollinger
Level 1
Level 1

I've gotten this to temporarily work a couple times by either of these but it does not work 100% of the time in either of these cases.

doing a no activate and then activate under the virtual-service cli

doing a uninstall for the virtual service and then re-install

but in either case it fails later after a reload or reboot

-kirk