VMware Cloud Community
RussTypeS
Contributor
Contributor
Jump to solution

"Analytics Service registration with Component Manager failed" when upgrading from 6.5 to 6.7

I've attempted this upgrade several times and have seen this error consistently after trying a few different things to resolve it. The other threads with this same error seem to be related to SSO and bad passwords, but my signature is a little different. I did change the SSO domain from the default vsphere.local. I'm running the latest 6.5 on the source vCenter and VMware-VCSA-all-6.7.0-14836122.iso for the upgrade. The source and desitnation vCenter are on the same ESXi host, time is correct, NTP is configured, there's no "\" in the password. Can anyone point me in the right direction?

Here's the stack trace:

root@vcenter [ /var/log/firstboot ]# cat analytics_firstboot.py_28307_stderr.log

INFO:root:Register service with LS.

ERROR:root:Security error: (vmodl.fault.SecurityError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = '',

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

2020-01-07T17:49:56.542Z  Failed to register Analytics Service with Component Manager: generator didn't stop after throw()

2020-01-07T17:49:56.544Z  Traceback (most recent call last):

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 242, in securityctx_modifier

    yield

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 341, in add_securityctx_to_requests

    return req_method(self, *args, **kargs)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 351, in register_service

    svc_create_spec)

  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.vmodl.fault.SecurityError: (vmodl.fault.SecurityError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = '',

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/lib/vmware-analytics/firstboot/analytics_firstboot.py", line 214, in register_with_cm

    cloudvm_sso_cm_register(keystore, cisreg_spec, key_alias, dyn_vars, isPatch=is_patch)

  File "/usr/lib/vmware-cm/bin/cloudvmcisreg.py", line 706, in cloudvm_sso_cm_register

    serviceId = do_lsauthz_operation(cisreg_opts_dict)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 1053, in do_lsauthz_operation

    ls_obj.register_service(svc_id, svc_create_spec)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 341, in add_securityctx_to_requests

    return req_method(self, *args, **kargs)

  File "/usr/lib/python3.5/contextlib.py", line 104, in __exit__

    raise RuntimeError("generator didn't stop after throw()")

RuntimeError: generator didn't stop after throw()

2020-01-07T17:49:56.544Z  Exception: Traceback (most recent call last):

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 242, in securityctx_modifier

    yield

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 341, in add_securityctx_to_requests

    return req_method(self, *args, **kargs)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 351, in register_service

    svc_create_spec)

  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.vmodl.fault.SecurityError: (vmodl.fault.SecurityError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = '',

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/lib/vmware-analytics/firstboot/analytics_firstboot.py", line 214, in register_with_cm

    cloudvm_sso_cm_register(keystore, cisreg_spec, key_alias, dyn_vars, isPatch=is_patch)

  File "/usr/lib/vmware-cm/bin/cloudvmcisreg.py", line 706, in cloudvm_sso_cm_register

    serviceId = do_lsauthz_operation(cisreg_opts_dict)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 1053, in do_lsauthz_operation

    ls_obj.register_service(svc_id, svc_create_spec)

  File "/usr/lib/vmware/site-packages/cis/cisreglib.py", line 341, in add_securityctx_to_requests

    return req_method(self, *args, **kargs)

  File "/usr/lib/python3.5/contextlib.py", line 104, in __exit__

    raise RuntimeError("generator didn't stop after throw()")

RuntimeError: generator didn't stop after throw()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/lib/vmware-analytics/firstboot/analytics_firstboot.py", line 314, in main

    fb.register_with_cm(analytics_int_http, is_patch)

  File "/usr/lib/vmware-analytics/firstboot/analytics_firstboot.py", line 225, in register_with_cm

    problem_id='install.analytics.cmregistration.failed')

cis.baseCISException.BaseInstallException: {

    "componentKey": "analytics",

    "problemId": "install.analytics.cmregistration.failed",

    "resolution": {

        "id": "install.analytics.cmregistration.failed.res",

        "translatable": "Please search for these symptoms in the VMware Knowledge Base for any known issues and possible resolutions. If none can be found, collect a support bundle and open a support request.",

        "localized": "Please search for these symptoms in the VMware Knowledge Base for any known issues and possible resolutions. If none can be found, collect a support bundle and open a support request."

    },

    "detail": [

        {

            "id": "install.analytics.cmregistration.failed",

            "translatable": "Analytics Service registration with Component Manager failed.",

            "localized": "Analytics Service registration with Component Manager failed."

        }

    ]

}

2020-01-07T17:49:56.545Z  VMware Analytics Service firstboot failed

0 Kudos
1 Solution

Accepted Solutions
Vijay2027
Expert
Expert
Jump to solution

Looks like it's failing here:

INFO:root:Register service with LS.

ERROR:root:Security error: (vmodl.fault.SecurityError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = ''

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

Connect to PSC using jxplorer: VMware Knowledge Base

and verify if default sso admin account (for example: administrtratir@vsphere.local) is part of Builtten --> Administrators group

pastedImage_13.png

View solution in original post

0 Kudos
2 Replies
Vijay2027
Expert
Expert
Jump to solution

Looks like it's failing here:

INFO:root:Register service with LS.

ERROR:root:Security error: (vmodl.fault.SecurityError) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = ''

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

Connect to PSC using jxplorer: VMware Knowledge Base

and verify if default sso admin account (for example: administrtratir@vsphere.local) is part of Builtten --> Administrators group

pastedImage_13.png

0 Kudos
RussTypeS
Contributor
Contributor
Jump to solution

Thanks, that was the problem. The Administrators group for my SSO domain didn't have the administrator user in it. I added it and the upgrade succeeded. Thanks!

0 Kudos