juju service names limited to 66 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned | ||
juju-core |
Won't Fix
|
Undecided
|
Unassigned | ||
1.25 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I was seeing the following error when deploying a service: http://
Turns out, on testing, the issues is that socket_nix.go uses the service name for the socket name, which limits the length of service names to 66 chars (if no more than 9 units are deployed):
$ cat test-net.go
package main
import "fmt"
import "net"
func main() {
fmt.
_, err := net.Listen("unix", "@/var/
if err != nil {
}
}
$ go run test-net.go
Hello, 世界
There was an error: listen unix @/var/lib/
Anything shorter is fine.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0.0 |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0.0 → none |
milestone: | none → 2.0.0 |
Changed in juju-core: | |
status: | New → Won't Fix |
Changed in juju: | |
milestone: | 2.0.0 → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
There is a workaround.