threefoldtecharchive / 0-templates

0-robot templates
Apache License 2.0
1 stars 1 forks source link

Alerta: testing the node failure and management interface failure blocked as alerta not showing alerts #245

Closed hossnys closed 5 years ago

hossnys commented 5 years ago

during testing on this node ac1f6b47a10c on bancadati i found this error when streaming logs of zrobot of this node

[Tue27 13:18] - base.py           :215 :healthchecks-c06af0aa-5ed3-4a4d-bd84-f6d115cd3366 (healthcheck) - ERROR    - error executing action _monitor:
Traceback (most recent call last):
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/healthchecks/healthcheck.py", line 61, in __enter__
    self.container = self.node.containers.get(self._name)
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/container/Container.py", line 27, in get
    raise LookupError("Could not find container with name {}".format(name))
LookupError: Could not find container with name healthcheck_20b6eaadb5db66d9af639d5c931c9fbe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/github/threefoldtech/0-robot/zerorobot/task/task.py", line 78, in execute
    self._result = self._func()
  File "/opt/code/github/threefoldtech/0-templates/templates/healthcheck/healthcheck.py", line 29, in _monitor
    self._healthcheck()
  File "/opt/code/github/threefoldtech/0-templates/templates/healthcheck/healthcheck.py", line 50, in _healthcheck
    with node_sal.healthcheck.with_container(flist_healhcheck) as cont:
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/healthchecks/healthcheck.py", line 63, in __enter__
    self.container = self.node.containers.create(self._name, self.flist, host_network=True, privileged=True)
  File "/opt/code/github/threefoldtech/jumpscale_lib/JumpscaleLib/sal_zos/container/Container.py", line 35, in create
    for nic in nics:
TypeError: 'NoneType' object is not iterable
zaibon commented 5 years ago

fixed in https://github.com/threefoldtech/jumpscale_lib/commit/6210c3dd8bcd8bc1d56add5bf9b7271f82e6167f

hossnys commented 5 years ago

verified : screenshot from 2018-11-28 11-19-28 screenshot from 2018-11-28 11-19-15 screenshot from 2018-11-27 16-34-47 screenshot from 2018-11-27 16-33-47