Questo contenuto non è disponibile nella lingua selezionata.
Chapter 2. Administering hosts
This chapter describes creating, registering, administering, and removing hosts.
2.1. Creating a host in Red Hat Satellite Copia collegamentoCollegamento copiato negli appunti!
Creating a host is part of the host provisioning process. There are multiple provisioning methods and each requires different configuration of Satellite and Capsules. For more information, see Provisioning hosts.
2.2. Cloning hosts Copia collegamentoCollegamento copiato negli appunti!
You can clone existing hosts.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- In the Actions menu, click Clone.
- On the Host tab, ensure to provide a Name different from the original host.
- On the Interfaces tab, ensure to provide a different IP address.
- Click Submit to clone the host.
For more information, see Section 2.1, “Creating a host in Red Hat Satellite”.
2.3. Associating a virtual machine with Satellite from a hypervisor Copia collegamentoCollegamento copiato negli appunti!
Procedure
- In the Satellite web UI, navigate to Infrastructure > Compute Resources.
- Select a compute resource.
- On the Virtual Machines tab, click Associate VMs to associate all VMs or select Associate VM from the Actions menu to associate a single VM.
2.4. Editing the system purpose of a host Copia collegamentoCollegamento copiato negli appunti!
You can edit the system purpose attributes for a Red Hat Enterprise Linux host. System purpose allows you to set the intended use of a system on your network and improves reporting accuracy in the Subscriptions service of the Red Hat Hybrid Cloud Console. For more information about system purpose, see Configuring System Purpose using the subscription-manager command-line tool in Automatically installing RHEL 8.
Prerequisites
- The host that you want to edit must be registered with the subscription-manager.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the host you want to modify.
- On the Overview tab, click Edit on the System purpose card.
- Select the system purpose attributes for your host.
- Click Save.
CLI procedure
Log in to the host and edit the required system purpose attributes. For example, set the usage type to
Production
and the role toRed Hat Enterprise Linux Server
. For the list of values, see Configuring System Purpose using the subscription-manager command-line tool in Automatically installing RHEL 8.subscription-manager syspurpose set usage 'Production' subscription-manager syspurpose set role 'Red Hat Enterprise Linux Server'
# subscription-manager syspurpose set usage 'Production' # subscription-manager syspurpose set role 'Red Hat Enterprise Linux Server'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the system purpose attributes for this host:
subscription-manager syspurpose
# subscription-manager syspurpose
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.5. Editing the system purpose of multiple hosts Copia collegamentoCollegamento copiato negli appunti!
You can edit the system purpose attributes of Red Hat Enterprise Linux hosts. For more information about system purpose, see Configuring System Purpose using the subscription-manager command-line tool in Automatically installing RHEL 8.
Prerequisites
- The hosts that you want to edit must be registered with the subscription-manager.
Procedure
- In the Satellite web UI, navigate to Hosts > Content Hosts and select Red Hat Enterprise Linux 8 hosts that you want to edit.
- Click the Select Action list and select Manage System Purpose.
Select the system purpose attributes that you want to assign to the selected hosts. You can select one of the following values:
- A specific attribute to set an all selected hosts.
- No Change to keep the attribute set on the selected hosts.
- None (Clear) to clear the attribute on the selected hosts.
- Click Assign.
2.6. Changing a module stream for a host Copia collegamentoCollegamento copiato negli appunti!
If you have a host running Red Hat Enterprise Linux 8, you can modify the module stream for the repositories you install.
You can enable, disable, install, update, and remove module streams from your host in the Satellite web UI.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the host you want to modify.
- Click the Content tab, then click the Module streams tab.
- Click the vertical ellipsis next to the module and select the action you want to perform. You get a REX job notification once the remote execution job is complete.
2.7. Enabling custom repositories on content hosts Copia collegamentoCollegamento copiato negli appunti!
You can enable all custom repositories on content hosts using the Satellite web UI.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts and select a host.
- Select the Content tab, then select Repository sets.
- From the dropdown, you can filter the Repository type column to Custom.
- Select the desired number of repositories or click the Select All checkbox to select all repositories, then click the vertical ellipsis, and select Override to Enabled.
2.8. Changing the content source of a host Copia collegamentoCollegamento copiato negli appunti!
A content source is a Capsule that a host consumes content from. Use this procedure to change the content source for a host.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the host you want to modify.
- Click the vertical ellipsis icon next to the Edit button and select Change content source.
- Select Content Source, Lifecycle Content View, and Content Source from the lists.
Click Change content source.
NoteSome lifecycle environments can be unavailable for selection if they are not synced on the selected content source. For more information, see Adding lifecycle environments to Capsule Servers in Managing content.
You can either complete the content source change using remote execution or manually. To update configuration on host using remote execution, click Run job invocation. For more information about running remote execution jobs, see Configuring and setting up remote jobs in Managing hosts. To update the content source manually, execute the autogenerated commands from Change content source on the host.
2.9. Changing the environment of a host Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to change the environment of a host.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the host you want to modify.
- On the Content view environment card, click the options icon and select Edit content view environments.
- Select the environment.
- Select the content view.
- Click Save.
2.10. Changing the managed status of a host Copia collegamentoCollegamento copiato negli appunti!
Hosts provisioned by Satellite are Managed by default. When a host is set to Managed, you can configure additional host parameters from Satellite Server. These additional parameters are listed on the Operating System tab. If you change any settings on the Operating System tab, they will not take effect until you set the host to build and reboot it.
If you need to obtain reports about configuration management on systems using an operating system not supported by Satellite, set the host to Unmanaged.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the host you want to modify.
- Click Edit.
- Click Manage host or Unmanage host to change the host’s status.
- Click Submit.
2.11. Configuring Tracer on a host Copia collegamentoCollegamento copiato negli appunti!
You can install Tracer on hosts and access Traces on Satellite. Tracer displays a list of outdated services and applications that need to be restarted, as well as asks you to restart the host after, for example, a kernel update. Traces is the output generated by Tracer in the Satellite web UI.
Prerequisites
- The host is registered to Red Hat Satellite.
- Red Hat Satellite Client 6 repository for the operating system version of the host is synchronized on Satellite Server, available in the content view and the lifecycle environment of the host, and enabled for the host. For more information, see Changing the repository sets status for a host in Satellite in Managing content.
- Remote execution is enabled.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select your host.
- On the Traces tab, click Enable Traces.
-
Select the provider to install
katello-host-tools-tracer
from the list. - Click Enable Tracer. You get a REX job notification after the remote execution job is complete.
- If you get a list of applications that need to be restarted, select the ones that you want to restart.
Click Restart app, then click one of these buttons:
- Restart via remote execution
Restart via customized remote execution
The first option restarts the application immediately, while the second one allows you to examine and customize the REX job.
2.12. Restarting applications on a host Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to restart applications from the Satellite web UI.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click the name of the hosts you want to modify.
- Select the Traces tab.
- Select applications that you want to restart.
- Select Restart via remote execution from the Restart app list. You will get a REX job notification once the remote execution job is complete.
2.13. Assigning a host to a specific organization Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to assign a host to a specific organization. For general information about organizations and how to configure them, see Managing organizations in Administering Red Hat Satellite.
If your host is already registered with a different organization, you must first unregister the host before assigning it to a new organization. To unregister the host, run subscription-manager unregister
on the host. After you assign the host to a new organization, you can re-register the host.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select the checkbox of the host you want to change.
- From the Select Action list, select Assign Organization. A new option window opens.
From the Select Organization list, select the organization that you want to assign your host to. Select the checkbox Fix Organization on Mismatch.
NoteA mismatch happens if there is a resource associated with a host, such as a domain or subnet, and at the same time not associated with the organization you want to assign the host to. The option Fix Organization on Mismatch will add such a resource to the organization, and is therefore the recommended choice. The option Fail on Mismatch will always result in an error message. For example, reassigning a host from one organization to another will fail, even if there is no actual mismatch in settings.
- Click Submit.
2.14. Assigning a host to a specific location Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to assign a host to a specific location. For general information about locations and how to configure them, see Managing locations in Administering Red Hat Satellite.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select the checkbox of the host you want to change.
- From the Select Action list, select Assign Location. A new option window opens.
Navigate to the Select Location list and choose the location that you want for your host. Select the checkbox Fix Location on Mismatch.
NoteA mismatch happens if there is a resource associated with a host, such as a domain or subnet, and at the same time not associated with the location you want to assign the host to. The option Fix Location on Mismatch will add such a resource to the location, and is therefore the recommended choice. The option Fail on Mismatch will always result in an error message. For example, reassigning a host from one location to another will fail, even if there is no actual mismatch in settings.
- Click Submit.
2.15. Switching between hosts Copia collegamentoCollegamento copiato negli appunti!
When you are on a particular host in the Satellite web UI, you can navigate between hosts without leaving the page by using the host switcher. Click ⇄ next to the hostname. This displays a list of hosts in alphabetical order with a pagination arrow and a search bar to find the host you are looking for.
2.16. Viewing host details from a content host Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to view the host details page from a content host.
Procedure
- In the Satellite web UI, navigate to Hosts > Content Hosts
- Click the content host you want to view.
- Select the Details tab to see the host details page.
The cards in the Details tab show details for the System properties, BIOS, Networking interfaces, Operating system, Provisioning templates, and Provisioning. Registered content hosts show additional cards for Registration details, Installed products, and HW properties providing information about Model, Number of CPU(s), Sockets, Cores per socket, and RAM.
2.17. Selecting host columns Copia collegamentoCollegamento copiato negli appunti!
You can select what columns you want to see in the host table on the Hosts > All Hosts page.
It is not possible to deselect the Name column. The Name column serves as a primary identification method of the host.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click Manage columns.
Select columns that you want to display. You can select individual columns or column categories. Selecting or deselecting a category selects or deselects all columns in that category.
NoteSome columns are included in more than one category, but you can display a column of a specific type only once. By selecting or deselecting a specific column, you select or deselect all instances of that column.
Verification
- You can now see the selected columns in the host table.
2.18. Removing a host from Satellite Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to remove a host from Satellite. To use the CLI instead of the Satellite web UI, see the CLI procedure.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts or Hosts > Content Hosts. Note that there is no difference from what page you remove a host, from All Hosts or Content Hosts. In both cases, Satellite removes a host completely.
- Select the hosts that you want to remove.
- From the Select Action list, select Delete Hosts.
- Click Submit to remove the host from Satellite permanently.
By default, the Destroy associated VM on host delete
setting is set to no
. If a host record that is associated with a virtual machine is deleted, the virtual machine will remain on the compute resource.
To delete a virtual machine on the compute resource, navigate to Administer > Settings and select the Provisioning tab. Setting Destroy associated VM on host delete
to yes
deletes the virtual machine if the host record that is associated with the virtual machine is deleted. To avoid deleting the virtual machine in this situation, disassociate the virtual machine from Satellite without removing it from the compute resource or change the setting.
CLI procedure
Delete your host from Satellite:
hammer host delete \ --id My_Host_ID \ --location-id My_Location_ID \ --organization-id My_Organization_ID
$ hammer host delete \ --id My_Host_ID \ --location-id My_Location_ID \ --organization-id My_Organization_ID
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, you can use
--name My_Host_Name
instead of--id My_Host_ID
.
2.18.1. Disassociating a virtual machine from Satellite without removing it from a hypervisor Copia collegamentoCollegamento copiato negli appunti!
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Select the checkbox to the left of the hosts that you want to disassociate.
- From the Select Action list, click Disassociate Hosts.
- Optional: Select the checkbox to keep the hosts for future action.
- Click Submit.
2.19. Lifecycle status of RHEL hosts Copia collegamentoCollegamento copiato negli appunti!
Satellite provides multiple mechanisms to display information about upcoming End of Support (EOS) events for your Red Hat Enterprise Linux hosts:
- Notification banner
- A column on the Hosts index page
- Alert on the Hosts index page for each host that runs Red Hat Enterprise Linux with an upcoming EOS event in a year as well as when support has ended
- Ability to Search for hosts by EOS on the Hosts index page
- Host status card on the host details page
For any hosts that are not running Red Hat Enterprise Linux, Satellite displays Unknown in the RHEL Lifecycle status and Last report columns.
EOS notification banner
When either the end of maintenance support or the end of extended lifecycle support approaches in a year, you will see a notification banner in the Satellite web UI if you have hosts with that Red Hat Enterprise Linux version. The notification provides information about the Red Hat Enterprise Linux version, the number of hosts running that version in your environment, the lifecycle support, and the expiration date. Along with other information, the Red Hat Enterprise Linux lifecycle column is visible in the notification.
2.19.1. Displaying RHEL lifecycle status Copia collegamentoCollegamento copiato negli appunti!
You can display the status of the end of support (EOS) for your Red Hat Enterprise Linux hosts in the table on the Hosts index page.
Procedure
- In the Satellite web UI, navigate to Hosts > All Hosts.
- Click Manage columns.
- Select the Content column to expand it.
- Select RHEL Lifecycle status.
- Click Save to generate a new column that displays the Red Hat Enterprise Linux lifecycle status.
2.19.2. Host search by RHEL lifecycle status Copia collegamentoCollegamento copiato negli appunti!
You can use the Search field to search hosts by rhel_lifecycle_status
. It can have one of the following values:
-
full_support
-
maintenance_support
-
approaching_end_of_maintenance
-
extended_support
-
approaching_end_of_support
-
support_ended