<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
Buildiso - how to do static network?
by Jakov Sosic
Hi,
I'm using Cobbler 2.2.3, and have to resort to buildiso.
Now, my problem is that ISO want's my machines to do DHCP, but I don't
want them to do that. I want pure static networking during installation
process.
Is that possible and how?
I've tried to set following in my kickstart file:
network --bootproto=static --device=eth0 --onboot=on --noipv6
--ip=192.168.1.244 --netmask=255.255.255.0 --gateway=192.168.1.1
--nameserver=192.168.1.1
but with no luck. It seems that buildiso configures networking dhcp,
because network config gets done before it even pulls kickstart from
Cobbler server.
How should I go about this one? Is there a way to force static
configuration of network interface for installation?
--
Jakov Sosic
www.srce.unizg.hr
11 years, 1 month
Server Override - System Edit
by Tom Brown
Hi
Is this option only available on system add?
# cobbler system edit --name=some.name.here --server-override=some.server.here
Usage: cobbler [options]
cobbler: error: no such option: --server-override
# cobbler version
Cobbler 2.2.3
source: ?, ?
build time: Mon Jun 18 01:04:49 2012
thanks
11 years, 1 month
PXE boot Hiren?
by Robert Jacobson
I'm trying to setup cobbler to PXE boot Hiren's boot CD. I realize this
is more a tftp question than cobbler... but this is the type of
audience that has probably done it for their own environments.
I was able to manually modify pxelinux.cfg by following, e.g.
http://fogproject.org/forum/threads/integrating-iso-hirens-boot-cd-into-f...
i.e. :
LABEL hiren-15.2
kernel /memdisk
append iso initrd=/images/hiren.15.2.iso raw
MENU LABEL hiren-15.2
Booting from them menu item gets me (after a long time loading the ~600
MB hiren ISO into memory!) to the normal Hiren boot screen, but when I
attempt to start something like Partition Magic, it fails to boot after
a couple seconds with the error:
ERROR: could not insert 'phram': Input/output error
mount: special device /dev/mtdblock0 does not exist
I've tried other configurations, e.g. the one here:
http://www.techtrunch.com/linux/boot-hiren-boot-cd-network
But that one didn't work at all (selecting the item in the menu just
immediately went back to the PXE menu)
Any tips appreciated!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson Robert.C.Jacobson(a)nasa.gov
Lead System Admin Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591
11 years, 1 month
langsupport in pxerescue.ks
by Robert Jacobson
I created a "rescus" profile in cobbler using:
cobbler profile add --comment="Rescue for RHEL 6.4"
--distro=rhel6u4-x86_64
--kickstart=/var/lib/cobbler/kickstarts/pxerescue.ks --kopts=rescue
--name=rescue-rhel6u4-x86_64
When I booted it, anaconda complained that "langsupport" is not a valid
keyword. It seems to have been removed from anaconda, see:
https://bugzilla.redhat.com/show_bug.cgi?id=160789
Should it then be removed from the cobbler pxerescue.ks file, or is
there a reason to keep it in (e.g. legacy support)? Perhaps change it to:
# uncomment this for legacy systems
# langsupport en_US
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson Robert.C.Jacobson(a)nasa.gov
Lead System Admin Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591
11 years, 1 month
set cobbler variables from PXE menu?
by Robert Jacobson
Is it possible to set cobbler variables by using the "Tab" key at the
PXE menu? I tried just adding the variable itself, like:
foo=1
But that didn't seem to work. At least, the "if" statement I had to
check for that variable didn't find it.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson Robert.C.Jacobson(a)nasa.gov
Lead System Admin Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591
11 years, 1 month
Re: [cobbler] cobbler Digest, Vol 56, Issue 5
by Colin Leavett-Brown
Hi James, Thanks for responding. This was indeed the case. Colin.
On 13-02-19 08:12 AM, cobbler-request(a)lists.fedorahosted.org wrote:
> James Cammarata<jimi(a)sngx.net>
11 years, 2 months
tftp boot files
by Eddie Velez
I am adding files to distro that are need during boot process of Citrix via GUI. When I save changes it removes one of the files needed. I am using 2.4.0 beta 3 of cobbler.
$img_path/=/var/www/cobbler/ks_mirror/Citrix-5.6-SP2/boot/vmlinuz
$img_path/=/var/www/cobbler/ks_mirror/Citrix-5.6-SP2/install.img
If I do it via command line it will be ok until I do a "cobbler sync"
cobbler distro edit --name=Citrix-6.1.0-RTM-59235 --boot-files='$img_path/'='/var/www/cobbler/ks_mirror/Citrix-6.1.0-RTM-59235/boot/vmlinuz''$img_path/'='/var/www/cobbler/ks_mirror/Citrix-6.1.0-RTM-59235/install.img
________________________________
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, 2 months