Hide Forgot
Creating an application with a name that is too long should fail with a standard validation error, not the generic error we get: "Failed to create dns for application aoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeu due to:Error communicating with DNS system. If the problem persists please contact Red Hat support." Started POST "/broker/rest/domains/133011931617a395/applications.json" for 127.0.0.1 at Fri Feb 24 16:35:19 -0500 2012 Processing by ApplicationsController#create as JSON Parameters: {"application_type"=>"raw-0.1", "cartridge"=>"raw-0.1", "domain_id"=>"133011931617a395", "name"=>"aoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeu"} DEBUG: DYNECT put/post with path: /REST/CNAMERecord/rhcloud.com/aoeuaoeuaoe uaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeuao euaoeuaoeuaoeuaoeuaoeuaoeuaoeuaoeu-133011931617a395.dev.rhcloud.com/ json d ata: {"ttl":"60","rdata":{"cname":"ec2-107-22-142-47.compute-1.amazonaws.co m"}} and headers: {"Content-Type"=>"application/json", "Auth-Token"=>"c0lKi HLerWsTvxkVteTrwGCzlpplBxk0+UX7EJIWAQbgvA0D5f2vSJq9LN3CHJ+xKu7/GNNTUR1pq27V e7z+wqZI1Dsy4HQbwjPKEql8AWtdOpZhQSEchJ2BSOjRiw7i73LE/Eh70cROPaGtrO2DUMs3vPK JVaGY"} DEBUG: Response code: 400 DEBUG: Response body: {"status": "failure", "data": {}, "job_id": 68318246, "msgs": [{"INFO": "node: Invalid form", "SOURCE": "BLL", "ERR_CD": "INVALI D_DATA", "LVL": "ERROR"}, {"INFO": "add_node: Could not add new zone node", "SOURCE": "BLL", "ERR_CD": null, "LVL": "INFO"}]} DEBUG: Retrying dyn_put_post after exception caught from DNS request: Error communicating with DNS system. If the problem persists please contact Red Hat support.
RFC 2181 restricts DNS names to no more than 255 characters, and no more than 63 characters per element. Since we use the application name + domain as an element, that would place a very narrow restriction on the application name. ex len("testapp-rmillner001") < 63 len("testapp-rmillner001.dev.rhcloud.com") < 255
Since we are limiting domain names to 16 chars that leaves 46 chars for app name.
According to the legacy code the max length for legacy code is 32 chars.
verified on devenv_1649, issue has been fixed. Output: <?xml version="1.0" encoding="UTF-8"?> <response> <type nil="true"></type> <version>1.0</version> <messages> <message> <severity>error</severity> <exit-code>105</exit-code> <field>name</field> <text>The supplied application name 'myappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyappmyapp' is too long. (Max permitted length: 32 characters)</text> </message> </messages> <status>unprocessable_entity</status> <data nil="true"></data> </response>