Bug 621166

Summary: RFE: add options like timeout for spacewalk-repo-sync
Product: [Community] Spacewalk Reporter: Frederic <fsosson>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: low    
Version: 1.0CC: agouny, fsosson, jpazdziora, sellis
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-backend-1.6.53-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-23 10:02:10 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: 737830    

Description Frederic 2010-08-04 12:23:46 UTC
Description of problem:

I am using Spacewalk behind proxies.  I want to syncronize a channel in my Spacewalk by running spacewalk-repo-sync but this command does not care about /etc/yum.conf "timeout" setting.

To reproduct the problem, you can run this command: /usr/bin/spacewalk-repo-sync --channel myChannel --url http://aWebServer/mirror/centos.org/5/updates/i386/ --type yum

Downloading problematic file from the same source using wget on the same machine works well.

The actual result is no way to syncronize because of timeout.


regards,

Frédéric

Comment 1 Jan Pazdziora 2010-10-27 08:31:57 UTC
Mass-aligning under space12, so that we don't lose track of this bugzilla. This however does not mean that we plan (will be able to) address this bug in Spacewalk 1.2.

Comment 2 Jan Pazdziora 2010-11-19 16:04:38 UTC
Mass-moving to space13.

Comment 3 Miroslav Suchý 2011-04-11 07:33:12 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 4 Miroslav Suchý 2011-04-11 07:37:04 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 5 Jan Pazdziora 2011-07-20 11:51:23 UTC
Aligning under space16.

Comment 6 Jan Pazdziora 2011-09-16 14:37:53 UTC
Michael, is spacewalk-repo-sync supposed to use /etc/yum.conf content? Do we have an alternative way of specifying timeouts for spacewalk-repo-sync?

Comment 7 Michael Mráka 2011-09-21 07:02:53 UTC
Well definitely not, /etc/yum.conf is server's yum configuration file, i.e. what's matter when you do 'yum update'.

While spacewalk-repo-sync is spacewalk's (the application) stuff. We'd better introduce our own configuration file e.g. /etc/rhn/spacewalk-repo-sync/yum_src.conf or something like that if there's need for it. And better not mix up server's and application's stuff, they might have very different needs for the same option.

Comment 8 Jan Pazdziora 2011-09-21 07:14:57 UTC
(In reply to comment #7)
> Well definitely not, /etc/yum.conf is server's yum configuration file, i.e.
> what's matter when you do 'yum update'.
> 
> While spacewalk-repo-sync is spacewalk's (the application) stuff. We'd better
> introduce our own configuration file e.g.
> /etc/rhn/spacewalk-repo-sync/yum_src.conf or something like that if there's
> need for it. And better not mix up server's and application's stuff, they might
> have very different needs for the same option.

Right.

In any case, spacewalk-repo-sync not caring about /etc/yum.conf is expected and correct thing to do.

While the initial description is NOTABUG, let's keep this bugzilla open as an RFE, to add the possibility to configure similar things. I might prefer to have this configured in the database rather than in the config file -- you might want to have different timeout/proxy/whatever values for different repositories, so it's best kept close to those repositories data-wise.

Comment 9 Frederic 2011-09-21 07:18:02 UTC
I did report this bug because spacewalk-repo-sync man page tells that the only current supported type is yum. see --type=yum

Comment 10 Jan Pazdziora 2011-09-21 07:44:13 UTC
(In reply to comment #9)
> I did report this bug because spacewalk-repo-sync man page tells that the only
> current supported type is yum. see --type=yum

That's correct. But as Michael explained in comment 7, while both yum the system updater and spacewalk-repo-sync might use the same libraries from the yum package, the /etc/yum.conf is only meant to configure yum (the system updater). We currently don't have the equivalent of /etc/yum.conf for spacewalk-repo-sync.

Comment 11 Frederic 2011-09-21 07:55:17 UTC
I'm OK with what you said.  Maybe just add proxy and timeout parameters to spacewalk-repo-sync command. ex.: --proxy= and --timeout=

Comment 14 Michael Mráka 2011-12-06 13:11:20 UTC
This feature has been implemented in Spacewalk nightly.
You can put yum related options for spacewalk-repo-sync to /etc/rhn/spacewalk-repo-sync/yum.conf.


Spacewalk master commits
commit 85799c76c24077c3466e965059174f04959e1507
    621166 - reuse YumBase instance from __init__
commit 725b6b34ee153add2c7ed3db1871362d8342e91d
    621166 - notice config file in man page
commit 0292816165b447b718edcb7ad3632baffaba8ddb
    621166 - let's enable yum_src tuning (via config file)
    anyway yum options for spacewalk-repo-sync should not interfere with
    machine's yum i.e. /etc/yum.conf; thus separate config file

Comment 15 Milan Zázrivec 2011-12-23 10:02:10 UTC
Spacewalk 1.6 has been released.