Aled Sage created BROOKLYN-414:
----------------------------------
Summary: Softlayer windows VM provisioning fails: VM name max 15
chars, but uses 55
Key: BROOKLYN-414
URL: https://issues.apache.org/jira/browse/BROOKLYN-414
Project: Brooklyn
Issue Type: Bug
Reporter: Aled Sage
Priority: Minor
With brooklyn 0.11.0-snapshot (jclouds 2.0.0)...
Provisioning a Windows VM in Softlayer (with the default configuration) fails
because it tries to use a hostname of 55 characters. However, there is a limit
of just 15 characters:
{noformat}
Caused by: org.jclouds.http.HttpResponseException: command: POST
https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest HTTP/1.1 failed with
response: HTTP/1.1 500 Internal Server Error; content: [{"error":"The hostname
and domain must be alphanumeric strings that may be separated by periods '.'.
The only other allowable special character is the dash '-' However the special
characters '.' and '-' may not be consecutive. Each alphanumeric string
separated by a period is considered a label. Labels must begin and end with an
alphanumeric character and must be between 1-63 characters in length. The last
label, the TLD (top level domain) must be between 2-24 alphabetic characters.
The TLD label and hostname cannot be solely comprised of digits. The domain
portion must consist of least one label followed by a period '.' then ending
with the TLD label. For Microsoft Windows operating systems, the hostname
portion may not exceed 15 characters in length. Combining the hostname,
followed by a period '.', followed by the domain gives the FQDN (fully
qualified domain name), which may not exceed 253 characters in total
length.","code":"SoftLayer_Exception_Public"}]
{noformat}
The workaround is to config this to just 15 chars, e.g.:
{noformat}
location:
softlayer:
vmNameMaxLength: 15
{noformat}
It would be good if it defaulted to this legal limit automatically when
provisioning Windows VMs in Softlayer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)