Bug 1632818 - multiple-nics network configuration fails when no vlans are set
Summary: multiple-nics network configuration fails when no vlans are set
Keywords:
Status: CLOSED DUPLICATE of bug 1608470
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Emilien Macchi
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-25 15:41 UTC by Antony Messerli
Modified: 2018-09-26 15:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-26 15:04:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 586722 0 None MERGED Fix errors using multiple-nics templates w/o VLANs defined 2021-02-10 12:03:11 UTC

Description Antony Messerli 2018-09-25 15:41:27 UTC
Description of problem:
When setting up network_data.yaml without vlans and using the multiple-nics network config, overcloud deploy fails with the following errors:

2018-09-24 23:31:32Z [overcloud.Compute.0]: CREATE_FAILED  resources[0]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:32Z [overcloud.Compute]: UPDATE_FAILED  Resource CREATE failed: resources[0]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:33Z [overcloud.CephStorage.2]: CREATE_FAILED  resources[2]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:33Z [overcloud.CephStorage]: UPDATE_FAILED  Resource CREATE failed: resources[2]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:33Z [overcloud.Compute]: CREATE_FAILED  resources.Compute: Resource CREATE failed: resources[0]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:33Z [overcloud]: CREATE_FAILED  Resource CREATE failed: resources.Compute: Resource CREATE failed: resources[0]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned
2018-09-24 23:31:33Z [overcloud.ObjectStorage.2]: CREATE_FAILED  resources[2]: Property error: resources.NetworkConfig.properties: Property TenantNetworkVlanID not assigned

network_data.yaml states vlans are optional for multiple-nics:

# vlan: vlan for the network (optional)

Version-Release number of selected component (if applicable):

OSP 13 with Packages of todays date

How reproducible:
Consistent

Steps to Reproduce:
With network_data.yaml (default with vlans removed)

- name: Storage
  vip: true
  name_lower: storage
  ip_subnet: '172.16.1.0/24'
  allocation_pools: [{'start': '172.16.1.4', 'end': '172.16.1.250'}]
  ipv6_subnet: 'fd00:fd00:fd00:3000::/64'
  ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:3000::10', 'end': 'fd00:fd00:fd00:3000:ffff:ffff:ffff:fffe'}]
- name: StorageMgmt
  name_lower: storage_mgmt
  vip: true
  ip_subnet: '172.16.3.0/24'
  allocation_pools: [{'start': '172.16.3.4', 'end': '172.16.3.250'}]
  ipv6_subnet: 'fd00:fd00:fd00:4000::/64'
  ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:4000::10', 'end': 'fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe'}]
- name: InternalApi
  name_lower: internal_api
  vip: true
  ip_subnet: '172.16.2.0/24'
  allocation_pools: [{'start': '172.16.2.4', 'end': '172.16.2.250'}]
  ipv6_subnet: 'fd00:fd00:fd00:2000::/64'
  ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:2000::10', 'end': 'fd00:fd00:fd00:2000:ffff:ffff:ffff:fffe'}]
- name: Tenant
  vip: false  # Tenant network does not use VIPs
  name_lower: tenant
  vlan: 50
  ip_subnet: '172.16.0.0/24'
  allocation_pools: [{'start': '172.16.0.4', 'end': '172.16.0.250'}]
  # Note that tenant tunneling is only compatible with IPv4 addressing at this time.
  ipv6_subnet: 'fd00:fd00:fd00:5000::/64'
  ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:5000::10', 'end': 'fd00:fd00:fd00:5000:ffff:ffff:ffff:fffe'}]
- name: External
  vip: true
  name_lower: external
  ip_subnet: '10.0.0.0/24'
  allocation_pools: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
  gateway_ip: '10.0.0.1'
  ipv6_subnet: '2001:db8:fd00:1000::/64'
  ipv6_allocation_pools: [{'start': '2001:db8:fd00:1000::10', 'end': '2001:db8:fd00:1000:ffff:ffff:ffff:fffe'}]
  gateway_ipv6: '2001:db8:fd00:1000::1'
- name: Management
  # Management network is enabled by default for backwards-compatibility, but
  # is not included in any roles by default. Add to role definitions to use.
  enabled: true
  vip: false  # Management network does not use VIPs
  name_lower: management
  ip_subnet: '10.0.1.0/24'
  allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
  ipv6_subnet: 'fd00:fd00:fd00:6000::/64'
  ipv6_allocation_pools: [{'start': 'fd00:fd00:fd00:6000::10', 'end': 'fd00:fd00:fd00:6000:ffff:ffff:ffff:fffe'}]

_____

openstack overcloud deploy --templates \
   -e /home/stack/templates/node-info.yaml \
   -e /home/stack/templates/overcloud_images.yaml \
   -e /usr/share/openstack-tripleo-heat-templates/environments/net-multiple-nics.yaml \
   -n /home/stack/templates/network_data.yaml \
   -e /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml \
   -e /home/stack/templates/ceph-custom-config.yaml \
   --ntp-server pool.ntp.org \

Actual results:

See error above

Expected results:

Completion of overcloud deploy

Additional info:

Bug appears to have been raised and fixed in but still get error

https://bugs.launchpad.net/tripleo/+bug/1784084

Comment 1 Bob Fournier 2018-09-26 14:00:24 UTC
Hi, can you indicate which rpm version of tripleo-heat-templates you are using - i.e. rpm -qa | grep tripleo-heat-templates on the undercloud.

It looks like the fix for this for OSP-13 - https://review.openstack.org/#/c/586722, is available in openstack-tripleo-heat-templates-8.0.5 and newer

Comment 2 Antony Messerli 2018-09-26 14:19:17 UTC
It looks like I'm currently on:

openstack-tripleo-heat-templates-8.0.4-20.el7ost.noarch

Comment 3 Bob Fournier 2018-09-26 14:31:16 UTC
Thanks Antony.  I've confirmed that the fix that landed upstream in stable/queens on 7/31 (https://review.openstack.org/#/c/586722) isn't in that package.

This fix will be in the next OSP-13 release - z3.

Comment 4 Bob Fournier 2018-09-26 15:04:27 UTC
Actually there's already a bug tracking this so marking this as a duplicate.

*** This bug has been marked as a duplicate of bug 1608470 ***


Note You need to log in before you can comment on or make changes to this bug.