Cobbler 2.0.1 Triggers?
by Jonas Hagberg
Hej.
My old trigger don't work any more. None of my test triggers are
executed either.
I have them in
/var/lib/cobbler/triggers/install/post
How are you supposed to write triggers these days?
I am using s shorter variant of the cfenginge ppkeys trigger found on.
https://fedorahosted.org/cobbler/wiki/CobblerTriggers
I have the cfengine on the same server as cobbler. But it dont work any
more.
I have also tried to copy and edit a trigger in the.
site-packages/cobbler/modules
i used the install_post_log.py as template
But id don't seam to run either.
Any one could tell me how to do it the right way?
cheers
--
-------------------------------------------
Systemexpert jonas.hagberg(a)it.uu.se
Jonas Hagberg tel 018 - 471 1026
UPPMAX fax: 018 - 51 19 25
Uppsala universitet
Box 337, Lägerhyddsv 2E, Hus 4, room 4111
751 05 Uppsala www.uppmax.uu.se
-------------------------------------------
14 years, 1 month
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 / koan - dhcp leases consumed
by Terry McIntyre
I wish to provision several virtual clients on a single virtual server.
Tried the following:
cobbler system add --name=test1 --profile=centos-5.3-xen-x86_64
--virt-type=xenpv --ip=192.168.62.75 --static=yes
--subnet=255.255.254.0 --gateway=192.168.62.40 --virt-cpus=2
--virt-ram=4096
cobbler system add --name=test2 --profile=centos-5.3-xen-x86_64
--virt-type=xenpv --ip=192.168.62.76 --static=yes
--subnet=255.255.254.0 --gateway=192.168.62.40 --virt-cpus=2
--virt-ram=4096
cobbler system add --name=test3 --profile=centos-5.3-xen-x86_64
--virt-type=xenpv --ip=192.168.62.77 --static=yes
--subnet=255.255.254.0 --gateway=192.168.62.40 --virt-cpus=2
--virt-ram=4096
On the virtual server:
koan --server=admin --virt --system=test1
koan --server=admin --virt --system=test2
koan --server=admin --virt --system=test3
Discovered failures during testing -- which eventually were traced to
the exhaustion of all available DHCP client leases.
Specifying the MAC address of the physical host fails. If I pick some
other MAC address, how do I avoid picking one already in use?
Is there a way to tell koan to begin the kickstart using a specified
IP address, instead of acquiring the initial address via DHCP?
--
Terry McIntyre
UNIX for hire
Software Development, Systems Administration, Security
terry.mcintyre(a)gmail.com
14 years, 4 months
Editing kernel cmdline
by Diego M. Vadell
Hi *,
I'm trying to install Fedora 11 and see the console via serial console. So
I edited /etc/cobbler/settings and added
serial: ~
console: 'ttyS1,115200'
to the kernel_options option.
I can see the BIOS and the kernel booting, but after it boots I don't see
anaconda's output. Checking out the installation kernel's ouput, the
parameters are :
Command line: initrd=/images/Fedora11-x86_64/initrd.img ksdevice=bootif
lang= console=ttyS1,115200 console=tty0 nomodeset text serial kssendmac
ks=http://10.50.0.1/cblr/svc/op/ks/system/exitos2
BOOT_IMAGE=/images/Fedora11-x86_64/vmlinuz BOOTIF=01-00-15-17-b5-3b-4c
I think that the problem is the order of the parameters:
"console=ttyS1,115200 console=tty0". I would like to make "console=tty0"
dissapear. I searched the wiki, but I couldn't find anything. Does anybody
know how can I stop cobbler from adding that console=tty0?
Thanks in advance,
-- Diego.
14 years, 4 months
f12 repo OK under f10 cobbler?
by Bill McGonigle
Hi all,
I'm trying to get a f12 repo up under cobbler (on an f10 box at the moment).
reposync runs without complaint, but then yum on the client will bomb
with complaints about attributes in primary.xml and when I run xmllint
on the primary.xml(.gz) that's generated, I get errors, and it does look
like the xml is invalid.
I've re-downloaded the RPM packages, and looked at the SPEC's and I'm
not seeing anything obviously wrong. If it were merely LZMA or
something like that I'd expect more than two packages to have trouble,
but I'm not sure where to look next.
Thanks,
-Bill
/tmp/primary.xml:713307: parser error : attributes construct error
<rpm:entry name="pkgconfig(devmapper-event)" flags="EQ" epoch="0"
ver=""1.
^
/tmp/primary.xml:713307: parser error : Couldn't find end of Start Tag
entry line 713307
<rpm:entry name="pkgconfig(devmapper-event)" flags="EQ" epoch="0"
ver=""1.
^
/tmp/primary.xml:749671: parser error : attributes construct error
<rpm:entry name="group(saslauth)" flags="EQ" epoch="0"
ver=""Saslauthd"/>
^
/tmp/primary.xml:749671: parser error : Couldn't find end of Start Tag
entry line 749671
<rpm:entry name="group(saslauth)" flags="EQ" epoch="0"
ver=""Saslauthd"/>
^
/tmp/primary.xml:749673: parser error : attributes construct error
<rpm:entry name="user(saslauth)" flags="EQ" epoch="0"
ver=""Saslauthd"/>
^
/tmp/primary.xml:749673: parser error : Couldn't find end of Start Tag
entry line 749673
<rpm:entry name="user(saslauth)" flags="EQ" epoch="0"
ver=""Saslauthd"/>
--
Bill McGonigle, Owner
BFC Computing, LLC
http://bfccomputing.com/
Telephone: +1.603.448.4440
Email, IM, VOIP: bill(a)bfccomputing.com
VCard: http://bfccomputing.com/vcard/bill.vcf
Social networks: bill_mcgonigle/bill.mcgonigle
14 years, 4 months
"dhcpd not installed" false negative
by Dale Bewley
I'm seeing the same problem on F12 as this user:
http://www.mail-archive.com/cobbler@lists.fedorahosted.org/msg04898.html
Cobbler doesn't think dhcpd exists.
[root@sammy cobbler]# rpm -q dhcp
dhcp-4.1.0p1-13.fc12.x86_64
[root@sammy cobbler]# which dhcpd
/usr/sbin/dhcpd
[root@sammy cobbler]# rpm -q cobbler
cobbler-2.0.0-1.fc12.noarch
[root@sammy cobbler]# cobbler check
The following are potential configuration items that you may want to fix:
1 : dhcpd is not installed and/or in path
2 : change 'disable' to 'no' in /etc/xinetd.d/rsync
3 : since iptables may be running, ensure 69, 80, and 25151 are unblocked
4 : debmirror package is not installed, it will be required to manage debian deployments and repositories
Restart cobblerd and then run 'cobbler sync' to apply changes.
A couple months later, there is now a test release laying out there, that does fix the error.
[root@sammy yum.repos.d]# yum --enablerepo=updates-testing update cobbler
[root@sammy yum.repos.d]# rpm -q cobbler
cobbler-2.0.1-1.fc12.noarch
[root@sammy yum.repos.d]# cobbler check
The following are potential configuration items that you may want to fix:
1 : change 'disable' to 'no' in /etc/xinetd.d/rsync
2 : since iptables may be running, ensure 69, 80, and 25151 are unblocked
3 : debmirror package is not installed, it will be required to manage debian deployments and repositories
Restart cobblerd and then run 'cobbler sync' to apply changes.
I'll give it some positive karma
https://admin.fedoraproject.org/updates/F12/FEDORA-2009-12039
after testing a little.
--
Dale Bewley - Unix Administrator - Shields Library - UC Davis
GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD 1753 064D 2583 B098 A0F3
14 years, 4 months
Newbie Here - Can't get Web Interface to work
by brown wrap
I have just installed cobbler and setup the web interface to it. Is there a set-by-set guide on using this interface. It seems no matter what I input to the various fields, I get an error, but no clue as to what is wrong. I can input things via the command line and get some moderate success, able to build one ks.cfg, but not through the interface.
On another note, this is the 2nd time I tried Cobbler. The last time was quite a while ago. I went to the Cobbler mailing list to subscribe and found I had already subscribed, but I never get any email. Thanks.
14 years, 5 months
Adding repo's to profile / system
by Baird, Josh
I am having a problem assigning custom repos to a profile/system. I
have defined the repo's and they are being mirrored properly. I can
verify this via the web interface as well as "cobbler report."
In the web interface, I browse to Profiles -> MyProfile, and select this
repo under the "Repo" section (Repos to auto-assign to this profile).
Then I go to the Kickstart Template and ensure that $yum_repo_stanza is
being included. However, my custom repo's are never included in
$yum_report_stanza therefore they never make it to the KS file. I
verified this by choosing "View Kickstart" on the system as well as by
using "cobbler report" The only repo that $yum_repo_stanza includes is
the one for the distro it's self.
Is this a known bug? What are the workarounds?
cobbler-2.0.1-1.el5
cobbler-web-2.0.1-1.el5
Thanks,
Josh
14 years, 5 months
pxe menus and cobbler
by Eric Doutreleau
hi
i m using cobbler 1.6.6 and i have a little problem with image.
indeed i would like to create an entry in my pxe menus with an image file.
i took the exemple of memtest to do that
i follow carefully the steps in these page
https://fedorahosted.org/cobbler/wiki/MemTest
except that i didn't put the mac adress for the system part.
And i have no entry in my pxe menu in
/tftpboot/pxelinux.cfg/default.
I tried to create a profile based on a image but it require a distro and
i have no way to choose an image.
then does someone know how to do that?
add a pxe menus based on a image?
thanks in advance for any help
14 years, 5 months