Creating or updating a host profile fails with the error: Socket error: [Errno 97] Address family not supported by protocol
search cancel

Creating or updating a host profile fails with the error: Socket error: [Errno 97] Address family not supported by protocol

book

Article ID: 306910

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot create or update a host profile
  • Creating or updating a hostprofile fails
  • You see the error:

    Error extracting indication configuration: (0, 'Socket error: [Errno 97]
    Address family not supported by protocol

  • CIM services are disabled
  • Applying the ESXi 5.0 Patch 2 does not resolve the issue
  • In vpxa.log file of the ESXi host, you see entries similar to:
2012-02-03T15:17:01.718Z [FF97FB90 info 'Default' opID=EF4F824E-00002109-89] [VpxLRO] -- ERROR task-internal-596 --  
-- vim.profile.host.profileEngine.HostProfileManager.retrieveProfile: vmodl.fault.SystemError:
--> Result:
--> (vmodl.fault.SystemError) {  
-->    dynamicType = <unset>,   
-->    faultCause = (vmodl.MethodFault) null,   
-->    faultMessage = (vmodl.LocalizableMessage) [   
-->       (vmodl.LocalizableMessage) {   
-->          dynamicType = <unset>,   
-->          key = "com.vmware.profile.Profile.CimXmlIndicationsProfile.ExtractionException",   
-->          arg = (vmodl.KeyAnyValue) [   
-->             (vmodl.KeyAnyValue) {   
-->                dynamicType = <unset>,   
-->                key = "ErrArg0",   
-->                value = "(0, 'Socket error: [Errno 97] Address family not supported by protocol')",   
-->             }   
-->          ],   
-->          message = "Error extracting indication configuration: 
"(0, 'Socket error: [Errno 97] Address family not supported by protocol')"",
-->       }   
-->    ],   
-->    reason = "",   
-->    msg = "A general system error occurred: "   
--> }
  • In the vpxd.log file of vCenter Server, you see entries similar to:
2012-02-03T16:14:40.098+01:00 [03240 info 'Default' opID=EF4F824E-000020DE] [VpxLRO] -- ERROR task-14862 -- host-991 
-- vim.profile.ProfileManager.createProfile: vmodl.fault.SystemError:
--> Result:   
--> (vmodl.fault.SystemError) {   
-->    dynamicType = <unset>,    
-->    faultCause = (vmodl.MethodFault) null,    
-->    faultMessage = (vmodl.LocalizableMessage) [   
-->       (vmodl.LocalizableMessage) {   
-->          dynamicType = <unset>,    
-->          key = "com.vmware.profile.Profile.CimXmlIndicationsProfile.ExtractionException",    
-->          arg = (vmodl.KeyAnyValue) [   
-->             (vmodl.KeyAnyValue) {   
-->                dynamicType = <unset>,    
-->                key = "ErrArg0",    
-->                value = "(0, 'Socket error: [Errno 97] Address family not supported by protocol')",    
-->             }   
-->          ],    
-->          message = "Error extracting indication configuration: 
"(0, 'Socket error: [Errno 97] Address family not supported by protocol')"",
-->       }   
-->    ],    
-->    reason = "",    
-->    msg = "A general system error occurred: "   
--> }   
--> Args:  
-->    
--> Arg createSpec:   
--> (vim.profile.host.HostProfile.HostBasedConfigSpec) {   
-->    dynamicType = <unset>,   
-->    name = "<Hostprofile name>",    
-->    annotation = "",    
-->    enabled = true,    
-->    host = 'vim.HostSystem:host-991',    
-->    useHostProfileEngine = true,    
--> }


Environment

VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0

Resolution

VMware is aware of this issue.

To work around this issue, enable the Security Profile in the CIM server.
To enable the Security Profile in the CIM server:
  1. Log in to vCenter Server as an administrator from the vSphere Client.
  2. Select the ESXi host you want to create or update a host profile from the inventory.
  3. Click the Configuration tab.
  4. Click the Security Profile link.
  5. Click Properties.
  6. Click CIM Server > Options.
  7. Select Start and Stop with host if it is not set this way by default.
  8. Click Restart.
  9. Click Start > OK.


Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box