Unsubscribe vCenter from cloud Gateway using the steps from Unsubscribe VC , the script fails with "Response code is: 400. Response: Bad Request". Rebooting the VC did not fix the issue.
Example error logs:
root@vc[ ~ ]# ./delete-subscription.sh
[YYYY-MM-DDTHH:MM:SS] [priority='INFO' thread='' user='' org='' trace=''] Starting vCenter subscription delete task.
Enter FQDN of vCenter Server to be unsubsribed: vc.domain.com
Enter the SSO Username for vc.domain.com: [email protected]
Enter the SSO Password for vc.domain.com:
[YYYY-MM-DDTHH:MM:SS] [priority='INFO' thread='' user='' org='' trace=''] Unsubscribing vc.domain.com
[YYYY-MM-DDTHH:MM:SS] [priority='ERROR' thread='' user='' org='' trace=''] Response code is: 400. Response: Bad Request.
1. Make sure there is no proxy configured on vCenter server and cloud gateway.
2. vCenter server SSO password for vc.example.com should not have any of the following special character.
3. Root password is not expired on the vCenter server.
4. If none of the above is the scenario, then reboot the vCenter server reboot and rerun the script on the vCenter server.