att-comdev / prometheus-openstack-exporter

Apache License 2.0
29 stars 18 forks source link

get token not connection #5

Open Shinhocheol opened 6 years ago

Shinhocheol commented 6 years ago

docker run 018-10-16 02:34:37,987:INFO:Starting new HTTP connection (1): controller 2018-10-16 02:34:58,132:DEBUG:Incremented Retry for (url='/v3/auth/tokens'): Retry(total=0, connect=None, read=None, redirect=None) 2018-10-16 02:34:58,133:WARNING:Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff990fe2c90>, 'Connection to controller timed out. (connect timeout=20)')': /v3/auth/tokens 2018-10-16 02:34:58,133:INFO:Starting new HTTP connection (2): controller 2018-10-16 02:35:18,284:ERROR:Got exception for 'http://controller:35357/v3/auth/tokens': 'HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff990fe2dd0>, 'Connection to controller timed out. (connect timeout=20)'))'

Shinhocheol commented 6 years ago

why domain ?

docker run --env-file env_file -it rakeshpatnaik/prometheus-openstack-exporter:v0.2

2018-10-16 07:42:25,669:DEBUG:Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None) 2018-10-16 07:42:25,669:DEBUG:Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None) 2018-10-16 07:42:25,670:DEBUG:new osclient added to cache 2018-10-16 07:42:25,670:DEBUG:new osclient added to cache 2018-10-16 07:42:25,670:DEBUG:new osclient added to cache 2018-10-16 07:42:25,670:DEBUG:new osclient added to cache 2018-10-16 07:42:25,670:DEBUG:new osclient added to cache 2018-10-16 07:42:25,670:INFO:Trying to get token from 'http://192.168.232.253:35357/v3' 2018-10-16 07:42:25,673:INFO:Starting new HTTP connection (1): 192.168.232.253 2018-10-16 07:42:25,861:DEBUG:"POST /v3/auth/tokens HTTP/1.1" 201 6818 2018-10-16 07:42:25,861:INFO:http://192.168.232.253:35357/v3/auth/tokens responded with status code 201 2018-10-16 07:42:25,862:DEBUG:Got token 'gAAAAABbxZZhrGCgrid6NZTbzor2jxLHfveMNHhDNPPj-MyE9wxMo9OtxszB9fFXpJ3MKgtueGs9u5LZ83bABiTwDBx5t5nJNCfqkon4e9-dDsbrVVi-VC7ZkqE8JIO3Gd58TgHqzezTIXgyAF1OlSbT11ASqZEjQk2BbLh3jpaH_yRNrXjpxFI' 2018-10-16 07:42:25,863:INFO:Starting new HTTP connection (1): http://controller