Local charm deployment not working if symlinks are used

Bug #1129319 reported by Francesco Banconi
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
William Reade

Bug Description

When trying to deploy a local charm and the repository contains symlinks, juju fails with this error:
error: cannot get latest charm revision: no charms found matching "local:precise/juju-gui"

My local store structure: http://pastebin.ubuntu.com/1677738/

With the same directory structure pyjuju worked well.

Related branches

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

The pastebin link isn't valid.

Revision history for this message
Matthew Williams (mattyw) wrote :

I've seen this error when I've had an invalid metadata.yaml. In that case it would be useful for juju to give more information about what's wrong

Revision history for this message
Stuart Bishop (stub) wrote :

I can confirm gojuju is not handling symlink structures correctly. I've attached a log demonstrating the issue.

Changed in juju-core:
status: New → Confirmed
Revision history for this message
Matthew Wedgwood (mew) wrote :

FWIW, I've also confirmed that this is the same for symlinks with both relative and absolute paths.

William Reade (fwereade)
Changed in juju-core:
status: Confirmed → Triaged
importance: Undecided → High
assignee: nobody → William Reade (fwereade)
William Reade (fwereade)
Changed in juju-core:
milestone: none → dev-docs
status: Triaged → In Progress
William Reade (fwereade)
Changed in juju-core:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in juju-core:
milestone: dev-docs → 1.11.1
Revision history for this message
Matthew Wedgwood (mew) wrote :

I'm not sure that the fix addresses the issue completely. Later on in the deployment process, I get:

error: cannot bundle charm: symlink "." is absolute: "/path/to/charm"

http://pastebin.ubuntu.com/5847372/

Just to confirm:
$ juju version
1.11.2-precise-amd64

Changed in juju-core:
status: Fix Committed → New
Changed in juju-core:
milestone: 1.11.2 → 1.11.3
Changed in juju-core:
milestone: 1.11.3 → 1.11.4
Changed in juju-core:
milestone: 1.11.4 → 1.11.5
Changed in juju-core:
status: New → Fix Released
Revision history for this message
Simon Davy (bloodearnest) wrote :

I get a similar error with 1.16.3 on saucy

http://paste.ubuntu.com/6475006/

This used to work with pyjuju, and is handy for development of charms, particularly subordinates

Revision history for this message
Dave Cheney (dave-cheney) wrote : Re: [Bug 1129319] Re: Local charm deployment not working if symlinks are used

Simon, please raise a new issue. From reading your sample I don't
think what you want is possible, there is no way for one charm to
refer to code in another charm as charms are deployed in isolated
containers.

On Tue, Nov 26, 2013 at 5:02 AM, Simon Davy <email address hidden> wrote:
> I get a similar error with 1.16.3 on saucy
>
> http://paste.ubuntu.com/6475006/
>
> This used to work with pyjuju, and is handy for development of charms,
> particularly subordinates
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> Matching subscriptions: MOAR JUJU SPAM!
> https://bugs.launchpad.net/bugs/1129319
>
> Title:
> Local charm deployment not working if symlinks are used
>
> Status in juju-core:
> Fix Released
>
> Bug description:
> When trying to deploy a local charm and the repository contains symlinks, juju fails with this error:
> error: cannot get latest charm revision: no charms found matching "local:precise/juju-gui"
>
> My local store structure: http://pastebin.ubuntu.com/1677738/
>
> With the same directory structure pyjuju worked well.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1129319/+subscriptions

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.