BMC Helix Dashboard(HD)Onprem: Deployment manager failing during the upgrade from 21.3.03.001 to 22.2.01 for adereporting-report-generator-service | error in deployment log "UPGRADE FAILED-Invalid value: "": may not be specified when `value` is not empty" Error in "helix-on-prem-deployment-manager/logs/deployment.log" Error: UPGRADE FAILED: cannot patch "adereporting-report-generator-service" with kind Deployment: Deployment.apps "adereporting-report-generator-service" is invalid: spec.template.spec.containers[0].env[19].valueFrom: Invalid value: "": may not be specified when `value` is not empty at ChildProcess.exithandler (node:child_process:397:12) at ChildProcess.emit (node:events:390:28) at maybeClose (node:internal/child_process:1062:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) { killed: false, code: 255, signal: null, cmd: '/home/helix22201/helix-on-prem-deployment-manager/deploy/common/../../commons/install_helm_chart.sh adereporting-report-generator-service 490 namespace=bmc-helix,registryhost=example.localdomain.com,imagePullSecrets.name=bmc-dtrhub,containers[0].org=bmc/lp0lz:,envMap.env.REPORT_GENERATOR_SMTP_FROM_EMAIL=bmc@defacto.com,envMap.env.REPORT_GENERATOR_GRAFANA_DB_NAME=reportdb,cronjob.container.envMap.env.GRAFANA_DB_NAME=reportdb,cronjob.container.org=bmc/lp0lz:,envMap.env.REPORT_GENERATOR_SERVER_LOG_LEVEL=debug,envMap.env.JOB_PULLER_LOG_LEVEL=debug,horizontalPodAutoscaler.maxReplicas=3,horizontalPodAutoscaler.minReplicas=2,replicaCount=2,containers[0].resources.limits.cpu=500m,containers[0].resources.limits.memory=512Mi,containers[0].resources.requests.memory=252Mi,containers[0].resources.requests.cpu=250m ' } ERROR: Failed to deploy helix dashboard services. ERROR: Failed to install helm chart: adereporting-apiservice ERROR: Failed to install helm chart: adereporting-renderer-service |
The issue is due SMTP_AUTH parameter being set differently during an upgrade to BMC Helix IT Operations Management (ITOM) 22.2.01. For the BMC Helix IT Operations Management (ITOM) version 21.3.03.001 the "SMTP_AUTH variable" is set to “” in the "helix-on-prem-deployment-manager/configs/infra.config". Now, in the BMC Helix IT Operations Management (ITOM) 22.2.01 needs to be set as NONE instead of “” value Please refer following steps to resolve the issue: Update the "adereporting-report-generator-service" deployment for REPORT_GENERATOR_SMTP_AUTH as highlighted below and re-run the deployment manager [helix-on-prem-deployment-manager/deployment-manager.sh] From: [root@ExampleControllerNode ~]# kubectl edit deployment adereporting-report-generator-service -n Helix-PlatoformNameSpace - name: REPORT_GENERATOR_SMTP_AUTH value: "false" To: [root@ExampleControllerNode ~]# kubectl edit deployment adereporting-report-generator-service -n <Helix-PlatoformNameSpace> - name: REPORT_GENERATOR_SMTP_AUTH valueFrom: configMapKeyRef: key: SMTP_AUTH name: smtp-credentials optional: false If the issue still persists then open a support case and share helix-on-prem-deployment-manager/logs/deployment.log file |