LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-04-2015, 01:03 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
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?
 
Old 02-04-2015, 11:55 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Are you running Red Hat 6 or 7?

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

Last edited by Ztcoracat; 02-04-2015 at 11:58 PM.
 
Old 02-05-2015, 08:20 AM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Ztcoracat View Post
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.

Last edited by Thaidog; 02-05-2015 at 08:21 AM.
 
Old 02-05-2015, 04:15 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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:-
 
Old 02-05-2015, 10:12 PM   #5
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Ztcoracat View Post
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.
 
Old 02-06-2015, 04:56 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Thaidog View Post
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.
 
Old 02-07-2015, 02:52 PM   #7
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
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
 
Old 02-07-2015, 03:20 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Glad to hear you found out what the problem was.

Is Spacewalk working now?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spacewalk 2.2 setup-spacewalk errors: cannot add tomcat user to apache group Thaidog Linux - Server 3 01-19-2015 12:44 AM
Cannot ping local systems - but local systems can access internet walterbyrd Linux - Networking 19 07-28-2013 06:23 AM
how to add repos for virtualbox Thane Linux Mint 3 12-13-2012 12:06 PM
How Can I Add Repos To Sidux ? DOTT.EVARISTI Linux - General 2 07-07-2008 07:46 AM
How to add livna repos to Fedora BurntChips Fedora 1 05-11-2007 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration