when i first manually run xcatconfig -m on MN:
following error will occur
x3250m4n02:~ # xcatconfig -m
Can't call method "delEntries" on an undefined value at /opt/xcat/sbin/chtab line 93.
syntax error. Last token seen: /
Garbled time
sh: -c: line 2: syntax error near unexpected token ('
sh: -c: line 2:Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.'
Command failed: /opt/xcat/sbin/chtab -d node=Constant subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Constant subroutine Net::DNS::Resolver::Base::PF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::PF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Invalid nodes in noderange:__mgmtnode nodelist; 2>&1. Error message: .
Could not run /opt/xcat/sbin/chtab -d node=Constant subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Constant subroutine Net::DNS::Resolver::Base::PF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::PF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Invalid nodes in noderange:__mgmtnode nodelist;.
error would gone after removing perl-IO-Socket-INET6.However,one error still remains with generating MN defination while running again.
x3250m4n02:~ # rpm -qa|grep perl-IO-S
perl-IO-Socket-SSL-1.38-5.2.2
perl-IO-Socket-INET6-2.56-3.10.2.1
x3250m4n02:~ # rpm -e perl-IO-Socket-INET6-2.56-3.10.2.1
x3250m4n02:~ # xcatconfig -m
Can't call method "delEntries" on an undefined value at /opt/xcat/sbin/chtab line 93.
x3250m4n02:~ # lsdef -o x3250m4n02
Object name: x3250m4n02
groups=__mgmtnode
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles
So the xcatconfig -m problem is in xcatconfig and I will fix. The problem with perl-IO-Socket-INET6 installed is unrelated but we need to get on your machine. Could you send Jarrod and me how to access the machine.
So I narrowed it down to plugins like activedirectory.pm which have the "use Net::DNS;". With the perl-IO-Socket_INET6 library installed you get the following. This is a SLES SP2 machine.
xCAT_plugin::activedirectory::CODE(0x30082a8)(/opt/xcat/lib/perl/xCAT_plugin/activedirectory.pm:11):
11: use Net::DNS;
DB<11> n
Constant subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Constant subroutine Net::DNS::Resolver::Base::PF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::PF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Net::DNS::CODE(0x30082a8)(/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS.pm:78):
Is this recreatable or fixed.
there is no error information output now.still have following information,i am not sure if PCM would bother about following output while evoke updatenode to update MN itself.
x3250m4n02:~ # xcatconfig -m
Constant subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::AF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Constant subroutine Net::DNS::Resolver::Base::PF_INET6 redefined at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
Prototype mismatch: sub Net::DNS::Resolver::Base::PF_INET6 () vs none at /usr/lib/perl5/5.10.0/Exporter.pm line 66.
at /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 65
You are correct if I remove rpm -e perl-IO-Socket-INET6-2.56-3.10.2.1 the problem goes away, it is not just xcatconf , it is any command not running under the daemon.
export XCATBYPASS=y tabdump site.
I need whoever is testing IPV6 support to investigate.
This looks to be the same issues as SF defect 3017. I am assigning to Xaio Peng who worked on the other one. Not sure if the other was a sufficient fix because you can get this message from other command than xcatconfig. Seems this needs more investigation.
I did some investigation against this issue and found it was an issue of perl package 'perl-Net-DNS-0.63-43.8'. It can be recreated easily by following short code:
! /usr/bin/perl
use Socket6;
use Net::DNS;
And from the following links that this issue has been fixed for a while, but suse did not update this package for sles11.1 and sles11.2.
https://bugzilla.redhat.com/show_bug.cgi?id=437681
https://rt.cpan.org/Public/Bug/Display.html?id=35752
I opened a bug to LTC to track this issue:
https://bugzilla.linux.ibm.com/show_bug.cgi?id=88261
I will move to 2.8.2
According to the https://bugzilla.linux.ibm.com/show_bug.cgi?id=88261 and the test with SLES 11 SP3, seems that the SLES 11 SP3 does not include the fix, moving it to 2.9 for tracking...
This issue has been fixed in the new version of perl-Net-DNS-0.73-1.28.x86_64 on sles 12. And from the change log that the fix for this issue (https://rt.cpan.org/Public/Bug/Display.html?id=35752) has been included.
I did a quick test that I cannot recreate this issue on sles12.
Since the Creator of this bug has quit from IBM, I assign this bug to TingTing for the verification.
Since xiao peng already and did not reproduce this defect. I will close it.