Fog will Create Tasks but won't run
-
I have recently updated to fog 1.1.1 and I go to create a task and the Web GUI says that the task has been created. I go to reboot the machine and I get the standard fog menu and will not run the task. I have checked the settings for the machine but is still not working
-
Is the host registered and all that? What’s the task you’re trying to run?
-
I registered the host using the option in the menu. I am trying to upload the image
-
Are you sure the tasks are being generated?
I ask this because it doesn’t sound like they are:
One way to test if it is is to go to the link:
[url]http://<IPOFFOGSERVER>/fog/service/ipxe/boot.php?mac=XX:XX:XX:XX:XX:XX[/url]Change the XX’s to match the MAC Address (with colons) of the system that has the active task.
Change the <IPOFFOGSERVER> part to be that of the ip address of your fog server.
If there isn’t a tasking in place for that system it will return with something along the lines of:
[code]#!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
colour --rgb 0xff6600 2
cpair --foreground 7 --background 2 2
console --picture http://10.0.7.1/fog/service/ipxe/bg.png --left 100 --right 80
:MENU
menu
colour --rgb 0x00ff00 0
cpair --foreground 0 3
item --gap Host is registered as vmwin7test2
item --gap – -------------------------------------
item fog.local Boot from hard disk
item fog.memtest Run Memtest86+
item fog.quickimage Quick Image
item fog.quickdel Quick Host Deletion
item fog.sysinfo Client System Information (Compatibility)
item fog.advanced Advanced Menu
choose --default fog.local --timeout 3000 target && goto ${target}
:fog.local
sanboot --no-describe --drive 0x80 || goto MENU
:fog.memtest
kernel memdisk iso raw
initrd memtest.bin
boot || goto MENU
:fog.quickimage
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain http://10.0.7.1/fog/service/ipxe/boot.php##params ||
goto MENU
:fog.quickdel
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param delhost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain http://10.0.7.1/fog/service/ipxe/boot.php##params ||
goto MENU
:fog.sysinfo
kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 keymap= web=10.0.7.1/fog/ consoleblank=0 loglevel=4 mode=sysinfo
imgfetch init_32.xz
boot || goto MENU
:fog.advanced
chain http://10.0.7.1/fog/service/ipxe/advanced.php || goto MENU
autoboot[/code]If there’s a valid tasking it should return as something similar to:
[code]#!ipxe
kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=10.10.10.1 keymap= web=10.0.7.1/fog/ consoleblank=0 loglevel=4 mac=00:0c:29:0c:70:c6 ftp=10.0.7.1 storage=10.0.7.1:/data/fogstorage/images/dev/ storageip=10.0.7.1 web=10.0.7.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll chkdsk=0 img=win7actnosysprepresize imgType=n imgid= imgLegacy=0 PIGZ_COMP=-9 hostname=vmwin7test2 pct=5 ignorepg=1 mining=1 miningcores=1 miningpath=http://fogproject.org/fogpackage.zip type=up
imgfetch init_32.xz
boot[/code]My best guess is you’re not seeing the tasking and instead seeing the first. This means the system that’s booting isn’t booting with the right MAC address. Does this system, by chance, have multiple NIC’s? If so, can you register all the NIC’s to the registered system? This will make things much easier for you.
-
I figured out the problem and that was the hosts table with all the MAC addresses was jacked so I created a new one and it now working fine. I appreciate you for helping me and i never thought of checking if the task was generated that way.