<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
Project Status and Direction
by James Cammarata
Hey all, just wanted to send out a quick update on the project status.
The release24 branch has been receiving patches, and is alpha quality.
I'm looking for more users to check it out and give it a test. One of
the biggest holdups to this release is the documentation. The 2.2.3
manual will need to be forked and updated with all of the new features
in 2.4.0, such as:
* Dynamic settings - no more needing to restart cobblerd when changing settings.
* Better debian/ubuntu support (better preseed, more snippet support, etc.)
* Support for bonded bridge interfaces (useful for virtual hosts)
* OpenVZ support as a virtualization type
* Web GUI improvements
* Alpha support for MySQL as an alternate storage backend
And probably a few more that I'm forgetting. So, if you're familiar
with any of these features, take a look at the docs repo - any help
updating the docs would be appreciated. Right now, a lot of the pages
content was essentially just copied from the wiki, so there is a lot
of cleanup left to do. Once the manual is forked, we're going to have
to do that in two places, so it'll be easier to tackle now before we
fork it.
There are two primary goals on my road map right now:
1. Work towards adding support for IaaS platforms like OpenStack,
Eucalyptus, etc.
2. Improve unit testing and continuous integration testing with Jenkins.
Both of these goals require some dedicated hardware, so to help fund
those goals I have created an Indiegogo campaign:
http://www.indiegogo.com/cobbler24
This will be the only time I mention this on the mailing list, but I
will put it up on the project home page and mention it via twitter. So
any help in getting the word out will of course be greatly
appreciated.
Overall, I think the project has been moving in a positive direction,
and the last 6 months have flown by since taking over as maintainer.
Any comments or other feedback are always welcome. Thanks!
11 years, 4 months
Re: [cobbler] RFC: adding a cobbler debmirror.template?
by Zack Perry
[...]
> >> Care to explain a bit more? AFAICT the netboot
> >> images are exactly where they used to be.
> >
> > Thanks. I need to correct myself a bit.
> >
> > Yes. netbook images are available at for example for
> > 12.10-x86_64 at:
> >
> > http://archive.ubuntu.com/ubuntu/dists/quantal/main/installer-amd64/curre...
> >
> > or the daily build area.
> >
> > The hierarchy, however, differs from what you may get
> > from an iso image. IMO Red Hat systems are more consistent
> > in this regard.
>
> Ah, got it.
While we are on the subject of netboot issue, I also spotted something
odd. AFAIK, the ubuntu-12.10-desktop-amd64.iso and
ubuntu-12.10-server-amd64.iso do not provide working netboot images
for PXE network install. Please see my test report in this regard:
http://www.mail-archive.com/cobbler@lists.fedorahosted.org/msg08210.html
As a result of my digging around, I found
lubuntu-12.10-alternate-amd64.iso (never tried it before). But the
iso IMHO has a funny aspect to it. Lets take a look of the
above iso's content, loop mounted on /mnt:
[root@cobbler quantal]# pwd
/mnt/dists/quantal
[root@cobbler quantal]# ls -lR
.:
total 17
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 main
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 multiverse
-r--r--r-- 1 root root 8436 Oct 17 00:26 Release
-r--r--r-- 1 root root 198 Oct 17 00:26 Release.gpg
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 restricted
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 universe
./main:
total 10
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-amd64
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-i386
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 debian-installer
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 dist-upgrader
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 source
[...]
./main/debian-installer:
total 2
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-amd64
./main/debian-installer/binary-amd64:
total 30
-r--r--r-- 1 root root 30259 Oct 17 00:26 Packages.gz
[...]
./universe:
total 8
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-amd64
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-i386
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 debian-installer
dr-xr-xr-x 1 root root 2048 Oct 17 00:25 source
./universe/binary-amd64:
total 48
-r--r--r-- 1 root root 48538 Oct 17 00:26 Packages.gz
-r--r--r-- 1 root root 101 Oct 17 00:26 Release
[...]
./universe/debian-installer:
total 2
dr-xr-xr-x 1 root root 2048 Oct 17 00:26 binary-amd64
./universe/debian-installer/binary-amd64:
total 1
-r--r--r-- 8 root root 20 Oct 17 00:26 Packages.gz
[...]
Note that the Packages.gz in universe/debian-installer/binary-amd64
has no content, but its counterpart in universe/binary-amd64 does.
I have tried to use the iso burned to a CD to do an install. The
Lubunbun desktop did get installed, even without an Internet
connection (I pulled the wire ;-)
But up to now, if I try to do a PXE network install, the only way
that I can get a desktop installed is to add a locally mirrored
repository with a d-i apt-setup/local0/repository ... preseed
debconf-set-selections command.
I even tried to replace the Packages.gz in
universe/debian-installer/binary-amd64
with the result of dpkg-scanpackages, gzipped, but the graphical
login is still missing after the install.
Regards,
-- Zack
11 years, 4 months
RFC: adding a cobbler debmirror.template?
by Zack Perry
As of now, cobbler has the following etc templates <https://github.com/cobbler/cobbler/tree/master/templates/etc>:
dhcp.template dnsmasq.template named.template rsync.template secondary.template tftpd.template zone.template
For those of you who need to deal with Debian/Ubuntu network install,
what do you think about adding a debmirror.template to the collection?
Rationales: the use of debmirror is no less complex than say dnsmasq,
rsync, and definitely more so than tftpd. These three have templates,
so why debmirror can't?
Motivation: recently Canoncial decided to stop providing a full
alternate iso for its default release. There are alternate install
isos for other variants, but IMHO the digging and reviewing a
collection of disjointed documentation (often are out of date or
somewhat inaccurate) is such a waste of time. One of cobbler's main
design goal is to mask the complexities of serveral tools typically
used for PXE network install. Given what Ubuntu has done, IMHO
debmirror becomes an important tool and thus qualifies to have
a template.
Regards,
-- Zack
11 years, 4 months
Cobbler uses DHCP instead of a static IP
by Paul.Goessinger@dab.com
Hi,
We are using cobber to manage our machines for our satellite. Re are using satellite 5.5 with cobbler 2.0.7. Since our last upgrade, our VMWare Machines do not use the static IP anymore during kickstart.
NOTICE NetworkManager: ifcfg-rh: Ignoring connection 'System eth0' and its device due to NM_CONTROLLED/BRIDGE/VLAN.
Before the upgrade, this worked.
We use this cobbler command to add the machine:
cobbler system add --name=thename --profile=theprofilename --hostname=thename --kopts="ksdevice=eth0 umgebung=LAN" --interface=eth0 --static=true --mac=00:50:56:9b:2e:c6 --ip=6.7.8.9 --subnet=255.255.255.0 --gateway=3.4.5.6 --name-servers=1.2.3.4
What are we doing wrong? I searched for different combinations of cobbler, NetworkManager, DHCP etc. but I did not find any usable answer. I hope this is a cobbler problem.
Cheers,
Paul
11 years, 4 months
cobbler 2.4.0 Ubuntu repository mirroring hostname off-by-one parsing error?
by Zack Perry
cobbler: 2.4.0 from epel-testing
host : SL 6.43 64 bit
In http://cobbler.github.com/manuals/2.2.3/4/7_-_Package_Management_and_Mirr... "Also apt" section, there is this example:
cobbler repo add --name=foo --mirror=http://url --breed=apt --arch=i386
So far, I have been using either ISO image import or apt-mirror to do direct Ubuntu mirror as debmirror was not available for RHEL for quite some time. But now since debmirror is on my cobbler server, so I decided to give cobbler's apt mirror a work-out:
[root@cobbler ~]# cobbler repo add --name=ubtest --mirror=http://us.archive.ubuntu.com --breed=apt --arch=x86_64
[root@cobbler ~]# cd /var/www/cobbler/ks_mirror
[root@cobbler ks_mirror]# cobbler repo list
[...]
ubtest
[...]
[root@cobbler ks_mirror]# cobbler reposync
task started: 2012-11-28_095927_reposync
task started (id=Reposync, time=Wed Nov 28 09:59:27 2012)
hello, reposync
run, reposync, run!
running: /usr/bin/debmirror --passive --nocleanup --method=http --host=us.archive.ubuntu.co --root=us.archive.ubuntu.co --dist=hive.ubuntu.com /var/www/cobbler/repo_mirror/ubtest --nosource -a amd64
received on stdout: gpgv: keyblock resource `/var/lib/cobbler/.gnupg/trustedkeys.gpg': No such file or directory
gpgv: no valid OpenPGP data found.
[GNUPG:] NODATA 1
[GNUPG:] NODATA 2
gpgv: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
Errors:
Release gpg signature does not verify
received on stderr: rsync: failed to connect to us.archive.ubuntu.co: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]
Warning: failed to use rsync to download extra files.
[...]
So, the character 'm' in the us.archive.ubuntu.com got chopped off before the source hostname was fed to debmirror. Looks like there is an off-by-one error in action_reposync.py?
[...]
474 idx = mirror.find("://")
475 method = mirror[:idx]
476 mirror = mirror[idx+3:]
477
478 idx = mirror.find("/")
479 host = mirror[:idx]
480 mirror = mirror[idx+1:]
481
482 idx = mirror.rfind("/dists/")
483 suite = mirror[idx+7:]
484 mirror = mirror[:idx]
485
486 mirror_data = "--method=%s --host=%s --root=%s --dist=%s " % ( method , host , mirror , suite )
[...]
Regards,
-- Zack
11 years, 4 months
How to enable a graphical install for RHEL desktops?
by Zack Perry
cobbler: 2.4.0 from epel-testing
server : SL 6.3 64 bit
Today I attempted to PXE boot the desktop of Fedora 17. According to
the Fedora 17 kickstart documentation, the graphical mode should be the
default, but the first time, the installer ran in text mode. After the
installation was done, I was greeted by just a text console with the
login prompt :-(
So, I modified the kickstart template such that for desktop
installation, it used the 'graphical' option. This worked. Fedora 17
installer ran in graphical mode. The firstboot program launched, and
the desktop UI came up.
Next, I tried Scientific Linux 6.3 desktop. This time, the same symptom, but using the 'graphical' kickstart option didn't help.
Feeling curious, I did the following:
[root@cobbler ~]# cobbler system dumpvars --name=nb1|grep text
kernel_options : ksdevice=bootif lang= graphical keyboard-configuration/layoutcode=us interface=eth0 text locale=en_US kssendmac priority=critical
BTW, the 'graphical' shown in the above line was added by me just for
testing.
I knew that I didn't set the 'text' kernel option (doubled checked the profile and system objects just to make sure), so I checked the
source, indeed:
In cobbler/settings.py, there is the following:
78 "kernel_options" : [{"lang":" ", "text":None, "ksdevice":"eth0"},"dict"],
Also, in /etc/cobbler/settings, there is the following:
[...]
# kernel options that should be present in every cobbler installation.
# kernel options can also be applied at the distro/profile/system
# level.
kernel_options:
ksdevice: bootif
lang: ' '
text: ~
[...]
Now, I understand that very few people would use RHEL as desktops. Fedora? Sure. But setting the installation always to text mode seems
to contradict with the official RHEL 6 Installation Guide.
Is there a way to get the documented behavior, i.e. graphical
by default, use text mode when desired?
Regards,
-- Zack
11 years, 4 months