<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
Windows install with Cobbler
by Janet.Conkle@afscn.com
Has anyone been successful in installing windows using cobbler? I've
found a few things on the net but nothing definitive. I need a tool
that will install baseline images on lab boxes of both the linux and
Windows flavors.
Janet Conkle
ETG
x5343
11 years, 5 months
Memtest image in cobbler-2.2.1
by André Gemünd
Hello list,
since upgrading to 2.2.1, I cannot get the memtest image to work anymore as described in the wiki: https://fedorahosted.org/cobbler/wiki/MemTest
If I have a memtest image in Cobbler, cobbler sync will always fail telling me that the object doesn't have a os_version (because distro is None in that case).
Is there a different way to do it now?
Cheers
André
--
André Gemünd
Fraunhofer-Institute for Algorithms and Scientific Computing
andre.gemuend(a)scai.fraunhofer.de
Tel: +49 2241 14-2193
/C=DE/O=Fraunhofer/OU=SCAI/OU=People/CN=Andre Gemuend
12 years, 6 months
Re: cobbler 2.2 buildiso issue with kernel options
by Simon Woolsgrove
Thanks,
Applied and fixed the issue where duplicate keys exist.
This would be common where you have hardware that has out of band management interface e.g. ilo, drac etc... and you want multiple console options offered.
<snip> The console parameter can be given repeatedly, but the parameter can only be given once for each console technology. So console=tty0 console=lp0 console=ttyS0 is acceptable but console=ttyS0 console=ttyS1 will not work. </snip>
Blacklisting modules would be another common example where this would happen.
Have found a few more issues with move from 1.6 will post.
Cheers, Simon
Jörgen Maas <jorgen.maas(a)gmail.com> wrote:
>Could you please try attached patch and report back to me?
>Thanks!
>
>--
>Grtz,
>Jörgen Maas
>
>_______________________________________________
>cobbler mailing list
>cobbler(a)lists.fedorahosted.org
>https://fedorahosted.org/mailman/listinfo/cobbler
12 years, 6 months
XCP Guests Unable to PXE Boot
by Russ Lavoy
Hello,
I am having an issue with XCP guests not being able to pxe boot. First I change the PV options (that is what is required to netboot with the VM, but when I do that it sees the MAC of the VM and starts to load the pxelinux.cfg/MAC-ADDR then tells me "Invalid or corrupt kernel image". I did an md5sum on the vmlinuz and initrd.img files and they are all the exact same in the KS repo and in the /tftpboot location. I can kickstart it with no issues, just not PXE.
Is there any help on that one out there?
Thanks!
12 years, 6 months
cobbler 2.2 buildiso issue with kernel options
by Simon Woolsgrove
Just installed 2.2 (great job by the way) if we have a system with
duplicate keys in the kernel options e.g. console=x console=y buildiso
is generating a list on the append line e.g.
# cobbler system dumpvars --name=fred | grep -i kernel_options
kernel_options : lang= console=tty0 console=ttyS0,115200 text noipv6
selinux=0 kssendmac
This gives a isolinux.cfg of
LABEL fred
MENU LABEL fred
kernel 1.krn
append initrd=1.img ks=http://x.x.x.x/cblr/svc/op/ks/system/fred
ksdevice=eth1 ip=123.123.123.123 netmask=255.255.255.0
gateway=123.123.123.1 dns=123.123.123.62 lang= console=['tty0',
'ttyS0,115200'] text noipv6 selinux=0 kssendmac
MENU END
Will have a look at the code but if someone gets there before us ... btw
this happens for any duplicates e.g. blacklist=module1 blacklist=module2
Cheers,
Simon
12 years, 6 months
A How-to Question: Capturing a server configuration in command line form
by Dan White
I am looking for a way to preserve a server configuration for disaster recovery purposes.
Is there a way to "dump" the contents/configuration of a cobbler server such that it can be used as command line input to rebuild/duplicate the server ?
The report output has all the necessary information, but it is not in the same form as it would be when being entered on the command line.
Thanks.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
12 years, 6 months
Problem with yum-rhn-plugin-0.5.4-22.el5_7.(1|2)
by Dan White
https://access.redhat.com/support/cases/00546517
https://bugzilla.redhat.com/show_bug.cgi?id=746053
And a new twist discovered this morning:
RHN directed me to rename the repo [rhel-x86_64-server-5] in /etc/yum.repos.d/cobbler-config.repo
I did and that fixed the problem on the client side.
However, when I tried to apply the same name-change to the repo on the cobbler server, it said:
cobbler reposync --only=local-rhel-x86_64-server-5
task started: 2011-10-18_083252_reposync
task started (id=Reposync, time=Tue Oct 18 08:32:52 2011)
hello, reposync
run, reposync, run!
Exception occured: cobbler.cexceptions.CX
Exception value: 'ERROR: repository local-rhel-x86_64-server-5 needs to be renamed rhel-x86_64-server-5 as the name of the cobbler repository must match the name of the RHN channel'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 123, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'ERROR: repository local-rhel-x86_64-server-5 needs to be renamed rhel-x86_64-server-5 as the name of the cobbler repository must match the name of the RHN channel'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py", line 119, in run
self.sync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py", line 148, in sync
return self.rhn_sync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py", line 279, in rhn_sync
utils.die(self.logger,"ERROR: repository %(name)s needs to be renamed %(rest)s as the name of the cobbler repository must match the name of the RHN channel" % args)
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 131, 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/local-rhel-x86_64-server-5
received on stdout:
received on stderr:
running: chmod -R 755 /var/www/cobbler/repo_mirror/local-rhel-x86_64-server-5
received on stdout:
received on stderr:
Exception occured: cobbler.cexceptions.CX
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 123, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'overall reposync failed, at least one repo failed to synchronize'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 241, in runner
3), name=name, nofail=nofail, logger=self.logger)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 637, in reposync
return reposync.run(name)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py", line 135, in run
utils.die(self.logger,"overall reposync failed, at least one repo failed to synchronize")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)
!!! TASK FAILED !!!
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
12 years, 6 months
Seeking feedback from build ISO users
by Jörgen Maas
Hi all,
I'm currently working on some patches regarding the cobbler buildiso feature.
Now i'm wondering who is using the netboot iso and the profiles as
provided in the boot menu, instead of the system records in the menu?
Could you also describe your use case, e.g. why are you using this
feature?
Any feedback would be greatly appreciated!
Thanks
--
Grtz,
Jörgen Maas
--
Grtz,
Jörgen Maas
12 years, 6 months
RE: cobbler replicate between versions
by Steven Goodliff
Hi,
The error message is
Fri Oct 14 12:09:06 2011 - INFO | Exception occured: cobbler.cexceptions.CX
Fri Oct 14 12:09:06 2011 - INFO | Exception value: 'internal error, collection name mgmtclass not supported'
Fri Oct 14 12:09:06 2011 - INFO | Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1759, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 544, in get_items
item = [x.to_datastruct() for x in self.api.get_items(what)]
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 252, in get_items
return self._config.get_items(what)
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 237, in get_items
raise CX("internal error, collection name %s not supported" % collection_type)
From: Steven Goodliff
Sent: 14 October 2011 16:24
To: 'cobbler(a)lists.fedorahosted.org'
Subject: cobbler replicate between versions
Hi,
I was trying to install cobbler on a new server and installed cobbler-2.2.1-1.el5 but hit a problem when trying to replicate against cobbler-2.0.11-2.el5,
In this file /usr/lib/python2.4/site-packages/cobbler/action_replicate.py commenting out the line below and replacing it with a small set of object types does the tick
""" OBJ_TYPES = [ "distro", "profile", "system", "repo", "image", "mgmtclass", "package", "file" ] """
OBJ_TYPES = [ "distro", "profile", "system", "repo", "image" ]
My python skills are non existant but it seems to do the job so far, the small set matches the same python file in the 2.0.11 version
Hope that helps someone.
Steve
The information contained in this email is confidential and may also be subject to legal privilege. It is intended only for the recipient(s) named above. If you are not named above as a recipient, you must not read, copy, disclose, forward or otherwise use the information contained in this email. If you have received this e-mail in error, please notify the sender (whose contact details are above) immediately by reply e-mail and delete the message and any attachments without retaining any copies. Gaming Technologies Solutions Limited is a company registered in England and Wales with the company number 5425266, the registered office is 55 Baker Street, London, W1U 7EU Virtue Fusion (Alderney) Ltd is a company registered in Alderney with the company number 1628, the registered office is Kington Lodge, Le Grand Val, Alderney, GY9 3XD, British Channel Islands
12 years, 6 months