Menu

#3719 [DEV] "rcons" fails when nodehm.mgt=kvm

2.8.3
closed
yangsong
general
5
2014-04-01
2013-07-30
yangsong
No

when "nodehm.mgt=kvm", rcons will fail. If xcatd is started with "xcatd -f", the error message is :

[root@ls21n01 vms]# xcatd -f
xCAT: Allowing nodels to xcatmn1 nodehm.conserver for root from localhost
xcatd: possible BUG encountered by xCAT TCP service: Can't use string ("getcons") as an ARRAY ref while "strict refs" in use at /opt/xcat/lib/perl/xCAT/xcatd.pm line 162.

[root@ls21n01 ~]# rcons xcatmn1
[Enter `^Ec?' for help]
ERROR/WARNING: communication with the xCAT server seems to have been ended prematurely
Console not ready, retrying in 89 seconds (Ctrl-C to skip delay)
[disconnect]

1 Attachments

Discussion

  • yangsong

    yangsong - 2013-07-30

    the work around is to modify the following line in /opt/xcat/share/xcat/cons/kvm:
    "
    ...
    my $cmdref={
    command=>"getcons",
    arg=>"text",
    noderange=>$ARGV[0]
    };
    ...
    "

    to

    "
    ...
    my $cmdref={
    command=>["getcons"],
    arg=>["text"],
    noderange=>[$ARGV[0]]
    };
    ...
    "

     
  • Lissa Valletta

    Lissa Valletta - 2013-07-30
    • assigned_to: yangsong
     
  • yangsong

    yangsong - 2013-08-07
    • status: open --> pending
     
  • yangsong

    yangsong - 2013-08-07

    fixed in 2.9 and 2.8.3:

    2.9:
    commit b868858de3059592db6bcbe96b152259252c0848
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Aug 7 00:42:39 2013 -0700

    fix defect 3719 [DEV] rcons fails when nodehm.mgt=kvm
    

    2.8.3:
    commit 5459cf6a60e7b6fef40672e899c982c0f93e0835
    Author: immarvin yangsbj@cn.ibm.comq
    Date: Wed Aug 7 00:38:15 2013 -0700

    fix defect 3719 [DEV] rcons fails when nodehm.mgt=kvm
    

    The patch for 2.8.2 is attached here as kvm.patch

     
  • Lissa Valletta

    Lissa Valletta - 2014-04-01
    • status: pending --> closed
    • component: --> general
     
MongoDB Logo MongoDB