Cloud instance repos fail due to outdated packages
This document (000021552) is provided subject to the disclaimer at the end of this document.
Environment
Azure Cloud
AWS Cloud
Situation
Resolution
- Create a PAYG instance with the same OS as instance with broken repos
- login as root
- Create a temporary directory:
mkdir -p /root/packages/rpms
For Google run:
zypper --pkg-cache-dir /root/packages/ download cloud-regionsrv-client cloud-regionsrv-client-plugin-gce regionServiceClientConfigGCE python3-gcemetadata SUSEConnect python3-cssselect python3-cssselect python3-lxml python3-M2Crypto python3-zypp-plugin
For AWS:
zypper --pkg-cache-dir /root/packages/ download cloud-regionsrv-client cloud-regionsrv-client-plugin-ec2 regionServiceClientConfigEC2 python3-ec2metadata SUSEConnect python3-cssselect python3-cssselect python3-lxml python3-M2Crypto python3-zypp-plugin
For Azure:
zypper --pkg-cache-dir /root/packages/ download cloud-regionsrv-client cloud-regionsrv-client-plugin-azure regionServiceClientConfigAzure python3-azuremetadata SUSEConnect python3-cssselect python3-cssselect python3-lxml python3-M2Crypto python3-zypp-plugin
Then run:
find /root/packages/ -type f -name "*.rpm" -exec cp {} /root/packages/rpms/ \; cd /root/packages tar -czvf suse-public-registration.tgz rpms
-
Transfer suse-public-registration.tgz to the broken instance
tar xvfz suse-public-registration.tgz cd rpms zypper --no-refresh --no-remote --non-interactive install *.rpm registercloudguest --force-new
Cause
Status
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:000021552
- Creation Date: 09-Sep-2024
- Modified Date:10-Sep-2024
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com