Aria Automation deploy.sh script fails with an error referencing helm
search cancel

Aria Automation deploy.sh script fails with an error referencing helm

book

Article ID: 312225

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • deploy.sh ends in an error referencing helm

​2023-02-09 11:54:13] ERROR Failed to upgrade release 'vco' in namespace 'prelude'Traceback (most recent call last):
  File "/opt/scripts/helm-upstall", line 272, in main
    helm_upgrade(namespace, release_name, args.chart_path, overrides=overrides, values_set=args.set, values_set_string=args.set_string, timeout=upgrade_timeout, reinstall=args.force_reinstall)
  File "/opt/python-modules/vracli/decorators.py", line 181, in wrapper
    raise err
  File "/opt/scripts/helm-upstall", line 184, in helm_upgrade
    run_cmd(cmd)
  File "/opt/scripts/helm-upstall", line 48, in run_cmd
    raise RuntimeError('command failed')
​RuntimeError: command failed

  • Helm logs located in /var/log/vmware/prelude/helm/prelude_<service-name>.log  contain an error similar to:

enableResourceLimits=true,preferLocalEndpoints=true,cluster.replicaCount=3,multiDB=false,enableAdapterHostSvc=true,featureFlags.remoteProxyEnabled=false,enableTelemetry=false,fips_mode=disabled,FQDN=vra_fqdn,INGRESS_URL=https://vra_fqdn,BUILDWEB_NUMBER=20735161,cloudAssemblySvcId=bc898db5-61dc-,defaultOrgAlias= vco vco` failed with status 1: Error: YAML parse error on vco/templates/deployment.yaml: error converting YAML to JSON: yaml: line 525: found a tab character where an indentation space is expected

Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.


Environment

VMware vRealize Automation 8.x

Cause

This issue is caused due to a tab character used as indentation in helm charts file.

Resolution

To resolve this issue, remove the tab character as indentation and use space character instead.