juju-check-wait is unhelpful when "juju run" is not working properly

Bug #1655197 reported by Paul Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Confirmed
Medium
Unassigned

Bug Description

Given an environment that is behaving like this:

(stg-pes-certification)stg-pes-certification@wendigo:~$ juju run --unit ksplice/1,ksplice/2,ksplice/3 'is-leader --format=json'
- Error: 'fork/exec /usr/bin/ssh: cannot allocate memory'
  MachineId: "1"
  Stdout: ""
  UnitId: ksplice/1
- Error: 'fork/exec /usr/bin/ssh: cannot allocate memory'
  MachineId: "11"
  Stdout: ""
  UnitId: ksplice/2
- Error: 'fork/exec /usr/bin/ssh: cannot allocate memory'
  MachineId: "2"
  Stdout: ""
  UnitId: ksplice/3

juju-check-wait will simply report e.g.

2017-01-10 01:16:42 [ERROR] ksplice/3 has failed. Insane output from commands.
2017-01-10 01:16:42 [ERROR] ksplice/2 has failed. Insane output from commands.
2017-01-10 01:16:42 [ERROR] ksplice/1 has failed. Insane output from commands.

which is less than helpful.

mojo should log any output it cannot parse (obviously not too useful here, but it might be in other situations) and the value of "Error", if any. Here the latter is a pretty strong hint to experienced Juju operators that some process on the controller node has probably leaked a bunch of memory and need restarting, which was the case here.

Jacek Nykis (jacekn)
Changed in mojo:
importance: Undecided → Medium
status: New → Confirmed
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.