libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Wilson (JIRA)" <>
Subject [jira] [Created] (LIBCLOUD-547) linode labels - 1 to 48 chars
Date Tue, 29 Apr 2014 12:32:14 GMT
Gary Wilson created LIBCLOUD-547:

             Summary: linode labels - 1 to 48 chars
                 Key: LIBCLOUD-547
             Project: Libcloud
          Issue Type: Bug
          Components: Compute
    Affects Versions: 0.14.0-beta3
            Reporter: Gary Wilson

The labels generated in libcloud/compute/drivers/ are limited in length, however
seeing as the name is using the node name which is a hostname and can be up to 63 characters
as per RFC 1034, the generated labels can result in a string longer than the allowed 48 characters.

In this instance the name was zpf-watcher-dev-2-96g-luk1

[zpf-watcher-dev-2-96g-luk1] Configuration Profile = 51 chars

Perhaps the linode["id"] could be used instead of name as the name could be longer than 48


        # Labels
        label = {
            "lconfig": "[%s] Configuration Profile" % name,
            "lroot": "[%s] %s Disk Image" % (name,,
            "lswap": "[%s] Swap Space" % name
        for what in ["lconfig", "lroot", "lswap"]:
            if what in kwargs:
                label[what] = kwargs[what]

  File "/usr/lib/python2.6/site-packages/libcloud/compute/drivers/", line 361, in
    data = self.connection.request(API_ROOT, params=params).objects[0]
  File "/usr/lib/python2.6/site-packages/libcloud/common/", line 675, in request
    response = responseCls(**kwargs)
  File "/usr/lib/python2.6/site-packages/libcloud/common/", line 105, in __init__
    raise self.errors[0]
libcloud.common.linode.LinodeException: (8) Invalid Label length - must be between 1 and 48

This message was sent by Atlassian JIRA

View raw message