'int' object is not iterable
by Jason Boxman
So I ran into this on cobbler-2.2.1-1.fc16.noarch:
https://fedorahosted.org/cobbler/ticket/547
TemplateSyntaxError at /cobbler_web/distro/edit
Caught TypeError while rendering: 'int' object is not iterable
Brand new install of Cobbler.
# cobbler distro list
sl61-i386
sl61-x86_64
# cobbler profile list
test
# rpm -q python
python-2.7.2-5.2.fc16.i686
# getenforce
Permissive
What must I do?
Thanks.
--
Thursday next week is indeed time for a thorough insight
into the swirling red debian vortex. — leeta
12 years, 2 months
Cobbler 2.2.1 system list layout odd
by Heijmans S (spir-it)
Hello,
Just upgraded from 2.011 to 2.2.1 and noticed on the Configuration --> System page, that the layout is not as should be (IE8 on Window7 & Firefox9 on RHEL56).I've attached 2 screenshots, one of Cobbler 2.011 & one 2.2.1.
I can 'fix it' with IE8 zoom out option (Ctrl-) but that it will to this also for all other websites.
Anyone else experience this?
With kind regards,
Stefan Heijmans
Informatie van de Raad voor de rechtspraak, de rechtbanken, de gerechtshoven en de bijzondere colleges vindt u op www.rechtspraak.nl.
12 years, 2 months
atftp server and blksize issue
by Pete Eby
I would like to use the atftp server but am having some issues with
the blksize. For example, when attempting to boot a distro which has a
large size initrd the file is not served. The Cobbler PXE menu returns
the error that the file can not be found, and atftp server logs
"Requested file to big, increase BLKSIZE" (If I use the Red Hat tftp
server rather than atftp it works fine.)
I also tried afttp server_args --no-blksize just to see if turning
this off in atftp altogether might work, but nope.
If I understand correctly, blksize is originated by the tftpclient,
and it appears per tcpdump Cobbler is requesting a blksize of 1408,
but atftp is not responding correctly?
Has anyone had any luck with this issues?
Thank you,
Pete
syslinux-4.02-4.el6.x86_64
cobbler-2.0.11-2.el6.noarch
atftp-server-0.7-6.el6.rf.x86_64
tcpdump -i eth0 -nnaexs 0 -v 'udp port 69'
09:14:48.023330 52:54:00:d5:14:80 > d4:85:64:78:d6:66, ethertype IPv4
(0x0800), length 102: (tos 0x0, ttl 64, id 39224, offset 0, flags
[none], proto UDP (17), length 88)
128.219.x.y.57106 > 128.219.x.y.69: 60 RRQ
"/images/Fedora16-64bit/vmlinuz" octet tsize 0 blksize 1408
0x0000: 4500 0058 9938 0000 4011 95a1 80db a4f4
0x0010: 80db a510 df12 0045 0044 48e5 0001 2f69
0x0020: 6d61 6765 732f 4665 646f 7261 3136 2d36
0x0030: 3462 6974 2f76 6d6c 696e 757a 006f 6374
0x0040: 6574 0074 7369 7a65 0030 0062 6c6b 7369
0x0050: 7a65 0031 3430 3800
09:14:51.511583 52:54:00:d5:14:80 > d4:85:64:78:d6:66, ethertype IPv4
(0x0800), length 105: (tos 0x0, ttl 64, id 5492, offset 0, flags
[none], proto UDP (17), length 91)
128.219.x.y.57107 > 128.219.x.y.69: 63 RRQ
"/images/Fedora16-64bit/initrd.img" octet tsize 0 blksize 1408
0x0000: 4500 005b 1574 0000 4011 1963 80db a4f4
0x0010: 80db a510 df13 0045 0047 3412 0001 2f69
0x0020: 6d61 6765 732f 4665 646f 7261 3136 2d36
0x0030: 3462 6974 2f69 6e69 7472 642e 696d 6700
0x0040: 6f63 7465 7400 7473 697a 6500 3000 626c
0x0050: 6b73 697a 6500 3134 3038 00
tail -f /var/log/atftp.log
Feb 02 09:11:10 atftpd[11906.37144320]: Serving
/images/Fedora16-64bit/vmlinuz to 128.219.x.y:57106
Feb 02 09:11:16 atftpd[11906.37144320]: Serving
/images/Fedora16-64bit/initrd.img to 128.219.x.y:57107
Feb 02 09:11:16 atftpd[11906.37144320]: Requested file to big, increase BLKSIZE
12 years, 2 months
nameservers in dhcp template
by Eric Heydrick
I want to put nameserver settings in my dhcp template but it doesn't
appear that the $name_servers variable is available within
dhcp.template. I could use some other variable that is exposed to the
template but it would be nice if I didn't have to duplicate the name
servers field. Any better solution?
-Eric
12 years, 2 months
configuring multiple default routes with cobbler
by Nick
Hi,
This is basically a question about what --static-routes can do for me.
Suppose I wanted to configure this sort of thing on a new machine:
http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-rou...
Specifically, I'm currently booting a CentOS6 virtual machine (on a VMware ESXi
4 hypervisor), which has two NICs:
- eth0 on 192.168.114.0/24 (a private network, with a gateway to the internet)
- eth1 on 123.456.789.0/24 (a direct connection to the internet)
The idea being that the machine is provisioned using Cobbler over the private
network, but is then set up to be directly connected to the internet via eth1
(and indirectly connected via eth0). This also potentially means I could put
other sensitive infrastructure on the private network.
(I realise another method could be to use NAT or a reverse-proxy to map external
public addresses to internal ones, and give the virtual machine only one NIC;
I'm trying to decide which is better.)
Given a profile which uses a more-or-less standard Cobbler kickstart config, and
a Cobbler server on the private network at 192.168.114.1 which acts also as a
DHCP, caching DNS, and gateway server, my initial guess was that it might
involve creating a "system" definition something like this:
cobbler system edit --name=server1 \
--profile=el6.x86.esx4.puppet \
--hostname=server1.mydomain.net \
\
--interface=eth0 \
--static=0 \
--ip=192.168.114.52 --mac=xx:xx:xx:xx \
--dns-name=server1.mydomain.net
cobbler system edit --name=server1 \
--interface=eth1 \
--static=1 \
--static-gateway=???? \
--ip=123.456.789.100 --mac=yy:yy:yy:yy
Except I'm not sure what the static gateway option would be. The documentation
for --static-gateway simply says:
This is a space delimited list of ip/mask:gateway routing information
Which makes me think it can't configure something like the following:
ip route add 192.168.114.0/24 dev eth0 src 192.168.114.52 table admin
ip route add default via 192.168.114.1 dev eth0 table admin
ip rule add from 192.168.114.52/32 table admin
ip rule add to 192.168.114.52/32 table admin
This would (I think) allow traffic coming from eth0 to go back out on eth0, and
other traffic to go back out eth1 - assuming the main default gateway was set to
via 123.456.789.1.
If I'm right and --static-routes isn't capable of this, presumably I need to
write a post_install snippet which writes into /etc/iproute2/rt_table and
/etc/sysconfig/network-scripts/route-eth0. The net result I want to achieve
being similar to what was described here:
http://lists.centos.org/pipermail/centos/2011-January/105072.html
Thanks,
Nick
12 years, 2 months