Getting rid of bad cobbler metavariables
by Adam Rosenwald
A FAQ that I have brought up on numerous occasions on IRC involves
'getting rid of bad cobbler metavariables'.
If I were to set a wrong ks_meta variable NAME, how do I get rid of the
NAME without taking out ks_meta entirely.
E.g.
`cobbler system add --name=NAME --ksmeta='arg0=val0 arg1=val1
*art2*=val2 ... argN=valN' ...`
There are quite a number of scenarios where I don't want to remove all
of ksmeta, but only a mistyped variable name. I have heard about the
'!ARG' syntax:
E.g.
`cobbler system edit --in-place --name=NAME --ksmeta='*!art2*'`
Supposedly this syntax will, upon deserialization of the JSON, clear the
ks_meta namespace of *art2*; however, upon issuing a report on a given
entity, the flawed variable will still appear along with the negated
variable.
I.e.
ks_meta : 'arg0=val0 arg1=val1 *art2*=*val2* ... argN=valN *!art2*'
For those who make use of this data for inventory or other purposes, the
'!VAR' notation does not cut it. I would like a definitive explanation
of how to remove bad metavariables irrespective of deserialization.
Thanks,
- A.
14 years, 3 months
cobbler repo rename
by Baptiste AGASSE
Hi all,
Today i have rename a repo in cobbler. The rename works but all data of this repository has been deleted.
Is it a normal behavior of "cobbler repo rename --name=myoldname --newname=mynewname" ?
Thanks for your answers.
Baptiste.
14 years, 6 months
yum upgrade to 1.2.6-1.el5
by Harry Hoffman
Just upgraded to the latest cobbler from epel-testing... the
post-install script fails :-(
Updating : cobbler ####################### [ 5/10]
profile CentOS-5.2-x86_64 not found, inheritance not possible
Stopping cobbler daemon: [ OK ]
Starting cobbler daemon: Traceback (most recent call last):
File "/usr/bin/cobblerd", line 32, in ?
api = bootapi.BootAPI()
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 90, in
__init__
self.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 448, in
deserialize
return self._config.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 186,
in deserialize
serializer.deserialize(self._profiles)
File "/usr/lib/python2.4/site-packages/cobbler/serializer.py", line
125, in deserialize
rc = storage_module.deserialize(obj,topological)
File
"/usr/lib/python2.4/site-packages/cobbler/modules/serializer_yaml.py",
line 136, in deserialize
obj.from_datastruct(datastruct)
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line
144, in from_datastruct
item = self.factory_produce(self.config,seed_data)
File
"/usr/lib/python2.4/site-packages/cobbler/collection_profiles.py", line
41, in factory_produce
return profile.Profile(config).from_datastruct(seed_data)
File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line
87, in from_datastruct
self.set_parent(self.parent)
File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line
131, in set_parent
raise CX(_("profile %s not found, inheritance not possible") %
parent_name)
cobbler.cexceptions.CX: 'profile CentOS-5.2-x86_64 not found,
inheritance not possible'
[FAILED]
error: %post(cobbler-1.2.6-1.el5.noarch) scriptlet failed, exit status 1
Any ideas?
Cheers,
Harry
14 years, 7 months
Custom Kickstart not completely honoured with Centos 5.3
by Anthony Giggins
Hi Everyone,
We use a custom kickstart to roll out our linux SOE, for some reason
some of the the config doesn't get honoured
(anything below $SNIPPET('redhat_register')) with Centos 5.3 Installs
but is does with 5.2 can anyone advise what is wrong?
Below is a copy of the kickstart config that's in cobbler with any
passwords etc removed, was originally in the message but it was too big
for the mailing list.
http://pastebin.com/f3e5a1909
Cheers,
Anthony
14 years, 9 months
How To Get A Cobbler-Based Install Started?
by Robert L Cochran
Okay. I have a laptop here which really can PXE boot, and it has a brand
new, bare 160 Gb hard drive in it. I wish to use cobbler to install
Fedora 11 on it, either the i386 or the PAE-i386, whichever flavor the
machine can accept.
After PXE booting successfully, I can see this blue-colored text-based
screen:
Cobbler | http://cobbler.et.redhat.com
(local)
Fedora11-PAE-i386
Fedora11-i386
rescue-Fedora11-PAE-i386
rescue-Fedora11-i386
Press [Tab] to edit options
And there is a white selection bar at the (local) option.
My question is, what do I do next to get a Fedora install started? If I
move the white selection bar down to "Fedora11-PAE-i386" and then press
the <enter> key nothing happens. If I press the <tab> key I see a long
boot incantation. But pressing <enter> seems to do nothing there, too.
Obviously I have missed reading documentation somewhere. Is there a wiki
page that tells me how to get an actual install started?
Thanks!
Bob
14 years, 9 months
Reminder, July 6th-10th is "Learn To Hack On Cobbler Week"
by Michael DeHaan
You, yes, you!
Tired of mdehaan being slow fixing things or not getting around to
implementing your really good idea?
Want to contribute to an open source project and get some free info on how?
Do you think you know enough to be dangerous but need some help figuring
things out?
Hacked around on various scripts before but want to work on a larger
program?
Want to learn more Python, RPM, Linux, or git-fu?
Have architecture questions about how Cobbler works internally?
"Learn to Hack on Cobbler Week" is for you!
This week is all about getting new folks to contribute to Cobbler, as
well as helping folks that have contributed once or twice learn to do
bigger things.
Cobbler is a community project. I am just the steward for it now, and
it is fueled by contributors from all over. We already have over 70 of
them!
Your chance to join this elite squadron of Cobbler hackers.
Before you get started you will want to:
* get a Fedora account at https://admin.fedoraproject.org/accounts --
you'll need this to edit the bug tracker
* think about what you want to work on, if it's in Trac at
fedorahosted.org/cobbler, great, assign it to yourself... if not, open a
new ticket!
* join the https://fedorahosted.org/mailman/listinfo/cobbler-devel
mailing list -- this is where we'll be sending patches
* join #cobbler-devel on irc.freenode.net if your work will let you --
this is the development chat channel. If you can't, email is ok, and
you can post comments/questions to the devel list.
* checkout the Cobbler code from the instructions on the Wiki ... or at
least read about how to check out the code. If anyone needs git help,
we can help with that too.
How things are going to work? You are priority #1 all week long --
not what I'm working on, not helping people in the user channel, just
you and getting your feature/change into cobbler!
If you have questions, I'll answer them as best I can, and work with
anyone in learning how to contribute to cobbler.
Bring questions of all kinds, even architectural ones, or basic ones...
doesn't matter! This week is about you.
I am looking forward to a fun and exciting (and hopefully very
informative) week!
--Michael
14 years, 9 months
How To Install Fedora 11 Using Cobbler and PXE Boot
by Robert L Cochran
I'm trying to install Fedora 11 using Cobbler. The test machine I am
using is a quite old Toshiba Satellite 1905-S301 laptop with a brand new
(meaning blank) hard drive. The laptop is capable of PXE booting. I've
tried to follow the directions given for setting up Cobbler.
I have cobblerd running.
The DVD for Fedora 11, i386 is mounted at http://localhost/fedorainstall.
I ran this:
[root@deafeng3 html]# cobbler import
--mirror=http://localhost/fedorainstall/ --name=Fedora11
/usr/lib64/python2.6/site-packages/Cheetah/CacheRegion.py:30:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
unsupported protocol
[root@deafeng3 html]# cobbler sync
/usr/lib64/python2.6/site-packages/Cheetah/CacheRegion.py:30:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
What is the above telling me? Does it mean the import action failed?
--------------------------
Possibly related to the above, when I list
/var/lib/tftpboot/pxelinux.cfg I see this structure:
[root@deafeng3 pxelinux.cfg]# ls -al
total 12
drwxr-xr-x. 2 root root 4096 2009-06-28 15:14 .
drwxr-xr-x. 7 root root 4096 2009-06-28 15:14 ..
-rw-r--r--. 1 root root 211 2009-06-28 15:14 default
[root@deafeng3 pxelinux.cfg]# cat default
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://cobbler.et.redhat.com
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local
LABEL local
MENU LABEL (local)
MENU DEFAULT
LOCALBOOT 0
MENU end
----------------------------------------------------------------------------
On the Toshiba laptop, there is nothing in the DVD drive (first boot
device), the hard drive is blank (second boot device), nothing is in the
floppy drive (third boot device), so the machine defaults to "NETWORK"
as the fourth boot device. Here is what I see on the screen:
Intel (R) Boot Agent Version 4.0.19
Copyright (C) 1997-2001, Intel Corporation
PXE:E61: Media Test Failure, check cable
PXE-M0F: Exiting Intel PXE ROM
How do I get TFTP working?
I think there needs to be a wiki page that can walk new users like me
through a Cobbler-based install on a remote machine.
14 years, 9 months
Selinux file context for tftpboot
by Robert L Cochran
When I run `cobbler check` I get these complaints:
[root@deafeng3 cobbler]# cobbler check
/usr/lib64/python2.6/site-packages/Cheetah/CacheRegion.py:30:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
The following potential problems were detected:
#0: you need to set some SELinux content rules to ensure cobbler works
correctly in your SELinux environment, run the following:
/usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/.*"
#1: since iptables may be running, ensure 69, 80, and 25151 are unblocked
#2: fencing tools were not found, and are required to use the (optional)
power management features. install cman to use them
I've tried several times to adjust the file context for tftpboot and get
this answer back from semanage:
[root@deafeng3 cobbler]# /usr/sbin/semanage fcontext -a -t
public_content_t "/tftpboot/.*"
/usr/sbin/semanage: File context for /tftpboot/.* already defined
Any advice appreciated. I need to install Fedora 11 on two (2) Toshiba
Satellite 1905-S301 laptops, on brand new hard drives, and this seems a
good chance to have Cobbler do it for me.
Bob
14 years, 9 months
cobbler replicate does not remove deleted records
by Christopher Johnston
We have a pretty larger cobbler install in our environment with a master
gold server and dozens of slave servers that replicate daily. Has anyone
noticed that deleted records do not get removed during the replication
process? This is really simple to test by adding a test record, removing it
and then replicating on the other node. In our use case we want to make
sure the slaves keep an identical copy from master gold server.
# cobbler version
cobbler 1.6.6
14 years, 9 months