Applying a host profile fails with the error: The requested object could not be found
search cancel

Applying a host profile fails with the error: The requested object could not be found

book

Article ID: 311576

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot apply the host profile
  • Applying the host profile fails
  • In the syslog.log file, you see entries similar to:

    2012-06-26T20:50:12Z 2012-06-26 20:50:12,183 Host Profiles[683450]: ERROR: Exception while applying host config. Exception: (LocalizedException) {
    dynamicType = <unset>,
    dynamicProperty = (vmodl.DynamicProperty) [],
    msg = <unset>,
    faultCause = <unset>,
    faultMessage = (vmodl.LocalizableMessage) [
    (vmodl.LocalizableMessage) {
    dynamicType = <unset>,
    dynamicProperty = (vmodl.DynamicProperty) [],
    key = 'com.vmware.profile.Profile.CimXmlIndicationsProfile.SubDeleteException',
    arg = (vmodl.KeyAnyValue) [
    (vmodl.KeyAnyValue) {
    dynamicType = <unset>,
    dynamicProperty = (vmodl.DynamicProperty) [],
    key = 'ErrArg0',
    value = 'root/interop:CIM_IndicationSubscription.filter="root/interop:cim_indicationfilter.creationclassname="CIM_IndicationFilter",
    systemname="localhost",name="smx",systemcreationclassname="CIM_ComputerSystem"", handler="root/interop:cim_indicationhandlercimxml.creationclassname="CIM_IndicationHandle
    2012-06-26T20:50:12Z Unknown: rCIMXML",systemname="localhost",name="smx",systemcreationclassname="CIM_ComputerSystem""'
    },
    (vmodl.KeyAnyValue) {
    dynamicType = <unset>,
    dynamicProperty = (vmodl.DynamicProperty) [],
    key = 'ErrArg1',
    value = "(6, u'The requested object could not be found')"
    }
    ],
    message = u'Error deleting indication subscription \'root/interop:CIM_IndicationSubscription.filter="root/interop:cim_indicationfilter.creationclassname="CIM_IndicationFilter",
    systemname="localhost",name="smx",systemcreationclassname="CIM_ComputerSystem"",
    handler="root/interop:cim_indicationhandlercimxml.creationclassname="CIM_IndicationHandlerCIMXML",
    systemname="localhost",name="smx",systemcreationclassname="CIM_ComputerSystem""\': (6, u\'The requested object could not be found\')"'


Environment

VMware ESXi 4.0.x Embedded
VMware ESXi 4.1.x Embedded
VMware ESX 4.1.x
VMware vSphere ESXi 5.0
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 5.1
VMware ESX 4.0.x
VMware ESXi 4.1.x Installable

Cause

The indication subscriptions/filters/handlers are static instances stored in repository at /lib/sfcb/registration/repository/root/interop/ and include:

  • cim_indicationfilter, cim_indicationfilter.idx
  • cim_indicationhandlercimxml, cim_indicationhandlercimxml.idx
  • cim_listenerdestinationcimxml, cim_listenerdestinationcimxml.idx
  • cim_indicationsubscription, cim_indicationsubscription.idx
These instances have a copy in the memory. When the memory and repository are not in sync, the delete operation fails. The delete operation checks memory first and if it does not find the specified instance, it returns CMPI_RC_ERR_NOT_FOUND and does not try to delete static instance in the repository.

Resolution

This issue is resolved in:
This is still a known issue with ESXi 4.1.

To workaround this issue:
  1. Open a console to the ESX/ESXi host. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910) or Connecting to an ESX host using a SSH client (1019852).
  2. Remove the indication subscriptions manually using the following commands.

    rm -f /etc/sfcb/repository/root/interop/cim_indication*
    rm -f /etc/sfcb/repository/root/interop/cim_listenerdestinationcimxml*

After re-applying the host profile, re-create the indication subscriptions.

To restart the CIM server:

  1. Log in to the vSphere Client with administrator permissions.
  2. Select the host and click the Configuration tab.
  3. Click Security Profile > Properties.
  4. Select CIM Server and click Options.
  5. Click Restart.
  6. Click OK to exit.


Additional Information


Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x
Connecting to an ESX host using an SSH client
VMware ESXi 5.1, Patch ESXi510-201304201-UG: Updates VMware ESXi 5.1 esx-base vib