<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
Systems don't inherit profile's kickstart metadata?
by Joshua J. Kugler
So, this problem:
Doing koan installs and allowing auto-register gives me a system with
"localhost" as the host name and a weird floating point number as the
system name in Cobbler, instead of what I expected, which was the value
I provided to koan as --virt-name.
lead to this attempted solution:
I defined a system using the profile I wanted, and then try to run koan
with --system=SYSTEM_NAME.
which lead to this problem:
System installs fine, but the kickstart meta data does not take affect;
in this case, the chef job that was run when I installed via --profile
was not run when I installed via a --system= that used the same
previously mentioned profile.
which lead to this attempt:
koan --virt --profile=builder-el6-x86_64 --system=builder-el6-64-01\
--server=cobbler.example.com --virt-path=vg_group
which lead to this interesting bug:
- looking for Cobbler at http://cobbler.example.com:80/cobbler_api
- reading URL: http://172.29.1.101/cblr/svc/op/ks/system/builder-el6-
x86_64
Traceback (most recent call last):
<snip>
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: NOT FOUND
Why was it trying to pull the profile from the system section of the
API?
Can't you "override" the profile when you specify a system?
This is Cobbler/Koan 2.2.2 by the way.
Thanks for any help you can render!
j
--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
joshua(a)azariah.com - Jabber: pedahzur(a)gmail.com
PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
11 years, 8 months
[PATCH 0/5] Port koan from virtinst to virt-install command
by Cole Robinson
Koan uses the virtinst library for creating libvirt VMs. This is the
same code that virt-install and virt-manager use for a lot of their
libvirt interaction.
Problem is this virtinst never should have been a public API, it was
designed without much thought, and attempting to maintain back compat
all these years hasn't really done much good.
On the flip side, virt-install very much is intended to be a stable
API: there are far more people out there using virt-install for scripting
and we plan on keeping those scripts working as long as possible.
virtinst should really be an implementation detail of virt-install.
So along that line of thinking, I want to deprecate virtinst as a public
API, and keep it private to virt-* tools. So here is a patch series
swapping koan from virtinst to generating a virt-install command line.
Ideally this patch makes it into fedora before march so I can deprecate
virtinst in upcoming fedora 17.
In the process, I add unit testing and unify most of the libvirt koan
code, so hopefully things are in a better state than before.
One fairly sizable caveat though is that I haven't _actually_ tested
koan: unit tests prove it is doing something useful reality can always
be different. Though judging by the state of the koan code I don't think
it's getting a lot of usage, at least the imagecreate module has
been outright broken for near 6 months.
Cole Robinson (5):
setup.py: Add stub 'test' command
koan: vmware: Drop unused imports
koan: Port xen creation to virt-install
koan: Port qcreate to virt-install
koan: port imagecreate to virt-install
.gitignore | 1 +
koan/imagecreate.py | 171 +--------------------------
koan/qcreate.py | 210 +--------------------------------
koan/virtinstall.py | 289 +++++++++++++++++++++++++++++++++++++++++++++
koan/vmwcreate.py | 7 +-
koan/xencreate.py | 173 +--------------------------
setup.py | 51 ++++++++-
tests/koan/__init__.py | 1 +
tests/koan/virtinstall.py | 128 ++++++++++++++++++++
9 files changed, 484 insertions(+), 547 deletions(-)
create mode 100755 koan/virtinstall.py
create mode 100644 tests/koan/__init__.py
create mode 100644 tests/koan/virtinstall.py
--
1.7.7.5
11 years, 9 months
Cobbler-side installs to KVM, VMware?
by Eldred, Doug
I'm looking for an example, specifically showing the "power" settings in Cobbler, for how to initiate a Cobbler-side install to a KVM or VMware virtual machine. Most of what I've found so far involves using koan, not using the Cobbler side to kick things off.
To my surprise, even though there's a "fence_vmware" command, Cobbler is unaware of it. I've tried ipmitool based on one example, but haven't figured out the other power values to set in Cobbler.
Thanks in advance for any clues or documentation.
Regards,
Doug
----
MC Linux Infrastructure, 970-898-4860, Fort Collins 3UR8 (MS 57)
"We should not let the much that is to do obscure the much which has been done." -- Calvin Coolidge
11 years, 11 months
Debian deploymenet support
by Ramon van Alteren
Hi List,
Would anyone know if there is any documentation on how to use cobbler
to deploy debian onto bare-metal ?
I've found https://github.com/cobbler/cobbler/wiki/Installation-Notes
which discusses installing cobbler on debian-squeeze which worked
fine.
However I'm looking for more information about installing debian
guests with cobbler..
So far I've only found information about ubuntu, but surely there must
be people using cobbler to install debian hosts ?
Grtz,
Ramon
11 years, 11 months
Web GUI Improvements
by James Cammarata
Just merged this in to master, which should end being released in 2.4.x:
https://github.com/cobbler/cobbler/pull/190
The main change is the move to jQuery tabs using the UI tab widget
instead of the expanding/collapsing sections we had before. Under the
hood, there were some HTML/CSS changes to make things flow a bit
better and to give better control over the placement of some DIVs, as
well as a little bit of cleanup.
Here's a screen shot, to show how the tabs look when editing:
http://www.sngx.net/pictures/newweb.png
Let me know what you think, I've primarily tested it in Chrome 18,
Firefox 12, and IE9 (which looked surprisingly good).
Enjoy!
11 years, 11 months
Multiple network devices detected
by Daniel Lollman
Hi all -
Hoping someone can help me out, my google searches seem to have been exhausted.
I have deployed off of cobbler in the past and need to deploy 40 more servers tonight. I added my systems like I did previously, using the same profiles that worked fine before.
The only major change I can think of is upgrading cobbler itself.
When the server boots it gets ks file fine (it seems) but immediately goes into the "You have multiple network interfaces which do you want to install through".
I have read the various discussions about adding ipappend 2 (which still seems to be happening) along with using ksdevice=bootif (also tried eth0, etc) through the kernel options in the Profile. Nothing seems to be working.
Where can I look next?
Thanks for the help.
daniel
11 years, 11 months
cobbler reposync with rsync
by Mezei Zoltan
Environment:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
# rpm -qv cobbler
cobbler-2.2.2-1.el6.noarch
I'm trying to set up a few rsync repositories to mirror. As far as I
can see, cobbler always uses
rsync -rltDv --delete --exclude-from=/etc/cobbler/rsync.exclude <URL>
<localdir>
to fetch stuff from the RPM repositories. It causes some problem with
the following repository:
rsync://downloads.linux.hp.com/SDR/downloads/ServicePackforProLiant/rhel/...
Unfortunately HP decided that it is a good idea to put symlinks into
this directory and according to rsync's "-l" option, cobbler won't
follow these links, it just copies the links themselves. This results
in some links that don't point to existing files :/
Questions:
- Is it possible to pass per-repository options to rsync within cobbler?
- Any other suggestion on how to handle this specific repository?
Thanks,
--
Zizi
11 years, 11 months
How to install a dhcp only host?
by Detlev Habicht
Hi all,
i am using Cobbler 2.2.2 and i activated DHCP management.
This is working fine with profiles, pxe and so on.
But when i try to install a host only for DHCP, i have no
entrys. No DHCP entry and no system entry in Cobbler.
I want to set only MAC, IP and hostname.
So, what is the right way to setup a DHCP-only entry
via Web or CLI?
Thanx for any help.
Detlev
--
Detlev | Institut fuer Mikroelektronische Systeme
Habicht | D-30167 Hannover +49 511 76219662 habicht(a)ims.uni-hannover.de
--------+-------- Handy +49 172 5415752 ---------------------------
11 years, 11 months