Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 4. Preparing for the Overcloud upgrade
This process prepares the overcloud for the upgrade process.
Prerequisites
- You have upgraded the undercloud to the latest version.
4.1. Red Hat Subscription Manager (RHSM) composable service Copier lienLien copié sur presse-papiers!
The rhsm
composable service provides a method to register overcloud nodes through Ansible. Each role in the default roles_data
file contains a OS::TripleO::Services::Rhsm
resource, which is disabled by default. To enable the service, register the resource to the rhsm
composable service file:
resource_registry: OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml
resource_registry:
OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml
The rhsm
composable service accepts a RhsmVars
parameter, which allows you to define multiple sub-parameters relevant to your registration. For example:
You can also use the RhsmVars
parameter in combination with role-specific parameters (e.g. ControllerParameters
) to provide flexibility when enabling specific repositories for different nodes types.
4.2. Switching to the rhsm composable service Copier lienLien copié sur presse-papiers!
The previous rhel-registration
method runs a bash script to handle the overcloud registration. The scripts and environment files for this method are located in the core Heat template collection at /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/
.
Complete the following steps to switch from the rhel-registration
method to the rhsm
composable service.
Procedure
Exclude the
rhel-registration
environment files from future deployments operations. In most cases, exclude the following files:-
rhel-registration/environment-rhel-registration.yaml
-
rhel-registration/rhel-registration-resource-registry.yaml
-
If you use a custom
roles_data
file, ensure that each role in yourroles_data
file contains theOS::TripleO::Services::Rhsm
composable service. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Add the environment file for
rhsm
composable service parameters to future deployment operations.
This method replaces the rhel-registration
parameters with the rhsm
service parameters and changes the Heat resource that enables the service from:
resource_registry: OS::TripleO::NodeExtraConfig: rhel-registration.yaml
resource_registry:
OS::TripleO::NodeExtraConfig: rhel-registration.yaml
To:
resource_registry: OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml
resource_registry:
OS::TripleO::Services::Rhsm: /usr/share/openstack-tripleo-heat-templates/extraconfig/services/rhsm.yaml
You can also include the /usr/share/openstack-tripleo-heat-templates/environments/rhsm.yaml
environment file with your deployment to enable the service.
4.3. rhel-registration to rhsm mappings Copier lienLien copié sur presse-papiers!
rhel-registration | rhsm / RhsmVars |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4.4. Updating composable services Copier lienLien copié sur presse-papiers!
This section contains information about new and deprecated composable services.
-
If you use the default
roles_data
file, these services are included automatically. -
If you use a custom
roles_data
file, add the new services and remove the deprecated services for each relevant role.
Controller Nodes
The following services have been deprecated for Controller nodes. Remove them from your Controller role.
Service | Reason |
---|---|
| OpenStack Platform no longer includes Ceilometer services. |
| This service has been substituted for two new services:
|
| This service is deprecated. |
The following services are new for Controller nodes. Add them to your Controller role.
Service | Reason |
---|---|
| Only required if enabling the Block Storage (cinder) NVMeOF backend, |
| Run the commands to automatically pull and prepare container images relevant to the services in your overcloud. |
| Services for DNS-as-a-Service (designate). |
| Service for Bare Metal Introspection for the overcloud. |
| The networking agent for OpenStack Bare Metal (ironic). |
|
Replacement services for the |
|
Service to remove |
Compute Nodes
The following services are new for Compute nodes. Add them to your Compute role.
Service | Reason |
---|---|
|
Service to enable |
All Nodes
The following services are new for all nodes. Add them to all roles.
Service | Reason |
---|---|
| Service to enable Qpid Dispatch Router service for metrics and monitoring. |
| Service to enable Ansible-based Red Hat Subscription Management. |
4.5. Deprecated parameters Copier lienLien copié sur presse-papiers!
The following parameters are deprecated and have been replaced with role-specific parameters:
Old Parameter | New Parameter |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Update these parameters in your custom environment files.
If your OpenStack Platform environment still requires these deprecated parameters, the default roles_data
file allows their use. However, if you are using a custom roles_data
file and your overcloud still requires these deprecated parameters, you can allow access to them by editing the roles_data
file and adding the following to each role:
Controller Role
Compute Role
Object Storage Role
4.6. Deprecated CLI options Copier lienLien copié sur presse-papiers!
Some command line options are outdated or deprecated in favor of using Heat template parameters, which you include in the parameter_defaults
section of an environment file. The following table maps deprecated options to their Heat template equivalents.
Option | Description | Heat Template Parameter |
---|---|---|
| The number of Controller nodes to scale out |
|
| The number of Compute nodes to scale out |
|
| The number of Ceph Storage nodes to scale out |
|
| The number of Cinder nodes to scale out |
|
| The number of Swift nodes to scale out |
|
| The flavor to use for Controller nodes |
|
| The flavor to use for Compute nodes |
|
| The flavor to use for Ceph Storage nodes |
|
| The flavor to use for Cinder nodes |
|
| The flavor to use for Swift storage nodes |
|
| Defines the flat networks to configure in neutron plugins. Defaults to "datacentre" to permit external network creation |
|
| An Open vSwitch bridge to create on each hypervisor. This defaults to "br-ex". Typically, this should not need to be changed |
|
| The logical to physical bridge mappings to use. Defaults to mapping the external bridge on hosts (br-ex) to a physical name (datacentre). Use this for the default floating network |
|
| Defines the interface to bridge onto br-ex for network nodes |
|
| The tenant network type for Neutron |
|
| The tunnel types for the Neutron tenant network. To specify multiple values, use a comma separated string |
|
| Ranges of GRE tunnel IDs that you want to make available for tenant network allocation |
|
| Ranges of VXLAN VNI IDs that you want to make available for tenant network allocation |
|
| The Neutron ML2 and Open vSwitch VLAN mapping range to support. Defaults to permitting any VLAN on the 'datacentre' physical network |
|
| The mechanism drivers for the neutron tenant network. Defaults to "openvswitch". To specify multiple values, use a comma-separated string |
|
| Disables tunneling in case you aim to use a VLAN segmented network or flat network with Neutron | No parameter mapping. |
| The overcloud creation process performs a set of pre-deployment checks. This option exits if any fatal errors occur from the pre-deployment checks. It is advisable to use this option as any errors can cause your deployment to fail. | No parameter mapping |
| Sets the NTP server to use to synchronize time |
|
These parameters have been removed from Red Hat OpenStack Platform. It is recommended that you convert your CLI options to Heat parameters and add them to an environment file.
4.7. Composable networks Copier lienLien copié sur presse-papiers!
This version of Red Hat OpenStack Platform introduces a new feature for composable networks. If you use a custom roles_data
file, edit the file to add the composable networks to each role. For example, for Controller nodes:
Check the default /usr/share/openstack-tripleo-heat-templates/roles_data.yaml
file for further examples of syntax. Also check the example role snippets in /usr/share/openstack-tripleo-heat-templates/roles
.
The following table contains a mapping of composable networks to custom standalone roles:
Role | Networks Required |
---|---|
Ceph Storage Monitor |
|
Ceph Storage OSD |
|
Ceph Storage RadosGW |
|
Cinder API |
|
Compute |
|
Controller |
|
Database |
|
Glance |
|
Heat |
|
Horizon |
|
Ironic | None required. Uses the Provisioning/Control Plane network for API. |
Keystone |
|
Load Balancer |
|
Manila |
|
Message Bus |
|
Networker |
|
Neutron API |
|
Nova |
|
OpenDaylight |
|
Redis |
|
Sahara |
|
Swift API |
|
Swift Storage |
|
Telemetry |
|
In previous versions, the *NetName
parameters (e.g. InternalApiNetName
) changed the names of the default networks. This is no longer supported. Use a custom composable network file. For more information, see "Using Composable Networks" in the Advanced Overcloud Customization guide.
4.8. Updating network interface templates Copier lienLien copié sur presse-papiers!
A new feature in OpenStack Platform 14 allows you to specify routes for each network in the overcloud’s network_data
file. To accommodate this new feature, the network interface templates now require parameters for the route list in each network. These parameters use the following format:
[network-name]InterfaceRoutes
Even if your overcloud does not use a routing list, you must still include these parameters for each network interface template.
- If you use one of the default NIC template sets, these parameters are included automatically.
-
If you use a custom set of static NIC template, add these new parameters to the
parameters
of each role’s template.
Red Hat OpenStack Platform includes a script to automatically add the missing parameters to your template files.
Procedure
Change to the director’s core template collection:
cd /usr/share/openstack-tripleo-heat-templates
$ cd /usr/share/openstack-tripleo-heat-templates
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
merge-new-params-nic-config-script.py
python script in the tools directory. For example, to update a custom Controller node NIC template, run the script with the following options:python ./tools/merge-new-params-nic-config-script.py --role-name Controller -t /home/stack/ccsosp-templates/custom-nics/controller.yaml
$ python ./tools/merge-new-params-nic-config-script.py --role-name Controller -t /home/stack/ccsosp-templates/custom-nics/controller.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note the following options used with this script:
-
--role-name
defines the name of the role to use as a basis for the template update. -
-t, --template
defines the filename of the NIC template to update. -
-n, --network-data
defines the relative path to thenetwork_data
file. Use this option for customnetwork_data
files. If omitted, the script uses the default file. -
-r, --roles-data
, defines the relative path to theroles_data.yaml
file. Use this option for customroles_data
files. If omitted, the script uses the default file.
-
The script saves a copy of the original template and adds a timestamp extension to the copy’s filename. To compare the differences between the original and updated template, run the following command:
diff /home/stack/ccsosp-templates/custom-nics/controller.yaml.[TIMESTAMP] /home/stack/ccsosp-templates/custom-nics/controller.yaml
$ diff /home/stack/ccsosp-templates/custom-nics/controller.yaml.[TIMESTAMP] /home/stack/ccsosp-templates/custom-nics/controller.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
[TIMESTAMP]
with the timestamp on the original filename.The output displays the new route parameters for that role:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For more information, see "Isolating Networks".
4.9. Preparing Block Storage service to receive custom configuration files Copier lienLien copié sur presse-papiers!
When upgrading to the containerized environment, use the CinderVolumeOptVolumes
parameter to add docker volume mounts. This enables custom configuration files on the host to be made available to the cinder-volume service when it’s running in a container.
For example:
parameter_defaults: CinderVolumeOptVolumes: /etc/cinder/nfs_shares1:/etc/cinder/nfs_shares1 /etc/cinder/nfs_shares2:/etc/cinder/nfs_shares2
parameter_defaults:
CinderVolumeOptVolumes:
/etc/cinder/nfs_shares1:/etc/cinder/nfs_shares1
/etc/cinder/nfs_shares2:/etc/cinder/nfs_shares2
4.10. Next Steps Copier lienLien copié sur presse-papiers!
The overcloud preparation stage is complete. You can now perform an upgrade of the overcloud to 14 using the steps in Chapter 5, Upgrading the Overcloud.