"Bad request: Expression '...' is not a comparison expression" errors occur when attempting to apply polices in Cloud Director Availability 4.x
book
Article ID: 315072
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
Symptoms:
When you click Sync with Cloud in the Policies section of the Cloud Director Availability Provider Portal, you see a message similar to:
Unexpected vCloud Director error. Bad request: Expression 'co' is not a comparison expression.
In the /opt/vmware/h4/cloud/log/cloud.log file on the Cloud Replication Management Appliance, you see entries similar to:
2023-02-06 22:47:49.309 INFO - [UI-a1323caa-####-####-####-########3df-r8731-52] [job-32] c.vmware.h4.cloud.service.PolicyService : Assigning policy default to Testorg,co 2023-02-06 22:47:49.321 ERROR - [UI-a1323caa-####-####-####-########3df-r8731-52] [job-32] com.vmware.h4.jobengine.JobExecution : Task 578d35a3-####-####-####-########d4b (WorkflowInfo{type='sync', resourceType='policies', resourceId='null', isPrivate=false, resourceName='null'}) has failed
com.vmware.vcloud.client.exception.VcloudException: (Major code = 400, minor code = BAD_REQUEST) - Bad request: Expression 'co' is not a comparison expression. ...
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Environment
VMware Cloud Director Availability 4.x
Cause
This issue occurs when there is a comma in the name of at least one of the Cloud Director's Organizations. The comma special character prevents accurate parsing of results when Cloud Director Availability interacts with the Cloud Director API.
Resolution
This is a known issue affecting Cloud Director Availability. Currently, there is no resolution.
Workaround: To work around this issue, avoid using the comma character in Cloud Director Organization names.