Update Kernels

Pre requisites:

  • All target nodes should be running RHEL, Rocky Linux, or Ubuntu OS.

  • Download the kernel packages using local_repo.yml.

  • Verify that the cluster nodes are in the booted state.

Install kernel updates to cluster nodes

  1. Go to utils/software_update and edit software_update_config.yml, as per the parameters table below.

Parameters for Kernel Update

Parameter

Details

softwares_list

string Required

  • Mandatory, when package_list is not provided

  • This variable contains the list of software group mentioned in software_config.json.

  • Example:

    softwares_list: 
     - custom 
    
  • In the above case, user is required to create custom.json under input/config/<cluster_os_type>/<cluster_os_version>/custom.json. For example: input/config/ubuntu/22.04/custom.json

  • This json should list the kernel packages to be downloaded during local_repo.yml execution, and for installation as part of software_update.yml execution. Kernel package name of Ubuntu is linux-generic, whereas for RHEL or Rocky, it’s just kernel*. For example:

     {
     "custom": {
         "cluster": [
             {
                 "package": "linux-generic",
                 "type": "deb",
                 "repo_name": "jammy"
              }
          ]
       }
    }
    
package_list

string Required

  • Mandatory, when softwares_list is not provided

  • This variable contains the list of packages to be installed on remote nodes.

  • Example:

    package_list: 
     - linux-generic
    
  • Kernel package name of Ubuntu is linux-generic, whereas for RHEL or Rocky, it’s just kernel*.

reboot_required

boolean Required

  • Indicates whether the remote nodes listed will be rebooted.

  • For Kernel update, the value reboot_required must be set to true.

  1. To run the playbook, run the following commands:

    cd utils/software_update
    ansible-playbook software_update.yml -i inventory
    

Note

Inventory should contain the IP/hostname/service tag of the target nodes. For example,

10.5.0.101
10.5.0.102
  1. After execution is completed, verify that kernel packages are on the nodes using:
    • For RHEL/Rocky Linux: rpm -qa | grep kernel

    • For Ubuntu: dpkg -l | grep linux-generic

If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.