'local_version' is undefined for precheck during production deploy

In https://ops.gitlab.net/gitlab-com/gl-infra/deployer/-/jobs/534277

TASK [Fail if GitLab versions are not the same] ********************************
fatal: [api-15-sv-gprd.c.gitlab-production.internal]: FAILED! => 
  msg: |-
    The conditional check 'not is_canary and local_version != item.Version and '-cny-' not in item.Name' failed. The error was: error while evaluating conditional (not is_canary and local_version != item.Version and '-cny-' not in item.Name): 'local_version' is undefined
  
    The error appears to have been in '/builds/gitlab-com/gl-infra/deployer/deploy-tooling/prechecks_pipeline.yml': line 170, column 7, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
        # dictionary of versions.
        - name: Fail if GitLab versions are not the same
          ^ here

in the task right before this, it sets the fact for local_version, but it appears that some hosts are being skipped. This is odd because I think we are looping over the same list.

Marking this higher priority for now at ~P2 because it caused the pre-check to fail.

Assignee Loading
Time tracking Loading