Panic on bundle with local charm and no series

Bug #1571065 reported by Martin Packman on 2016-04-15
This bug affects 6 people
Affects Status Importance Assigned to Milestone

Bug Description

Deploying a bundle where the series of a local charm is not explict results in a juju panic:


panic: charm or bundle URL has invalid form: "./trusty/haproxy"

goroutine 1 [running]:
panic(0x1e26620, 0xc8204f5960)
 /usr/lib/go-1.6/src/runtime/panic.go:464 +0x3e6, 0x10, 0x7f899fb70000)
 /workspace/juju-core-2.0-rc1/src/ +0x72, 0xc820303358, 0x6, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0x156, 0xc8204c6960, 0xc820303358, 0x6, 0x7ffec6e1e937)
 /workspace/juju-core-2.0-rc1/src/ +0x3dd, 0x0, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0x8f, 0x1b, 0xc8201369c0, 0x0, 0x0, 0xc8204c6630, 0xc8204c9820, 0xc8204f57e0, 0x7f899fbbb0c0, 0xc8203744b0, ...)
 /workspace/juju-core-2.0-rc1/src/ +0x3f3*DeployCommand).deployCharmOrBundle(0xc8203201c0, 0xc8203744b0, 0xc8204c6630, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0x12a7*DeployCommand).Run(0xc8203201c0, 0xc8203744b0, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0xb9*modelCommandWrapper).Run(0xc82038b5f0, 0xc8203744b0, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0x4f*baseCommandWrapper).Run(0xc8201d8f50, 0xc8203744b0, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0xd4*SuperCommand).Run(0xc8201dd700, 0xc8203744b0, 0x0, 0x0)
 /workspace/juju-core-2.0-rc1/src/ +0x688, 0xc8201dd700, 0xc8203744b0, 0xc82006e070, 0x5, 0x5, 0x25fe810)
 /workspace/juju-core-2.0-rc1/src/ +0x2f0, 0x6, 0x6)
 /workspace/juju-core-2.0-rc1/src/ +0x506
 /workspace/juju-core-2.0-rc1/src/ +0x3b

This isn't the nicest feedback to the user to tell them they need to specify a series.

A bundle in the following sort of form should reproduce:

    series: trusty
    charm: "./trusty/haproxy"
    num_units: 1
      - "2"

Add 'series: trusty' under 'haproxy' and juju succeeds.

affects: juju-core → juju
Changed in juju:
milestone: none → 2.0.0
importance: Medium → Critical
Changed in juju:
importance: Critical → High
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui) on 2016-10-28
Changed in juju:
milestone: 2.0.1 → none
Curtis Hovey (sinzui) on 2017-02-14
Changed in juju:
importance: High → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers