Need help ... Urgently ...
by Yogesh Mulay
I have the Cobbler setup ready & esxi5 installed. Is there a way to parse
esxi commands in the host. Like enabling ssh running esxcli. Adding VMKs.
Changing the managament IP address & its Vlan
I need some tips regarding pre & post installation basically
Any help would be highly appreciated. ...
Regards
10 years
<ProtocolError for localhost:25151/cobbler_api: 404 Not Found>
by John Paget Bourke
Hi,
When I run
koan --list=profiles -s localhost
I get the following error
root@Config cobbler]# koan --list=profiles -s localhost
- looking for Cobbler at http://localhost:25151/cobbler_api
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect
xmlrpc_server.ping()
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>
If I try to see if the server is running and listening, the server is ok
[root@Config cobbler]# netstat -an | grep 25151
tcp 0 0 127.0.0.1:25151 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:25151 127.0.0.1:57483
TIME_WAIT
But returns nothing .
[root@Config cobbler]# curl http://localhost:25151/cobbler_api
curl: (52) Empty reply from server
I am using the web GUI and it works ok, no problems.
When I try to use koan or curl and check the logs
[root@Config cobbler]# curl http://localhost:25151/cobbler_api
curl: (52) Empty reply from server
[root@Config cobbler]# date
Sun Oct 30 05:30:55 UTC 2011
[root@Config cobbler]# ls -l
total 1792
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 anamon
-rw-r--r--. 1 root root 1806499 Oct 30 04:50 cobbler.log
-rw-r--r-- 1 root root 73 Oct 29 00:24 install.log
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 kicklog
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 syslog
drwxr-xr-x. 2 root root 4096 Oct 30 04:40 tasks
[root@Config cobbler]# cd /etc/httpd/logs/
[root@Config logs]# ls -l
total 3172
-rw-r--r-- 1 root root 10904 Oct 30 04:45 access_log
-rw-r--r--. 1 root root 789779 Oct 30 02:43 access_log-20111030
-rw-r--r-- 1 root root 32638 Oct 30 05:20 error_log
-rw-r--r--. 1 root root 2403267 Oct 30 03:06 error_log-20111030
The logs do not seem to be affected.
The versions I am running are
[root@Config cobbler]# rpm -qa | grep cobbler
cobbler-2.2.1-1.el6.noarch
cobbler-web-2.2.1-1.el6.noarch
[root@Config cobbler]# rpm -qa | grep koan
koan-2.2.1-1.el6.noarch
In the modules.conf I have
[authentication]
#module = authn_denyall
module = authn_configfile
[authorization]
module = authz_allowall
So I am a bit lost. Any thoughts ?
Thanks
John
10 years, 2 months
Can't reposync https repos on 2.4.0-1
by Tucker DeWitt
I'm working on a Cobbler Chef recipe for my company and decided to use
Cobbler 2.4.0. I'm running into a problem when trying to do the initial
reposync. Our Yum repos are using https and Cobbler seems to want to fail
over to rsync+ssh, which won't work.
Is there a way to force reposync to use yumdownloader instead? It's
currently a blocker for me. Stack trace below.
# cobbler reposync --only centos6_2-x86_64
task started: 2013-08-12_233011_reposync
task started (id=Reposync, time=Mon Aug 12 23:30:11 2013)
hello, reposync
run, reposync, run!
running: rsync -rltDv --copy-unsafe-links --delete-after -e ssh --delete
--exclude-from=/etc/cobbler/rsync.excludehttps://yum.*REDACTED*.com/centos/6.2/os/x86_64/
/var/www/cobbler/repo_mirror/centos6_2-x86_64
received on stdout:
received on stderr: ssh: Could not resolve hostname https: Name or service
not known
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 129, in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
125, in run
self.sync(repo)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
173, in sync
return self.rsync_sync(repo)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
247, in rsync_sync
utils.die(self.logger,"cobbler reposync failed")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 137, in
die
raise CX(msg)
reposync failed, tries left: 0
reposync failed, retry limit reached, skipping
running: chown -R root:apache /var/www/cobbler/repo_mirror/centos6_2-x86_64
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/centos6_2-x86_64
received on stdout:
received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to
synchronize'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 129, in die
raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'overall reposync failed, at least one repo failed to
synchronize'
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run
rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 248, in
runner
3), name=name, nofail=nofail, logger=self.logger)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 808, in
reposync
return reposync.run(name)
File "/usr/lib/python2.6/site-packages/cobbler/action_reposync.py", line
154, in run
utils.die(self.logger,"overall reposync failed, at least one repo
failed to synchronize")
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 137, in
die
raise CX(msg)
!!! TASK FAILED !!!
10 years, 7 months
trying to set up cobbler, ran into invalid selinux type that cobbler wants me to change.
by Joost Ringoot
So first I try
=========================
[root@geppetto ~]# cobbler check
The following are potential configuration items that you may want to fix:
1 : you need to set some SELinux rules if you want to use cobbler-web (an
optional package), run the following: /usr/sbin/semanage fcontext -a -t
httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
2 : debmirror package is not installed, it will be required to manage
debian deployments and repositories
Restart cobblerd and then run 'cobbler sync' to apply changes.
[root@geppetto ~]#
==================
and then I do as cobbler check suggests:
==================
[root@geppetto ~]# /usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t
"/var/lib/cobbler/webui_sessions/.*"
/usr/sbin/semanage: Type httpd_sys_content_rw_t is invalid, must be a file
or device type
[root@geppetto ~]#
==================
Any suggestions?
Thanks,
Joost
10 years, 8 months
Cobbler installations suddenly hangs when performing "Running iost-Installation scripts"
by Daniel Kertby
Hi all,
Our cobbler server (running old version 2.2.1) suddenly hangs when
processing the client kickstart file for ALL clients.
When running wget manually from the kickstart server /cblr/svc/op/ks/system
works fine but /cblr/op/trig/mode/post/system hangs on all kickstart
clients.
WORKS
wget "<server_ip>/cblr/svc/op/ks/system/<client> -O /root/cobbler.ks
HANGS
wget "http://<server_ip>/cblr/svc/op/trig/mode/post/system/<client>-14" -O
/dev/null
We haven't added any new distros or updated any profiles or
kickstart/snippet templates for the last days.
Anyone have a clue how to continue troubleshoot this issue or have any clue
whats happening?
A reboot didn't help (after restarting cobbler and httpd services)
Best Regards,
Daniel
10 years, 8 months
Auto Adding Repos
by Pinda Ndaki
I'm creating a cobbler profile for CentOS 6 and I want to point it at yum
repos hosted by a local (to the network) pulp server. I have CentOS 6 repos
that already exist in our Cobbler and want to leave them in place while we
migrate to the pulp servers I've created the new repos that point at our
local pulp but when I create a profile to use only them Cobbler adds in the
other CentOS 6 repos automatically when I save the change to the profile (I
created the profile by copying the existing CentOS 6 profile).
What can I do to have Cobbler only use the repos I select?
Thanks,
Pinda Ndaki
pinda(a)ndaki.com
ph: (650)307-5261
cell: (240)793-2608
fax: (877)408-7290
10 years, 8 months
TFTP Error - File Not found
by John Williams
I'm getting a the following error when testing a new instance of Cobbler on Ubuntu:
PXE-T01: File not found
PXE-E3B: TFTP Error - File Not found
I've got the local TFTP server running.
Thanks,
JOhn
10 years, 8 months
Restoring an inherited value for a child profile?
by Zack Perry
I have a profile that is created using the command:
cobbler profile add --name=... --parent=...
The child profile's 'Template Files' attribute originally inherited
from its parent. For testing, I changed it using
cobbler profile edit --name=...
Once I was done, I thought that the defaults in the parent profile
were sufficient, so I wanted to restore the <<inherit>> value. But,
neither cobbler profile edit --help nor man cobbler offer any hints
how to do so. I tried the cobbler web UI as a last resort, no dice
either.
Yeah, I can cobbler profile remove --name=... to delete the modified
child profile and then recreate it. It's not that hard, but
conceptually it's uneconomical :-(
So the Q: is it possible to restore an inherited value for a profile
attribute? If so, what is the correct work flow?
Regards,
--Zack
10 years, 8 months
FW: Web timeout
by Bolles, David J
Is there any way to change the timeout of the cobbler web session?
David J. Bolles
Systems Administrator
471-0447
10 years, 8 months