Manage kernel version

Manage kernel version

Note

This feature is available starting from the MCP 2019.2.7 maintenance update. Before using the feature, follow the steps described in Apply maintenance updates.

During a node provisioning, the default image kernel version is set by MAAS. If the node is not provisioned by MAAS, the kernel version is taken from the node image. However, you can manually configure the kernel version as required to control which kernel version to install.

To manage the kernel version:

  1. Open your Git project repository with the Reclass model on the cluster level.

  2. In configuration files for the required nodes, specify the following example pillar. For example, use infra/config/init.yml for the cfg node and openstack/proxy.yml for the prx nodes.

    linux:
      system:
        kernel:
          type: generic
          extra: true
          headers: true
          version: 4.15.0-65
          hwe:
            type: hwe
            version: 16.04
            kernel_version: 4.15.0.65
    
  3. Select from the following options:

    • If you perform the changes before running an MCP cluster deployment or before adding new nodes, proceed with the cluster deployment since the changes apply automatically.

    • If you perform the changes after the MCP cluster deployment, apply the following states from the Salt Master node:

      salt '*' saltutil.sync_all
      salt '*' state.sls linux.system.kernel