Questo contenuto non è disponibile nella lingua selezionata.
Chapter 6. How to set subscription attributes
Red Hat subscriptions combine technology with use cases to help procurement and technical teams make the best purchasing and deployment decisions for their business needs. When the same product is offered in two different subscriptions, these use cases differentiate between the options. They inform the decision-making process at the time of purchase and remain associated with the subscription throughout its life cycle to help determine how the subscription is used.
Red Hat provides a method for you to associate use case information with products through the application of subscription attributes. These subscription attributes can be supplied at product installation time or as an update to the product.
The subscriptions service helps you to align your software deployments with the use cases that support them and compare actual consumption to the capacity provided by the subscription profile of your account. Proper, automated maintenance of the subscription attributes for your inventory is important to the accuracy of the subscriptions service reporting.
Subscription attributes can generally be organized into the following use cases:
- technical use case
- Attributes that describe how the product will be used upon deployment. Examples include role information for RHEL used as a server or alternatively used as a workstation.
- business use case
- Attributes that describe how the product will be used in relation to your business environment and workflows. Examples include usage as part of a production environment or alternatively as part of a disaster recovery environment.
- operational use case
- Attributes that describe various operational characteristics such as how the product will be supported. Examples include a service level agreement (SLA) of premium, or a service type of L1-L3.
The subscription attributes might be configured from the operating system or its management tools, or they might be configured from settings within the product itself. Collectively, these subscription attributes might be known as system purpose, subscription settings, or similar names across all of these tools.
Subscription attributes are used by the Hybrid Cloud Console services such as the inventory service to build the most accurate usage profile for products in your inventory. The subscriptions service uses the subscription attributes found and reported by these other tools to filter data about your subscriptions, enabling you to view this data with more granularity. For example, filtering your RHEL subscriptions to show only those with an SLA of premium could help you determine the current usage of those premium subscriptions compared to your overall capacity for premium subscriptions.
The quality of subscription attribute data can greatly affect the accuracy and usefulness of the subscriptions service data. Therefore, a best practice is to ensure that these attributes are properly set, both for current use and any possible future expansion of subscription attribute use within the subscriptions service.
6.1. Setting subscription attributes for RHEL
You can set subscription attributes for the RHEL product with RHEL or Satellite. For RHEL, the subscription attributes are known as system purpose.
You should set the system purpose subscription attributes from only one tool. If you use multiple tools, there is a possibility for mismatched settings. Because these tools report data to the Hybrid Cloud Console tools at different intervals, or heartbeats, and because the subscriptions service shows some information as a once-per-day snapshot based on last-reported data, adding subscription attributes to more than one tool could potentially affect the quality of the subscriptions service data.
Setting the subscription attributes with RHEL
You can use a few different methods to set the system purpose values, depending on whether you set them at RHEL installation or configuration time, whether you are installing RHEL interactively or automatically, and whether you are setting system purpose from a command line interface or with another method. For more specific guidance related to the installation or configuration process that you are following, see the system purpose information in these RHEL 9 guides, or see similar guides in the applicable version of RHEL:
Setting the subscription attributes from Satellite
For Satellite, the methods to set subscription attributes are described in instructions for editing the system purpose of a single host or multiple hosts. For more information about setting system purpose, see the section about administering hosts in the Satellite Managing Hosts guide:
6.2. Setting subscription attributes for Red Hat OpenShift
You can set subscription attributes from Red Hat OpenShift Cluster Manager for version 4. For version 3, you use the same reporting tools as those defined for RHEL.
Setting the subscription attributes for Red Hat OpenShift 4
You can set subscription attributes at the cluster level from Red Hat OpenShift Cluster Manager, where the attributes are described as subscription settings.
- From the Clusters view, select a cluster to display the cluster details.
- Click Edit Subscription Settings on the cluster details page or from the Actions menu.
- Make any needed changes to the values for the subscription attributes and then save those changes.
Setting the subscription attributes for Red Hat OpenShift 3
You can set subscription attributes at the node level by using the same methods that you use for RHEL, setting these values from RHEL itself, Red Hat Subscription Management, or Satellite. As described in that section, set subscription attributes by using only one method so that the settings are not duplicated.
If your subscription contains a mix of socket-based and core-based nodes, you can also set subscription attributes that identify this fact for each node. As you view your Red Hat OpenShift usage, you can use a filter to switch between cores and sockets as the unit of measurement.
To set this subscription attribute data, run the applicable command for each node:
For core-based nodes:
# echo '{"ocm.units":"Cores/vCPU"}' | sudo tee /etc/rhsm/facts/openshift-units.facts
For socket-based nodes:
# echo '{"ocm.units":"Sockets"}' | sudo tee /etc/rhsm/facts/openshift-units.facts
Setting subscription attributes for other Red Hat OpenShift subscriptions
Some offerings are of one subscription type only, for example, Red Hat OpenShift AI or Red Hat Advanced Cluster Security for Kubernetes. Therefore, setting subscription attributes is not required.
6.3. Setting subscription attributes for Red Hat Ansible
Currently, the only Red Hat Ansible offering that is tracked by the subscriptions service is Red Hat Ansible Automation Platform as a managed service. The Red Hat Ansible Automation Platform managed service offering is of one subscription type only. Therefore, setting subscription attributes is not required.