Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 19, 2021

Bumps pillow from 8.0.1 to 8.1.1.

Release notes

Sourced from pillow's releases.

8.1.1

https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html

8.1.0

https://pillow.readthedocs.io/en/stable/releasenotes/8.1.0.html

Changes

Dependencies

Deprecations

... (truncated)

Changelog

Sourced from pillow's changelog.

8.1.1 (2021-03-01)

  • Use more specific regex chars to prevent ReDoS. CVE-2021-25292 [hugovk]

  • Fix OOB Read in TiffDecode.c, and check the tile validity before reading. CVE-2021-25291 [wiredfool]

  • Fix negative size read in TiffDecode.c. CVE-2021-25290 [wiredfool]

  • Fix OOB read in SgiRleDecode.c. CVE-2021-25293 [wiredfool]

  • Incorrect error code checking in TiffDecode.c. CVE-2021-25289 [wiredfool]

  • PyModule_AddObject fix for Python 3.10 #5194 [radarhere]

8.1.0 (2021-01-02)

  • Fix TIFF OOB Write error. CVE-2020-35654 #5175 [wiredfool]

  • Fix for Read Overflow in PCX Decoding. CVE-2020-35653 #5174 [wiredfool, radarhere]

  • Fix for SGI Decode buffer overrun. CVE-2020-35655 #5173 [wiredfool, radarhere]

  • Fix OOB Read when saving GIF of xsize=1 #5149 [wiredfool]

  • Makefile updates #5159 [wiredfool, radarhere]

  • Add support for PySide6 #5161 [hugovk]

  • Use disposal settings from previous frame in APNG #5126 [radarhere]

  • Added exception explaining that repr_png saves to PNG #5139 [radarhere]

  • Use previous disposal method in GIF load_end #5125 [radarhere]

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 19, 2021
@sesheta sesheta added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 19, 2021
@sesheta
Copy link
Contributor

sesheta commented Mar 19, 2021

Pytest Test failed! Click here
running test
running egg_info
creating prometheus_api_client.egg-info
writing prometheus_api_client.egg-info/PKG-INFO
writing dependency_links to prometheus_api_client.egg-info/dependency_links.txt
writing requirements to prometheus_api_client.egg-info/requires.txt
writing top-level names to prometheus_api_client.egg-info/top_level.txt
writing manifest file 'prometheus_api_client.egg-info/SOURCES.txt'
reading manifest file 'prometheus_api_client.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'prometheus_api_client.egg-info/SOURCES.txt'
running build_ext
test_init (tests.test_metric.TestMetric) ... ok
test_metric_addition (tests.test_metric.TestMetric) ... ok
test_metric_end_time (tests.test_metric.TestMetric) ... ok
test_metric_equality (tests.test_metric.TestMetric) ... ok
test_metric_start_time (tests.test_metric.TestMetric) ... ok
test_oldest_data_datetime_with_datetime (tests.test_metric.TestMetric) ... ok
test_oldest_data_datetime_with_timedelta (tests.test_metric.TestMetric) ... ok
test_setup (tests.test_metric.TestMetric)
Check if setup was done correctly. ... ok
test_init_columns (tests.test_metric_range_df.TestMetricRangeDataFrame)
Test if dataframe initialized has correct columns. ... ok
test_init_shape (tests.test_metric_range_df.TestMetricRangeDataFrame)
Test if dataframe initialized is of correct shape. ... ok
test_init_single_metric (tests.test_metric_range_df.TestMetricRangeDataFrame) ... ok
test_init_timestamps (tests.test_metric_range_df.TestMetricRangeDataFrame)
Test if dataframe contains the correct timestamp indices. ... ok
test_setup (tests.test_metric_range_df.TestMetricRangeDataFrame)
Check if setup was done correctly. ... ok
test_init_columns (tests.test_metric_snapshot_df.TestMetricSnapshotDataFrame)
Test if dataframe initialized has correct columns. ... ok
test_init_shape (tests.test_metric_snapshot_df.TestMetricSnapshotDataFrame)
Test if dataframe initialized is of correct shape. ... ok
test_init_single_metric (tests.test_metric_snapshot_df.TestMetricSnapshotDataFrame) ... ok
test_setup (tests.test_metric_snapshot_df.TestMetricSnapshotDataFrame)
Check if setup was done correctly. ... ok
test_init (tests.test_metrics_list.TestMetricsList)
Test if metrics initialized in the list are correct. ... ok
test_init_single_metric (tests.test_metrics_list.TestMetricsList) ... ok
test_setup (tests.test_metrics_list.TestMetricsList)
Check if setup was done correctly. ... ok
test_unique_metric_combination (tests.test_metrics_list.TestMetricsList) ... ok
test_get_metric_aggregation (tests.test_prometheus_connect.TestPrometheusConnect) ... ERROR
test_get_metric_aggregation_with_incorrect_input_types (tests.test_prometheus_connect.TestPrometheusConnect) ... ok
test_get_metric_range_data (tests.test_prometheus_connect.TestPrometheusConnect) ... ERROR
test_get_metric_range_data_with_chunk_size (tests.test_prometheus_connect.TestPrometheusConnect) ... ERROR
test_get_metric_range_data_with_incorrect_input_types (tests.test_prometheus_connect.TestPrometheusConnect) ... ok
test_metrics_list (tests.test_prometheus_connect.TestPrometheusConnect)
Check if setup was done correctly. ... ERROR
test_retry_on_error (tests.test_prometheus_connect.TestPrometheusConnect) ... ERROR
test_all_metrics_method (tests.test_prometheus_connect.TestPrometheusConnectWithMockedNetwork) ... ok
test_broken_responses (tests.test_prometheus_connect.TestPrometheusConnectWithMockedNetwork) ... ok
test_how_mock_prop_works (tests.test_prometheus_connect.TestPrometheusConnectWithMockedNetwork) ... ok
test_network_is_blocked (tests.test_prometheus_connect.TestPrometheusConnectWithMockedNetwork) ... ok
test_unauthorized (tests.test_prometheus_connect.TestPrometheusConnectWithMockedNetwork) ... ok

