Day 2 actions fail on Custom Resources when an approval policy is applied
book
Article ID: 314721
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms:
Day 2 actions fail on Custom Resources with properties matching reserved system properties when an approval policy is applied. For example if a 'storage' property is added to the custom resource object.
The Approval Service logfile /var/log/services-logs/prelude/approval-service-app/file-logs/approval-service-app.log contains an error similar to:
DeploymentActuatorTaskHandler - Policy enforcement task during actuator processing [id=<ID>] failed, error = {} java.lang.ClassCastException: class java.lang. Double cannot be cast to class java.util.Map (java.lang.Double and java.util.Map are in module java.base of loader 'bootstrap'
Environment
VMware Aria Automation 8.13.x
Cause
The issue occurs when the custom resource has a property name which conflicts with reserved system properties that are leveraged by the approval policy validation process for example the 'storage' property.
Resolution
The issue is resolved in the Aria Automation 8.14.1 release.
Workaround: To workaround the issue you can either remove the conflicting reserved system property from the custom resource object's properties or remove the approval policy.