Sles linux appliance update blocked

Public Cloud On-Demand Virtual Machines (VM’s) cannot receive updates

This document (7023919) is provided subject to the disclaimer at the end of this document.

Environment

Amazon Web Services (AWS
Microsoft Azure and Google Compute Platform (GCP) on demand VM for
SUSE Linux Enterprise Server (SLES)
SUSE Linux Enterprise Server for SAP Applications (SLES for SAP)

****************************
This article does not apply to BYOS (Bring your own subscription) images for SUSE Linux Enterprise Server or SUSE Linux Enterprise Server for SAP Applications
*********************************

Situation

The SUSE Public Cloud engineering team builds SLES and SLES for SAP images for AWS, Azure and GCP. For each image published, there are two payment options for the image: BYOS and on-demand. The on-demand virtual machines are configured to connect to the SUSE Public Cloud Update Infrastructure which is maintained by the SUSE Public Cloud Engineering team.

There are three major components that enable on-demand virtual machines to receive updates from SUSE Public Cloud Update Infrastructure.

Registration Client: The registration client obtains public cloud specific update server information from the Region Servers and then uses this information to register the guest instance with the regional update server.

  1. “ zypper se regionServiceClientConfig ” will display the available package specific for the distribution and public cloud platform
  2. Region Servers: The Region Server provides the on-demand virtual machine an update server available within its region. The goal of the overall architecture is to always deliver updates from a local region. By providing an on-demand virtual machine with access to an update server within region, high-latency connections from the on-demand instance to the update server should be avoided.
  3. Update Servers: Each region contains at least two Update Servers available. Update Servers are a cache for the package repositories obtained from SCC (SUSE Customer Center).
Читайте также:  Replace android with linux

The on-demand vm will not receive updates under the conditions below:

  1. An on-demand vm is launched in a network that does not have Internet access.
  2. An on-demand vm routes traffic through a network device or proxy server that is hosted on-premise or in a different datacenter
  3. An on-demand vm routes traffic through a network device or proxy server that is on a different public cloud platform than itself. Example: A GCP on-demand vm routes traffic through a proxy server hosted on Azure.

In the above cases, “ zypper ” will generate errors similar to the messages below:The registration client will also generate log entries in /var/log/cloudregister similar to the entries below.

# zypper up Refreshing service 'SMT-http_smt-ec2_susecloud_net'. Problem retrieving the repository index file for service 'SMT-http_smt-ec2_susecloud_net': Timeout exceeded when accessing 'http://smt-ec2.susecloud.net/repo/repoindex.xml?cookies=0&credentials=SMT-http_smt-ec2_susecloud_net'. Check if the URI is valid and accessible. Refreshing service 'cloud_update'. Timeout exceeded when accessing 'http://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-Module-Basesystem/15/x86_64/update/repodata/repomd.xml?credentials=SMT-http_smt-ec2_susecloud_net'. # zypper up Refreshing service 'cloud_update'. Loading repository data. Reading installed packages. Nothing to do. # zypper refresh Refreshing service 'cloud_update'. Warning: There are no enabled repositories defined. Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories. 2019-05-20 18:24:30,404 ERROR:==================== 2019-05-20 18:24:30,404 ERROR:Attempt 3 of 3 2019-05-20 18:24:30,404 ERROR:Server 54.244.114.254 is unreachable 2019-05-20 18:24:30,404 ERROR:[Service] Could not find any available SMT server, repo refresh will fail 2019-05-20 18:28:12,873 INFO:Using API: regionInfo 2019-05-20 18:29:12,949 ERROR: Attempted: ['54.253.118.149', '50.17.208.31', '54.244.244.107', '54.223.148.145', '54.247.166.75'] 2019-05-20 18:29:12,949 ERROR:Exiting without registration
2019-05-16 21:24:10,282 ERROR:No response from: 54.247.166.75 2019-05-16 21:24:10,282 ERROR:None of the servers responded 2019-05-16 21:24:10,282 ERROR: Attempted: ['54.244.244.107', '50.17.208.31', '54.223.148.145', '54.253.118.149', '54.247.166.75'] 2019-05-16 21:24:10,282 ERROR:Exiting without registration

Resolution

Enable Internet access from the virtual machines to the Public Cloud Update Infrastructure servers. Once the virtual machine has network connectivity to the Public Cloud Update Infrastructure, you can have the on-demand virtual machine register to the SUSE Public Cloud Update Infrastructure by executing the following command as root:

Additional Information

The SUSE Public Cloud Engineering team publishes information about the SUSE Public Cloud Update Infrastructure to a REST API. The published information includes server static IP addresses. For customers that have a security policy that allows only external connections to known IP addresses, the published information can be used to create explicit rules for vms to enable SUSE Public Cloud Update Infrastructure communication.

Читайте также:  Типы ядер ос linux

The REST API can be accessed by installing the package python-susepubliccloudinfo (pint).

Below are the command options available for pint:

pint -h usage: pint -h | --help pint (amazon|google|microsoft) servers [ --filter= ] [ --json | --xml ] [ --region= ] [ --smt | --regionserver ] pint (amazon|google|microsoft) images [ --active | --deleted | --deprecated ] [ --filter= ] [ --json | --xml ] [ --region= ] pint -v | --version

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023919
  • Creation Date: 06-Jun-2019
  • Modified Date:29-Jun-2020
    • SUSE Cloud Application Platform

    For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

    Источник

    No Updates Available for Server

    This document (7016501) is provided subject to the disclaimer at the end of this document.

    Environment

    Situation

    After registering the server and some time has gone by, the server still does not receive any updates. The following output is observed.

    # /usr/bin/zypper --non-interactive --no-gpg-checks refresh Repository 'SLES12-12-0' is up to date. Repository 'SLES12-Pool' is up to date. All repositories have been refreshed. # /usr/bin/zypper --non-interactive --no-gpg-checks list-updates Loading repository data. Reading installed packages. No updates found. # /usr/bin/zypper --non-interactive --no-gpg-checks products Loading repository data. Reading installed packages. S | Repository | Internal Name | Name | Version | Arch | Is Base --+------------+---------------+---------------------------------+---------+--------+-------- i | @System | SLES | SUSE Linux Enterprise Server 12 | 12-0 | x86_64 | Yes # /usr/bin/zypper --non-interactive --no-gpg-checks repos # | Alias | Name | Enabled | Refresh --+-----------------------------------------------------------------+--------------------------+---------+-------- 1 | SLES12-12-0 | SLES12-12-0 | Yes | No 2 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Debuginfo-Pool | SLES12-Debuginfo-Pool | No | No 3 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Debuginfo-Updates | SLES12-Debuginfo-Updates | No | Yes 4 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Pool | SLES12-Pool | Yes | No 5 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Updates | SLES12-Updates | No | Yes

    Resolution

    Register the server properly using SUSEConnect (SLE15, SLE12) or suse_register (SLE11)
    If you do not have a «-Updates» channel for each product, the server is not registered correctly.
    See https://www.suse.com/products/server/how-to-buy/ to get a valid registration code.

    Enable the Updates repositories

    If you don’t see an SLES*-Updates repository at all, you will need to register your server correctly. If the Updates repository is available, it must be enabled. In this case, the repository name is «SLES12-Updates» Do the following to enable the repository.

    # zypper modifyrepo --enable SLES12-Updates Repository 'SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Updates' has been successfully enabled. # /usr/bin/zypper --non-interactive --no-gpg-checks repos # | Alias | Name | Enabled | Refresh --+-----------------------------------------------------------------+--------------------------+---------+-------- 1 | SLES12-12-0 | SLES12-12-0 | Yes | No 2 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Debuginfo-Pool | SLES12-Debuginfo-Pool | No | No 3 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Debuginfo-Updates | SLES12-Debuginfo-Updates | No | Yes 4 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Pool | SLES12-Pool | Yes | No 5 | SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Updates | SLES12-Updates | Yes | Yes # /usr/bin/zypper --non-interactive --no-gpg-checks refresh Repository 'SLES12-12-0' is up to date. Repository 'SLES12-Pool' is up to date. Repository 'SLES12-Updates' is up to date. All repositories have been refreshed.

    Notice that the zypper refresh command now lists the SLES12-Updates repository. You can now attempt to apply all updates to the server with zypper update.

    Cause

    Additional Information

    The SUSEConnect command will give you more details regarding the status of the server’s registration.

    # SUSEConnect --status-text Installed Products: ------------------------------------------ Basesystem Module (sle-module-basesystem/15.3/x86_64) Registered ------------------------------------------ Server Applications Module (sle-module-server-applications/15.3/x86_64) Registered ------------------------------------------ SUSE Linux Enterprise Server 15 SP3 (SLES/15.3/x86_64) Registered Subscription: Regcode: INTERNAL-USE-ONLY-xxxxxxxxxxxxxxxx Starts at: 2018-01-22 18:06:34 UTC Expires at: 2023-01-22 18:06:34 UTC Status: ACTIVE Type: internal ------------------------------------------

    Disclaimer

    This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.

    • Document ID:7016501
    • Creation Date: 13-May-2015
    • Modified Date:22-Jul-2021
      • SUSE Linux Enterprise Server

      For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

      Источник

Оцените статью
Adblock
detector