New Install Fails with CPI Errors
search cancel

New Install Fails with CPI Errors

book

Article ID: 298265

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

When applying changes for first time with TAS tile getting below error:  Error: Unknown CPI error 'Unknown' with message 'undefined method `create_folder' for nil:NilClass' in 'create_vm' CPI method

Environment

Product Version: 2.11

Resolution

In your Opsman homepage go to Director Tile -> vCenter Config.
  • Check and remove misspellings or any spaces for the vm folder name under the vCenter config settings in the director tile.
  • If you find a space or misspelling, then you will have to put Opsman in advanced mode in order to make those changes.
  • Once you complete those changes, you can re-try the Apply Changes and it should succeed.
  • If you have confirmed that there are no misspelled entries or spaces after or before the config entries, then check the CPI logs for more information.

You can get the CPI logs by first locating the bosh task related to the failure by the following command: bosh tasks --recent=x (where x is the number of recent logs you need to display in order to find the task that includes the failure).

Once you find the related task run: bosh task <task_id> --cpi 

If you need further assistance after this, please open a support ticket and include those CPI logs.