Openstack FFU to 17.1 upgrade fail in step Render out the hosts entries with deleted nodes

Solution Verified - Updated -

Environment

  • Red Hat OpenStack Platform 17.1

Issue

The FFU from Openstack 16.2 to 17.1 is failing in the step 8.1 because old nodes appear in the inventory file.

Resolution

  1. Add below to tripleo-overcloud-baremetal-deployment.yaml
  • hostname:
    provisioned: false
  1. Run the upgrade command again.

Root Cause

There is the BZ2269566 to address the solution.

Diagnostic Steps

  1. Check the command output for the FATAL error below. Also the deleted nodes will be appear in the output.
2024-01-01 12:34:57,518 p=100001 u=stack n=ansible | 2024-01-01 12:34:57.518738 | 00030392-0000-1c7e-0000-00000000e000 |      FATAL | Render out the hosts entries | undercloud | 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'\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"
  1. Check that deleted nodes are in host_vars.
(undercloud) [stack@director ~]$ cd /home/stack/overcloud-deploy/overcloud/config-download/overcloud/host_vars
(undercloud) [stack@director host_vars]$ ls -lh *compute5*
-rw-rw-r--. 1 stack stack 655 Mar 01 12:30 compute5
  1. Check that not all nodes are in metalsmith list.
(undercloud) [stack@director ~]$ metalsmith list | grep compute5
(undercloud) [stack@director ~]$ 
  1. You can also check tripleo-ansible-inventory.yaml

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments