Content Lifecycle Management Examples
This section contains some common examples of how you can use content lifecycle management. Use these examples to build your own personalized implementation.
Creating a Project for a Monthly Patch Cycle
A project for a monthly patch cycle consists of:
-
Creating a filter for a project
-
Adding a filter to a project
-
Applying the filter to a new build environment
-
Excluding a patch from a project
-
Including a patch in a project
Creating a Filter for the Project
The By Date
filter excludes all patches released after a specified date.
This filter is useful for your CLM projects that follow a monthly patch cycle.
By Date
Filter-
In the SUSE Manager Web UI, navigate to
and click Create Filter. -
In the
Filter Name
field, type a name for your filter. For example,Exclude patches by date
. -
In the
Filter Type
field, selectPatch (Issue date)
. -
In the
Matcher
field,later or equal
is autoselected. -
Select the date and time.
-
Click Save.
Adding the Filter to the Project
-
In the SUSE Manager Web UI, navigate to
and select a project from the list. -
Click Attach/Detach Filters link to see all available filters
-
Select the new
Exclude patches by date
filter. -
Click Save.
Applying the Filter to the Environment
The new filter is added to your filter list, but it still needs to be applied to the project. To apply the filter you need to build the first environment.
Click Build to build the first environment.
-
OPTIONAL: Add a message. You can use messages to help track the build history.
-
Check that the filter has worked correctly by using the new channels on a test server.
-
Click Promote to move the content to the next environment. The build will take longer if you have a large number of filters, or they are very complex.
When you promote content from one environment to the next, a copy of the metadata is created. Filters determine which metadata will be used to define your channels, as well the packages within those channels. |
Excluding a Patch from the Project
Tests may help you discover issues. When an issue is found, exclude the problem patch released before the by date filter.
-
In the SUSE Manager Web UI, navigate to
and click Create Filter. -
In the
Filter Name
field, enter a name for the filter. For example,Exclude openjdk patch
. -
In the
Filter Type
field, selectPatch (Advisory Name)
. -
In the
Matcher
field, selectequals
. -
In the
Advisory Name
field, type a name for the advisory. For example,SUSE-15-2019-1807
. -
Click Save.
-
Navigate to
and select your project. -
Click Attach/Detach Filters link, select
Exclude openjdk patch
, and click Save.
When you rebuild a previous environment with the Build button, the new exclude filter uses the previous by date
filter.
Including a Patch in the Project
In this example, you have received a security alert.
An important security patch was released several days after the first of the month you are currently working on.
The name of the new patch is SUSE-15-2019-2071
.
You need to include this new patch into your environment.
Use the |
-
In the SUSE Manager Web UI, navigate to
and click Create Filter. -
In the
Filter Name
field, type a name for the filter. For example,Include kernel security fix
. -
In the
Filter Type
field, selectPatch (Advisory Name)
. -
In the
Matcher
field, selectequals
. -
In the
Advisory Name
field, typeSUSE-15-2019-2071
, and checkAllow
. -
Click Save to store the filter.
-
Navigate to
and select your project from the list. -
Click Attach/Detach Filters, and select
Include kernel security patch
. -
Click Save.
-
Click Build to rebuild the environment.
Update an Existing Monthly Patch Cycle
When a monthly patch cycle is complete, you can update the patch cycle for the next month.
-
In the
by date
field, change the date of the filter to the next month. Alternatively, create a new filter and change the assignment to the project. -
Check if the exclude filter for
SUSE-15-2019-1807
can be detached from the project. There may be a new patch available to fix this issue. -
Detach the
include
filter. The filter is included by default. -
Complete updating your filters.
-
Rebuild the project to create a new environment with patches for the next month.
Enhance a Project with Live Patching
This section covers setting up filters to create environments for live patching.
When you are preparing to use live patching, there are some important considerations
|
Exclude Packages with a Higher Kernel Version
In this example you update your systems with the SUSE-15-2019-1244
patch.
This patch contains kernel-default-4.12.14-150.17.1-x86_64
.
You need to exclude all patches which contain a higher version of kernel-default
.
Procedure: Excluding Packages with a Higher Kernel Version
-
In the SUSE Manager Web UI, navigate to
, and click Create Filter. -
In the
Filter Name
field, type a name for your filter. For example,Exclude kernel greater than 4.12.14-150.17.1
. -
In the
Filter Type
field, selectPatch (Contains Package)
. -
In the
Matcher
field, selectversion greater than
. -
In the
Package Name
field, typekernel-default
. -
Leave the the
Epoch
field empty. -
In the
Version
field, type4.12.14
. -
In the
Release
field, type150.17.1
. -
Click Save to store the filter.
-
Navigate to
and select your project. -
Click Attach/Detach Filters.
-
Select
Exclude kernel greater than 4.12.14-150.17.1
, and click Save.
When you click Build, a new environment is created. The new environment contains all the kernel patches up to the version you installed.
All kernel patches with higher kernel versions are removed. Live patching kernels will stay available as long as they are not the first in a series. |
Update the Project for Next Patch Month
To update the project to the next patch month you operate similar to the case before. Important is, that you do not change the "Exclude kernel greater than 4.12.14-150.17.1: …" Filter. With it you keep normal kernel-updates away, but take the latest live patches up to the selected month.
Switch to a New Kernel Version for Live Patching
Live Patching for a specific kernel version is only available for one year. After one year you must update the kernel on your systems. The following changes of the environment should be executed:
-
Decide which kernel version you will upgrade to. For example:
4.12.14-150.32.1
-
Create a new kernel version Filter.
-
Detach the previous filter Exclude kernel greater than 4.12.14-150.17.1 and attach the new filter.
Click Build to rebuild the environment. The new environment contains all kernel patches up to the new kernel version you selected. Systems using these channels will have the kernel update available for installation. You will need to reboot systems after they have performed the upgrade. The new kernel will remain valid for one year. All packages installed during the year will match the current live patching kernel filter.