Vault charm errors during update-status after "rpc error: code = DeadlineExceeded desc = context deadline exceeded"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vault-charm |
New
|
Undecided
|
Unassigned |
Bug Description
As seen in this test run: https:/
Crashdump here: https:/
While setting up LMA on an already stable cluster the vault unit errors out on the "update-status" hook when the vault service is unavailable:
var/log/
...
2020-11-13 17:03:17 WARNING update-status Traceback (most recent call last):
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status main()
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status hookenv.
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status callback(*args, **kwargs)
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status if not client_
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status vault.get_
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status return self.call(f, *args, **kw)
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status do = self.iter(
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status return fut.result()
2020-11-13 17:03:17 WARNING update-status File "/usr/lib/
2020-11-13 17:03:17 WARNING update-status return self.__get_result()
2020-11-13 17:03:17 WARNING update-status File "/usr/lib/
2020-11-13 17:03:17 WARNING update-status raise self._exception
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status result = fn(*args, **kwargs)
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status client.
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status return self.auth(
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status **kwargs
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status response = self.post(url, **kwargs).json()
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status return self.request(
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status allow_redirects
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status resp = self.send(prep, **send_kwargs)
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status r = adapter.
2020-11-13 17:03:17 WARNING update-status File "/var/lib/
2020-11-13 17:03:17 WARNING update-status raise ReadTimeout(e, request=request)
2020-11-13 17:03:17 WARNING update-status requests.
...
var/log/syslog:
Nov 13 17:02:47 vault-3 vault[28885]: {"level"
3883-06d6-
Nov 13 17:02:57 vault-3 vault[28885]: {"level"
3883-06d6-
Nov 13 17:03:10 vault-3 vault[28885]: {"level"
3883-06d6-
Nov 13 17:03:22 vault-3 vault[28885]: {"level"
3883-06d6-
Nov 13 17:03:35 vault-3 vault[28885]: {"level"
3883-06d6-
It is not clear if the service goes down or it's an issue with stale connections. The syslog errors repeat multiple times after this, indicating that the service is unhealthy, however neither juju nor syslog give any more information on what is going on.
we've seen this during the certificates- relation- changed hook as well:
Traceback (most recent call last): juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ __init_ _.py", line 74, in main dispatch( restricted= restricted_ mode) juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 390, in dispatch other_handlers) juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 359, in _invoke invoke( ) juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ charms/ reactive/ bus.py" , line 181, in invoke _action( *args) juju/agents/ unit-vault- 2/charm/ reactive/ vault_handlers. py", line 861, in publish_ca_info get_chain( ) juju/agents/ unit-vault- 2/charm/ lib/charm/ vault_pki. py", line 80, in get_chain read('{ }/cert/ ca_chain' .format( name))[ 'data'] ['certificate' ] juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ hvac/v1/ __init_ _.py", line 157, in read get('/v1/ {0}'.format( path), wrap_ttl= wrap_ttl) .json() juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ hvac/adapters. py", line 90, in get juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ hvac/adapters. py", line 233, in request raise_for_ error(response. status_ code, text, errors=errors) juju/agents/ unit-vault- 2/.venv/ lib/python3. 8/site- packages/ hvac/utils. py", line 39, in raise_for_error InternalServerE rror(message, errors=errors) .InternalServer Error: context deadline exceeded
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
chain = vault_pki.
File "/var/lib/
return client.
File "/var/lib/
return self._adapter.
File "/var/lib/
return self.request('get', url, **kwargs)
File "/var/lib/
utils.
File "/var/lib/
raise exceptions.
hvac.exceptions
coming from vault2 in this crashdump: /oil-jenkins. canonical. com/artifacts/ e9741061- 8c3b-42ef- 95a9-c8fdd42524 5b/generated/ generated/ kubernetes/ juju-crashdump- kubernetes- 2021-05- 02-01.11. 52.tar. gz
https:/