Failed to apply patch roles_groups_users! Error: Role CNS-Datastore (id: 1090) not found in VC
"<YYYY-MM-DDTHH:MM:SS>
wcp:Patch INFO roles_groups_users Checking if privileges should be updated for role {'id': '1090', 'name': 'CNS-Datastore', 'description': 'Allows performing read, write, delete, and rename operations in the datastore browser. ', 'priv_ids': ['System.Read', 'System.Anonymous', 'System.View', 'Datastore.AllocateSpace', 'Datastore.FileManagement']}
<YYYY-MM-DDTHH:MM:SS>
wcp:Patch ERROR wcp Failed to apply patch %s! Error: %s.
<YYYY-MM-DDTHH:MM:SS>
wcp:Patch ERROR wcp Not all patches were applied. Latest applied patch is 1
<YYYY-MM-DDTHH:MM:SS>
wcp:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'wcp:Patch' failed.
Traceback (most recent call last):
File "/storage/seat/software-updateu46go3kh/stage/scripts/patches/payload/components-script/wcp/__init__.py", line 329, in doIncrementalPatching
raise user_error
patch_errors.UserError: Failed to apply patch roles_groups_users! Error: Role CNS-Datastore (id: 1090) not found in VC..
<YYYY-MM-DDTHH:MM:SS> ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got ComponentWrapperError.
File "/storage/seat/software-updateu46go3kh/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor_process.py", line 119, in executeHook
raise ex
patch_errors.ComponentError
<YYYY-MM-DDTHH:MM:SS>
WARNING root stopping status aggregation...
<YYYY-MM-DDTHH:MM:SS> ERROR __main__ Patch vCSA failed
vCenter Server 8.0 U3
This issue is caused due to the role "CNS-Datastore" or "CNS-SEARCH-AND-SPBM" already available on the vCenter Server. This role is created when vCenter Server is integrated with Vanilla CSI+Kubernetes and 8.0 U3 patching process tries to create the role with same name and results in a conflict.
This issue is resolved in vCenter Server 8.0 U3b (Build Number - 24262322).
Workaround:
Follow below steps to workaround the issue :