When running the DX NetOps Upgrade Automation pre-flight check, the process fails during the Data Repository (DR) version assertion task. This occurs even if the user has appropriate sudo permissions and Vertica is correctly installed.
The following error is observed in the automation output:
TASK [dr : Version assert] *****************************************************fatal: [hostname]: FAILED! => {
"assertion": "rpm_vertica | length > 0",
"changed": false,
"evaluated_to": false,
"msg": "Assertion failed"
}
The Ansible task fails to correctly evaluate the Vertica RPM version because the underlying command returns empty lines in the output, causing the length > 0 assertion to fail.
This issue is Targeted to be fixed in a future release. To be notified when the fix is available, please .
Update the dr_install.sh script (or the corresponding Ansible playbook variable) to filter out empty lines from the RPM query results.
Change the variable definition from: rpm_vertica: "{{ rpm_qall.stdout_lines | first | default('') }}"
To: rpm_vertica: "{{ rpm_qall.stdout_lines | reject('equalto', '') | list | first | default('') }}"