Exiting from a debug-hook session puts hook in error state

Bug #1732233 reported by David Ames
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Andrew Wilkins

Bug Description

Snap version 2.3-beta2.1 of juju

When in a debug-hooks session after typing exit the hook is put in an error state.

All of the following exit strategies have the same outcome:

exit
exit 0
exit $(true)

There is no way to exit cleanly thus making debug-hooks less useful.

Log entries show exit status 1
2017-11-14 17:13:46 ERROR juju.worker.uniter.operation runhook.go:108 hook "update-status" failed: exit status 1
2017-11-14 17:18:54 ERROR juju.worker.uniter.operation runhook.go:108 hook "amqp-relation-joined" failed: exit status 1
2017-11-14 17:19:56 ERROR juju.worker.uniter.operation runhook.go:108 hook "identity-service-relation-joined" failed: exit status 1
2017-11-14 17:20:13 ERROR juju.worker.uniter.operation runhook.go:108 hook "amqp-relation-changed" failed: exit status 1
2017-11-14 17:20:52 ERROR juju.worker.uniter.operation runhook.go:108 hook "identity-service-relation-changed" failed: exit status 1
2017-11-14 17:21:46 ERROR juju.worker.uniter.operation runhook.go:108 hook "identity-service-relation-joined" failed: exit status 1
2017-11-14 17:24:03 ERROR juju.worker.uniter.operation runhook.go:108 hook "identity-service-relation-changed" failed: exit status 1

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.3-rc1
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :
Changed in juju:
status: Triaged → In Progress
Andrew Wilkins (axwalk)
Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1732233] Re: Exiting from a debug-hook session puts hook in error state

Is there any way to have some sort of functional test for this so that we
know debug-hooks is useful for people?

On Wed, Nov 15, 2017 at 6:50 AM, Andrew Wilkins <
<email address hidden>> wrote:

> ** Changed in: juju
> Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1732233
>
> Title:
> Exiting from a debug-hook session puts hook in error state
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1732233/+subscriptions
>

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.