Page MenuHomePhabricator

Openstack-browser server pages fail to load information with 'Unknown server' error
Closed, ResolvedPublic

Description

Going to a page like https://tools.wmflabs.org/openstack-browser/server/kafka2-1.analytics.eqiad.wmflabs shows:

kafka2-1.analytics.eqiad.wmflabs Project: analytics
Unknown server 'kafka2-1.analytics.eqiad.wmflabs'. Are you just guessing?

Event Timeline

Looks like it is talking to the old puppetmaster url and failing

[2017-08-31 22:41:19,008] ERROR in app: Error collecting information for server "kafka2-1.analytics.eqiad.wmflabs"
Traceback (most recent call last):
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 356, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.4/http/client.py", line 1090, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.4/http/client.py", line 924, in _send_output
    self.send(msg)
  File "/usr/lib/python3.4/http/client.py", line 859, in send
    self.connect()
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7f9d993e41d0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 376, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='labcontrol1001.wikimedia.org', port=8100): Max retries exceeded with url: /v1/analytics/node/kafka2-1.analytics.eqiad.wmflabs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f9d993e41d0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/project/openstack-browser/www/python/src/app.py", line 131, in server
    'puppetclasses': puppetclasses.classes(project, fqdn),
  File "./keystone_browser/puppetclasses.py", line 117, in classes
    return config(project, fqdn, cached)['roles']
  File "./keystone_browser/puppetclasses.py", line 105, in config
    req = requests.get(url, verify=False)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/data/project/openstack-browser/www/python/venv/lib/python3.4/site-packages/requests/adapters.py", line 487, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='labcontrol1001.wikimedia.org', port=8100): Max retries exceeded with url: /v1/analytics/node/kafka2-1.analytics.eqiad.wmflabs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f9d993e41d0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

Mentioned in SAL (#wikimedia-cloud) [2017-08-31T23:14:58Z] <madhuvishy> Restarted webservice after fixing T174740