environments/net-multiple-nics.yaml - multiple_nics/multiple_nics_dvr.j2 - FAILS: no attribute 'External'

Bug #1904809 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

2020-11-19 02:38:47.705242 | fa163e2c-ca03-ac31-7c31-000000000ae3 |
 TASK | Render network_config from template
2020-11-19 02:38:48.148789 | fa163e2c-ca03-ac31-7c31-000000000acb |
 FATAL | Render network_config from template |
   compute-0 | error={
   "changed": false,
   "msg":
     "AnsibleUndefinedVariable: 'dict object' has no attribute 'External'"
   }

Template snippet:

- type: ovs_bridge
  name: {{ neutron_physical_bridge_name }}
  mtu: {{ lookup('vars', role_networks_lower['External'] ~ '_mtu') }}
  dns_servers: {{ ctlplane_dns_nameservers }}
  use_dhcp: false
  members:
  - type: interface
    name: nic{{nics_used[-1] + 1}}
    mtu: {{ lookup('vars', role_networks_lower['External'] ~ '_mtu') }}
    primary: true

Inventory snippet: config-download/config-download-latest/group_vars/Compute
role_networks:
- Storage
- InternalApi
- Tenant
role_networks_lower:
  InternalApi: internalapi
  Storage: storage
  Tenant: tenant
role_tags:
- compute
- external_bridge

The multiple_nics/multiple_nics_dvr.j2 is used when 'external_bridge' is on the role to create a bridge on the "External" network for OVN/OVS DVR. But the role does'nt have the External network, since there is no need to allocate an IP address.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/763301

Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/763302

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-ansible (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/763377

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/763379

Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 2.1.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 3.0.0

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

Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
status: In Progress → Fix Released
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.