When trying to add a new hosts I am having issues with the UI
reporting the following 2 messages:
Unable to save
Failed to generate PXELinux template: undefined method each' for nil:NilClass Failed to perform rollback on DHCP Settings for foreman- test.sys.test.net - undefined method
destroy' for nil:NilClass
However the log file seems to indicate that is (or it should be
successful)
D, [2012-01-12T21:41:31.569871 #30457] DEBUG – : Loading subnets for
127.0.0.1
D, [2012-01-12T21:41:31.570021 #30457] DEBUG – : Added
192.168.1.0/255.255.255.0 to 127.0.0.1
D, [2012-01-12T21:41:31.575652 #30457] DEBUG – : Loading subnet data
for 192.168.1.0/255.255.255.0
I, [2012-01-12T21:41:31.575790 #30457] INFO – : Enumerated hosts on
192.168.1.0
D, [2012-01-12T21:41:31.575824 #30457] DEBUG – : Lazy loaded
192.168.1.0/255.255.255.0 records
D, [2012-01-12T21:41:31.575868 #30457] DEBUG – : Searching for free
ip - pinging 192.168.1.1
I, [2012-01-12T21:41:31.576167 #30457] INFO – : Found a pingable
IP(192.168.1.1) address which does not have a Proxy::DHCP record
D, [2012-01-12T21:41:31.576204 #30457] DEBUG – : Searching for free
ip - pinging 192.168.1.2
D, [2012-01-12T21:41:33.614482 #30457] DEBUG – : Found free ip
192.168.1.2 out of a total of 254 free ips
D, [2012-01-12T21:41:53.827477 #30457] DEBUG – : Loading subnets for
127.0.0.1
D, [2012-01-12T21:41:53.827559 #30457] DEBUG – : Added
192.168.1.0/255.255.255.0 to 127.0.0.1
D, [2012-01-12T21:41:53.827733 #30457] DEBUG – : Loading subnet data
for 192.168.1.0/255.255.255.0
I, [2012-01-12T21:41:53.827850 #30457] INFO – : Enumerated hosts on
192.168.1.0
D, [2012-01-12T21:41:53.827882 #30457] DEBUG – : Lazy loaded
192.168.1.0/255.255.255.0 records
D, [2012-01-12T21:41:53.827956 #30457] DEBUG – : Added foreman-
test.sys.test.net (192.168.1.2 / 00:50:56:8c:72:33) to
192.168.1.0/255.255.255.0
D, [2012-01-12T21:41:53.828862 #30457] DEBUG – : omshell: executed -
set name = "foreman-test.sys.test.net"
D, [2012-01-12T21:41:53.828934 #30457] DEBUG – : true
D, [2012-01-12T21:41:53.828977 #30457] DEBUG – : omshell: executed -
set ip-address = 192.168.1.2
D, [2012-01-12T21:41:53.829003 #30457] DEBUG – : true
D, [2012-01-12T21:41:53.829037 #30457] DEBUG – : omshell: executed -
set hardware-address = 00:50:56:8c:72:33
D, [2012-01-12T21:41:53.829064 #30457] DEBUG – : true
D, [2012-01-12T21:41:53.829116 #30457] DEBUG – : omshell: executed -
set hardware-type = 1
D, [2012-01-12T21:41:53.829145 #30457] DEBUG – : true
D, [2012-01-12T21:41:53.829446 #30457] DEBUG – : omshell: executed -
set statements = "filename = "pxelinux.0"; next-server = ac:
14:4d:f3; option host-name = "foreman-test.sys.test.net";"
D, [2012-01-12T21:41:53.829478 #30457] DEBUG – : true
D, [2012-01-12T21:41:53.829516 #30457] DEBUG – : omshell: executed -
create
D, [2012-01-12T21:41:53.829541 #30457] DEBUG – : true
I, [2012-01-12T21:41:53.834681 #30457] INFO – : Added DHCP
reservation for foreman-test.sys.test.net (192.168.1.2 / 00:50:56:8c:
72:33)
I, [2012-01-12T21:41:53.855104 #30457] INFO – : TFTP: entry for
00:50:56:8c:72:33 created successfully
D, [2012-01-12T21:41:53.858916 #30457] DEBUG – : Starting task
(total: 0): wget --timeout=10 --tries=3 --no-check-certificate -nv -c
http://dcavm-nb-18p.sys.test.net/centos/x86_64/5/7//images/pxeboot/initrd.img
-O "/tftpboot/boot/CentOS-5.7-x86_64-initrd.img"
D, [2012-01-12T21:41:53.864047 #30457] DEBUG – : Starting task
(total: 0): wget --timeout=10 --tries=3 --no-check-certificate -nv -c
http://dcavm-nb-18p.sys.test.net/centos/x86_64/5/7//images/pxeboot/vmlinuz
-O "/tftpboot/boot/CentOS-5.7-x86_64-vmlinuz"
D, [2012-01-12T21:41:53.869619 #30457] DEBUG – : TFTP: entry for
00:50:56:8c:72:33 removed successfully
E, [2012-01-12T21:41:53.934668 #30457] ERROR – : [7786] 2012-01-12
21:41:53 URL:http://dcavm-nb-18p.sys.test.net/centos/x86_64/5/7//
images/pxeboot/vmlinuz [2106172/2106172] -> "/tftpboot/boot/CentOS-5.7-
x86_64-vmlinuz" [1]
E, [2012-01-12T21:41:54.047121 #30457] ERROR – : [7356] 2012-01-12
21:41:54 URL:http://dcavm-nb-18p.sys.test.net/centos/x86_64/5/7//
images/pxeboot/initrd.img [11370374/11370374] -> "/tftpboot/boot/
CentOS-5.7-x86_64-initrd.img" [1]
The files are downloaded to /tftpboot/
sh-3.2# ls -la /tftpboot/boot/
total 13196
drwx------ 2 foreman-proxy root 4096 Jan 12 21:34 .
drwxr-xr-x 6 root root 4096 Jan 12 21:26 …
-rw-r–r-- 1 foreman-proxy foreman-proxy 11370374 Jan 12 21:41
CentOS-5.7-x86_64-initrd.img
-rw-r–r-- 1 foreman-proxy foreman-proxy 2106172 Jan 12 21:41
CentOS-5.7-x86_64-vmlinuz
sh-3.2#
Can someone point me in the right direction as to what am I missing?
Thank!