juju doesn't play nice with symlinked charm directories

Bug #1221685 reported by Tom Haddon
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned
juju-core
Won't Fix
Medium
Unassigned
juju-deployer
Incomplete
Low
Unassigned

Bug Description

If you are deploying local charms and using symlinks for the charm directories (which you might need to do to have different versions of the same charm deployed in the same environment) juju-deployer seems to fail to upload the charm correctly:

http://paste.ubuntu.com/6069918/

The charms were laid out as follows:

http://paste.ubuntu.com/6069979/

Tom Haddon (mthaddon)
tags: added: canonical-webops
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

Technically this isn't valid from a charm definition perspective. Juju-deployer isn't uploading the charm, juju-core is.

Ronald McCollam (fader)
tags: added: micro-cluster
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

There isn't a good way to do this without modifying the charm contents. The charm by definition needs to have a metadata.yaml charm name that matches the directory name. Its also really unclear what the use case for this is. You can simply deploy the service multiple times from the same charm.. and use juju upgrade-charm to switch the origin/lineage of the charm if needed.

Changed in juju-deployer:
status: New → Incomplete
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

A sensible, hint of an error message would be nice. Something that tells you how to fix what's wrong (per Kapil's comment).

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

added core, as its properly a core bug since deployer atm, just shells out to core cli for deploys.

summary: - juju-deployer doesn't play nice with symlinked charm directories
+ juju doesn't play nice with symlinked charm directories
Curtis Hovey (sinzui)
tags: added: charms
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Re-targeting to Juju 2.x

Changed in juju:
status: New → Triaged
importance: Undecided → Low
Changed in juju-core:
status: Triaged → Won't Fix
Tom Haddon (mthaddon)
Changed in juju-deployer:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.