juju deploy says "charm not found" when metadata.yaml name is not valid.

Bug #1384369 reported by Jay R. Wren
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned
Juju Charm Tools
Won't Fix
Undecided
Unassigned
juju-core
Won't Fix
Medium
Unassigned

Bug Description

$ mkdir trusty ; cd trusty ; juju charm generate for_example ; mv for_example for-example ; cd ..
$ juju deploy local:trusty/for-example
ERROR charm not found in "/home/jrwren/src/charms": local:trusty/for-example

But the directory is right there!

I expect a message WHY it is not found. No config.yaml, no metadata.yaml (those were there in this case), or metadata.yaml contains an invalid charm name.

I also expect a message telling me WHY the charm name is invalid. It should tell me that _ is not allowed.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

This is an issue with Juju, not with charm tools directly. Charms from local repositories are ingested by metadata.yaml names not by directory name. To be fair the error message is correct, The charm was not found in that JUJU_REPOSITORY, this is an issue with educating users on how Juju figures out where charms are and what they are.

Changed in charm-tools:
status: New → Won't Fix
Aaron Bentley (abentley)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0.1
Changed in juju-core:
status: Triaged → Won't Fix
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.