Bug 757711

Summary: Spacewalk-repo-sync could be started with no repository available.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Mikulka <jmikulka>
Severity: medium Docs Contact:
Priority: medium    
Version: 541CC: cperry, jmikulka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 21:55:17 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: 924232    

Description Dimitar Yordanov 2011-11-28 13:21:06 UTC
Description of problem:

Spacewalk-repo-sync  could be started for a Custom channel even if there is no Yum repository associated with the channel. 

Version-Release number of selected component (if applicable):
spacewalk-java-1.2.39-108.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Channels -> Manage Software Channels -> create new channel
2. Channels -> Manage Software Channels -> Custom Channel -> Repositories -> Sync
3. In "Repository" section you should see:
    No repositories are currently associated with this channel.
  
4. Press button  "Sync Now"

Actual results:
1. Message on WebUI
Repository sync scheduled for Name custom_chann_sync_repo_sun27nov2011_09_35_55_11138.

2. Logs : /var/log/rhn/rhn_taskomatic_daemon.log

INFO   | jvm 1    | 2011/11/28 14:04:36 | 2011-11-28 14:04:36,528 [DefaultQuartzScheduler_Worker-7] ERROR com.redhat.rhn.manager.satellite.SystemCommandExecutor - Error encountered executing (args=[/usr/bin/spacewalk-repo-sync, --channel, custom_chann_sync_repo_sun27nov2011_09_35_55_11138, --type, yum])
INFO   | jvm 1    | 2011/11/28 14:04:36 | 2011-11-28 14:04:36,528 [DefaultQuartzScheduler_Worker-7] ERROR com.redhat.rhn.manager.satellite.SystemCommandExecutor - Error message from process: Channel has no URL associated

Expected results:
1. Warning Massage on Web UI
2. spacewalk-repo-sync is not started.

Additional info:

I guess the problem could be reproduced via API as well. (Not tested yet)

Comment 1 Tomas Lestach 2012-07-23 15:22:19 UTC
spacewalk.git: ed0d7452516b3a6be4311a93db2060856b00dbf5

Comment 4 Clifford Perry 2013-10-01 21:55:17 UTC
Satellite 5.6 has been released. This bug was tracked under the release.  

This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
before release). 

Moving to CLOSED CURRENT_RELEASE. 

Text from Upgrade Erratum follows:

Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1395.html