Bug 1321210

Summary: spacewalk-common-channels ini - repository for Centos 7 i386 URL is incorrect / has changed
Product: [Community] Spacewalk Reporter: P Sorensen <pauls>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.4CC: eherget, pstudeni
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-27 19:07:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1484117    

Description P Sorensen 2016-03-25 01:23:43 UTC
Description of problem:

spacewalk-common-channels.ini - Centos 7 i387 has incorrect repository URL


Version-Release number of selected component (if applicable):

Latest (Spacewalk Server 2.4)


How reproducible:

Very


Steps to Reproduce:

1.  # spacewalk-repo-sync -l | grep centos7 | grep 'centos.org' | grep i386
centos7-i386-updates | http://mirrorlist.centos.org/?release=7&arch=i386&repo=updates
centos7-i386-fasttrack | http://mirrorlist.centos.org/?release=7&arch=i386&repo=fasttrack
centos7-i386-centosplus | http://mirrorlist.centos.org/?release=7&arch=i386&repo=centosplus
centos7-i386-extras | http://mirrorlist.centos.org/?release=7&arch=i386&repo=extras
centos7-i386-contrib | http://mirrorlist.centos.org/?release=7&arch=i386&repo=contrib
centos7-i386 | http://mirrorlist.centos.org/?release=7&arch=i386&repo=os

2.  # spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=updates'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=updates is not custom or does not exist.

# spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=fasttrack'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=fasttrack is not custom or does not exist.

# spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=centosplus'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=centosplus is not custom or does not exist.

# spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=extras'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=extras is not custom or does not exist.

# spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=contrib'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=contrib is not custom or does not exist.

# spacewalk-repo-sync -c 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=os'
Channel http://mirrorlist.centos.org/?release=7&arch=i386&repo=os is not custom or does not exist.

3.

Actual results:

None of the supplied repository URLs in spacewalk-common-channels.ini work as expected for Centos 7 i286


Expected results:

Would have expected the URLs to point to the actual i386 repository locations


Additional info:

The proper URL is along the lines of http://mirror.centos.org/altarch/7/

For CentOS 7, the i386 has been moved to 'altarch' - http://seven.centos.org/2015/10/centos-linux-7-32-bit-x86-i386-architecture-released/

For the Centos 7 i386 'Extras' repository the URL should be http://mirror.centos.org/altarch/7/extras/i386/repodata/ (even though this is empty at the moment)

Comment 1 Pavel Studeník 2017-07-26 13:36:20 UTC
1. CentOS7 is available only for x86_64

2. Incorrect using spacewalk-repo-sync

>> man spacewalk-repo-sync

Synchronize single channel to a repository specified on the command line.

>> spacewalk-repo-sync -c custom-channel --url=http://example.com/yum-repo/

You confuse channel with repository. At first you have to create new channel and then you can sync content of repository to created channel.

Correct use:

spacewalk-repo-sync -c 'name-channel' -u 'http://mirrorlist.centos.org/?release=7&arch=i386&repo=os'

Comment 2 Pavel Studeník 2017-07-27 10:08:26 UTC
fix in a1d4eda75659e4ab1c27ac35090aa26d35882fc4

Comment 3 Eric Herget 2017-09-27 19:07:53 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27