Tripleo Upgrade Tries to delete underlying networks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
TripleO was used successfully to Deploy ROCKY. During the attempts to upgrade to STEIN though, while the undercloud was successfully upgrade to STEIN (and podman), The overcloud cannot be deployed because HEAT assumes that Management network should be deleted, despite being added to the roles-file.
Steps to reproduce
==================
Rocky was deployed
with openstack overcloud deploy --templates \
-e /home/stack/
-e /home/stack/
-r /home/stack/
-n /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /usr/share/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
Perhaps the relevant parts are :
cat /home/stack/
#######
# File generated by TripleO
#######
#######
# Role: Controller #
#######
- name: Controller
description: |
Controller role that has all the controler services loaded and handles
Database, Messaging and Network functions.
CountDefault: 1
tags:
- primary
- controller
networks:
- External
- InternalApi
- Storage
- StorageMgmt
- Tenant
- Management
cat /home/stack/
- name: Management
# Management network is enabled by default for backwards-
# 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
vlan: 60
ip_subnet: '10.0.1.0/24'
allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
ipv6_subnet: 'fd00:fd00:
ipv6_
cat /home/stack/
ManagementNetCidr: 10.158.203.0/24
ManagementNetw
ManagementAllo
# Uncomment if using the Management Network (see network-
ManagementNetCidr: 10.158.203.0/24
# ManagementAlloc
#ManagementInt
(undercloud) [stack@osk-raio09 ~]$ cat /home/stack/
# Enable the creation of Neutron networks for isolated Overcloud
# traffic and configure each role to assign ports (related
# to that role) on these networks.
# primary role is: Controller
resource_registry:
# networks as defined in network_data.yaml
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
# Port assignments for the VIPs
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
# Port assignments by role, edit role definition to assign networks to roles.
# Port assignments for the Controller
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
(undercloud) [stack@osk-raio09 ~]$
While the NICS did not contain anything regarding Management.
After upgrading To Stein however, despite taking into consideration https:/
With:
(undercloud) [stack@osk-raio09 ~]$ cat /home/stack/
#######
# File generated by TripleO
#######
#######
# Role: Controller #
#######
- name: Controller
description: |
Controller role that has all the controler services loaded and handles
Database, Messaging and Network functions.
CountDefault: 1
tags:
- primary
- controller
networks:
External:
subnet: external_subnet
InternalApi:
subnet: internal_api_subnet
Storage:
subnet: storage_subnet
StorageMgmt:
subnet: storage_mgmt_subnet
Tenant:
subnet: tenant_subnet
Management:
subnet: management_subnet
cat /home/stack/
- name: Management
# Management network is enabled by default for backwards-
# # 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
vlan: 60
ip_subnet: '10.0.1.0/24'
allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
# #ipv6_subnet: 'fd00:fd00:
# ipv6_allocation
mtu: 1500
// I should say that here I have added-removed gateway_ip, ipv6 etc configs according to
https:/
cat /home/stack/
# Customize the IP subnet to match the local environment
ManagementNet
# Customize the IP range to use for static IPs and VIPs
ManagementAll
# Gateway router for routable networks
ManagementInt
# Customize the VLAN ID to match the local environment
ManagementNet
network-
Management subnet is define already as
(undercloud) [stack@osk-raio09 ~]$ openstack subnet show 2e154f6e-
+------
| Field | Value |
+------
| allocation_pools | 10.158.
| cidr | 10.158.203.0/24 |
| created_at | 2019-12-
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 10.158.203.254 |
| host_routes | |
| id | 2e154f6e-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| location | Munch({'project': Munch({
| name | management_subnet |
| network_id | 7a7ec3b1-
| prefix_length | None |
| project_id | 25c076f2715a46b
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2019-12-
+------
However during deployment with
penstack overcloud upgrade prepare --templates --debug\
-e /home/stack/
-e /home/stack/
-r /home/stack/
-n /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /usr/share/
-e /home/stack/
-e /usr/share/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
-e /home/stack/
I always get
http://
http://
I should say that I have tried a couple of different permutations of the templates to no avail.
What is more problematic is that I do not get WHY the installer thinks that I am trying to Delete the Management network (which I dont)
Expected result
===============
Pass or at least some indication as to WHAT is changing in THT. The current state just informs that "something" has changed but there is no way to understand what.
Actual result
=============
Failure to update THT
Environment
===========
OVS/ml2 with DVR upgrading from ROCKY --> STEIN
Ceph for the VMs
I would also like to add that the bug seems to be related to everything I do on the network-data.yaml. Originally I had only messed a bit with the Management network . And the upgrade command failed. After making a change the other parts of the yaml (lets say the external netowrk). Then the installer throws an error for that network as well! If then I revert that exact change, then then the bug remains! and Basically I cannot edit my network file