Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
Applies to Subscription Management Tool 11.3

4 Managing Repositories with YaST SMT Server Management

You can use the YaST SMT Server Management module for day-to-day management. SMT Server Management enables and disables the mirroring of repositories, the staging flag for repositories, and performs the mirroring and staging.

4.1 Starting SMT Management Module

SMT Management is a YaST module. To start the module, do one of the following:

  • Start YaST and select Network Services, then SMT Server Management.

  • Enter yast2 smt in the command line as root.

The SMT Management application window opens with the Repositories tab active.

List of Repositories
Figure 4.1: List of Repositories

4.2 Viewing and Managing Repositories

In the Repositories tab, you can see the list of all available package repositories for SMT. For each repository, the list shows the repository's name, target product and architecture, mirroring and staging flag, date of last mirroring, and a short description. You can sort the list by clicking on the relevant column's header, and scroll the list items using the scrollbars on the window's right side.

4.2.1 Filtering Repositories

You can also filter out groups of repositories with the Filter drop-down list in the upper left part of the window. The filter list items are collected and assembled dynamically from the first word of the repositories' names. If you use a filter to limit the number of displayed repositories, you can always go back and view all of them by selecting All from the Filter drop-down list. You can also use more than one filter in sequence.

4.2.2 Mirroring Repositories

Before you can start to offer package repositories, you need to create a local mirror of their packages. To do this, follow the procedure:

  1. From the list, select the line containing the name of the repository you want to mirror.

  2. Click on the selected line highlighting it.

  3. Click on the Toggle Mirroring button in the lower left part of the window. In the Mirroring column of the selected repository, a check mark appears. If the repository was already selected for mirroring before, the check mark will disappear, and the repository will not be mirrored anymore.

  4. Hit the Mirror Now button and the repository will be mirrored immediately.

  5. A pop-up window appears with the information about mirroring status and result.

  6. Click OK and the original window with the list of repositories will be refreshed.

Status of Mirroring Process
Figure 4.2: Status of Mirroring Process

4.3 Staging Repositories

After the mirroring is finished, you can stage the mirrored repositories. In SMT, staging is a process where you create either testing or production repositories based on the mirrored ones. The testing repository helps you examine the repository and its packages before you make them available in a production environment. To make repositories available for staging, do the following:

  1. From the repository list, select the line containing the name of the repository you want to manage.

  2. Click on the selected line, highlighting it.

  3. Click on the Toggle Staging button in the lower left part of the window next to the Toggle Mirroring button. In the Staging column of the selected repository, a check mark appears. If the repository was already selected for staging before, the check mark will disappear, and the repository will not be available for staging.

  4. Repeat steps 1 to 3 for all directory whose staging flag you wish to change.

Important
Important: Toggle Staging Button Not Active

You can only stage the repositories that were previously selected for mirroring. If it is not the case, the Toggle Staging button will not be active.

Once you mirror the repositories and make them available for staging, click on the Staging tab. In the upper left part of the window, there is a Repository Name drop-down list of all repositories which are available for staging. There the repository names have the name of the staging group attached in parentheses. Select the one you want to stage and a list of packages of this repository appears below. Information about the patch name, its version and category, testing and production flags, and a short summary is available for each patch.

Next to the Repository Name drop-down list, there is a Patch Category filter. It helps you to list only the patches that belong to one of the predefined categories.

If the selected repository allows for patch filtering, you can toggle the status flag for individual patches. Do so by clicking on the Toggle Patch Status button in the lower left part of the window.

Before creating a repository of packages that are available in the production environment, you need to create and test the testing repository. Click on the Create Snapshot drop-down menu and select From Full Mirror to Testing menu item. A small pop-up window appears informing you about the staging process. After the testing repository snapshot is created, the relevant check marks in the Testing column will be displayed.

Testing Snapshot Created
Figure 4.3: Testing Snapshot Created
Important
Important: Creating a Production Snapshot

After you enable staging for an update repository, you have to create its production snapshot to make it available to the clients. Otherwise the clients will not be able to find the update repository.

After you have examined the newly created testing repository, you can safely create a production one. Click on the Create Snapshot drop-down menu and select From Testing to Production menu item. A small pop-up window appears informing you about the linking the testing repository to the production one. After the production snapshot is created, the relevant check marks in the Production column will be displayed. Also, a green check mark appears in the Repository Name drop-down list.

4.4 Checking the Client Status

The third tab called Clients Status contains the status information about all the clients that use the repositories on your SMT server. It is divided into two main parts: the list of the clients and the detailed information.

You can read the client's host name, the date and time of the last network contact with the SMT server, and its update status. The update status can be one of the following:

Up-to-date

The client packages are updated to their last version available in the production repository.

Updates available

This status means that there are updates available for the client that are either optional or recommended.

Critical

Either security patches or package manager patches are available for the client.

In the lower part of the window, more detailed information about the highlighted client is available. It usually consists of extended status information and detailed information about the number and types of available updates.

Clients Status
Figure 4.4: Clients Status
Print this page