debug-hooks provides incorrect path to dispatch

Bug #1885543 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
John A Meinel
2.8
Fix Released
High
John A Meinel

Bug Description

The help given to users during a debug-hooks session is incorrect, where juju is using the absolute path to the charm's dispatch script instead of the relative path; I'm being told to run .//var/lib/juju/agents/unit-plinth-0/charm/dispatch which is incorrect.

This is a Juju debug-hooks tmux session. Remember:
1. You need to execute hooks/actions manually if you want them to run for trapped events.
2. When you are finished with an event, you can run 'exit' to close the current window and allow Juju to continue processing
new events for this unit without exiting a current debug-session.
3. To run an action or hook and end the debugging session avoiding processing any more events manually, use:

.//var/lib/juju/agents/unit-plinth-0/charm/dispatch
tmux kill-session -t plinth/0 # or, equivalently, CTRL+a d

4. CTRL+a is tmux prefix.

More help and info is available in the online documentation:
https://discourse.jujucharms.com/t/debugging-charm-hooks

root@ip-172-31-3-246:/var/lib/juju/agents/unit-plinth-0/charm# .//var/lib/juju/agents/unit-plinth-0/charm/dispatch
bash: .//var/lib/juju/agents/unit-plinth-0/charm/dispatch: No such file or directory

Tags: bitesize
Pen Gale (pengale)
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: bitesize
Tim Penhey (thumper)
Changed in juju:
milestone: none → 2.8-next
Pen Gale (pengale)
Changed in juju:
importance: Medium → High
John A Meinel (jameinel)
Changed in juju:
assignee: nobody → John A Meinel (jameinel)
status: Triaged → In Progress
milestone: 2.8-next → 2.9-beta1
Revision history for this message
John A Meinel (jameinel) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
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.