RoleNetIpMap contain no IPs when hostname for node contain uppercase letters

Bug #1978362 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Harald Jensås

Bug Description

(undercloud) [cloud-user@undercloud outputs]$ cat RoleNetIpMap
Compute:
  ctlplane: []
  internalapi: []
  storage: []
  tenant: []
Controller:
  ctlplane: []
  external: []
  internalapi: []
  storage: []
  storagemgmt: []
  tenant: []

baremetal deployment YAML:
- name: Controller
  count: 1
  defaults:
    networks:
      - network: external
      - network: internalapi
      - network: storage
      - network: storagemgmt
      - network: tenant
  instances:
    - name: Controller
- name: Compute
  count: 1
  defaults:
    networks:
      - network: internalapi
      - network: tenant
      - network: storage
  instances:
    - name: Compute

When instance have `name`, and no hostname. The `name` is used as the hostname.
In this case with capital letters.

NodePortMap is created with the capital hostname, and lookup fails when creating RoleNetIpMap?

 NodePortMap:
    Compute:
      ...
    Controller:
      ....

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/845489
Committed: https://opendev.org/openstack/tripleo-ansible/commit/f83c9e0cae99642a8525ee169ae2f500bef16f30
Submitter: "Zuul (22348)"
Branch: master

commit f83c9e0cae99642a8525ee169ae2f500bef16f30
Author: Harald Jensås <email address hidden>
Date: Sat Jun 11 01:47:39 2022 +0200

    Ensure lowercase hostname in NodePortMap

    When a node's hostnae contain uppercase characters the
    RoleNetIpMap will have missing entries.

    Since hostname is case insensitive, convert to lowercase
    when creating the NodePortMap to ensure the lookups in
    THT succeedes.

    Closes-Bug: #1978362
    Change-Id: I69050773472e25f49878c18a2ac4922a9aed8892

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/845398

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/845398
Committed: https://opendev.org/openstack/tripleo-ansible/commit/e8ec5ecea6a344f605518e9753babd34bf61c561
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit e8ec5ecea6a344f605518e9753babd34bf61c561
Author: Harald Jensås <email address hidden>
Date: Sat Jun 11 01:47:39 2022 +0200

    Ensure lowercase hostname in NodePortMap

    When a node's hostnae contain uppercase characters the
    RoleNetIpMap will have missing entries.

    Since hostname is case insensitive, convert to lowercase
    when creating the NodePortMap to ensure the lookups in
    THT succeedes.

    Closes-Bug: #1978362
    Change-Id: I69050773472e25f49878c18a2ac4922a9aed8892
    (cherry picked from commit f83c9e0cae99642a8525ee169ae2f500bef16f30)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 5.0.0

This issue was fixed in the openstack/tripleo-ansible 5.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.