Build ISO from GUI fails
by Moshe Hyzon
I'm using 2.0.10 and got an error when doing an iso build from the web GUI:
Tue Mar 8 11:24:43 2011 - INFO | ISO build complete
Tue Mar 8 11:24:43 2011 - INFO | You may wish to delete: /buildiso
Tue Mar 8 11:24:43 2011 - INFO | The output file is:
/var/www/cobbler/pub/generated.iso
Tue Mar 8 11:24:43 2011 - INFO | ### TASK COMPLETE ###
Tue Mar 8 11:24:43 2011 - INFO | Exception occured: exceptions.TypeError
Tue Mar 8 11:24:43 2011 - INFO | Exception value: on_done() takes
exactly 1 argument (0 given)
Tue Mar 8 11:24:43 2011 - INFO | Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 97, in run
self.on_done(self)
Tue Mar 8 11:24:43 2011 - ERROR | ### TASK FAILED ###
I fixed it by adding an explicit (self) to the on_done call which
seemed to work. I'm still a Python near-beginner, so this might be
not The Right Way:
[root@spacewalk-test cobbler]# diff -u /tmp/remote.py.old
/usr/lib/python2.4/site-packages/cobbler/remote.py
--- /tmp/remote.py.old 2011-03-08 11:32:56.000000000 -0500
+++ /usr/lib/python2.4/site-packages/cobbler/remote.py 2011-03-08
11:25:11.000000000 -0500
@@ -94,7 +94,7 @@
try:
rc = self._run(self)
self.remote._set_task_state(self,self.event_id,EVENT_COMPLETE)
- self.on_done()
+ self.on_done(self)
return rc
except:
utils.log_exc(self.logger)
Moshe Hyzon
13 years, 1 month
Boot Menu Help Please
by Eric Riser
Hello Everyone,
I'm new to Cobbler and pretty new to Linux in general. I'm running into an
issue that I've exhausted all my resources, so I've come to you guys for
help. I setup Cobbler using CentOS 5.5 and I'm simply trying to PXE boot
Fedora 14 to a physical server. I'm able to PXE boot and see the tftp menu,
but when I choose my Fedora profile nothing happens. I don't get any error,
no process starts... simply nothing happens. It will just keep defaulting
back to the local profile. Can someone point me in the right direction? I'm
attaching some of my configuration, but if you need more please let me know.
[root@cobbler httpd]# vi /tftpboot/pxelinux.cfg/default
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://fedorahosted.org/cobbler
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
LABEL Fedora
kernel /images/Fedora/vmlinuz0
MENU LABEL Fedora
append initrd=/images/Fedora/initrd0.img ksdevice=bootif lang=
kssendmac text ks=http://192.168.8.68/cblr/svc/op/ks/profile/Fedora
ipappend 2
MENU end
[root@cobbler httpd]# cobbler report
distros:
==========
Name : Fedora
Architecture : i386
Breed : redhat
Comment :
Initrd : /distros/fedora/isolinux/initrd0.img
Kernel : /distros/fedora/isolinux/vmlinuz0
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart Metadata : {}
Management Classes : []
OS Version : generic26
Owners : ['admin']
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Template Files : {}
profiles:
==========
Name : Fedora
Comment :
DHCP Tag : default
Distribution : fedora
Enable PXE Menu? : 1
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart : /distros/kickstart/fedora-ks.cfg
Kickstart Metadata : {}
Management Classes : []
Name Servers : []
Name Servers Search Path : []
Owners : ['admin']
Parent Profile :
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 File Size(GB) : 5
Virt Path :
Virt RAM (MB) : 512
Virt Type : xenpv
systems:
==========
repos:
==========
images:
==========
[root@cobbler httpd]#
13 years, 1 month
cobbler master with multiple slaves, how to toggle netboot_enabled on master cobbler?
by Mark Christian
Cobbler version 2.0.10
Our current configuration consists of a single "master" cobbler where all configuration takes place. There are multiple cobbler "slaves" whose sole purpose is to mirror the master configuration, they each run the following command every 5 minutes.
/usr/bin/cobbler replicate --master=sj-provision.altera.com --systems="*" --prune --omit-data
All cobbler servers have configured "pxe_just_once: 1" in /etc/cobbler/settings.
I would like to automate the setting of "netboot_enabled false" for the newly built cobbler system on the cobbler master once the cobbler slave has finished kickstarting this host. This is automated on the cobbler slave responsible for building the host, however this will get wiped once the cobbler replicate command runs. Is there a relatively simple way (trigger perhaps?) that will facilitate toggling the netboot_enabled flag on the master?
Mark
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
13 years, 1 month
Re: xmlrpc and PHP
by Briggs, Lee
Hi Scott,
Thanks to your help I managed to get my PHP cobbler XMLRPC implementation working, however;
I'm trying to get a list of all profile names first and foremost but with get_profiles the name doesn't seem to be returned.
Is there a way I can get a list of all the cobbler profile names using get_profiles using XMLRPC?
Regards,
Lee
____________________________________________________________________________________________________
Lee Briggs | JPMorgan Chase & Co. | Compute Back Bone | SA Team | Mobile: +447711767452 | 60 Victoria Embankment, London
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.
13 years, 1 month
Install Most Recent Fedora 14 Packages vs. What Is On DVD
by Bob Cochran
I am able to get the cobbler menu to show up on a pxebooting system.
There is a "distro" I've named "buildserver" which is based on the
Fedora 14 x86_64 DVD. The DVD iso is mounted on the cobbler server and
is pointed to on the web server.
Many of the packages on the DVD have been updated since the Fedora 14
release. How can I tell kickstart or cobbler to check for updated
packages and download and install updates as needed?
Thanks
Bob Cochran
13 years, 1 month
PXE-E53 "No Boot Filename Recieved" -- Verizon Router DHCP
by Bob Cochran
Hello,
I am new to Cobbler in the sense that I've dabbled with it in the past
but have never really gotten it to work. I need help with a PXE booting
issue.
My goal: to be able to install Fedora 14 x86_64 on a desktop machine
with a new hard drive. I want to do this using cobbler with a kickstart
file that I have edited myself. Later, when I'm satisfied that the
Kickstart installation works, I want to replace the system with a new
motherboard and processor.
The cobbler server has been installed on a laptop. This is another
Fedora 14 x86_64 system. It was frustrating at first until I disabled
SELinux, which has been running in full enforcing mode. A DVD iso
containing the Fedora 14 distribution has been mounted to /mnt/dvd.
httpd is running and I set up symlinks in the web content area that
point to /mnt/dvd. I also did a 'cobbler import' on the DVD.
The cobbler server and the the system to which I want cobbler to install
Fedora 14 to are both connected to a Dell PowerConnect 2716 switch and
this in turn is connected to a Verizon router which provides internet
access and DHCP service. All the DHCP is done by the Verizon router.
I've never changed settings in the router.
My problem: when I turn on the machine that is to PXE boot, I get a
PXE-E53 error message: "No boot filename recieved".
How do I fix this in terms of a Verizon router/DHCP service so that the
machine I want to install Fedora to using Kickstart "sees" the Cobbler
server properly and works with it?
Thanks
Bob Cochran
13 years, 1 month
xmlrpc and PHP
by Briggs, Lee
I'm new to xmlrpc and I've been trying to integrate with a cobbler server in order to pull some info out of it. Unfortunately, the documentation is at best, sparse so I need some help.
The xmlrpc info for cobbler is here
<?php
include 'xmlrpc.inc';
// Make an object to represent our server.
$server = new xmlrpc_client('https://url/cobbler/cobbler_api');
$token = $server->login("username","password");
echo $server->getprofiles("name");
?>
I get precisely nothing. So, what have I done wrong? How can i check the request is actually being performed correctly.
obviously I've replaced "url" "username" and "password" for the purposes of this question.
Can anyone shed any light on what I'm doing wrong, or give me a hand even?
____________________________________________________________________________________________________
Lee Briggs | JPMorgan Chase & Co. | Compute Back Bone | SA Team | Mobile: +447711767452 | 60 Victoria Embankment, London
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.
13 years, 1 month
xmlrpc and PHP
by Briggs, Lee
I'm new to xmlrpc and I've been trying to integrate with a cobbler server in order to pull some info out of it. Unfortunately, the documentation is at best, sparse so I need some help.
The xmlrpc info for cobbler is here
<?php
include 'xmlrpc.inc';
// Make an object to represent our server.
$server = new xmlrpc_client('https://url/cobbler/cobbler_api');
$token = $server->login("username","password");
echo $server->getprofiles("name");
?>
I get precisely nothing. So, what have I done wrong? How can i check the request is actually being performed correctly.
obviously I've replaced "url" "username" and "password" for the purposes of this question.
Can anyone shed any light on what I'm doing wrong, or give me a hand even?
____________________________________________________________________________________________________
Lee Briggs | JPMorgan Chase & Co. | Compute Back Bone | SA Team | Mobile: +447711767452 | 60 Victoria Embankment, London
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.
13 years, 1 month