LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   How do I add local repos on Spacewalk kickstarted systems? (https://www.linuxquestions.org/questions/centos-111/how-do-i-add-local-repos-on-spacewalk-kickstarted-systems-4175533067/)

Thaidog 02-04-2015 01:03 PM

How do I add local repos on Spacewalk kickstarted systems?
 
I'm trying to configure Spacewalk so that the local repos I've sync'd will be available in the OS after the system is kickstarted. I've created a base channel for the OS install repo that has several child channels which have different repos per channel (EPEL, Spacewalk client, etc). After a system is kicked I cannot see these repos in /etc/yum.repos.d

The kickstart profile lists the child channels in the "Operating System" tab and they are also selected in the Activation Key's Child Channels tab.

There is an error in the ks-rhn-post.log where the client registration is failing:
Code:

"Can't open /etc/sysconfig/rhn/up2date: No such file or directory.
cp: cannot stat `/tmp/ks-tree-copy/*': No such file or directory...

HTTP request sent, awaiting response... 200 OK
Length: 5170 (5.0K) [text/plain]
Saving to: `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT'

    0K .....                                                100%  489M=0s

2015-02-04 02:23:25 (489 MB/s) - `/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT' saved [5170/5170]

Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file.

"Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file."

I'm not sure why these repos are not being seen... how can I add them?

Ztcoracat 02-04-2015 11:55 PM

Are you running Red Hat 6 or 7?

http://www.cyberciti.biz/tips/rhel5-...epository.html
http://www.linuxquestions.org/questi...to-yum-882734/

Thaidog 02-05-2015 08:20 AM

Quote:

Originally Posted by Ztcoracat (Post 5312322)

I'm running CentOS 6. Based on the urls you provided I think you slightly miss-understand my question. I have local repos in spacewalk I want to be available as part of a kickstart from spacewalk. In other words they should automatically be there and the kicstart post config is erroring because they are not. Right now only the base repo is showing up.

Ztcoracat 02-05-2015 04:15 PM

Hi:

Sorry I misunderstood.

I looked up the error:
Code:

Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file
Here are 2 threads related to your error that I could find.
Quote:

the problem seems to be related to /etc/sysconfig/rhn/systemid. The file does not appear to a re-provisioned system
http://blog.gmane.org/gmane.linux.re...month=20120201
https://www.redhat.com/archives/spac.../msg00070.html

Quote:

they should automatically be there and the kicstart post config is erroring because they are not. Right now only the base repo is showing up.
You said that "they" should be there; do you mean a config script or a repository?

If your proxy is connected to a spacewalk server I won't be much help; sorry.
I don't have server experience, I'm still learning that:-

Thaidog 02-05-2015 10:12 PM

Quote:

Originally Posted by Ztcoracat (Post 5312712)
Hi:

Sorry I misunderstood.

I looked up the error:
Code:

Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file
Here are 2 threads related to your error that I could find.

http://blog.gmane.org/gmane.linux.re...month=20120201
https://www.redhat.com/archives/spac.../msg00070.html


You said that "they" should be there; do you mean a config script or a repository?

If your proxy is connected to a spacewalk server I won't be much help; sorry.
I don't have server experience, I'm still learning that:-

Thanks for your help - I am new to spacewalk so I am learning this too. It looks like the systems repos listed in /etc/yum.reopsd are actually not used. I'm not 100% sure on this but I kickstarted a new server and then manually added it to spacewalk. Once in spacewalk I can pick packages to install from the gui - for instance osad which is client that allows remote commands / scripts to be run from spacewalk.

In any event I'm still not sure why my systems are failing to automatically register with spacewalk however... that is my main problem at this point.

Ztcoracat 02-06-2015 04:56 PM

Quote:

Originally Posted by Thaidog (Post 5312825)
Thanks for your help - I am new to spacewalk so I am learning this too. It looks like the systems repos listed in /etc/yum.reopsd are actually not used. I'm not 100% sure on this but I kickstarted a new server and then manually added it to spacewalk. Once in spacewalk I can pick packages to install from the gui - for instance osad which is client that allows remote commands / scripts to be run from spacewalk.

In any event I'm still not sure why my systems are failing to automatically register with spacewalk however... that is my main problem at this point.

Your Welcome.

I don't get why your systems are failing to register with spacewalk.

Maybe double check that Spacewalk is configured correctly. Spacewalk could be dependent upon other libraries and if they are not installed that could be a problem too. Communication between system and Spacewalk could be misconfigured but I'm not sure where. It could be as simple as a configuration file needing a string added or taken away.
I'll learn what I can about Spacewalk and how to set it up.

If I find anything I'll post it for you.

Thaidog 02-07-2015 02:52 PM

Well - I found out that there was a few things that were causing the issue for me. The first seems to be that the activation key I was using with my kickstart did not have all the repos assigned to it and thus could not pull in the packages needed to register itself with spacwealk - but it had the base system and finished kickstarting fine so it was hard to discern what was going on. The second was I did not have the spacewalk package group in the kickstart config, nor pyhton-hwdata which was the final fail for me. Once those were added I get an automatically added system to spacewalk after it's kicked :)

Ztcoracat 02-07-2015 03:20 PM

Glad to hear you found out what the problem was.

Is Spacewalk working now?


All times are GMT -5. The time now is 08:02 AM.