juju service names limited to 66 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Invalid
|
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.
Moving to correct project.