======================================================================
ERROR: test_get_metric_aggregation (tests.test_prometheus_connect.TestPrometheusConnect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib64/python3.6/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 974, in send
    self.connect()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5f4357ca90>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query_range?query=up&start=1616166944&end=1616167544&step=15 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f4357ca90>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/repo/tests/test_prometheus_connect.py", line 117, in test_get_metric_aggregation
    query="up", operations=operations, start_time=start_time, end_time=end_time, step=step
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 432, in get_metric_aggregation
    query=query, params=params, start_time=start_time, end_time=end_time, step=step
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 372, in custom_query_range
    headers=self.headers,
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query_range?query=up&start=1616166944&end=1616167544&step=15 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f4357ca90>: Failed to establish a new connection: [Errno -2] Name or service not known',))

======================================================================
ERROR: test_get_metric_range_data (tests.test_prometheus_connect.TestPrometheusConnect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib64/python3.6/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 974, in send
    self.connect()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5f54b2d358>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=up%5B600s%5D&time=1616167550 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f54b2d358>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/repo/tests/test_prometheus_connect.py", line 31, in test_get_metric_range_data
    metric_name="up", start_time=start_time, end_time=end_time
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 233, in get_metric_range_data
    headers=self.headers,
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=up%5B600s%5D&time=1616167550 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f54b2d358>: Failed to establish a new connection: [Errno -2] Name or service not known',))

======================================================================
ERROR: test_get_metric_range_data_with_chunk_size (tests.test_prometheus_connect.TestPrometheusConnect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib64/python3.6/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 974, in send
    self.connect()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5f40b31c50>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=up%5B420s%5D&time=1616164076 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b31c50>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/repo/tests/test_prometheus_connect.py", line 61, in test_get_metric_range_data_with_chunk_size
    metric_name="up", start_time=start_time, end_time=end_time, chunk_size=chunk_size
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 233, in get_metric_range_data
    headers=self.headers,
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=up%5B420s%5D&time=1616164076 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b31c50>: Failed to establish a new connection: [Errno -2] Name or service not known',))

======================================================================
ERROR: test_metrics_list (tests.test_prometheus_connect.TestPrometheusConnect)
Check if setup was done correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib64/python3.6/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 974, in send
    self.connect()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5f40b32da0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/label/__name__/values (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b32da0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/repo/tests/test_prometheus_connect.py", line 24, in test_metrics_list
    metrics_list = self.pc.all_metrics()
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 99, in all_metrics
    params=params,
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/label/__name__/values (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b32da0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

======================================================================
ERROR: test_retry_on_error (tests.test_prometheus_connect.TestPrometheusConnect)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib64/python3.6/http/client.py", line 1254, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 974, in send
    self.connect()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5f40b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/opt/app-root/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=BOOM.BOOM%21%23%24%25 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspace/repo/tests/test_prometheus_connect.py", line 131, in test_retry_on_error
    pc.custom_query("BOOM.BOOM!#$%")
  File "/workspace/repo/prometheus_api_client/prometheus_connect.py", line 330, in custom_query
    headers=self.headers,
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/opt/app-root/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='prometheus-route-aiops-prod-prometheus-predict.cloud.paas.psi.redhat.com', port=80): Max retries exceeded with url: //api/v1/query?query=BOOM.BOOM%21%23%24%25 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5f40b32ef0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

----------------------------------------------------------------------
Ran 33 tests in 38.737s

FAILED (errors=5)
Test failed: <unittest.runner.TextTestResult run=33 errors=5 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=33 errors=5 failures=0>

@4n4nd 4n4nd self-assigned this Mar 19, 2021
@4n4nd
Copy link
Owner

4n4nd commented Mar 19, 2021

/approve
the pytests are failing because it cannot connect to the prometheus instance (in config), I will update that config.
I ran the tests locally and the passed ✔️

@sesheta
Copy link
Contributor

sesheta commented Mar 19, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 4n4nd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sesheta sesheta added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 19, 2021
@4n4nd 4n4nd merged commit ab09d82 into master Mar 19, 2021
@dependabot dependabot bot deleted the dependabot/pip/pillow-8.1.1 branch March 19, 2021 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dependencies Pull requests that update a dependency file size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants