Page MenuHomeSoftware Heritage

data/defaults.yaml: Set search as empty dict in webapp conf
ClosedPublic

Authored by anlambert on Jan 13 2020, 3:34 PM.

Details

Summary

When a conf entry equals None, the explicit default one will be used instead.
So ensure to set an empty dict for the search conf entry of swh-web to avoid
search errors until swh-search is deployed in production.

When testing inside the docker environment without that fix, the following
errors are reported:

swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (1): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc585550>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (2): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5859d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (3): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5746d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (4): 127.0.0.1:5010

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
webapp-set-search-empty-dict
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10062
Build 14898: arc lint + arc unit