2021-10-13 15:29:00,281 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:29:52,704 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:29:52 GMT', 'Content-Length': '150'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"rpc error: code = Unavailable desc = transport is closing","code":500} 2021-10-13 15:30:02,730 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:30:04,180 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:30:10,199 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:30:11,834 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:30:19,849 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:30:21,374 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:30:31,397 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:30:56,930 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:30:56 GMT', 'Content-Length': '150'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"rpc error: code = Unavailable desc = transport is closing","code":500} 2021-10-13 15:31:06,940 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:31:08,480 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:31:18,502 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:32:20,001 - ERROR - Exception when calling list_namespaced_pod: (504) Reason: Gateway Timeout HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Date': 'Wed, 13 Oct 2021 15:32:19 GMT', 'Content-Length': '136', 'Content-Type': 'text/plain; charset=utf-8'}) HTTP response body: {"metadata":{},"status":"Failure","message":"Timeout: request did not complete within 1m0s","reason":"Timeout","details":{},"code":504} 2021-10-13 15:32:29,026 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:32:30,488 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:32:38,513 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:33:08,136 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:33:13,152 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:33:14,787 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:33:19,811 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:33:46,810 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:33:46 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:33:57,838 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:34:16,827 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:34:16 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:34:22,849 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:34:38,200 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:34:43,220 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:34:44,771 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:34:49,788 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:34:51,269 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:34:59,288 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:35:03,944 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:35:10,965 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:35:34,807 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:35:34 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:35:40,809 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:35:42,541 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:35:52,560 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:36:52,565 - ERROR - Exception when calling list_namespaced_pod: (504) Reason: Gateway Timeout HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Date': 'Wed, 13 Oct 2021 15:36:52 GMT', 'Content-Length': '136', 'Content-Type': 'text/plain; charset=utf-8'}) HTTP response body: {"metadata":{},"status":"Failure","message":"Timeout: request did not complete within 1m0s","reason":"Timeout","details":{},"code":504} 2021-10-13 15:37:00,573 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:37:21,009 - ERROR - Exception when waiting for deployment status: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:37:21 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:37:27,035 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:37:49,990 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:37:49 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:37:55,997 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:38:45,002 - ERROR - Exception when waiting for deployment status: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:38:45 GMT', 'Content-Length': '150'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"rpc error: code = Unavailable desc = transport is closing","code":500} 2021-10-13 15:38:56,024 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:38:57,543 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:39:07,568 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:39:09,032 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:39:17,053 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:40:18,561 - ERROR - Exception when waiting for deployment status: (504) Reason: Gateway Timeout HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Date': 'Wed, 13 Oct 2021 15:40:18 GMT', 'Content-Length': '136', 'Content-Type': 'text/plain; charset=utf-8'}) HTTP response body: {"metadata":{},"status":"Failure","message":"Timeout: request did not complete within 1m0s","reason":"Timeout","details":{},"code":504} 2021-10-13 15:40:25,580 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:41:25,586 - ERROR - Exception when calling list_namespaced_pod: (504) Reason: Gateway Timeout HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Date': 'Wed, 13 Oct 2021 15:41:25 GMT', 'Content-Length': '136', 'Content-Type': 'text/plain; charset=utf-8'}) HTTP response body: {"metadata":{},"status":"Failure","message":"Timeout: request did not complete within 1m0s","reason":"Timeout","details":{},"code":504} 2021-10-13 15:41:33,594 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:41:35,127 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:41:41,145 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:42:07,065 - INFO - Deployment onap-dcae-inventory-api is NOT ready 2021-10-13 15:42:14,086 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:42:37,143 - ERROR - Exception when waiting for deployment status: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:42:37 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:42:42,165 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:43:07,143 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:43:07 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:43:13,166 - INFO - Checking if dcae-inventory-api is ready 2021-10-13 15:43:37,146 - ERROR - Exception when calling list_namespaced_pod: (500) Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 13 Oct 2021 15:43:37 GMT', 'Content-Length': '122'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"etcdserver: request timed out","code":500} 2021-10-13 15:43:44,171 - INFO - Checking if dcae-inventory-api is ready Traceback (most recent call last): File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn conn = connection.create_connection( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/home/onap/.local/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/ready.py", line 326, in main(sys.argv[1:]) File "/app/ready.py", line 299, in main ready = is_ready(container_name) File "/app/ready.py", line 207, in is_ready deployment_name = get_deployment_name(name) File "/app/ready.py", line 243, in get_deployment_name api_response = api.read_namespaced_replica_set_status(replicaset, File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/api/apps_v1_api.py", line 5884, in read_namespaced_replica_set_status (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/api/apps_v1_api.py", line 5955, in read_namespaced_replica_set_status_with_http_info return self.api_client.call_api( File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 340, in call_api return self.__call_api(resource_path, method, File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 172, in __call_api response_data = self.request( File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 362, in request return self.rest_client.GET(url, File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/rest.py", line 237, in GET return self.request("GET", url, File "/home/onap/.local/lib/python3.8/site-packages/kubernetes/client/rest.py", line 210, in request r = self.pool_manager.request(method, url, File "/home/onap/.local/lib/python3.8/site-packages/urllib3/request.py", line 75, in request return self.request_encode_url( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/request.py", line 97, in request_encode_url return self.urlopen(method, url, **extra_kw) File "/home/onap/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 336, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 754, in urlopen return self.urlopen( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 754, in urlopen return self.urlopen( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 754, in urlopen return self.urlopen( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen retries = retries.increment( File "/home/onap/.local/lib/python3.8/site-packages/urllib3/util/retry.py", line 439, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.233.0.1', port=443): Max retries exceeded with url: /apis/apps/v1/namespaces/onap/replicasets/onap-dcae-inventory-api-577cdb65b5/status (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))