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

Bug 1490801

Summary: spacewalk-repo-sync aborts when child channel has no repo
Product: [Community] Spacewalk Reporter: Ben Roberts <ben.roberts>
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.7CC: jdobes
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-backend-2.8.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-20 12:31:03 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: 1564160    

Description Ben Roberts 2017-09-12 09:22:29 UTC
Description of problem:
spacewalk-repo-sync is the handy tool to sync all children of a base channel. It will hard fail if any child channel doesn't have an associated repo.

We have a base channel for CentOS 7, child channels for each additional CentOS repo, and some mirrors of third party repositories for vendor software. These all need to be sync'd on a regular basis, and spacewalk-repo-sync seems to be the right tool for the job.

We also have a handful of child channels which contain software pushed via rhnpush, or uploaded via the spacewalk webui. These repositories have no upstream source, and thus have no repositories.


Version-Release number of selected component (if applicable):
2.6 currently installed, but code is unchanged as of master for 2.7.

How reproducible:
Always

Steps to Reproduce:
1. Create a child channel with no associated repository
2. Try to run spacewalk-repo-sync with -p
3. 

Actual results:
Command fails with "Channel foo-centos7-x86_64 Channel has no URL associated"

Expected results:
All child channels with associated repositories should be synchronised.
All child channels with no associated repository should be ignored.

Additional info:
I will submit a github pull request for this shortly, and update this ticket with the link.

Comment 1 Ben Roberts 2017-09-12 09:31:07 UTC
Github pull request: https://github.com/spacewalkproject/spacewalk/pull/571

Comment 2 Jan Dobes 2017-09-15 12:21:29 UTC
merged into spacewalk.git(master):

1d7f57cea610bcbc42393e9b7e06f15be235ab5d

Comment 3 Jiří Dostál 2018-03-26 12:16:24 UTC
Moving ON_QA

Comment 4 Jiří Dostál 2018-04-20 12:31:03 UTC
Spacewalk 2.8 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes28