secret-changed event missing from juju debug-hooks

Bug #2029282 reported by Judit Novak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

secrets related events (such as secret-changed, secret-removed, etc.) are missing from traceable hooks for `juju debug-hook[s]`.

Below are the available hooks for a charm using Juju 3.1, and has well-defined secrets-related hooks (like for secret-changed).

ubuntu@opensearch:~$ juju debug-hook opensearch/0 secret-changed
ERROR unit "opensearch/0" contains neither hook nor action "secret-changed", valid actions are [get-password set-password set-tls-private-key] and valid hooks are [certificates-relation-broken certificates-relation-changed certificates-relation-created certificates-relation-departed certificates-relation-joined collect-metrics config-changed install juju-info-relation-broken juju-info-relation-changed juju-info-relation-created juju-info-relation-departed juju-info-relation-joined leader-deposed leader-elected leader-settings-changed meter-status-changed opensearch-client-relation-broken opensearch-client-relation-changed opensearch-client-relation-created opensearch-client-relation-departed opensearch-client-relation-joined opensearch-data-storage-attached opensearch-data-storage-detaching opensearch-peers-relation-broken opensearch-peers-relation-changed opensearch-peers-relation-created opensearch-peers-relation-departed opensearch-peers-relation-joined post-series-upgrade pre-series-upgrade remove service-relation-broken service-relation-changed service-relation-created service-relation-departed service-relation-joined start stop update-status upgrade-charm]

Even though the hook is indicated (when happening) in `juju debug-logs` (when accessed via `juju debug-code`, NOT `juju debug-hooks`):

unit-opensearch-0: 17:08:35 INFO juju.worker.uniter.runner executing secret-changed via debug-code; hook dispatching script: dispatch

Would it be possible to extend juju debug-hooks` to secrets-related events, to facilitate related development? Thx very-very much :-)

Revision history for this message
Judit Novak (juditnovak) wrote :
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 3.1.6
status: New → Triaged
importance: Undecided → High
assignee: nobody → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Ian Booth (wallyworld) wrote :
Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
Judit Novak (juditnovak) wrote :

Wow, thank you SOOOO much!!!!!!!! Bugfix literally overnight!!!!! :-)

Changed in juju:
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.