Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-19787

'ansible.vars.hostvars.HostVarsVars object' has no attribute 'hostname_resolve_network' blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • tripleo-ansible
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Critical

      To Reproduce Steps to reproduce the behavior:
      During RHOSP 16.2 -> RHOSP 17.1.6 FFU a customer moved 5 nodes from old RHEL 8 - based role to a new RHEL 9 role. Workarounds for https://issues.redhat.com/browse/OSPRH-16632 and https://issues.redhat.com/browse/OSPRH-17065 were applied. Nonetheless, upgrade prepare command is blocked by failed ansible play:

      2025-09-03 13:30:59.724637 | 566f2db9-002a-77a5-45e2-000000001173 |      FATAL | Render out the hosts entries | COMPUTE | error={"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'hostname_resolve_network'. 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'hostname_resolve_network'\n\nThe error appears to be in '/usr/share/ansible/roles/tripleo_hosts_entries/tasks/main.yml': line 51, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Render out the hosts entries\n  ^ here\n"}
      

      Inventory looks consistent, all entries in /home/stack/overcloud-deploy/overcloud/config-download/overcloud/host_vars/ folder have non-empty hostname_resolve_network.

      Latest overcloud-deploy folder is attached to the case.

      Expected behavior
      Upgrade prepare command is not blocked when documentation followed properly.

      Bug impact
      A process of moving nodes between the roles is blocked.

      Known workaround
      None.

              Unassigned Unassigned
              rhn-support-astupnik Alex Stupnikov
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: