yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #85180
[Bug 1840039] Re: adding additional subnets fail as no network segment is assigned to the default subnets
** Also affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1840039
Title:
adding additional subnets fail as no network segment is assigned to
the default subnets
Status in neutron:
New
Status in tripleo:
Fix Released
Bug description:
When adding new subnets to an existing network the network_data.yaml
like e.g. storage_cell1:
- name: Storage
external_resource_network_id: 182e1de2-8e0d-44f9-929d-ebcc1899e46c
external_resource_subnet_id: 65cf39a3-d7fd-472e-941a-7636fdcaefb9
vip: true
vlan: 30
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'}]
mtu: 1500
subnets:
storage_cell1:
vlan: 31
ip_subnet: '172.17.1.0/24'
allocation_pools: [{'start': '172.17.1.10', 'end': '172.17.1.250'}]
gateway_ip: '172.17.1.254'
...
- name: InternalApi
external_resource_network_id: 348b8a30-e11b-4eaa-9843-e46ff071f211
external_resource_subnet_id: 5fc46eea-0f6a-446d-9c9e-edd3e41a0a69
name_lower: internal_api
vip: true
vlan: 20
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'}]
mtu: 1500
subnets:
internal_api_cell1:
vlan: 21
ip_subnet: '172.17.2.0/24'
allocation_pools: [{'start': '172.17.2.10', 'end': '172.17.2.250'}]
gateway_ip: '172.17.2.254'
The stack deploy fails as the additional subnets get assigned to a
segment [1], but the default subnets are not and the segment id is
none:
Neutron server returns req
2019-08-13 12:20:00Z [cell1.Networks]: CREATE_FAILED Resource CREATE failed: BadRequest: resources.StorageNetwork.resources.StorageSubnet_storage_cell1: All of the subnets on network '182e1de2-8e0d-44f9-929d-ebcc1899e46c' must either all be associated with segments or all not associated with any segment.
Ne
Stack cell1/a0dbe0ca-21fe-40cf-bf6e-e4d1a9ba3fb6 CREATE_FAILED
cell1.Networks.InternalApiNetwork.InternalApiSubnet_internal_api_cell1:
resource_type: OS::Neutron::Subnet
physical_resource_id:
status: CREATE_FAILED
status_reason: |
BadRequest: resources.InternalApiSubnet_internal_api_cell1: All of the subnets on network '348b8a30-e11b-4eaa-9843-e46ff071f211' must either all be associated with segments or all not associated with any segment.
Neutron server returns request_ids: ['req-68bfd490-6b71-48e4-8309-5b3fe4391804']
cell1.Networks.StorageMgmtNetwork.StorageMgmtSubnet_storage_mgmt_cell1:
resource_type: OS::Neutron::Subnet
physical_resource_id:
status: CREATE_FAILED
status_reason: |
BadRequest: resources.StorageMgmtSubnet_storage_mgmt_cell1: All of the subnets on network '44a1d388-acd6-4e55-8231-7a7ea9c054a2' must either all be associated with segments or all not associated with any segment.
Neutron server returns request_ids: ['req-c3d90f16-8690-4691-aabb-14281ebb5142']
cell1.Networks.StorageNetwork.StorageSubnet_storage_cell1:
resource_type: OS::Neutron::Subnet
physical_resource_id:
status: CREATE_FAILED
status_reason: |
BadRequest: resources.StorageSubnet_storage_cell1: All of the subnets on network '182e1de2-8e0d-44f9-929d-ebcc1899e46c' must either all be associated with segments or all not associated with any segment.
Neutron server returns request_ids: ['req-0ff31af8-ed70-42ca-9c08-1c3f9aa3c53d']
cell1.Networks.ExternalNetwork.ExternalSubnet_external_cell1:
resource_type: OS::Neutron::Subnet
physical_resource_id:
status: CREATE_FAILED
status_reason: |
BadRequest: resources.ExternalSubnet_external_cell1: All of the subnets on network '64197111-f776-4f78-819e-11522d700ad8' must either all be associated with segments or all not associated with any segment.
Neutron server returns request_ids: ['req-ed190079-0462-4bf8-98a3-0cccf3bfe915']
Heat Stack create failed.
Heat Stack create failed.
(undercloud) [stack@undercloud ~]$ openstack subnet show 11d33d1c-9092-408e-89a2-736c527f87ae
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| allocation_pools | 172.16.3.4-172.16.3.250 |
| cidr | 172.16.3.0/24 |
| created_at | 2019-08-13T07:48:29Z |
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | None |
| host_routes | |
| id | 11d33d1c-9092-408e-89a2-736c527f87ae |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| location | Munch({'project': Munch({'domain_name': 'Default', 'domain_id': None, 'name': 'admin', 'id': u'5d7d8a5539eb46078878ec1331e5031e'}), 'cloud': '', 'region_name': '', 'zone': None}) |
| name | storage_mgmt_subnet |
| network_id | 44a1d388-acd6-4e55-8231-7a7ea9c054a2 |
| prefix_length | None |
| project_id | 5d7d8a5539eb46078878ec1331e5031e |
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2019-08-13T07:48:29Z |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[1] https://github.com/openstack/tripleo-heat-
templates/blob/master/network/network.j2#L165-L168
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1840039/+subscriptions