Juju doesn't tell why application names such as foo-1 (ending with a dash and numeric chars) are invalid

Bug #1891418 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Simon Richardson

Bug Description

$ juju version
2.8.1-focal-amd64

$ juju deploy ubuntu foo-1
ERROR invalid application name "foo-1"

Would be nice if we get more feedback why the application name is invalid and how I should change it. I haven't looked into code, but it seems there is a check to avoid names like "-[0-9]+$".

Tags: bitesize
Revision history for this message
Nobuto Murata (nobuto) wrote :

The actual explanation is under the help of `juju deploy` so the only missing part is a direction to the help from the error message I suppose.

> An 'application name' provides an alternate name for the application. It works
> only for charms; it is silently ignored for bundles (although the same can be
> done at the bundle file level). Such a name must consist only of lower-case
> letters (a-z), numbers (0-9), and single hyphens (-). The name must begin with
> a letter and not have a group of all numbers follow a hyphen:
>
> Valid: myappname, custom-app, app2-scat-23skidoo
> Invalid: myAppName, custom--app, app2-scat-23, areacode-555-info

Ian Booth (wallyworld)
tags: added: bitesize
Changed in juju:
milestone: none → 2.9-beta1
importance: Undecided → High
status: New → Triaged
Changed in juju:
assignee: nobody → Simon Richardson (simonrichardson)
status: Triaged → In Progress
Changed in juju:
milestone: 2.9-beta1 → 2.9-rc1
Changed in juju:
status: In Progress → Fix Released
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.