#2676 Error SN access of DB IPV6 address in networks

2.6.12
closed
Jing Sun
IPv6 (5)
5
2012-09-19
2012-03-12
No

service xcatd restart on the SN
Renamed existing dhcp configuration file to /etc/dhcp/dhcpd.conf.xcatbak

Use of uninitialized value in unpack at /opt/xcat/lib/perl/xCAT/Utils.pm line 2478.
Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.
Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.
Warning: No dynamic range specified for 9.114.34.0. If hardware discovery is being used, a dynamic range is required.
Warning: No dynamic range specified for fd55:faaf:e1ab:336::/64. Hosts with no static address will receive no addresses on this subnet.
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
Use of uninitialized value in unpack at /opt/xcat/lib/perl/xCAT/Utils.pm line 2478.
Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.
Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.
dhcpctl_connect: no more
Not an ARRAY reference at /opt/xcat/lib/perl/xCAT/Client.pm line 955.
[FAILED]
This was caused by the below ipv6 address in the networks table. I removed it, restarted the daemon, and you were fine.

netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,nodehostname,ddnsdomain,vlanid,domain,comments,disable

"192_168_5_0-255_255_255_0","192.168.5.0","255.255.255.0","eth1","<xcatmaster>",,,,,,,,,,,,
"9_114_34_0-255_255_255_0","9.114.34.0","255.255.255.0","eth0","<xcatmaster>",,,"<xcatmaster>",,,,,,,,,
"fd55:faaf:e1ab:336::/64","fd55:faaf:e1ab:336::/64",,"eth0",,,,,,,,,,,,,

Discussion

  • Lissa Valletta

    Lissa Valletta - 2012-03-12

    Remove entry in networks table
    d55:faaf:e1ab:336::/64","fd55:faaf:e1ab:336::/64",,"eth0",,,,,,,,,,,,,

     
  • hanjing

    hanjing - 2012-03-12

    In addition,xcatd on sn can not read nodelist table (other tables seems ok) after installation,i think user normally won't realize the cause,which could cause lots potential problem especially during deployment from sn to cn.

    SN:
    [root@p7hv8sa6r02 ~]# tabdump nodelist

    node,groups,status,statustime,appstatus,appstatustime,primarysn,hidden,comments,disable

    [root@p7hv16sa8r01 ~]# tabdump nodelist

    node,groups,status,statustime,appstatus,appstatustime,primarysn,hidden,comments,disable

    MN:
    [root@p7hv16sbbr03 ~]# tabdump nodelist

    node,groups,status,statustime,appstatus,appstatustime,primarysn,hidden,comments,disable

    "hmc157","hmc",,,,,,"0",,
    "p7hv16sa8r01","lpar,service","booted","03-12-2012 07:36:30",,,,,,
    "Server-8231-E2C-SN104DA8R","cec",,,,,,,,
    "Server-9117-MMC-SN10F7A46","cec,all",,,,,,,,
    "p7hv8sa6r02","lpar,service","booted","03-12-2012 07:35:21",,,,,,
    "Server-8202-E4C-SN104DA6R","cec,all",,,,,,,,
    "Server-8205-E6C-SN1038BBR","cec,all",,,,,,,,
    "p7hv16sbbr02","lpar,all,p7hv16group","booted","03-07-2012 06:21:23",,,,,,
    "p7hv16sa8r07","lpar,all,p7hv16group","booted","03-12-2012 00:42:45",,,,,,
    "Server-8236-E8C-SN104DA9R","cec,all",,,,,,,,
    "p7hv32sa9r01","lpar,service","booting","03-12-2012 07:19:40",,,,,,

     
  • Jing Sun

    Jing Sun - 2012-03-13

    The network entry "fd55:faaf:e1ab:336::/64" was generated by makenetworks command automatically since this mn is configured with Global Ipv6 address. I checked other xcat servers in the same subnet with this mn, and found all of them are configured with fd55:faaf:e1ab:336::/64 ipv6 address, this should be related to the router/switch settings in POK lab, so all the servers managed by this router/switch are auto-configured with fd55:faaf:e1ab:336::/64 ipv6 address.

    For the ipv4 customers, I do not think they will run into this issue.

     
  • Jing Sun

    Jing Sun - 2012-03-13

    For the error:
    Use of uninitialized value in unpack at /opt/xcat/lib/perl/xCAT/Utils.pm line 2478.
    Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.
    Use of uninitialized value $noden in bitwise and (&) at /opt/xcat/lib/perl/xCAT/Utils.pm line 2490.

    It's caused by inet_aton returning undef for the ipv6 address, so we need to add the tw lines in Utils.pm:
    my $peernumber = inet_aton($peer); #TODO: IPv6 support
    unless ($peernumber) { return undef; }

    For the error:
    Not an ARRAY reference at /opt/xcat/lib/perl/xCAT/Client.pm line 955.

    It's the duplicated issue as bug 3495195, we need the fix in Client.pm:
    + my $nodes=($rsp->{node});
    + unless (ref $nodes eq 'ARRAY') {
    + $nodes = [$nodes];
    + }
    - if (scalar @{$rsp->{node}}) {
    + if (scalar @$nodes) {

    print "printing node\n";

    • my $nodes=($rsp->{node});

    The two fixes mentioned above already exist in xcat 2.7 code stream, but seems not in xcat 2.6.11 stream. Talked with GuangCheng, it seems there might be other fixes for IPv6 only existing in xcat 2.7 while not in xcat 2.6.11.

    So for xcat 2.6.x, do we need to sync the fixes with xcat 2.7? or just add a restriction in xcat 2.6.11 release notes to indicate we do not support IPv6 in xcat 2.6.x, the customer needs to remove the IPv6 network entries in xcat networks table if they happened to exist?

     
  • Jing Sun

    Jing Sun - 2012-03-14

    As discussed in the interlock meeting, we need to sync the fix to 2.6.12 after 2.6.11 GA, also a restriction has been added to 2.6.11 release notes for this known issue.

     
  • Jing Sun

    Jing Sun - 2012-03-21

    The fix has been checked into xcat 2.6 branch:
    Utils.pm revision 11919
    Client.pm revision: 11920

    Please verify it with xcat 2.6.12 build, thx.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks