To reconnect a Salt master to SaltStack Config Cloud, you can re-run the sseapi-config join command and pass an optional flag to recreate the OAuth app used to get a VMware Cloud Services Console (CSP) access token.

To recreate the OAuth app:

  1. In the Salt master's terminal, re-run the sseapi-config join command and pass the flag --override-oauth-app, replacing the ssc-url and csp-url values with your region-specific URLs.
    sseapi-config join --ssc-url <SSC URL> --csp-url <CSP URL> --override-oauth-app
    Region name SSC URL CSP URL
    US https://ssc-gateway.mgmt.cloud.vmware.com https://console.cloud.vmware.com
    DE (Germany) https://de.ssc-gateway.mgmt.cloud.vmware.com https://console.cloud.vmware.com
    IN (India) https://in.ssc-gateway.mgmt.cloud.vmware.com https://console.cloud.vmware.com

    The --override-oauth-app flag deletes the OAuth app if it exists and recreates it.

    The following code sample shows an example successful response in the US region.

    2022-08-17 18:50:20 [INFO] SSEAPE joining SSC Cloud... v8.9.1.1 2022-08-16T15:28:12
    2022-08-17 18:50:20 [INFO] Retrieving CSP auth token.
    2022-08-17 18:50:21 [INFO] Deleting oauth app [Salt Master App for master id:my-salt-master] with id [i7vUcQwQ5D63eh1hxv0pJp612wBG20zDifA] and recreating                                it.
    2022-08-17 18:50:21 [INFO] Finished with oauth app [Salt Master App for master id:my-salt-master] in org [6bh70973-b1g2-716c-6i21-i9974a6gdc85].
    2022-08-17 18:50:39 [INFO] Added service role [saltstack:master] for oauth app [Salt Master App for master id:my-salt-master].
    2022-08-17 18:50:39 [INFO] Created pillar [CSP_AUTH_TOKEN].
    2022-08-17 18:50:39 [INFO] Updated master config. Please restart master for config changes to take effect.
    2022-08-17 18:50:39 [INFO] Updated master cloud.conf.
    2022-08-17 18:50:39 [INFO] Validating connectivity to SaltStack Cloud instance [https://ssc-gateway.mgmt.cloud.vmware.com]
    2022-08-17 18:50:39 [INFO] Successfully validated connectivity to SaltStack Cloud instance [https://ssc-gateway.mgmt.cloud.vmware.com]. Response: {'version': 'v8.9.0.5', 'vipVersion': '8.9.0'}
    2022-08-17 18:50:39 [INFO] Finished SSEAPE joining SSC Cloud... v8.9.1.1 2022-08-16T15:28:12
    
  2. Restart the Salt master service.
    systemctl restart salt-master
  3. Repeat this process for each Salt master.