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

FFU 16.2 -> 17.1 {{Role}}ServiceNetMap appears to be unaccounted for by tripleo_all_nodes_data.p

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • openstack-tripleo-heat-templates-14.3.1-17.1.20250804061404.e7c7ce3.el9osttrunk tripleo-ansible-3.3.1-17.1.20250804050821.8debef3.el9osttrunk
    • None
    • EDPM Sprint 4, EDPM Sprint 5, EDPM Sprint 6, EDPM Sprint 7, EDPM Sprint 8, EDPM Sprint 9, EDPM Sprint 10, EDPM Sprint 11, EDPM Sprint 12
    • 9
    • Important

       

      FFU 16.2 -> 17.1 {{Role}}ServiceNetMap appears to be unaccounted for by tripleo_all_nodes_data role:

      2025-05-23 08:23:30.372072 | 00505684-35a1-297c-7bde-00000000002c |       TASK | Render all_nodes data as group_vars for overcloud
      Process Process-92:49:
      Traceback (most recent call last):
        File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
          self.run()
        File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
          self._target(*self._args, **self._kwargs)
        File "/usr/share/ansible/plugins/action/tripleo_all_nodes_data.py", line 72, in compute_service
          service_hosts))
        File "/usr/share/ansible/plugins/action/tripleo_all_nodes_data.py", line 71, in <lambda>
          map(lambda host: self.h_vars[host][service_network + '_ip'],
        File "/usr/lib/python3.6/site-packages/ansible/vars/hostvars.py", line 129, in __getitem__
          foo = templar.template(self._vars[var], fail_on_undefined=False, static_vars=STATIC_VARS)
      KeyError: 'internal_api_ip' 

      The problematic called py file:

       

      /usr/share/ansible/plugins/action/tripleo_all_nodes_data.py

      Included parameter_defaults in train/rhosp16.2:

      ComputeServiceNetMap:
      NovaLibvirtNetwork: internal_api
      Compute1ServiceNetMap:
      NovaLibvirtNetwork: internal_api1
      Compute2ServiceNetMap:
      NovaLibvirtNetwork: internal_api2

      We can see all hosts are rendered in the same network for internal_api:

      Computing data for nova_libvirt_node_ips
      Service network: internal_api
      Service hosts: ['<physical>-pcb3', '<physical>-pcb4', '<physical>-pcb5', '<physical>-kvm0', '<physical>-kvm1', '<physical>-kvm2', '<physical>-kvm3', '<physical>-pha17', '<physical>-pha18', '<physical>-pha19', '<physical>-pha20', '<physica
      l>-phb0']

      but those are in a different network for the Compute1 and Compute2:

      Compute:
            deploy_server_id: da18eaef-d356-4dab-bfa8-0dc5bffc003e, internal_api_hostname: <physical>-kvm0.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.19, storage_hostname: <physical>-kvm0.storage.<domain>,
            deploy_server_id: 12ef9abe-07d4-4b49-93ae-8cbce8e1b51b, internal_api_hostname: <physical>-kvm1.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.21, storage_hostname: <physical>-kvm1.storage.<domain>,
            deploy_server_id: b3ceda7e-bbf5-4cca-b29a-41dcf7b9873c, internal_api_hostname: <physical>-kvm2.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.25, storage_hostname: <physical>-kvm2.storage.<domain>,
            deploy_server_id: 760c50d2-f2c5-4a69-a6bf-8c27582e3387, internal_api_hostname: <physical>-kvm3.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.22, storage_hostname: <physical>-kvm3.storage.<domain>,
          tripleo_role_networks: [cephpublic, ctlplane, internal_api, storage, tenant]
            deploy_server_id: be2695aa-cae6-4f63-853f-aaabc2a8636c, internal_api_hostname: <physical>-neu2.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.23, tenant_hostname: <physical>-neu2.tenant.<domain>,
            deploy_server_id: 6a2aa0ab-5ab9-445b-898d-68df077c1efd, internal_api_hostname: <physical>-neu3.internalapi.<domain>,
            internal_api_ip: <ip-prefix-2>.208.29, tenant_hostname: <physical>-neu3.tenant.<domain>,
          tripleo_role_networks: [ctlplane, internal_api, tenant]
      Compute1:
            internal_api1_hostname: <physical>-pha17.internalapi1.<domain>,
            internal_api1_ip: <ip-prefix-2>.208.157, storage1_hostname: <physical>-pha17.storage1.<domain>,
            internal_api1_hostname: <physical>-pha18.internalapi1.<domain>,
            internal_api1_ip: <ip-prefix-2>.208.136, storage1_hostname: <physical>-pha18.storage1.<domain>,
            internal_api1_hostname: <physical>-pha19.internalapi1.<domain>,
            internal_api1_ip: <ip-prefix-2>.208.142, storage1_hostname: <physical>-pha19.storage1.<domain>,
            internal_api1_hostname: <physical>-pha20.internalapi1.<domain>,
            internal_api1_ip: <ip-prefix-2>.208.150, storage1_hostname: <physical>-pha20.storage1.<domain>,
          tripleo_role_networks: [cephpublic1, cephreplication1, ctlplane, internal_api1,
      Compute2:
            internal_api2_hostname: <physical>-phb0.internalapi2.<domain>, internal_api2_ip: <ip-prefix-2>.208.168,
          tripleo_role_networks: [cephpublic2, cephreplication2, ctlplane, internal_api2,
            internal_api2_hostname: <physical>-pcb3.internalapi2.<domain>, internal_api2_ip: <ip-prefix-2>.208.173,
            internal_api2_hostname: <physical>-pcb4.internalapi2.<domain>, internal_api2_ip: <ip-prefix-2>.208.163,
            internal_api2_hostname: <physical>-pcb5.internalapi2.<domain>, internal_api2_ip: <ip-prefix-2>.208.169,
          tripleo_role_networks: [cephpublic2, cephreplication2, ctlplane, internal_api2,
          external_vip: <ip-prefix-2>.223.10, internal_api_vip: <ip-prefix-2>.208.10, redis_vip: <ip-prefix-2>.208.11,
       

              rhn-support-ramishra Rabi Mishra
              rhn-support-dhill Dave Hill
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: