Is there a limit on how long a relation name can be, limit to characters used?
Kapil Thangavelu
kapil.thangavelu at canonical.com
Mon Jul 15 14:56:44 UTC 2013
That issue (127 char length unix socket path max size) was independent of
relation name size. It was specific to pyjuju and was encountered typically
for subordinates services with long names due to the path nesting of their
cli api socket location. The main restriction on relation names is they
should be valid for a filename and that they shouldn't begin with the word
'juju' which is reserved.
cheers,
Kapil
On Mon, Jul 15, 2013 at 10:05 AM, Peter M. Petrakis <
peter.petrakis at canonical.com> wrote:
> 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
>>
>>
>>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/juju <https://lists.ubuntu.com/mailman/listinfo/juju>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130715/581f4010/attachment-0001.html>
More information about the Juju
mailing list