vCLS VMs continuously deploying/redeploying
search cancel

vCLS VMs continuously deploying/redeploying

book

Article ID: 325742

calendar_today

Updated On: 02-20-2025

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

  • The vCLS VM/s are getting deployed and then getting deleted.
  • This task is continuously happening.
  • vCLS VM/s are deployed by EAM and then get removed by vpxd-extension.

EAM logs:

yyyy-mm-dd  | INFO | vim-inv-update | VirtualMachinePropertyChangeHandler.java | 266 | VM: vm-66219 power state set to poweredOff
yyyy-mm-dd  | INFO | vim-inv-update | IssueHandlerBase.java | 116 | Updating issues:
New issues:
 [
eam.issue.cluster.agent.VmPoweredOff {
  time = 2022-06-13 10:58:00,959,
  description = <unset>,
  key = 20775,
  agency = 'Agency:########-####-####-####-###########:null',
  solutionId = 'VSPHERE.LOCAL\vpxd-extension-########-####-####-####-###########',
  agencyName = 'vCLS',
  solutionName = ' ',
  agent = 'Agent:########-####-####-####-###########:null',
  cluster = 'ClusterComputeResource:domain-########-####-####-####-###########',
  vm = 'VirtualMachine:vm-########-####-####-####-###########',
}
]

VPXD logs:

yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-23991 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-23007 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-14957 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-13010 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-13007 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-5238 for cluster vim.ClusterComputeResource:domain-c977
yyyy-mm-dd  info vpxd[57568] [Originator@6876 sub=MoCluster opID=lro-5464095-2f72d096] Removing vCLS VMs from datastore vim.Datastore:datastore-5237 for cluster vim.ClusterComputeResource:domain-c977

 

Environment

VMware vSphere 7.0.x

Cause

During power-on, the VM creates a swap file on the datastore different from the original one used to deploy the VM.

Since the datastore used for the swap file is not part of the allowed datastores, VPXD is automatically removing the VMs causing EAM to re-deploy a new VM.

Resolution

  1. vCLS Datastore Placement for the vCLS VM to a local data store
  2. Add the "Datastore specified by host" local datastores to the list of vCLS-allowed datastores for the clusters, where those hosts reside.
  3. Carry out the steps for Putting a Cluster in Retreat Mode