Long application names cause error starting jujuc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Version:
Long application names (greater than 50 characters) are accepted by `juju deploy` but lead to errors in various stages of a charm's lifecycle.
If an application name exceeds 67 characters, the debug-log shows the following failure:
unit-app-
Under 67 characters, but greater than 51 characters, the install hook succeeds but the collect-metrics hook fails:
unit-app-
server: listening to jujuc socket: listen unix @/var/lib/
Expected behavior:
Either the `juju deploy mycharm mycharmhasalong
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Medium |
importance: | Medium → High |
I am seeing a little bit different issue, but probably still the same cause(long application name) juju/machine- x.log
I noticed this when rebooting the machine.
After the reboot, jujud unit could not start and got stuck in "agent initializing".
The following error was seen in /var/log/
2020-07-08 10:23:01 ERROR juju.worker. dependency engine.go:663 "broker-tracker" manifold worker returned unexpected error: cannot create instance broker: creating LXD container manager: Get http:// unix.socket/ 1.0: EOF dependency engine.go:663 "unit-agent- deployer" manifold worker returned unexpected error: remove /var/lib/ juju/tools/ unit-ubuntu- aaaaa-bbbbb- ccccc-ddddd- eeeee-fdcbf0ee8 -0: no such file or directory
2020-07-08 10:23:03 ERROR juju.worker.
In my case, I'm seeing this when the application name is longer than 39 characters.
And here is the steps how I reproduced.
Using juju v2.7.7 aaaaa-bbbbb- ccccc-ddddd- eeeee-ff aaaaa-bbbbb- ccccc-ddddd- eeeee-ff/ 0 -- sudo reboot
1. bootstrap juju
juju bootstrap localhost
2. deploy an application with longer than 39 characters
juju deploy ubuntu ubuntu-
3. after the deploy is completed, reboot the unit
juju run --unit ubuntu-
It looks like the systemd service name is created wrong. 0.service enabled ubuntu- aaa…bbbb- ccccc-ddddd- eeeee-fdcbf0ee8 -0.service enabled
$ systemctl list-unit-files | grep jujud
jujud-machine-
jujud-unit-