A VM's hard disk fails to encrypt
search cancel

A VM's hard disk fails to encrypt

book

Article ID: 435968

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Policy set on the hard disk but the disk will not encrypt.
  • Removing the disk encryption policy fails to save the default policy.
  • Disk shows "Disk will be encrypted":
  • Log signature looks similar to the below snippets.
    sps.log:
    YYYY-MM-DDTHH:MM:SS WARN  opId=q-16746:VmReplicationGroupPropertyProviderAdapter:#####-##al-h#:######## com.vmware.pbm.task.ReplicationGroupTask - invalidSubjects (Batch#1) = [EntitySubject{entity = (pbm.ServerObjectRef) {
       dynamicType = null,
       dynamicProperty = null,
       objectType = virtualDiskId,
       key = vm-#####:####,
       serverUuid = null
    }, profile = null, errorCause = com.vmware.pbm.exception.NoAssociatedProfileException: profileID is null for entity vm-#####:####, storageId = null, vmObject = null, vmInstanceUuid = null, isOnObjectBasedStorage = false, schemaNamespace = null, tagInfo = null, datastoreType = null}]

Environment

VMware vCenter Server 8.x

Cause

NoAssociatedProfileException occurs when a VM/disk is created directly inside the host without the knowledge of vCenter.

Resolution

On the vCenter UI, remove the disk 15 and then add it back. 

Additional Information

VM displayed an inconsistent storage policy status