Cannot complete login due to incorrect user name or password while trying to create storage depot
search cancel

Cannot complete login due to incorrect user name or password while trying to create storage depot

book

Article ID: 340186

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot create an autodeploy rule or delete an ESXi bundle after certificate replacement  or upgrade
  • You can get an error:
The last operation failied for the entity with the following error message.

Invalid Fault

Cause:
Cannot complete login due to incorrect user name or password


 
Imagebuilder.log:

2019-10-30T18:53:34 [26236][depot-queue-watcher]ERROR:DepotManager:Unexpected error: (vim.fault.InvalidLogin) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   msg = 'Cannot complete login due to an incorrect user name or password.',
   faultCause = <unset>,
   faultMessage = (vmodl.LocalizableMessage) []
}
Traceback (most recent call last):
  File "/usr/lib/vmware-imagebuilder/site-packages/imagebuilder/vmodl_impl/DepotManager.py", line 387, in _processDepotQueue
    T.activation_id)
  File "/usr/lib/vmware-imagebuilder/site-packages/imagebuilder/plugins.py", line 185, in create_vc_task
    content = si.RetrieveContent()
  File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 557, in <lambda>
    self.f(*(self.args + (obj,) + args), **kwargs)
  File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 363, in _InvokeMethod
    return self._stub.InvokeMethod(self, info, args)
  File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1647, in InvokeMethod
    self._CallLoginMethod()
  File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1708, in _CallLoginMethod
    self.loginMethod(self.soapStub)
  File "/usr/lib/vmware/site-packages/pyVim/connect.py", line 100, in _doLogin
    si.content.sessionManager.LoginExtensionByCertificate(extensionKey)
  File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 557, in <lambda>
    self.f(*(self.args + (obj,) + args), **kwargs)
  File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 363, in _InvokeMethod
    return self._stub.InvokeMethod(self, info, args)
  File "/usr/lib/vmware/site-packages/pyVmomi/SoapAdapter.py", line 1418, in InvokeMethod
    raise obj # pylint: disable-msg=E0702
pyVmomi.VmomiSupport.vim.fault.InvalidLogin: (vim.fault.InvalidLogin) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   msg = 'Cannot complete login due to an incorrect user name or password.',
   faultCause = <unset>,
   faultMessage = (vmodl.LocalizableMessage) []
}
2019-10-30T18:53:39 [26236][vb-6740:DepotDataProviderAdapter:29953-373954-ngc:70006400]INFO:authorizer:privId is not given in method QueryDepotManager by VC session 52422a66-25f8-dbad-df96-3b3762d2d2bf
2019-10-30T18:53:39 [26236][Thread-4]INFO:PyVmomiServer:('127.0.0.1', 53184) - - "POST /vmw/imagebuilder/vmomi HTTP/1.1" 200 -
2019-10-30T18:53:39 [26236][vb-6740:DepotDat


Environment

VMware vSphere ESXi 6.7
VMware vCenter Server 6.7.x

Resolution

To solve this issue follow the below steps given below:
 
  1. Take snapshot of the vCenter
  2. Navigate to the mob by going to the URL: https://<vc address>/mob/
  3. Authenticate using the admin password.
  4. Click 'content'
  5. Click 'extensionManager'
  6. Click 'UnregisterExtension' from the table below, a new window will pop-up.
  7. Type in 'com.vmware.imagebuilder' (without the quotes) into the text field and click 'Invoke Method'. You should see 'Method Invocation Result: void' below.
  8. Restart the imagebuilder service and try to create/add/edit the depot again.