Pivotal Knowledge Base

Follow

PCF Installation from Azure Marketplace Fails with Error, "The entity name 'name' is invalid according to its validation rule"

Environment

Pivotal Cloud Foundry® (PCF) Version 1.x

Symptom

When attempting an installation of PCF foundation from Azure marketplace, it fails with the error message as shown below:

Error Message

Deploying:
Creating instance 'bosh/0':
Creating VM:
Creating vm with stemcell cid 'bosh-stemcell-8457c5f8-0068-4ce3-ac5a-0bdca605c235':
CPI 'create_vm' method responded with error:
CmdError{"type":"Bosh::Clouds::VMCreationFailed",
"message":"Failed to get the user image information for the stemcell `bosh-stemcell-8457c5f8-0068-4ce3-ac5a-0bdca605c235':
#003cBosh::Clouds::CloudError: get_user_image:
Failed to create the user image `bosh-stemcell-8457c5f8-0068-4ce3-ac5a-0bdca605c235-Premium_LRS-australiasoutheast':
#Bosh::AzureCloud::AzureError: http_put - http code: 400-ms-client-request-id:
710e1a69-e71b-41d9-8aa8-7ff39705d164
x-ms-request-id: 6208fc7a-f541-476b-952f-9717bdbcb331
x-ms-correlation-request-id:
a0e49563-1650-4894-8920-01c062ef9e42
x-ms-routing-request-id:
AUSTRALIASOUTHEAST:20171128T023023Z:a0e49563-1650-4894-8920-01c062ef9e42
Error message: error: "InvalidParameter", "target": "name","message":
"The entity name 'name' is invalid according to its validation rule:"

Cause 

  • Defect with CPI: image name cannot exceed 80 characters.
  • This only affects Azure Australia southeast region-name for now.
  • See details in Github issue 342.

Resolution

The bug is fixed in future bosh-azure-cpi-release v33 and above. 

If you are installing PCF in an environment without the fix please avoid "Australia southeast" site.

Comments

Powered by Zendesk