From: lms at ispgaya.pt ( L. M. S. ) - 2008-12-23 15:03:58
|
I figured what the problem was! (Although i still don't understand why it happened in the first place...). I had to add some options to dhcpd.conf for it to understand what GPXE was: option space gpxe; option gpxe-encap-opts code 175 = encapsulate gpxe; option gpxe.bus-id code 177 = string; Phew... luckily i came across this on the messages file: Dec 23 01:01:08 xcat-gw dhcpd: network client line 1: no option space named gpxe. Dec 23 01:01:08 xcat-gw dhcpd: send host-name "hypervnode01";if exists gpxe.bus-id Dec 23 01:01:08 xcat-gw dhcpd: ^ ;o) Best, Lu?s Lu?s Miguel Silva escreveu: > Everyone, > > I don't know why but i can't get the node to appear at the > dhcpd.leases file if i use the iscsi table! > > [root@xcat-gw ~]# tabdump iscsi > #node,server,target,lun,iname,file,userid,passwd,kernel,kcmdline,initrd,comments,disable > > "hypervnode01","10.10.10.254","iqn.2001-04.cluster:iscsi",,,"/iscsi-disks/hypervnode01.disk1.img",,,,,,, > > [root@xcat-gw ~]# makedhcp -a > [root@xcat-gw ~]# service dhcpd restart > Shutting down dhcpd: [ OK ] > Starting dhcpd: [ OK ] > [root@xcat-gw ~]# cat /var/lib/dhcpd/dhcpd.leases > # All times in this file are in UTC (GMT), not your local timezone. > This is > # not a bug, so please don't ask about it. There is no portable way to > # store leases in the local timezone, so please don't request this as a > # feature. If this is inconvenient or confusing to you, we sincerely > # apologize. Seriously, though - don't ask. > # The format of this file is documented in the dhcpd.leases(5) manual > page. > # This lease file was written by isc-dhcp-V3.0.5-RedHat > > host hypervhead { > dynamic; > hardware ethernet 00:1f:d0:29:26:22; > fixed-address 10.10.10.10; > supersede host-name = "hypervhead"; > supersede server.next-server = 0a:0a:0a:fe; > } > [root@xcat-gw ~]# > > But when i remove the iscsi entry: > [root@xcat-gw ~]# tabdump iscsi > #node,server,target,lun,iname,file,userid,passwd,kernel,kcmdline,initrd,comments,disable > > [root@xcat-gw ~]# makedhcp -a > [root@xcat-gw ~]# service dhcpd restart > Shutting down dhcpd: [ OK ] > Starting dhcpd: [ OK ] > [root@xcat-gw ~]# cat /var/lib/dhcpd/dhcpd.leases > # All times in this file are in UTC (GMT), not your local timezone. > This is > # not a bug, so please don't ask about it. There is no portable way to > # store leases in the local timezone, so please don't request this as a > # feature. If this is inconvenient or confusing to you, we sincerely > # apologize. Seriously, though - don't ask. > # The format of this file is documented in the dhcpd.leases(5) manual > page. > # This lease file was written by isc-dhcp-V3.0.5-RedHat > > host hypervnode01 { > dynamic; > hardware ethernet 00:1f:d0:29:25:e2; > fixed-address 10.10.10.11; > supersede host-name = "hypervnode01"; > supersede server.next-server = 0a:0a:0a:fe; > } > host hypervhead { > dynamic; > hardware ethernet 00:1f:d0:29:26:22; > fixed-address 10.10.10.10; > supersede host-name = "hypervhead"; > supersede server.next-server = 0a:0a:0a:fe; > } > [root@xcat-gw ~]# > > Does anybody have any idea what's happening here?! > > PS: by the way, is there a way to have xCat control nodes with Intel > AMT (active management technology)? > > Thanks in advance, > Lu?s Silva > > Lu?s Miguel Silva escreveu: >> Hello everyone, >> >> I was finally able to add the node to dhcpd after i removed all it's >> references from the nodetype table (i probably had something messed >> up in there) and ran makedhcp -a! >> >> [root@xcat-gw ~]# tabdump nodetype >> #node,os,arch,profile,nodetype,comments,disable >> "compute","centos5.2","x86_64","compute","osi",, >> [root@xcat-gw ~]# >> >> >> Thanks a lot everyone! >> Lu?s >> >> Lu?s Miguel Silva escreveu: >>> Dear Jason, >>> >>> I already had the node referenced on the mac table. >>> >>> Here is the dump from the commands you suggested: >>> [root@xcat-gw ~]# tabdump mac >>> #node,interface,mac,comments,disable >>> "hypervnode01","eth0","00:1F:D0:29:25:E2",, >>> [root@xcat-gw ~]# getmacs "compute" >>> Error: A fatal error was encountered, the following information may >>> help identify a bug: Can't call method "getNodesAttribs" on an >>> undefined value at /opt/xcat/lib/perl/xCAT_plugin/ipmi.pm line 5541. >>> ERROR/WARNING: communication with the xCAT server seems to have been >>> ended prematurely >>> [root@xcat-gw ~]# >>> >>> Any thoughts? :o) >>> >>> PS: this node doesn't support IPMI. It has support for AMT but i >>> have NO idea on how to use it :o( >>> >>> Thanks in advance, >>> Lu?s Silva >>> >>> Jason Jin escreveu: >>>> Please try to check the "mac" table: >>>> tabdump mac >>>> >>>> Is there the mac address of "compute". If not, please run >>>> >>>> getmacs "compute" >>>> >>>> Then, you can run your commads. >>>> >>>> [root@xcat-gw ~]# makedhcp -n >>>> [root@xcat-gw ~]# makedhcp "compute" >>>> >>>> ..... >>>> Please check *the dhcpd.leases file *again*.* >>>> >>>> Good Luck ! >>>> >>>> 2008/12/23 Lu?s Miguel Silva <lm...@is... <mailto:lm...@is...>> >>>> >>>> Hello everyone, >>>> >>>> I'm trying to reference a node on dhcpd but it doesn't seem to >>>> work: >>>> >>>> [root@xcat-gw ~]# makedhcp -n >>>> [root@xcat-gw ~]# makedhcp compute >>>> [root@xcat-gw ~]# cat /etc/dhcpd.conf >>>> #xCAT generated dhcp configuration >>>> authoritative; >>>> ddns-update-style none; >>>> option client-architecture code 93 = unsigned integer 16; >>>> omapi-port 7911; >>>> key xcat_key { >>>> algorithm hmac-md5; >>>> secret "ODB3d1Q4ZFdS23415nNaVVBDazZVbkNSNTJZYmd0NG4="; >>>> }; >>>> omapi-key xcat_key; >>>> shared-network eth1 { >>>> subnet 10.10.10.0 netmask 255.255.255.0 { >>>> max-lease-time 43200; >>>> min-lease-time 43200; >>>> default-lease-time 43200; >>>> next-server 10.10.10.254; >>>> option log-servers 10.10.10.254; >>>> option ntp-servers 10.10.10.254; >>>> option domain-name "hyperv.fakedomain.com >>>> <http://hyperv.fakedomain.com>"; >>>> option domain-name-servers 192.168.1.30,192.168.1.1; >>>> if option client-architecture = 00:00 { #x86 >>>> filename "pxelinux.0"; >>>> } else if option vendor-class-identifier = "Etherboot-5.4" >>>> { #x86 >>>> filename "pxelinux.0"; >>>> } else if option client-architecture = 00:02 { #ia64 >>>> filename "elilo.efi"; >>>> } else if substring(filename,0,1) = null { #otherwise, provide >>>> yaboot if the client isn't specific >>>> filename "/yaboot"; >>>> } >>>> range dynamic-bootp 10.10.10.200 10.10.10.250; >>>> } # 10.10.10.0/255.255.255.0 <http://10.10.10.0/255.255.255.0> >>>> subnet_end >>>> } # eth1 nic_end >>>> *#definition for host hypervnode01 aka host hypervnode01 can be >>>> found in the dhcpd.leases file* >>>> >>>> So i try to look inside the dhcpd.leases file... >>>> [root@xcat-gw ~]# cat /var/lib/dhcpd/dhcpd.leases >>>> # All times in this file are in UTC (GMT), not your local >>>> timezone. This is >>>> # not a bug, so please don't ask about it. There is no portable >>>> way to >>>> # store leases in the local timezone, so please don't request this >>>> as a >>>> # feature. If this is inconvenient or confusing to you, we >>>> sincerely >>>> # apologize. Seriously, though - don't ask. >>>> # The format of this file is documented in the dhcpd.leases(5) >>>> manual page. >>>> # This lease file was written by isc-dhcp-V3.0.5-RedHat >>>> >>>> [root@xcat-gw ~]# >>>> >>>> And nothing! Any thoughts? >>>> >>>> Thanks in advance, >>>> >>>> -- Lu?s Miguel Ferreira da Silva >>>> Instituto Superior Polit?cnico Gaya >>>> Av. dos Descobrimentos, 333 >>>> 4400-103 Santa Marinha - V. N. de Gaia >>>> Tel: +351 223745730/3/5 >>>> GSM: +351 912671471 >>>> >>>> _______________________________________________ >>>> xcat-user mailing list >>>> xca...@li... <mailto:xca...@li...> >>>> http://www.xcat.org/mailman/listinfo/xcat-user >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> _______________________________________________ >>>> xcat-user mailing list >>>> xca...@li... >>>> http://www.xcat.org/mailman/listinfo/xcat-user >>>> >>> >>> >> >> > > -- Lu?s Miguel Ferreira da Silva Instituto Superior Polit?cnico Gaya Av. dos Descobrimentos, 333 4400-103 Santa Marinha - V. N. de Gaia Tel: +351 223745730/3/5 GSM: +351 912671471 |