Opsman does not allow folder path to include dot(.) in its name
search cancel

Opsman does not allow folder path to include dot(.) in its name

book

Article ID: 430198

calendar_today

Updated On:

Products

VMware Tanzu Platform Core

Issue/Introduction

When adding a VM folder, Template folder, Disk path folder in OpsMan --> Bosh Director tile --> vCenter Config if the name contains a dot (e.g test.test), it will fail to save the page and return error "is invalid".

 

 

Environment

Foundation core (former OpsMan).

Cause

The error is showing due to stricter validation on the folder name. It is specified as regex in file vsphere_iaas_configuration.rb

FOLDER_REGEX = /\A([\w\s-]{1,80}\/)*[\w\s-]{1,80}\/?\z/

validates :bosh_vm_folder, presence: true, format: FOLDER_REGEX
validates :bosh_template_folder, presence: true, format: FOLDER_REGEX

Resolution

While vCenter allows you to name a folder test.test, the BOSH Director’s configuration parser flags this as invalid.

The BOSH Director (which Ops Manager configures) uses specific validation patterns to ensure compatibility across different cloud providers. BOSH uses these names to construct inventory paths. A dot in the folder name can cause the CPI to misinterpret the full inventory path.