Re: [Spacewalk-list] GPG Key setting for Channel Details?
Cameron Kerr wrote: % In my experience its somewhat advisory (ie. will work without it), and % I believe you can have packages that are signed with a different key % if needed. You would create your own GPG key for package signing using % the GPG tools. GPG key in spacewalk channel has the same meaning as gpgkey option in yum.conf, i.e. A URL pointing to the ASCII-armored GPG key file for the repository. This option is used if yum needs a public key to ver- ify a package and the required key hasn’t been imported into the RPM database. If this option is set, yum will automatically import the key from the specified URL.. There's just one difference - for spacewalk channel yum will automatically import only keys from file:///etc/pki/rpm-gpg for security resons. % Word of warning though, do not create a signing key on RHEL6 and use % it to sign packages that will be deployed to RHEL5, as this will cause % incompatibilities and the packages will not validate correctly on % RHEL5. Instead, either use a separate RHEL5 and RHEL6 key, or if you % need a package be consumed on both RHEL5 and RHEL6, sign them with a % RHEL5 key. Regards, -- Michael Mráka Satellite Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] How to set Spacewalk server as yum server
Hi Jeremy, Thank you for your reply. Since we have not yet set Kickstart on the Spacewalk server, the method you suggested doesn't work here. nz From: Jeremy Davis jdavis4...@gmail.com To: spacewalk-list@redhat.com Sent: Tuesday, October 16, 2012 5:13:30 PM Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server Hello, Why not use the same urls that are used for the kickstart configuration. There are URLs that you can use as baseurls for a yum configuration. I am currently using them in my environment for servers that are unable to join Spacewalk for what ever reason. Works really well and doesn't require any management or any additional commands other than updating the distro trees when a new version is released (CentOS Major versions like 5.7 to 5.8). All packages that are available from Spacewalk are available to these URLs without any other need for external applications to update. On Tue, Oct 16, 2012 at 2:39 PM, Paul Robert Marino prmari...@gmail.com wrote: Under the hood mrepo runs createrepo for you On Oct 16, 2012 3:35 PM, fn...@yahoo.com wrote: Hi, I believe that this is a good subject, but haven't found related info yet online about it. Sorry if the subject has already been discussed in this great mailing list before. I'd like to set our Spacewalk server as a Yum server, so clients can use yum command to install/upgrade single package. The Spacewalk server has been working well. Here is what I did on the client: spacewalkclient# cat /etc/yum.repos.d/spacewalk-client.repo [spacewalk-client] name=Spacewalk Client Tools baseurl=http://spacewalkserver.ourdomain.com/mrepo/rhel_5_server-x86_64/RPMS.updates #gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2012 enabled=1 gpgcheck=0 What else do I need to do to implement the job? I think I don't need to run 'createrepo' command since repodata sub-directories have already been created by the spacewalk-mrepo sync process. Thank you! nz ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] Spacewalk not pushing packages.
Hi, First post. I've installed and setup Spacewalk on a CentOS 5.8 machine (all of my clients are CentOS 5.8 32 and 64 bit) I have configured Spacewalk to download various CentOS and other repositories and all the clients are registered with the server and have osad installed and running. Spacewalk shows that each client is registered and requires a various number of update packages but, apart from a job appearing in the Schedule Pending Actions when I send packages, nothing much happens. Eventually it fails. The other thing I don't understand is that unless I have .repo files under /etc/yum.repo.d/ for repositories which can supply the update packages, when I do yum update I get no results - despite Spacewalk telling me that there should be. Also, when I DO add .repo files under /etc/yum.repo.d/ that point to repositories which can supply the update packages the downloaded packages come from those external servers rather than the local Spacewalk server. I must have something configured incorrectly. Any pointers? Steve -- = Steven J. Reilly, EDA Engineer Allegro Microsystems Europe Ltd Adam Ferguson House, Eskmills Park, Musselburgh, EH21 7PQ, Scotland. Tel:+44 (0)131 273 4306 Fax:+44 (0)131 273 4301 e-mail: srei...@allegromicro.com Any views expressed by me in this mail are mine ... all mine! Tux-power! Sent from Thunderbird on Linux Mint 13 (xfce) ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Spacewalk not pushing packages.
Steven, What do you get for output when you do this on a client: Yum --verbose repolist ? Robert -Original Message- From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Steven Reilly Sent: Wednesday, October 17, 2012 10:00 AM To: spacewalk-list@redhat.com Subject: [Spacewalk-list] Spacewalk not pushing packages. Hi, First post. I've installed and setup Spacewalk on a CentOS 5.8 machine (all of my clients are CentOS 5.8 32 and 64 bit) I have configured Spacewalk to download various CentOS and other repositories and all the clients are registered with the server and have osad installed and running. Spacewalk shows that each client is registered and requires a various number of update packages but, apart from a job appearing in the Schedule Pending Actions when I send packages, nothing much happens. Eventually it fails. The other thing I don't understand is that unless I have .repo files under /etc/yum.repo.d/ for repositories which can supply the update packages, when I do yum update I get no results - despite Spacewalk telling me that there should be. Also, when I DO add .repo files under /etc/yum.repo.d/ that point to repositories which can supply the update packages the downloaded packages come from those external servers rather than the local Spacewalk server. I must have something configured incorrectly. Any pointers? Steve -- = Steven J. Reilly, EDA Engineer Allegro Microsystems Europe Ltd Adam Ferguson House, Eskmills Park, Musselburgh, EH21 7PQ, Scotland. Tel:+44 (0)131 273 4306 Fax:+44 (0)131 273 4301 e-mail: srei...@allegromicro.com Any views expressed by me in this mail are mine ... all mine! Tux-power! Sent from Thunderbird on Linux Mint 13 (xfce) ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] Reinstalling Spacewalk
I had to reinstall Spacewalk, but I already sync the channels over to the appropriate folder. Any idea as to how I can get the new version of spacewalk see the repo that I synced previously? Right now the channel is showing 0 packages even though I did point Spacewalk to the correct folder. Thx -- Sam Sen Sr Systems Administrator 215.913.4797 Aria Systems, Inc. 600 Reed Road, Suite 302 Broomall, PA 19008 www.ariasystems.comhttp://www.ariasystems.com/ ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Spacewalk not pushing packages.
Robert, It looks valid enough. yum --verbose repolist Loading rhnplugin plugin Loading fastestmirror plugin Loading priorities plugin Loading security plugin Config time: 0.046 Looking for repo options for [main] Looking for repo options for [centos5-base-x86_64] Repo 'centos5-base-x86_64' setting option 'enabled' = '1' Repo 'centos5-base-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [rpmforge-el5-x86_64] Repo 'rpmforge-el5-x86_64' setting option 'enabled' = '1' Repo 'rpmforge-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [spacewalk-client-el5-x86_64] Repo 'spacewalk-client-el5-x86_64' setting option 'enabled' = '1' Repo 'spacewalk-client-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-extras-x86_64] Repo 'centos5-extras-x86_64' setting option 'enabled' = '1' Repo 'centos5-extras-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-updates-x86_64] Repo 'centos5-updates-x86_64' setting option 'enabled' = '1' Repo 'centos5-updates-x86_64' setting option 'gpgcheck' = '0' Yum Version: 3.2.22 Loading mirror speeds from cached hostfile centos5-base-x86_64 | 871 B 00:00 centos5-extras-x86_64 | 871 B 00:00 centos5-updates-x86_64 | 871 B 00:00 rpmforge-el5-x86_64 | 871 B 00:00 spacewalk-client-el5-x86_64 | 871 B 00:00 Setting up Package Sacks pkgsack time: 0.021 Repo-id : centos5-base-x86_64 Repo-name: CentOS 5 Base - x86_64 Repo-updated : Wed Oct 10 15:00:58 2012 Repo-pkgs: 3,590 Repo-size: 4.6 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-base-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : centos5-extras-x86_64 Repo-name: CentOS 5 Extras - x86_64 Repo-updated : Wed Oct 10 15:21:25 2012 Repo-pkgs: 274 Repo-size: 157 M Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-extras-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : centos5-updates-x86_64 Repo-name: CentOS 5 Updates - x86_64 Repo-updated : Wed Oct 10 00:15:03 2012 Repo-pkgs: 1,083 Repo-size: 5.0 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-updates-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : rpmforge-el5-x86_64 Repo-name: RPMforge EL5 - x86_64 Repo-updated : Sat Oct 6 14:32:11 2012 Repo-pkgs: 11,148 Repo-size: 5.8 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/rpmforge-el5-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : spacewalk-client-el5-x86_64 Repo-name: Spacewalk Client - EL5 - x86_64 Repo-updated : Sat Oct 6 14:33:25 2012 Repo-pkgs: 21 Repo-size: 1.9 M Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/spacewalk-client-el5-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) repolist: 16,116 The machine I ran it on has 5 updates showing in Spacewalk BUT when I click to see which patches I see 8?! Running yum update on the client gives no updates (none in yumex either) Steve On 17/10/12 15:22, Boyd, Robert wrote: Steven, What do you get for output when you do this on a client: Yum --verbose repolist ? Robert -Original Message- From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Steven Reilly Sent: Wednesday, October 17, 2012 10:00 AM To: spacewalk-list@redhat.com Subject: [Spacewalk-list] Spacewalk not pushing packages. Hi, First post. I've installed and setup Spacewalk on a CentOS 5.8 machine (all of my clients are CentOS 5.8 32 and 64 bit) I have configured Spacewalk to download various CentOS and other repositories and all the clients are registered with the server and have osad installed and running. Spacewalk shows that each client is registered and requires a various number of update packages but, apart from a job appearing in the Schedule Pending Actions when I send packages, nothing much happens. Eventually it fails. The other thing I don't understand is that unless I have .repo files under /etc/yum.repo.d/ for repositories which can supply the update packages, when I do yum update I get no results - despite Spacewalk telling me that there should be. Also, when I DO add .repo files under /etc/yum.repo.d/ that point to repositories which can supply the update packages the downloaded packages come from those external servers rather than the local Spacewalk server. I must have something configured incorrectly. Any pointers? Steve --
Re: [Spacewalk-list] Spacewalk not pushing packages.
Steve -- I agree -- that looks fairly similar to what I have on typical clients. What if you do this on the client end: yum --verbose check-update ? And have you dug around in the rhn or httpd logs on either end? Robert -Original Message- From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Steven Reilly Sent: Wednesday, October 17, 2012 10:52 AM To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] Spacewalk not pushing packages. Robert, It looks valid enough. yum --verbose repolist Loading rhnplugin plugin Loading fastestmirror plugin Loading priorities plugin Loading security plugin Config time: 0.046 Looking for repo options for [main] Looking for repo options for [centos5-base-x86_64] Repo 'centos5-base-x86_64' setting option 'enabled' = '1' Repo 'centos5-base-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [rpmforge-el5-x86_64] Repo 'rpmforge-el5-x86_64' setting option 'enabled' = '1' Repo 'rpmforge-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [spacewalk-client-el5-x86_64] Repo 'spacewalk-client-el5-x86_64' setting option 'enabled' = '1' Repo 'spacewalk-client-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-extras-x86_64] Repo 'centos5-extras-x86_64' setting option 'enabled' = '1' Repo 'centos5-extras-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-updates-x86_64] Repo 'centos5-updates-x86_64' setting option 'enabled' = '1' Repo 'centos5-updates-x86_64' setting option 'gpgcheck' = '0' Yum Version: 3.2.22 Loading mirror speeds from cached hostfile centos5-base-x86_64 | 871 B 00:00 centos5-extras-x86_64 | 871 B 00:00 centos5-updates-x86_64 | 871 B 00:00 rpmforge-el5-x86_64 | 871 B 00:00 spacewalk-client-el5-x86_64 | 871 B 00:00 Setting up Package Sacks pkgsack time: 0.021 Repo-id : centos5-base-x86_64 Repo-name: CentOS 5 Base - x86_64 Repo-updated : Wed Oct 10 15:00:58 2012 Repo-pkgs: 3,590 Repo-size: 4.6 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-base-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : centos5-extras-x86_64 Repo-name: CentOS 5 Extras - x86_64 Repo-updated : Wed Oct 10 15:21:25 2012 Repo-pkgs: 274 Repo-size: 157 M Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-extras-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : centos5-updates-x86_64 Repo-name: CentOS 5 Updates - x86_64 Repo-updated : Wed Oct 10 00:15:03 2012 Repo-pkgs: 1,083 Repo-size: 5.0 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/centos5-updates-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : rpmforge-el5-x86_64 Repo-name: RPMforge EL5 - x86_64 Repo-updated : Sat Oct 6 14:32:11 2012 Repo-pkgs: 11,148 Repo-size: 5.8 G Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/rpmforge-el5-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) Repo-id : spacewalk-client-el5-x86_64 Repo-name: Spacewalk Client - EL5 - x86_64 Repo-updated : Sat Oct 6 14:33:25 2012 Repo-pkgs: 21 Repo-size: 1.9 M Repo-baseurl : http://edcswalk.eng.allegro.msad/XMLRPC/GET-REQ/spacewalk-client-el5-x86_64 Repo-expire : 3,600 second(s) (last: Wed Oct 17 15:42:15 2012) repolist: 16,116 The machine I ran it on has 5 updates showing in Spacewalk BUT when I click to see which patches I see 8?! Running yum update on the client gives no updates (none in yumex either) Steve ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Spacewalk not pushing packages.
Hi Robert, A note. /etc/yum.repos.d/ on the client does NOT contain .repo files referencing these Repos. Just ones that I couldn't figure how to get to work with Spacewalk (Adobe and a local RPM repo) I had a look at loads of log files. Which ones are the most relevant - I couldn't decide? yum --verbose check-update Loading rhnplugin plugin Loading fastestmirror plugin Loading priorities plugin Loading security plugin Config time: 0.046 Looking for repo options for [main] Looking for repo options for [centos5-base-x86_64] Repo 'centos5-base-x86_64' setting option 'enabled' = '1' Repo 'centos5-base-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [rpmforge-el5-x86_64] Repo 'rpmforge-el5-x86_64' setting option 'enabled' = '1' Repo 'rpmforge-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [spacewalk-client-el5-x86_64] Repo 'spacewalk-client-el5-x86_64' setting option 'enabled' = '1' Repo 'spacewalk-client-el5-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-extras-x86_64] Repo 'centos5-extras-x86_64' setting option 'enabled' = '1' Repo 'centos5-extras-x86_64' setting option 'gpgcheck' = '0' Looking for repo options for [centos5-updates-x86_64] Repo 'centos5-updates-x86_64' setting option 'enabled' = '1' Repo 'centos5-updates-x86_64' setting option 'gpgcheck' = '0' Yum Version: 3.2.22 Setting up Package Sacks Loading mirror speeds from cached hostfile centos5-base-x86_64 | 871 B 00:00 centos5-extras-x86_64 | 871 B 00:00 centos5-updates-x86_64 | 871 B 00:00 rpmforge-el5-x86_64 | 871 B 00:00 spacewalk-client-el5-x86_64 | 871 B 00:00 Skipping security plugin, no data pkgsack time: 0.284 rpmdb time: 0.000 Building updates object up:Obs Init time: 0.407 up:simple updates time: 0.083 up:obs time: 0.003 up:condense time: 0.000 updates time: 1.629 Steve On 17/10/12 16:57, Boyd, Robert wrote: yum --verbose check-update -- = Steven J. Reilly, EDA Engineer Allegro Microsystems Europe Ltd Adam Ferguson House, Eskmills Park, Musselburgh, EH21 7PQ, Scotland. Tel:+44 (0)131 273 4306 Fax:+44 (0)131 273 4301 e-mail: srei...@allegromicro.com Any views expressed by me in this mail are mine ... all mine! Tux-power! Sent from Thunderbird on Linux Mint 13 (xfce) ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Can osad and jabberpy packages on the clients be upgraded by spacewalk?
Ok. The jabberpy and osad packages were patched successfully. Just took longer time for some reasons. Thank you! nz From: Jan Pazdziora jpazdzi...@redhat.com To: fn...@yahoo.com; spacewalk-list@redhat.com Sent: Saturday, October 13, 2012 8:29:30 AM Subject: Re: [Spacewalk-list] Can osad and jabberpy packages on the clients be upgraded by spacewalk? On Fri, Oct 12, 2012 at 08:02:14AM -0700, fn...@yahoo.com wrote: Hi, Can these osad and jabberpy packages be upgraded? osad-5.9.10-5.el4sat.noarch jabberpy-0.5-0.15.el4.noarch The patching process was hung and can't be finished. My understanding is thatbecause osad and jabberpy are used by the spacewalk clients to communicate with the spacewalk server, these packages can not be upgraded because their services can be interrupted. No. Please describe exactly what you do, what you get and where youx see the issue. -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
[Spacewalk-list] Internal Server Error Snapshot Rollback - PostgreSQL 9.1 with Spacewalk 1.6
Hello List, I am having a problem with snapshot rollbacks and tag deletes in Spacewalk. Below you will find the errors I am getting for both the rollback and delete. Rollback error: [Wed Oct 17 09:58:07 2012] [error] Execution of /var/www/html/network/systems/details/history/snapshots/rollback.pxt failed at Wed Oct 17 09:58:07 2012: RHN::Exception: Please use DBI functions for transaction handling at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/Pg.pm line 190.\n\n Sniglets::Snapshot /usr/lib/perl5/vendor_perl/5.8.8/Sniglets/Snapshot.pm 316 RHN::Exception::throw\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 493 Sniglets::Snapshot::system_snapshot_rollback_cb\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 103 PXT::ApacheHandler::pxt_parse_data\n PXT::ApacheHandler /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm 103 (eval)\n main -e 0 PXT::ApacheHandler::handler\n main -e 0 (eval) Tag Delete error: [Wed Oct 17 10:03:39 2012] [error] Execution of /var/www/html/network/systems/details/history/snapshots/remove_confirm.pxt failed at Wed Oct 17 10:03:39 2012: Please use DBI functions for transaction handling at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/Pg.pm line 190. Any ideas as to what could be the cause of this issue? ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Reinstalling Spacewalk
On Wed, Oct 17, 2012 at 02:34:57PM +, Sam Sen wrote: I had to reinstall Spacewalk, but I already sync the channels over to the appropriate folder. Any idea as to how I can get the new version of spacewalk see the repo that I synced previously? Right now the channel is showing 0 packages even though I did point Spacewalk to the correct folder. Not sure what you mean appropriate folder. When you spacewalk-repo-sync (let's assume you that) repos to Satellite, two things happen: information about those rpms gets stored in the database, and the rpms get stored under the /var/satellite directory. If you have content of that original /var/satellite directory, re-running that spacewalk-repo-sync should re-download the metadata while realize the .rpms themselves are in /var/satellite already. -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] Reinstalling Spacewalk
That's what I did but I just realized I wiped out the DB for other reasons. That's probably why my new installation didn't realize the RPMs and metadata were present. I just finished another sync so all is well now. Regards, Sam -Original Message- From: spacewalk-list-boun...@redhat.com [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Jan Pazdziora Sent: Wednesday, October 17, 2012 1:24 PM To: spacewalk-list@redhat.com Subject: Re: [Spacewalk-list] Reinstalling Spacewalk On Wed, Oct 17, 2012 at 02:34:57PM +, Sam Sen wrote: I had to reinstall Spacewalk, but I already sync the channels over to the appropriate folder. Any idea as to how I can get the new version of spacewalk see the repo that I synced previously? Right now the channel is showing 0 packages even though I did point Spacewalk to the correct folder. Not sure what you mean appropriate folder. When you spacewalk-repo-sync (let's assume you that) repos to Satellite, two things happen: information about those rpms gets stored in the database, and the rpms get stored under the /var/satellite directory. If you have content of that original /var/satellite directory, re-running that spacewalk-repo-sync should re-download the metadata while realize the .rpms themselves are in /var/satellite already. -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] How to set Spacewalk server as yum server
Thanks Paul for the clarification. See the following commands and outputs please. There is no .repo file available (all enabled=0), then where the 'yum list' come from? I am confused: # yum clean all yum clean metadata yum clean dbcache Loaded plugins: rhnplugin, security Cleaning up Everything Loaded plugins: rhnplugin, security 0 metadata files removed 0 sqlite files removed 0 metadata files removed Loaded plugins: rhnplugin, security 0 sqlite files removed # grep enabled=1 /etc/yum.conf # # grep enabled=1 /etc/yum.repos.d/* # # yum list | more Loaded plugins: rhnplugin, security Installed Packages Deployment_Guide-en-US.noarch 5.8-1.el5 installed GConf2.i386 2.14.0-9.el5 installed GConf2.x86_64 2.14.0-9.el5 installed GConf2-devel.i386 2.14.0-9.el5 installed GConf2-devel.x86_64 2.14.0-9.el5 installed ImageMagick.i386 6.2.8.0-15.el5_8 installed ImageMagick.x86_64 6.2.8.0-15.el5_8 installed MAKEDEV.x86_64 3.23-1.2 installed Thanks. nz nz From: Paul Robert Marino prmari...@gmail.com To: spacewalk-list@redhat.com; fn...@yahoo.com Sent: Tuesday, October 16, 2012 4:39:41 PM Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server Under the hood mrepo runs createrepo for you On Oct 16, 2012 3:35 PM, fn...@yahoo.com wrote: Hi, I believe that this is a good subject, but haven't found related info yet online about it. Sorry if the subject has already been discussed in this great mailing list before. I'd like to set our Spacewalk server as a Yum server, so clients can use yum command to install/upgrade single package. The Spacewalk server has been working well. Here is what I did on the client: spacewalkclient# cat /etc/yum.repos.d/spacewalk-client.repo [spacewalk-client] name=Spacewalk Client Tools baseurl=http://spacewalkserver.ourdomain.com/mrepo/rhel_5_server-x86_64/RPMS.updates #gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2012 enabled=1 gpgcheck=0 What else do I need to do to implement the job? I think I don't need to run 'createrepo' command since repodata sub-directories have already been created by the spacewalk-mrepo sync process. Thank you! nz ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list
Re: [Spacewalk-list] How to set Spacewalk server as yum server
yes that would be correct the RHN plugin that spacewalk uses does not use the configurations in the /etc/yum.repos.d/ directory it uses the /etc/sysconfig/rhn/up2date for all its information if you dig into that file a little you will get a better understanding of how it and Redhat Network functions. On Wed, Oct 17, 2012 at 3:34 PM, fn...@yahoo.com wrote: I've found the spacewalk server's hostname is in /etc/sysconfig/rhn/up2date file. After I removed this file and cleaned yum cache, the 'yum list' command is still working. nz From: fn...@yahoo.com fn...@yahoo.com To: Paul Robert Marino prmari...@gmail.com; spacewalk-list@redhat.com spacewalk-list@redhat.com Sent: Wednesday, October 17, 2012 2:47:38 PM Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server Thanks Paul for the clarification. See the following commands and outputs please. There is no .repo file available (all enabled=0), then where the 'yum list' come from? I am confused: # yum clean all yum clean metadata yum clean dbcache Loaded plugins: rhnplugin, security Cleaning up Everything Loaded plugins: rhnplugin, security 0 metadata files removed 0 sqlite files removed 0 metadata files removed Loaded plugins: rhnplugin, security 0 sqlite files removed # grep enabled=1 /etc/yum.conf # # grep enabled=1 /etc/yum.repos.d/* # # yum list | more Loaded plugins: rhnplugin, security Installed Packages Deployment_Guide-en-US.noarch 5.8-1.el5 installed GConf2.i3862.14.0-9.el5installed GConf2.x86_64 2.14.0-9.el5installed GConf2-devel.i386 2.14.0-9.el5installed GConf2-devel.x86_642.14.0-9.el5installed ImageMagick.i386 6.2.8.0-15.el5_8installed ImageMagick.x86_64 6.2.8.0-15.el5_8installed MAKEDEV.x86_64 3.23-1.2installed Thanks. nz nz From: Paul Robert Marino prmari...@gmail.com To: spacewalk-list@redhat.com; fn...@yahoo.com Sent: Tuesday, October 16, 2012 4:39:41 PM Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server Under the hood mrepo runs createrepo for you On Oct 16, 2012 3:35 PM, fn...@yahoo.com wrote: Hi, I believe that this is a good subject, but haven't found related info yet online about it. Sorry if the subject has already been discussed in this great mailing list before. I'd like to set our Spacewalk server as a Yum server, so clients can use yum command to install/upgrade single package. The Spacewalk server has been working well. Here is what I did on the client: spacewalkclient# cat /etc/yum.repos.d/spacewalk-client.repo [spacewalk-client] name=Spacewalk Client Tools baseurl=http://spacewalkserver.ourdomain.com/mrepo/rhel_5_server-x86_64/RPMS.updates #gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2012 enabled=1 gpgcheck=0 What else do I need to do to implement the job? I think I don't need to run 'createrepo' command since repodata sub-directories have already been created by the spacewalk-mrepo sync process. Thank you! nz ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list ___ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list