panic when deploying bundle when bundle relative path and bundle has relative paths and series is missing for an application

Bug #1632477 reported by Jay R. Wren
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

$ ./scripts//deploy2-no-jimm.sh
+ /home/ubuntu/go/bin/juju deploy ./scripts/october.yaml
panic: charm or bundle URL has invalid form: "./repo/trusty/keystone"

goroutine 1 [running]:
panic(0x248fec0, 0xc8203b3950)
        /usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
gopkg.in/juju/charm%2ev6-unstable.MustParseURL(0xc8203b7da0, 0x16, 0x7fedf2a99028)
        /home/jrwren/go/src/gopkg.in/juju/charm.v6-unstable/url.go:99 +0x72
github.com/juju/bundlechanges.getSeries(0xc820216f80, 0xc82041c450, 0x6, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/bundlechanges/handlers.go:265 +0x156
github.com/juju/bundlechanges.handleApplications(0xc820120de8, 0xc82041fa40, 0xc82041c450, 0x6, 0xc8
203dd740)
        /home/jrwren/go/src/github.com/juju/bundlechanges/handlers.go:30 +0x38d
github.com/juju/bundlechanges.FromData(0xc8203a8d90, 0x0, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/bundlechanges/changes.go:17 +0x8f
github.com/juju/juju/cmd/juju/application.deployBundle(0xc8203dd740, 0x27, 0xc8203a8d90, 0x0, 0x0, 0
x7fedf2ab1df8, 0xc8203b2cd0, 0x7fedf2ab2008, 0xc820267090, 0x0, ...)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/application/bundle.go:89 +0x3f7
github.com/juju/juju/cmd/juju/application.(*DeployCommand).deployBundle(0xc82037c1e0, 0xc820267090,
0xc8203dd740, 0x27, 0xc8203a8d90, 0x0, 0x0, 0x7fedf2ab1df8, 0xc8203b2cd0, 0x0, ...)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/application/deploy.go:500 +0xdb
github.com/juju/juju/cmd/juju/application.(*DeployCommand).maybeReadLocalBundle.func1(0xc820267090,
0x7fedf2ab1df8, 0xc8203b2cd0, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/application/deploy.go:807 +0x16c
github.com/juju/juju/cmd/juju/application.(*DeployCommand).Run(0xc82037c1e0, 0xc820267090, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/application/deploy.go:675 +0x4d3
github.com/juju/juju/cmd/modelcmd.(*modelCommandWrapper).Run(0xc8203b8ff0, 0xc820267090, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/juju/cmd/modelcmd/modelcommand.go:282 +0x4f
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc82029dfe0, 0xc820267090, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/juju/cmd/modelcmd/base.go:308 +0xd4
github.com/juju/cmd.(*SuperCommand).Run(0xc82036d9e0, 0xc820267090, 0x0, 0x0)
        /home/jrwren/go/src/github.com/juju/cmd/supercommand.go:456 +0x688
github.com/juju/cmd.Main(0x7fedf2aab9f0, 0xc82036d9e0, 0xc820267090, 0xc82000a220, 0x2, 0x2, 0x2d504
48)
        /home/jrwren/go/src/github.com/juju/cmd/cmd.go:280 +0x2f0
github.com/juju/juju/cmd/juju/commands.main.Run(0x2d51d28, 0xc82000a210, 0x3, 0x3, 0x2690300)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/commands/main.go:157 +0x850
github.com/juju/juju/cmd/juju/commands.Main(0xc82000a210, 0x3, 0x3, 0xc820000180)
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/commands/main.go:114 +0x48
main.main()
        /home/jrwren/go/src/github.com/juju/juju/cmd/juju/main.go:27 +0x3b

The relevant part of october.yaml seems to be this:

  keystone:
    charm: ./repo/trusty/keystone
    num_units: 1
    options:
      admin-password: openstack
      admin-token: ubuntutesting

Note that the ./repo/trusty/keystone path does exist, but that we are deploying a xenial charm from there.

The trace does not happen if the bundle yaml is this:

  keystone:
    charm: ./repo/trusty/keystone
    series: xenial
    num_units: 1
    options:
      admin-password: openstack
      ha-mcastport: 5403
      openstack-origin: distro

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.