[Spacewalk-list] spacewalk-repo-sysnc and repo sync on web

olx69 ope-linux at gmx.de
Wed Apr 6 09:04:09 UTC 2011


> % I installed my spacewalk 1.3 server using postgresql on centos 5.5 as
> % suggested on web page in a VM (kvm) - arch is x86/64. I created the
> % repositories and channels further more. Due to limited internet
> % bandwidth I did download the centos repositories base, updates, ...
> % epel, spacewalk-client to my host and I did sync with spacewalk by using
> % command line
> % $ spacewalk-repo-sync --channel=centos5-base-x86_64
> % --url=ftp://user:pass@myhost/Downloads/... --type=yum
> % After some hours the repositories/channels where in sync. Now, to
> % administrate, I did try to sync using the web interface - this doesn't
> % seems to work, I don't see any process like spacewalk-repo-sync
> % --channel=centos5-base-x86_64 --url=http://centos.mirrors.com/... - the
> % url I've got from spacewalk repo url.
> 
> Do you have repo configured in webUI (Channels > Manage Software
> Channels > Manage Repositories)?

yes, I did create (centos) repos, create channels, bind channel with
repos - expect sync channel in webui.

> Which url ftp://user:pass@myhost/... or http://centos.mirrors.com/...?

using command line util the url was ftp://user:pass@myhost/... I've read
that the url isn't stored anywhere by using spacewalk-repo-sync.

Now, for convience (I don't have a cron job at this time) I did try to
sync using webui since the repo url is stored
(http://centos.mirrors.com/...)

For my understanding it should now continue to sync with the given url
shown/given from webui.

> Is taskomatic running RepoSyncTask job?
>   # grep RepoSyncTask /var/log/rhn/rhn_taskomatic_daemon.log
> 
> % Do I have always perform the sync on command line from now (since I sync
> % it from there)? How to investigate?
> 
> No. You can run it from taskomatic (set up from webUI) as well as from
> comandline at the same time.
> 
> % For the (web-api) schedule the same, taskomatic is running (as far I can
> % see - I miss some basic about java). BTW, the file
> % '/etc/rhn/default/rhn_taskomatic_daemon.conf' has a lib path to oracle
> % which isn't used here. Can I remove it?

I will check at later at home.

> It's redundant but any changes to default configs (moreover if you are
> not 100% sure) will make your life harder.

Thanks for that hint :) You mean the files at /etc/rhn/default/* ? As I
read at https://fedorahosted.org/spacewalk/wiki/TaskoMatic the settings
from webui I should find at some config file but I didn't. For each
channel the sync can have different times (following the webui). Where
are this information stored?

Regards,
Olaf





More information about the Spacewalk-list mailing list