Error: One or more relationships exist for object with id TransportNode/[UUID] from NSGroup/[UUID]. (Error code: 3022)
NSGroup vRNI-Node_Group_Profile_ is being used by ServiceConfig and cannot be deleted.
VMware NSX
This issue occurs due to stale entries which may remain in NSX when vRNI is no longer used or was vRNI is still in use, but was unconnected and reconnected in the past, this may lead to stale groups in NSX.
This issue is resolved in VMware NSX 4.2.2, available at Broadcom downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.
To workaround the issue, if vRNI is still in use and the groups with prefix 'vRNI' still exist, to identify which groups are stale, you can disable NSX-T data collection in vRNI, the profile and collector in NSX should be removed then.
Whichever vRNI group(s) remain, are the stale groups.
You should now be able to delete the stale groups in NSX while vRNI is unconfigured.
Note: In some cases, these may be nested groups and you will need to first remove the reference in the parent group, to delete the group with the hosts in it.
If vRNI is no longer in use, and you are unable to remove the vRNI groups, please open a case with Broadcom Support and reference this KB article.
Follow instructions here to created support case: Creating and managing Broadcom support cases