<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, 1 month
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
ESXi5 system builds via cobbler
by Eddie Velez
I am working with our development lab to install ESXi5 on system via cobbler. ESXi4 and ESXi5 are different in the they boot I have modified /usr/lib/python2.4/site-packages/cobbler/pxegen.py to handle this and created templates to make sure correct boot options are inserted to tftp boot file. The problem I am facing is coping all necessary files into /tftpboot/images directory and make sure they don't get deleted next time I do a cobbler sync. Can some please point me to which file I have to modify to copy data to directory.
________________________________
Eddie Velez
Sr. UNIX System Administrator
2650 N 1st Suit 300
San Jose, CA, 95135
408.904.4136 Office
408.307.1632 Mobile
http://www.emulex.com<http://www.emulex.com/>
[Description: Emulex]<http://www.emulex.com/emulex-connects/>
This message contains Emulex confidential information intended only for specific recipients and is not to be forwarded to anyone else. If you have received this message in error, please delete it immediately. Thank you.
11 years, 5 months
format of cobbler output?
by Jakov Sosic
Hi.
I'm trying to import output of cobbler commands to Ruby in some
structured way...
I'm interested in 'interfaces', so for example:
# cobbler system dumpvars --name=koji.srce.hr | grep interfaces
interfaces : {'eth0': {'ipv6_address': '', 'interface_type': '',
'static': False, 'owner': 'vm-node001', 'enable_gpxe': 0,
'bonding_master': '', 'gateway': '10.5.100.5', 'subnet': '',
'management': False, 'interface_master': '', 'hostname': 'vm-node001',
'filename': '/pxelinux.0', 'bridge_opts': '', 'mac_address':
'00:50:56:b0:00:26', 'netboot_enabled': False, 'distro': {'comment': '',
'kernel': '/distros/CentOS-6.3-x86_64/images/pxeboot/vmlinuz', 'uid':
'MTM0ODc0NzE1Ni4zODk1MjAzNDkuNTcyMg', 'kernel_options_post': {},
'redhat_management_key': '<<inherit>>', 'kernel_options': {},
'redhat_management_server': '<<inherit>>', 'initrd':
'/distros/CentOS-6.3-x86_64/images/pxeboot/initrd.img', 'mtime':
1348747156.380496, 'template_files': {}, 'ks_meta': {}, 'boot_files':
{}, 'breed': 'redhat', 'os_version': 'generic26', 'mgmt_classes': [],
'fetchable_files': {}, 'tree_build_time': 0, 'arch': 'x86_64', 'name':
'CentOS-6.3-x86_64', 'owners': ['admin'], 'ctime': 1348747156.380496,
'source_repos': [], 'depth': 0}, 'virt_bridge': '', 'bonding': '',
'bonding_opts': '', 'ipv6_mtu': '', 'ip_address': '1.1.1.1', 'dhcp_tag':
'', 'name': 'vm-node001', 'static_routes': [], 'ipv6_static_routes': [],
'dns_name': 'vm-node001', 'netmask': '', 'mtu': '', 'ipv6_secondaries':
[], 'next_server': '1.1.1.1', 'ipv6_default_gateway': ''}}
Any ideas how to parse it easily without braking my neck trying to
dismantle it by regexps? Is this maybe JSON or something similar?
Thank you.
--
Jakov Sosic
www.srce.unizg.hr
11 years, 6 months
Debugging Cheetah templates
by Andrey Brindeyev
Hi!
Is there any way to debug Cheetah template parsing errors?
Yesterday my kickstart works fine and now I start getting following very meaningless error in /var/log/cobbler/cobbler.log:
====
Wed Sep 26 20:10:40 2012 - INFO | REMOTE generate_kickstart; user(?)
Wed Sep 26 20:10:40 2012 - INFO | generate_kickstart
Wed Sep 26 20:10:40 2012 - INFO | Exception occured: <type 'exceptions.NameError'>
Wed Sep 26 20:10:40 2012 - INFO | Exception value: global name 'out_path' is not defined
Wed Sep 26 20:10:40 2012 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1970, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1000, in generate_kickstart
return self.api.generate_kickstart(profile,system)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 643, in generate_kickstart
return self.kickgen.generate_kickstart_for_profile(profile)
File "/usr/lib/python2.6/site-packages/cobbler/kickgen.py", line 300, in generate_kickstart_for_profile
return self.generate_kickstart(profile=g)
File "/usr/lib/python2.6/site-packages/cobbler/kickgen.py", line 278, in generate_kickstart
data = self.templar.render(raw_data, meta, None, obj)
File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 112, in render
data_out = self.render_cheetah(raw_data, search_table, subject)
File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 208, in render_cheetah
if out_path is None:
====
I'm getting that error on both my kickstarts.
How can I understand which part of template is causing an error?
Andrey.
11 years, 6 months
fixing "ifcfg-eth*" to particular hardware
by David Lee
Cobbler version: 2.0.11 (actually 2.0.11-2 from RPM)
All systems: RHEL 5.8
[Preliminary: I realise our cobbler version is a little old. I'd rather not have to upgrade right now, but if it really would make a substantial difference to the problem I am about to describe, that could be done.]
We install RHEL 5.8 on many IBM boxes, which are all very similar. In particular there are four ethernet ports on the system itself, and a separate board with two 10-Gig ports.
The first ethernet port is our provisioning network, over which cobbler runs. During installation, it seems to call this "eth2". But after installation it almost always comes up as "eth0". (That's OK (although I don't understand it!) but it might interact slightly with the real problem below.) Moving on...
After installation, the four system ethernet ports usually get assigned names eth0, eth1, eth2 and eth3, usually in order. (The cobbler/provisioning interface seems to get "eth0" always.) The two 10-Gig ports get assigned names eth4 and eth5... usually.
But occasionally (perhaps 10% or slightly more) an installation ends up with a different mapping of names to ports. (If we then re-install, it usually gets the expected mapping.) That is a problem when one is (re-)installing machines in a farm of machines that are supposed to be the same.
I realise that "cobbler system" has a "--interface" capability. But I don't see a way for that to be used to map specific names to specific hardware.
I make no claims to understand the depths and intricacies of "/etc/modprobe.conf", "/etc/sysconfig/hwconf", kudzu, etc. But is there a way (or common practice) somehow to pre-populate various things with relevant information for the mapping of generated "eth*" names onto particular ethernet ports? Ideally such a mechanism would interrogate the hardware to determine a characteristic of 10-Gig ports (which we want as "eth4" and "eth5"; the order doesn't matter) and it could then pre-populate some sort of hint for something like kudzu. Or something vaguely like that.
I guess this might go as a cobbler post-install snippet. Or perhaps as some action for very soon after freshly installed system boots.
Hints, snippets, etc. welcome!
-- David Lee, ECMWF, UK.
11 years, 6 months
Oracle RAC
by John Paget Bourke
Hi,
As anyone done an Oracle RAC build using Cobbler ?
Thanks
John
11 years, 6 months
Cobbler options
by Tom Diehl
Hi,
Is there a way to get Cobbler to allow the same ip address to be entered into
more that one system?
I build systems for small networks that sometimes use the same rfc-1918 address
in the internal network.
Sometimes it is also desirable to have the same public address on more than one
system to allow me to setup cold spares so that the systems can be swapped out.
I looked at the documentation but I could not find anything that addresses this.
Regards,
--
Tom Diehl tdiehl(a)rogueind.com Spamtrap address mtd123(a)rogueind.com
11 years, 6 months
Machines not using local mirror
by Bai Shen
I'm not sure if this is a cobbler or puppet issue, so please forgive the
crossposting.
I configured some repos in cobbler and set the local mirror flag. However,
when I use puppet to install packages, they don't use my local mirror.
This means that installs take forever as I'm on a slow connection.
What should I check/test in order to fix this?
Thanks.
11 years, 6 months