Bug 1070866 - spacewalk-repo-sync fails in case both options --sync-kickstart and --url are specified.
Summary: spacewalk-repo-sync fails in case both options --sync-kickstart and --url ar...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 560
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks: sat580-low
TreeView+ depends on / blocked
 
Reported: 2014-02-27 15:43 UTC by Dimitar Yordanov
Modified: 2017-06-21 12:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:20:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch (1.81 KB, patch)
2014-02-27 15:48 UTC, Dimitar Yordanov
no flags Details | Diff

Description Dimitar Yordanov 2014-02-27 15:43:52 UTC
Description of problem:
spacewalk-repo-sync  fails in case both options --sync-kickstart and --url are specified.

Version-Release number of selected component (if applicable):
spacewalk-utils-2.0.2-13

How reproducible:
100%

Steps to Reproduce:
1.Create Custom Software channel. 
2.Create Yum repository that comprises Kickstart Tree.

Actual results:
# spacewalk-repo-sync -c custom-channel --sync-kickstart --url http://test.redhat.com/repo/
Repo URL: http://testredhat.com/repo/
Packages in repo:                 1
Packages already synced:          0
Packages to sync:                 1
1/1 : test-regular-Test_RPM_305-0.1-1-0.x86_64
Linking packages to channel.
Repo http://ibm-x3690x5-01.rhts.eng.bos.redhat.com/repo/ has 0 errata.
ERROR: null value in column "label" violates not-null constraint

Sync completed.
Total time: 0:00:00

Expected results:
If the same repository is set up via WebUI and assigned to the channel the kickstart tree is synchronized correctly.

The option --sync-kickstart should be ignored for repositories set from CLI via option [-u|--url] as they can not be identified.

Comment 1 Dimitar Yordanov 2014-02-27 15:48:54 UTC
Created attachment 868600 [details]
Patch

Comment 3 Matej Kollar 2015-01-30 12:17:36 UTC
Upstream work

Spacewalk.git: fab0b57dafdc5ebe7956e6d432d01645be41498d


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