dispatch-only charms cannot be deployed, hooks/ directory required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Heather Lanigan |
Bug Description
A charm containing a dispatch script in its root but no hooks/* scripts cannot be deployed with Juju 2.8-rc3. If one or more hooks/* links are created, it works as intended (for all hooks, not just the ones linked)
$ ls -al dispatch
-rwxrwxr-x 1 stub stub 603 Jun 2 18:14 dispatch
$ juju deploy .
ERROR invalid charm "plinth": has no hooks
$ mv foo hooks
$ ls -al hooks/
total 11
drwxrwxr-x 2 stub stub 5 Jun 1 21:54 .
drwxrwxr-x 11 stub stub 34 Jun 3 13:26 ..
lrwxrwxrwx 1 stub stub 11 Jun 1 21:54 install -> ../dispatch
lrwxrwxrwx 1 stub stub 11 Jun 1 21:54 start -> ../dispatch
lrwxrwxrwx 1 stub stub 11 Jun 1 21:54 upgrade-charm -> ../dispatch
stub@aargh:
Deploying charm "local:
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Heather Lanigan (hmlanigan) |
milestone: | none → 2.8.1 |
Changed in juju: | |
status: | Triaged → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
PR for 2.8 branch https:/ /github. com/juju/ juju/pull/ 11666