Unsubscribe vCenter from cloud gateway script fails with "Response code is: 400. Response: Bad Request"
search cancel

Unsubscribe vCenter from cloud gateway script fails with "Response code is: 400. Response: Bad Request"

book

Article ID: 369972

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

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.

Environment

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.

Resolution

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. 

These special characters are not supported in SSO passwords:
  • Non-ASCII characters
  • Ampersand (&)
  • Semicolon ( ; )
  • Double quotation mark ( " )
  • Single quotation mark ( ' )
  • Circumflex ( ^ )
  • Backslash ( \ )
  • Percentage (%)
  • Angle brackets ( < , > )

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.