Bug 621166
Summary: | RFE: add options like timeout for spacewalk-repo-sync | ||
---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Frederic <fsosson> |
Component: | Server | Assignee: | Michael Mráka <mmraka> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 1.0 | CC: | 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
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. Mass-moving to space13. We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5. We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5. Aligning under space16. 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? 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. (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. I did report this bug because spacewalk-repo-sync man page tells that the only current supported type is yum. see --type=yum (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. I'm OK with what you said. Maybe just add proxy and timeout parameters to spacewalk-repo-sync command. ex.: --proxy= and --timeout= 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 Spacewalk 1.6 has been released. |