Bug 929238 - spacewalk-repo-sync don't sync content of custom repos
Summary: spacewalk-repo-sync don't sync content of custom repos
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space20
TreeView+ depends on / blocked
 
Reported: 2013-03-29 15:09 UTC by Martin Minar
Modified: 2016-07-04 00:57 UTC (History)
2 users (show)

Fixed In Version: spacewalk-backend-1.10.16-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-02 12:59:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Minar 2013-03-29 15:09:09 UTC
Description of problem:
Custom repo created into /tmp and containing newly built rpms is not synced using spacewalk-repo-sync on Fedora 18.

Version-Release number of selected component (if applicable):
Only on Fedora18
Spacewalk versions 1.9 and Nightly (1.10)
spacewalk-backend-tools-1.10.15-1.fc18.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create repo containing several rpms in /tmp/tmp.5cB0x7Z1r0
2. Create channel named spacewalk-repo-sync-test-channel-17458
3. Run spacewalk-repo-sync -c spacewalk-repo-sync-test-channel-17458 -u file:///tmp/tmp.5cB0x7Z1r0
  
Actual results:
Repo URL: file:///tmp/tmp.5cB0x7Z1r0
Packages in repo:                10
Packages already synced:          0
Packages to sync:                10
1/10 : test-srsJ-0.1-1-0.noarch
Downloaded package test-srsJ-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
2/10 : test-srsI-0.1-1-0.noarch
Downloaded package test-srsI-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
3/10 : test-srsH-0.1-1-0.noarch
Downloaded package test-srsH-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
4/10 : test-srsG-0.1-1-0.noarch
Downloaded package test-srsG-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
5/10 : test-srsF-0.1-1-0.noarch
Downloaded package test-srsF-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
6/10 : test-srsE-0.1-1-0.noarch
Downloaded package test-srsE-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
7/10 : test-srsD-0.1-1-0.noarch
Downloaded package test-srsD-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
8/10 : test-srsC-0.1-1-0.noarch
Downloaded package test-srsC-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
9/10 : test-srsB-0.1-1-0.noarch
Downloaded package test-srsB-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
10/10 : test-srsA-0.1-1-0.noarch
Downloaded package test-srsA-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.
Linking packages to channel.
Repo file:///tmp/tmp.5cB0x7Z1r0 has 0 errata.
Sync completed.
Total time: 0:00:00

Expected results:
Repo URL: file:///tmp/tmp.5cB0x7Z1r0
Packages in repo:                10
Packages already synced:          0
Packages to sync:                10
1/10 : test-srsD-0.1-1-0.noarch
2/10 : test-srsB-0.1-1-0.noarch
3/10 : test-srsE-0.1-1-0.noarch
4/10 : test-srsH-0.1-1-0.noarch
5/10 : test-srsC-0.1-1-0.noarch
6/10 : test-srsJ-0.1-1-0.noarch
7/10 : test-srsI-0.1-1-0.noarch
8/10 : test-srsG-0.1-1-0.noarch
9/10 : test-srsA-0.1-1-0.noarch
10/10 : test-srsF-0.1-1-0.noarch
Linking packages to channel.
Repo file:///tmp/tmp.5cB0x7Z1r0 has 0 errata.
Sync completed.
Total time: 0:00:01

Additional info:

Comment 2 Michael Mráka 2013-04-05 13:13:34 UTC
Fixed in spacewalk nightly by
commit 2b27e1ce58be1db588539d383953a4c31b3c06a9
    929238 - fixed local path for file:// repos
    Fedora 18 has new yum which verifies downloaded packages via
    package.verifyLocalPkg() and complains about wrong path.
    
    fixing
    1/10 : test-srsJ-0.1-1-0.noarch
    Downloaded package test-srsJ-0.1-1.noarch, from spacewalk-repo-sync-test-channel-17458, but it was invalid.

Comment 3 Tomáš Kašpárek 2013-08-02 12:59:14 UTC
Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.