<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
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
Re: [cobbler] cobbler 2.4.0 and problems booting Ubuntu 12.10 desktop 64bit
by Zack Perry
Hi James and Andrew,
Thanks for your two's follow-up. Looks like it's probably a good idea to file a bug report upstream to Ubuntu to Debian's Installation Team? Personally, I think what Ubuntu has done qualifies as a "bug".
> I played around with the 12.10 images today. I've been able to
> get past the error that you were hitting by using the netboot
> kernel and ramdisk. The desktop DVD also requires that you pull
> down the debian-intaller directory as well.
>
> The installation still fails as it goes to install the system.
> It ends up looking for a "live image" and since it's a netboot
> it can't find any. This only happens when netbooting and using
> a mirror that is simply a rsync of
> the DVD.
Yes. I got that one too!
> If you point the installation to a full mirror such as
> http://mirrors.kernel.org/ubuntu the installation goes through
> without issue. It looks like Ubuntu has changed the way that they
> are installing the system no matter whether you are using a server
> or desktop DVD.
>
> I'm stumped on whether or not there is any way to continue using
> the Ubuntu CDs for starting mirrors with cobbler.
>
>> That's interesting, it would be nice if they would be considerate
>>and push a DVD image instead that would work as expected.
>
> Yeah I totally agree. It did find a set of DVDs but they only
> contain the sources for the release which won't help us.
>
> Regards,
> Andrew
Gentlemen, please give me a few days. I still have a couple of ideas
to try out before we give up on Ubuntu 12.10 and later completely. I
have a couple of other ideas to try out. Will report back to the list.
Regards and have a great weekend,
-- Zack
10 years, 11 months
Citrix XenServer
by Eddie Velez
Has anyone used cobbler with Citrix XenServer? I have modified pxegen.py and codes.py and created pxe_tempeles so will be added to pxe boot menus.
I am running into one problem. I can't get to http://server_ip/cblr/svc/op/ks/profile/XenServer-6.0.2 profile. Any thoughts in what I could be missing.
Thanks
________________________________
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/>
[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, 3 months
Use Koan to install virtual machine with vda/virtio
by Steven C Timm
Does anyone have a working profile to use with Cobbler/Koan
to install a virtual machine that used the virtio block
drivers for its disks, i.e, inserts
<target dev='vda' bus='virtio'/>
(the corresponding virt-install option would be
--disk dev=vda,bus=virtio
)
Any help is appreciated. There doesn't seem to be such
a profile setting available for koan/cobbler as far as we can tell.
Thanks
Steve Timm
------------------------------------------------------------------
Steven C. Timm, Ph.D (630) 840-8525
timm(a)fnal.gov http://home.fnal.gov/~timm/
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Group Leader.
Lead of FermiCloud project.
11 years, 4 months
Best way to handle dhcp-only devices?
by Bret Wortman
I'm setting up a new instance and there are devices which currently get
their IPs via dhcp, and we want to preserve that, but at this point their
OSes aren't ones we're still supporting (but which we don't want to upgrade
yet).
How can I make sure cobbler manages their dhcp addresses (I don't want two
dhcp servers)? Is there a way to have a profile that doesn't point to a
distro?
--
Bret Wortman
The Damascus Group
Fairfax, VA
http://bretwortman.com/
http://twitter.com/BretWortman
11 years, 4 months
Cd-ROM not detectected issue with Ubuntu
by Bacterie
Hi,
I'm trying to have cobbler provision Ubuntu on bare-metal machines.
The systems boot but hang at No Cd-ROM found step.
I've tried various Ubuntu images (alternate, server, desktop), I've set the kernel options priority=critical locale=en_US, but it doesn't help.
I've used both the included sample.seed template and the No questions asked preseed file from https://help.ubuntu.com/community/Cobbler/Preseed
Still the same Cd-ROM error is displayed.
The generated pxelinux.cfg file is :
default linux
prompt 0
timeout 1
label linux
kernel /images/Ubuntu12.04srv64-x86_64/vmlinuz
ipappend 2
append initrd=/images/Ubuntu12.04srv64-x86_64/initrd.gz locale= locale auto priority critical en_US text true auto url=http://192.168.1.1/cblr/svc/op/ks/system/ah330-2 hostname=ah330-2 domain=local.lan suite=generic26
The profile is:
profiles:
==========
Name : Ubuntu12.04srv64-x86_64
TFTP Boot Files : {}
Comment :
DHCP Tag : default
Distribution : Ubuntu12.04srv64-x86_64
Enable gPXE? : 0
Enable PXE Menu? : 1
Fetchable Files : {}
Kernel Options : {'priority': 'critical', 'locale': 'en_US', 'auto': 'true'}
Kernel Options (Post Install) : {}
Kickstart : /var/lib/cobbler/kickstarts/ubuntu-nqa.seed
Kickstart Metadata : {}
Management Classes : []
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
Proxy :
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Repos : []
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : 1
Virt Bridge : xenbr0
Virt CPUs : 1
Virt Disk Driver Type : raw
Virt File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : qemu
Thanks for your help.
11 years, 4 months
Features required in cobbler and any workarounds ?
by Kartik Vedalaveni
Hello everyone!
I want to modify cobbler to enable replication with cobbler managed DHCP and DNS and I also want to add support to add CNAMEs to the DNS servers in cobbler system add interface.
I was thinking of modifying its source code and taking the option of secondary server in the cobbler settings file and generating two configurations, one for primary server and the other for redundant secondary server , I was wondering if there is simpler directions to what I am trying to achieve or should I go ahead with modifying the code. Any input would really be helpful.
Thanks in advance!
Best,
- Kartik
11 years, 4 months
Issues with the cobbler_web
by kenneth massada
Folowed the instructions on the github, installed pre-reqs, then make
install, and make webstest. After that mediated all items in cobber check,
Here are all the instructions I created for myself, and followed them to
the letter
###Start
wget
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
sudo rpm -Uvh epel-release-6-7.noarch.rpm
yum update
yum install createrepo httpd mkisofs mod_wsgi python-cheetah python-netaddr
python-simplejson python-urlgrabber PyYAML rsync tftp-server yum-utils
Django git make python-devel python-setuptools python-simplejson mod_python
git clone https://github.com/cobbler/cobbler.git
cd cobbler
git checkout release24
make install
make webtest
[root@cobbler cobbler]# cobbler check
The following are potential configuration items that you may want to fix:
*1 : The 'server' field in /etc/cobbler/settings must be set to something
other t
han localhost, or kickstarting features will not work. This should be a
resolva
ble hostname or IP for the boot server as reachable by all machines that
will us
e it.
*2 : For PXE to be functional, the 'next_server' field in
/etc/cobbler/settings m
ust be set to something other than 127.0.0.1, and should match the IP of
the boo
t server on the PXE network.
3 : some network boot-loaders are missing from /var/lib/cobbler/loaders,
you may
run 'cobbler get-loaders' to download them, or, if you only want to handle
x86/
x86_64 netbooting, you may ensure that you have installed a *recent*
version of
the syslinux package installed and can ignore this message entirely. Files
in t
his directory, should you want to support all architectures, should include
pxel
inux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command
is th
e easiest way to resolve these requirements.
*4 : change 'disable' to 'no' in /etc/xinetd.d/rsync
*5 : since iptables may be running, ensure 69, 80/443, and 25151 are
unblocked
*6 : debmirror package is not installed, it will be required to manage
debian dep
loyments and repositories
*7 : The default password used by the sample templates for newly installed
machin
es (default_password_crypted in /etc/cobbler/settings) is still set to
'cobbler'
and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here'
'your
-password-here'" to generate new one
*8 : fencing tools were not found, and are required to use the (optional)
power m
anagement features. install cman or fence-agents to use them
Restart cobblerd and then run 'cobbler sync' to apply changes.
sed -i 's/authn_denyall/authn_configfile/g' /etc/cobbler/modules.conf
sed -i 's/server: 127.0.0.1/server: cobbler.my_domain.com/g'
/etc/cobbler/settings
sed -i 's/pxe_just_once: 0/pxe_just_once: 1/g' /etc/cobbler/settings
sed -i 's/anamon_enabled: 0/anamon_enabled: 1/g' /etc/cobbler/settings
sed -i 's/next_server: cobbler.my_domain.com/next_server: 192.168.1.1/g'
/etc/cobbler/settings
#change 'disable' to 'no'
vi /etc/xinetd.d/rsync
yum install syslinux fence-agents debmirror cman
iptables -A INPUT -p tcp --dport 80 -m state --state NEW -s
192.168.1.0/24-j ACCEPT
iptables -A INPUT -p udp -m udp --dport 25151 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 69 -s 192.168.1.0/24 -j ACCEPT
service iptables save
openssl passwd -1 -salt 'RANDOM' 'PASSW0RD'
copy that string to default_password_crypted:in /etc/cobbler/settings
sed -i -e 's|@dists=.*|#(a)dists=|' /etc/debmirror.conf
sed -i -e 's|@arches=.*|#(a)arches=|' /etc/debmirror.conf
cobbler get-loaders
mkdir /tftpboot
chkconfig cobblerd on
chkconfig xinetd on
chkconfig httpd on
/etc/init.d/cobblerd restart
/etc/init.d/httpd restart
/etc/init.d/xinetd restart
cobbler sync
cobbler check
###end
However when I try to reach cobbler.my_domain.com/cobbler_web
I get a 109.
Error 109 (net::ERR_ADDRESS_UNREACHABLE): Unable to reach the server.
Yes I can reach the coblbler.my_domain.com/ it gives me the apache page.
I tried to hard code the cobbler_web.conf file,
cat <<EOF > /etc/httpd/conf.d/cobbler_web.conf
<VirtualHost *:80>
ServerName cobbler.my_domain.com
ServerAlias cobbler
SetEnvIf Request_URI ".*/op/events/user/.*" dontlog
CustomLog logs/access_log combined env=!dontlog
<Location "/cobbler_web">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
# PythonOption django.root /cobbler_web
PythonDebug On
PythonPath "['/usr/share/cobbler/web/'] + sys.path"
AuthBasicAuthoritative Off
AuthType basic
AuthName "Cobbler"
Require valid-user
PythonAuthenHandler cobbler_web.views
</Location>
</VirtualHost>
EOF
that too gives me an error
MOD_PYTHON ERROR
ProcessId: 2984
Interpreter: 'cobbler.my_domain.com'
ServerName: 'cobbler.my_domain.com'
DocumentRoot: '/var/www/html'
URI: '/cobbler_web'
Location: '/cobbler_web'
Directory: None
Filename: '/var/www/html/cobbler_web'
PathInfo: ''
Phase: 'PythonAuthenHandler'
Handler: 'cobbler_web.views'
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line
1202, in _process_target
module = import_module(module_name, path=path)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line
304, in import_module
return __import__(module_name, {}, {}, ['*'])
File "/usr/share/cobbler/web/cobbler_web/views.py", line 6, in <module>
from django.shortcuts import render_to_response
File "/usr/lib/python2.6/site-packages/django/shortcuts/__init__.py",
line 10, in <module>
from django.db.models.manager import Manager
File "/usr/lib/python2.6/site-packages/django/db/__init__.py", line 14,
in <module>
if not settings.DATABASES:
File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line
276, in __getattr__
self._setup()
File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 40,
in _setup
raise ImportError("Settings cannot be imported, because environment
variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
I have got it to run before, but not sure what i'm not doing right this
time. any help will be much appreciated.
Best,
Kenneth M
11 years, 4 months