hook error: "shortname of check must be specified"

Bug #1835933 reported by Dmitrii Shcherbakov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vault-charm
Fix Released
High
Ryan Beisner

Bug Description

https://pastebin.canonical.com/p/wJfdn3wvxz/

  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charmhelpers/contrib/charmsupport/nrpe.py", line 270, in add_check
    raise ValueError('shortname of check must be specified')
ValueError: shortname of check must be specified

See https://github.com/juju/charm-helpers/issues/344

Tags: cpe-onsite
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

https://review.opendev.org/#/c/669920/

Subscribed ~field-critical.

Revision history for this message
Przemyslaw Hausman (phausman) wrote :

I'm facing this when deploying vault charm, revision 22. With charm revision 21, the issue does not occur.

tracer: ++ queue handler reactive/vault_handlers.py:377:start_vault
unit-vault-0: 17:15:50 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:242:mysql_setup
unit-vault-0: 17:15:51 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:271:database_not_ready
unit-vault-0: 17:15:51 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:354:cluster_connected
unit-vault-0: 17:15:51 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:492:send_vault_url_and_ca
unit-vault-0: 17:15:51 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:508:prime_assess_status
unit-vault-0: 17:15:51 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: hooks/relations/vault-kv/provides.py:41:joined:secrets
unit-vault-0: 17:15:52 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: hooks/relations/tls-certificates/provides.py:57:broken:certificates
unit-vault-0: 17:15:52 INFO unit.vault/0.juju-log shared-db:327: Invoking reactive handler: reactive/vault_handlers.py:322:update_nagios
unit-vault-0: 17:15:52 INFO unit.vault/0.juju-log shared-db:327: Setting charm primary status True
unit-vault-0: 17:15:52 DEBUG unit.vault/0.juju-log shared-db:327: Changing permissions on existing content: 33261 -> 493
unit-vault-0: 17:15:52 ERROR unit.vault/0.juju-log shared-db:327: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 73, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-vault-0/charm/reactive/vault_handlers.py", line 338, in update_nagios
    '/usr/lib/nagios/plugins/check_vault_version.py',
  File "/var/lib/juju/agents/unit-vault-0/.venv/lib/python3.6/site-packages/charmhelpers/contrib/charmsupport/nrpe.py", line 270, in add_check
    raise ValueError('shortname of check must be specified')
ValueError: shortname of check must be specified

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Reminder - pastebins are ephemeral.  Please attach logs and comments instead.

Ryan Beisner (1chb1n)
Changed in vault-charm:
importance: Undecided → High
assignee: nobody → Ryan Beisner (1chb1n)
milestone: none → 19.07
status: New → In Progress
Revision history for this message
Ryan Beisner (1chb1n) wrote :
Changed in vault-charm:
status: In Progress → Fix Committed
Ryan Beisner (1chb1n)
Changed in vault-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.