How to mirror/sync repos of type yast
Hi List, i need to sync a HPE Foundation Repo into my CLM: https://update1.linux.hpe.com/repo/hpe-foundation/2.4.3/Suse/SLES15-SP3/ Unfortunately it seems to have yast structure: https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata#Reposit... How can I mirror it into uyuni? Configuring it as yum type repo produces this error when trying to sync: *# spacewalk-repo-sync --type yum --channel hpe-foundation-workaround* 16:52:20 ====================================== 16:52:20 | Channel: hpe-foundation-workaround 16:52:20 ====================================== 16:52:20 Sync of channel started. Retrieving repository 'hpe-foundation-workaround' metadata ......................................................................................................................[done] Building repository 'hpe-foundation-workaround' cache ...........................................................................................................................[done] All repositories have been refreshed. 16:52:24 Unexpected error: <class 'FileNotFoundError'> 16:52:24 Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py", line 610, in sync repo_checksum_type = plugin.get_md_checksum_type() File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 750, in get_md_checksum_type infile = fileutils.decompress_open(repomd_path) File "/usr/lib/python3.6/site-packages/uyuni/common/fileutils.py", line 521, in decompress_open file_obj = codecs.open(filename, 'r', encoding="utf8") File "/usr/lib64/python3.6/codecs.py", line 897, in open file = builtins.open(filename, mode, buffering) *FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw/hpe-foundation-workaround/repodata/repomd.xml'* 16:52:24 Total time: 0:00:04 Thanks, BR, Heiner
Hi List, i find it hard to believe that nobody has any information about staging YaST repos in uyuni. Is this really such a rare case? BR Heiner Am Fr., 17. Juni 2022 um 17:46 Uhr schrieb Heiner Wulfhorst <email@heiwu.de
:
Hi List,
i need to sync a HPE Foundation Repo into my CLM: https://update1.linux.hpe.com/repo/hpe-foundation/2.4.3/Suse/SLES15-SP3/ Unfortunately it seems to have yast structure: https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata#Reposit...
How can I mirror it into uyuni?
Configuring it as yum type repo produces this error when trying to sync:
*# spacewalk-repo-sync --type yum --channel hpe-foundation-workaround*
16:52:20 ======================================
16:52:20 | Channel: hpe-foundation-workaround
16:52:20 ======================================
16:52:20 Sync of channel started.
Retrieving repository 'hpe-foundation-workaround' metadata ......................................................................................................................[done]
Building repository 'hpe-foundation-workaround' cache ...........................................................................................................................[done]
All repositories have been refreshed.
16:52:24 Unexpected error: <class 'FileNotFoundError'>
16:52:24 Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py", line 610, in sync
repo_checksum_type = plugin.get_md_checksum_type()
File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 750, in get_md_checksum_type
infile = fileutils.decompress_open(repomd_path)
File "/usr/lib/python3.6/site-packages/uyuni/common/fileutils.py", line 521, in decompress_open
file_obj = codecs.open(filename, 'r', encoding="utf8")
File "/usr/lib64/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
*FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw/hpe-foundation-workaround/repodata/repomd.xml'*
16:52:24 Total time: 0:00:04
Thanks,
BR,
Heiner
On miércoles, 22 de junio de 2022 11:34:10 (CEST) Heiner Wulfhorst wrote:
Hi List,
i find it hard to believe that nobody has any information about staging YaST repos in uyuni. Is this really such a rare case?
I don't think we support them as of today. @Pablo?
BR Heiner
Am Fr., 17. Juni 2022 um 17:46 Uhr schrieb Heiner Wulfhorst <email@heiwu.de
Hi List,
i need to sync a HPE Foundation Repo into my CLM: https://update1.linux.hpe.com/repo/hpe-foundation/2.4.3/Suse/SLES15-SP3/ Unfortunately it seems to have yast structure: https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata#Repos itory_layout
How can I mirror it into uyuni?
Configuring it as yum type repo produces this error when trying to sync:
*# spacewalk-repo-sync --type yum --channel hpe-foundation-workaround*
16:52:20 ======================================
16:52:20 | Channel: hpe-foundation-workaround
16:52:20 ======================================
16:52:20 Sync of channel started.
Retrieving repository 'hpe-foundation-workaround' metadata .......................................................................... ............................................[done]
Building repository 'hpe-foundation-workaround' cache .......................................................................... .................................................[done]
All repositories have been refreshed.
16:52:24 Unexpected error: <class 'FileNotFoundError'>
16:52:24 Traceback (most recent call last): File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py", line 610, in sync
repo_checksum_type = plugin.get_md_checksum_type()
File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/y um_src.py", line 750, in get_md_checksum_type
infile = fileutils.decompress_open(repomd_path)
File "/usr/lib/python3.6/site-packages/uyuni/common/fileutils.py", line
521, in decompress_open
file_obj = codecs.open(filename, 'r', encoding="utf8")
File "/usr/lib64/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
*FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/r aw/hpe-foundation-workaround/repodata/repomd.xml'*
16:52:24 Total time: 0:00:04
Thanks,
BR,
Heiner
-- Julio González Gil Release Engineer, SUSE Manager and Uyuni jgonzalez@suse.com
Heiner, could you please list the content of this path on your Uyuni server: /var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/r aw/hpe-foundation-workaround/repodata/ I want to see the actual metatada downloaded by Zypper, as I see it was able to read the metadata for the repository but somehow reposync failed processing it I have no clear idea about if this types of repos are explicitely supported or not. El 22/6/22 a las 10:42, Julio Gonzalez via Uyuni Users escribió:
On miércoles, 22 de junio de 2022 11:34:10 (CEST) Heiner Wulfhorst wrote:
Hi List,
i find it hard to believe that nobody has any information about staging YaST repos in uyuni. Is this really such a rare case? I don't think we support them as of today.
@Pablo?
BR Heiner
Am Fr., 17. Juni 2022 um 17:46 Uhr schrieb Heiner Wulfhorst <email@heiwu.de
Hi List,
i need to sync a HPE Foundation Repo into my CLM: https://update1.linux.hpe.com/repo/hpe-foundation/2.4.3/Suse/SLES15-SP3/ Unfortunately it seems to have yast structure: https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata#Repos itory_layout
How can I mirror it into uyuni?
Configuring it as yum type repo produces this error when trying to sync:
*# spacewalk-repo-sync --type yum --channel hpe-foundation-workaround*
16:52:20 ======================================
16:52:20 | Channel: hpe-foundation-workaround
16:52:20 ======================================
16:52:20 Sync of channel started.
Retrieving repository 'hpe-foundation-workaround' metadata .......................................................................... ............................................[done]
Building repository 'hpe-foundation-workaround' cache .......................................................................... .................................................[done]
All repositories have been refreshed.
16:52:24 Unexpected error: <class 'FileNotFoundError'>
16:52:24 Traceback (most recent call last): File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py", line 610, in sync
repo_checksum_type = plugin.get_md_checksum_type()
File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/y um_src.py", line 750, in get_md_checksum_type
infile = fileutils.decompress_open(repomd_path)
File "/usr/lib/python3.6/site-packages/uyuni/common/fileutils.py", line
521, in decompress_open
file_obj = codecs.open(filename, 'r', encoding="utf8")
File "/usr/lib64/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
*FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/r aw/hpe-foundation-workaround/repodata/repomd.xml'*
16:52:24 Total time: 0:00:04
Thanks,
BR,
Heiner
-- Pablo Suárez Hernández <psuarezhernandez@suse.de> SUSE Manager Development Team SUSE Software Solutions - https://www.suse.com/
Hi Pablo, hi list, sorry for the delay, i got distracted by another task :/ I wonder how much effort / costs it would take to enable YaST style Repos in Uyuni / SuMa? Unfortunately the information you asked for isn't present (anymore?): dehwlluyunip01:~ # cd /var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw/ dehwlluyunip01:/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw # ll hpe* total 0 dehwlluyunip01:/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw # ll|grep hpe drwxr-xr-x 2 root root 6 Jun 22 21:14 hpe-foundation-workaround dehwlluyunip01:/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/raw # i changed repo label in uyuni and linked it to a new channel (again with type "yum"). Here's the output i got: dehwlluyunip01:~ # *spacewalk-repo-sync --type yum --channel hpe-foundation-remote-yast* 15:16:50 ====================================== 15:16:50 | Channel: hpe-foundation-remote-yast 15:16:50 ====================================== 15:16:50 Sync of channel started. Retrieving repository 'hpe-foundation-remote-yast' metadata ..............................................................................[error] 15:21:01 RepoMDError: Cannot access repository. Repository 'hpe-foundation-remote-yast' is invalid. [hpe-foundation-remote-yast| https://downloads.linux.hpe.com/SDR/project/hpe-foundation/2.4.5/Suse/SLES15...] Valid metadata not found at specified URL History: - [|] Error trying to read from ' https://downloads.linux.hpe.com/SDR/project/hpe-foundation/2.4.5/Suse/SLES15... ' - Timeout exceeded when accessing ' https://downloads.linux.hpe.com/SDR/project/hpe-foundation/2.4.5/Suse/SLES15... '. Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'hpe-foundation-remote-yast' because of the above error. Could not refresh the repositories because of errors. 15:21:01 Total time: 0:04:11 In the meantime i was able to use a local copy of hpe-foundation-2.4.5-cd1-media-sles15sp3-x86_64.iso with added yum metadata ("createrepo sgi/x86_64/") as a base for my CLM channel. This seems to be a valid workaround if one doesn't need patches synced automatically and yast-exclusive features like patterns. BR Heiner Am Mi., 22. Juni 2022 um 11:55 Uhr schrieb Pablo Suárez Hernández < psuarezhernandez@suse.de>:
Heiner, could you please list the content of this path on your Uyuni server:
/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/r aw/hpe-foundation-workaround/repodata/
I want to see the actual metatada downloaded by Zypper, as I see it was able to read the metadata for the repository but somehow reposync failed processing it
I have no clear idea about if this types of repos are explicitely supported or not.
On miércoles, 22 de junio de 2022 11:34:10 (CEST) Heiner Wulfhorst wrote:
Hi List,
i find it hard to believe that nobody has any information about staging YaST repos in uyuni. Is this really such a rare case? I don't think we support them as of today.
@Pablo?
BR Heiner
Am Fr., 17. Juni 2022 um 17:46 Uhr schrieb Heiner Wulfhorst < email@heiwu.de
Hi List,
i need to sync a HPE Foundation Repo into my CLM:
https://update1.linux.hpe.com/repo/hpe-foundation/2.4.3/Suse/SLES15-SP3/
Unfortunately it seems to have yast structure:
https://en.opensuse.org/openSUSE:Standards_YaST2_Repository_Metadata#Repos
itory_layout
How can I mirror it into uyuni?
Configuring it as yum type repo produces this error when trying to sync:
*# spacewalk-repo-sync --type yum --channel hpe-foundation-workaround*
16:52:20 ======================================
16:52:20 | Channel: hpe-foundation-workaround
16:52:20 ======================================
16:52:20 Sync of channel started.
Retrieving repository 'hpe-foundation-workaround' metadata
..........................................................................
............................................[done]
Building repository 'hpe-foundation-workaround' cache
..........................................................................
.................................................[done]
All repositories have been refreshed.
16:52:24 Unexpected error: <class 'FileNotFoundError'>
16:52:24 Traceback (most recent call last): File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/reposync.py",
line 610, in sync
repo_checksum_type = plugin.get_md_checksum_type()
File
"/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/y
um_src.py", line 750, in get_md_checksum_type
infile = fileutils.decompress_open(repomd_path)
File "/usr/lib/python3.6/site-packages/uyuni/common/fileutils.py",
El 22/6/22 a las 10:42, Julio Gonzalez via Uyuni Users escribió: line
521, in decompress_open
file_obj = codecs.open(filename, 'r', encoding="utf8")
File "/usr/lib64/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
*FileNotFoundError: [Errno 2] No such file or directory:
'/var/cache/rhn/reposync/1/hpe_foundation_workaround_repo/var/cache/zypp/r
aw/hpe-foundation-workaround/repodata/repomd.xml'*
16:52:24 Total time: 0:00:04
Thanks,
BR,
Heiner
-- Pablo Suárez Hernández <psuarezhernandez@suse.de> SUSE Manager Development Team
SUSE Software Solutions - https://www.suse.com/
participants (3)
-
Heiner Wulfhorst
-
Julio Gonzalez
-
Pablo Suárez Hernández