Error while editing or deleting the NSX cloud in AVI load balancer.
search cancel

Error while editing or deleting the NSX cloud in AVI load balancer.

book

Article ID: 405645

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

  • The NSX cloud is reporting an unhealthy status from the controller.
  • The AVI controller is returning the error code below while modifying or deleting the NSX cloud.

    • {"error":"ERR Error running script (call to f_c91c461c4bfb1d868b6d5b901df069e2f80c492a): @user_script:2: user_script:2: bad argument #1 to 'decode' (string expected, got boolean) "}

Environment

  • AVI Load Balancer
    • 30.2.2

Cause

  • The problem arises when the NSX cloud is configured using the automation without providing the necessary credentials.
  • When the cloud settings are edited, the credentials field is set to 'Not set'.

Resolution

  • The fix will be in the versions below.
    • 30.2.5
    • 31.2.1

  • Workaround:
    • To fix this issue, configure the credentials using the CLI. (The UI will not allow configuring the credentials.)
    • Steps:-
      1. SSH to the controller.
      2. Run the below command.
        1. [admin:##-##-##-##]: > configure cloud <your_nsxt_cloud_name>
        2. [admin:##-##-##-##]: cloud> nsxt_configuration
        3. [admin:##-##-##-##]: cloud:nsxt_configuration> nsxt_credentials_ref  (press Tab button 2 times to list the available credentials, and then select/type the appropriate.)  
        4. [admin:##-##-##-##]: cloud:nsxt_configuration> nsxt_credentials_ref <credentials object>
        5. [admin:##-##-##-##]: cloud:nsxt_configuration> save
        6. [admin:##-##-##-##]: cloud> save
    • Validate the cloud state.

Note: If the issue persists, please contact Broadcom support.