Pivotal Knowledge Base

Follow

PKS Cluster Creation fails if NSX-T admin user's password contains special characters

Environment

Pivotal Container Service (PKS) Version 1.0

NSX-T Version 2.1

Symptom

PKS cluster creation fails with the following message:

Error Message

Task 252

Task 252 | 17:54:36 | Preparing deployment: Preparing deployment (00:00:03)
Task 252 | 17:54:40 | Error: Unable to render instance groups for deployment. Errors are:
  - Unable to render jobs for instance group 'master'. Errors are:
    - Unable to render templates for job 'pks-nsx-t-resource-check'. Errors are:
      - Error filling in template 'post-deploy.erb' (line 8: Can't find property '["nsx-t-password"]')
  - Unable to render jobs for instance group 'worker'. Errors are:
    - Unable to render templates for job 'ncp'. Errors are:
      - Error filling in template 'ncp-ini-template' (line 159: Can't find property '["nsx-t-password"]')
      - Error filling in template 'pre-start.erb' (line 15: Can't find property '["nsx-t-password"]')

Task 252 Started  Fri Apr  6 17:54:36 UTC 2018
Task 252 Finished Fri Apr  6 17:54:40 UTC 2018
Task 252 Duration 00:00:04
Task 252 error

Capturing task '252' output:
  Expected task '252' to succeed but state is 'error'

Exit code 1

Cause

In PKS 1.0, special characters such as #, &, ;, ", ', ^, , space (), !, and % cannot be used in NSX-T admin user’s password. The current source code fails to parse special characters due to which the NSX-T password property required by the scripts is not populated. This causes cluster creation to fail.

Resolution

Change the NSX-T admin user’s password using these instructions.

One of the special characters that can be used is @, however, do not start the password with '@'. Even after using @ in NSX-T admin user's password if the cluster creation fails, please refer this article.

Comments

Powered by Zendesk