Is there a limit on how long a relation name can be, limit to characters used?

Peter M. Petrakis peter.petrakis at canonical.com
Mon Jul 15 14:05:05 UTC 2013


On 07/14/2013 05:40 PM, Marco Ceppi wrote:
> I'm looking to auto-generate relations in a charm, ideally I'd like
> to keep these human readable, so they'd end up being something like
> "wordpress_db:mysql_db|mysql". Though some of these
> charms/relations/interface names can get quite long.
>
> Is there any limit to length of relation name or the characters you
> can use in a relation? If so I'd love to get these in to proof and
> documented as a caveat somewhere in the docs.

Yes, it has to do with the path length and the socket located at
the end of that path. I'm pretty sure I filed a bug on this, after
127 characters I get a "pathname too long" error from the attempted socket
open. This may not be a problem in smaller deployments, in larger ones
however, applying namespaces to relations (sub-ordinates in my case) makes
the difference in keeping the topology human readable.

>
> Marco
>
>



More information about the Juju mailing list