Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1070866

Summary: spacewalk-repo-sync fails in case both options --sync-kickstart and --url are specified.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hutaƙ <jhutar>
Severity: medium Docs Contact:
Priority: low    
Version: 560CC: jhutar, tlestach
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:20:01 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1358815    
Attachments:
Description Flags
Patch none

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