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-####-####-####-########2bf
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