Deleting deployments failing with "Cannot invoke "String.contains(CharSequence)" because "connectedResourceLink" is null"
search cancel

Deleting deployments failing with "Cannot invoke "String.contains(CharSequence)" because "connectedResourceLink" is null"

book

Article ID: 373639

calendar_today

Updated On: 04-01-2025

Products

VMware Aria Suite

Issue/Introduction

Post unregistering and onboarding the VM in an external IPAM infoblox environment, deleting the deployment fails 

/service-logs/prelude/tango-blueprint-service-app/file-logs/tango-blueprint-service-app.log
WARN tango-blueprint [host='tango-blueprint-service-app-<UUID>' thread='tasks-511786' user='<user_name>' org='org_ID' project='<project_uuid>' deployment='<deployment_id>' request='request_id' ' trace='trace_id'] com.vmware.tango.blueprint.util.BlueprintUtils - Filtering failure message: java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "connectedResourceLink" is null -> Cannot invoke "String.contains(CharSequence)" because "connectedResourceLink" is null

 

Environment

Aria automation 8.x

Cause

  • Post unregistering the VM that uses external IPAM infoblox
  • Aria automation allocates new IP address while onboarding the VM instead of looking for a specific IP address which the machine had earlier prior to the unregistration. 
  • Hence while onboarding the machine, it still has the unregistered IP address and new IP address in the machine's NIC. 
  • Now while deleting the deployment, it will try to deallocate the IP addresses. 
  • As the machine has unregistered IP address and the new IP address, it will try to delete both but the unregistered IP address does not contain the connectedResourceLink which leads to connectedResourceLink issue being null.
     

Resolution

The issue will be fixed in Aria automation 8.18.1 

Workaround
Instead of unregistering a VM the customer can delete the deployment which is in missing state and then onboard it back. 

Note: This workaround should be implemented only in a scenario where the VM is migrated from one data-center to another directly in the vCenter which puts the virtual machine in a missing state in Aria automation. Actions should be performed post taking backup of the Virtual machine.