Bug 516566

Summary: yum repo for association to a channel can't have repodata out of packages-dir
Product: [Community] Spacewalk Reporter: Sandro Mathys <sandro>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.6CC: mmraka
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: 2010-02-04 18:06:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 543511    

Description Sandro Mathys 2009-08-10 13:58:42 UTC
Description of problem:
For the yum repo association to a channel, the yum repo must have the repodata directory inside the directory in which the packages are. It should be possible to have the repodata directory one level higher, i.e. in the same directory where the directory with the packages is in, too.

i.e. instead of:
http://server/mirror/Packages/*.rpm
http://server/mirror/Packages/repodata/

this should also be possible:
http://server/mirror/Packages/*.rpm
http://server/mirror/repodata/

Version-Release number of selected component (if applicable):
# rpm -qa | grep spacewalk
spacewalk-backend-0.6.30-1.el5
spacewalk-html-0.6.19-1.el5
spacewalk-backend-server-0.6.30-1.el5
spacewalk-backend-app-0.6.30-1.el5
spacewalk-backend-package-push-server-0.6.30-1.el5
spacewalk-base-minimal-0.6.19-1.el5
spacewalk-monitoring-selinux-0.6.12-1.el5
spacewalk-setup-0.6.21-1.el5
spacewalk-0.6.4-1.el5
spacewalk-backend-xml-export-libs-0.6.30-1.el5
spacewalk-backend-config-files-tool-0.6.30-1.el5
spacewalk-backend-iss-0.6.30-1.el5
spacewalk-java-0.6.42-1.el5
spacewalk-pxt-0.6.19-1.el5
spacewalk-moon-0.6.19-1.el5
spacewalk-monitoring-0.6.7-1.el5
spacewalk-selinux-0.6.13-1.el5
spacewalk-repo-0.6-1.el5
spacewalk-java-config-0.6.42-1.el5
spacewalk-doc-indexes-0.6.1-1.el5
spacewalk-backend-config-files-common-0.6.30-1.el5
spacewalk-backend-config-files-0.6.30-1.el5
spacewalk-backend-applet-0.6.30-1.el5
spacewalk-taskomatic-0.6.42-1.el5
spacewalk-base-0.6.19-1.el5
spacewalk-grail-0.6.19-1.el5
spacewalk-sniglets-0.6.19-1.el5
spacewalk-admin-0.6.3-1.el5
spacewalk-schema-0.6.22-1.el5
spacewalk-certs-tools-0.6.3-1.el5
spacewalk-config-0.6.13-1.el5
spacewalk-java-lib-0.6.42-1.el5
spacewalk-branding-0.6.8-1.el5
spacewalk-backend-sql-0.6.30-1.el5
spacewalk-backend-xmlrpc-0.6.30-1.el5
spacewalk-backend-iss-export-0.6.30-1.el5
spacewalk-backend-xp-0.6.30-1.el5
spacewalk-search-0.6.11-1.el5
spacewalk-cypress-0.6.19-1.el5
spacewalk-backend-tools-0.6.30-1.el5

How reproducible:
Always

Steps to Reproduce:
1. create a repo with 'external' repodata
2. spacewalk-repo-sync -> fail
3. mv repodata <packages-dir>
4. spacewalk-repo-sync -> works

Comment 1 Michael Mráka 2010-02-04 18:06:32 UTC
Not able to reproduce:

# mkdir /tmp/repodata
# mkdir /tmp/repodata/Packages
# cp /mnt/local/spacewalk-0.1/i386/*rpm /tmp/repodata/Packages/
# createrepo /tmp/repodata/
190/190 - Packages/perl-Authen-PAM-0.14-14.el5.i386.rpm                         
Saving Primary metadata
Saving file lists metadata
Saving other metadata
# ll /tmp/repodata/
total 28
drwxr-xr-x 2 root root 16384 Feb  4 18:56 Packages
drwxr-xr-x 2 root root  4096 Feb  4 18:56 repodata
[root@xen90 ~]# spacewalk-repo-sync --type yum --channel yumrepo1 --label 1 --url file:///tmp/repodata/
Repo file:///tmp/repodata/ has 190 packages.
1/190 : perl-DateTime-TimeZone-0.59-5.el5-0.noarch
2/190 : jabberd-2.0s10-3.42.el5-0.i386
...
190/190 : perl-Authen-PAM-0.14-14.el5-0.i386
Sync complete
#

Comment 2 Michael Mráka 2010-02-16 12:59:05 UTC
Spacewalk 0.8 has been released