xcat-core icon indicating copy to clipboard operation
xcat-core copied to clipboard

Customized Device Type for DDN SFA Controllers

Open nicolas-tallet opened this issue 4 years ago • 4 comments

I'd like to define a customized Device Type to query DDN SFA controllers.

With an as-simple-as-possible configuration file definition:

[main]
[xdsh]
pre-command=NULL
post-command=NULL

the XDSH basically works but the following two error message keep showing at the beginning / at the end of the output:

  • Invalid Options Issue (A specific user with username user needs to be specified as no root connection is allowed):
Error: [p3mgt01]: Invalid options: user
  • Return Code Issue:
Error: [p3mgt01]:  A return code for the command run on the host srd01c01-adm was not received.

Example:

$ xdsh srd01c01-adm --devicetype DDNSFA::ES18K -l user "show cont"
Error: [p3mgt01]: Invalid options: user
srd01c01-adm: show cont
srd01c01-adm:
srd01c01-adm: *************************
srd01c01-adm: *     Controller(s)     *
srd01c01-adm: *************************
srd01c01-adm:
srd01c01-adm:
srd01c01-adm:                                       |   Up Time   |                   |Encl|                |Inter-Ctlr Comm |         Firmware Version       |
srd01c01-adm: Idx|Name          |Mastership|Locality|   D: H: M: S|RP|       ID       |Idx |       ULA      |State|ServicesUp|     Release    |Version|  Type |
srd01c01-adm: -------------------------------------------------------------------------------------------------------------------------------------------------
srd01c01-adm:   0 srd01c01       PRIMARY     LOCAL   0086:04:44:22  2 0001ff0c016f0000   0  00000001ff0b0c14 Up    DG+Msg+MAD 11.5.1             47645 Product
srd01c01-adm:   1 srd01c02       SECONDARY   REMOTE  0086:04:44:04  2 0001ff0c03e10000   7  00000001ff0b0c14 Up    DG+Msg+MAD 11.5.1             47645 Product
srd01c01-adm:
srd01c01-adm: Total Controllers: 2
srd01c01-adm:
srd01c01-adm:
srd01c01-adm: Thu 2020-11-05 14:52:32 CET
Error: [p3mgt01]:  A return code for the command run on the host srd01c01-adm was not received.

Would you be able to advise on how to proceed to fix those two error messages?

Thanks in advance.

Note: xCAT Version 2.15 on ppc64le Platform:

$ xdsh --version
Version 2.15 (git commit 218c6d3acc8bdbd7f72115e48cda2b1a3613d18a, built Mon Nov  4 15:17:59 EST 2019)

nicolas-tallet avatar Nov 05 '20 13:11 nicolas-tallet

xdsh srd01c01-adm --devicetype DDNSFA::ES18K -l user "show cont"
user is one of long name options for xdsh command, maybe try to setup username on the node definition

chdef  srd01c01-adm username=user

then for xdsh command, remove -l options

cxhong avatar Nov 05 '20 20:11 cxhong

Hi @cxhong , thanks for the tip.

Unfortunately, I dont seem to be able to assign the user property to the xCAT object as it is missing a nodetype:

$ chdef srd01c01-adm username=user
Error: [p3mgt01]: Cannot set the attr='username' attribute unless nodetype value is ivm or hmc or ppc or mm or websrv or pdu or switch.
No object definitions have been created or modified.

I don't feel like any of the suggested Node Types could apply to this particular object (DDN SFA storage controller) - except HMC, maybe?

What do you think? Thanks.

nicolas-tallet avatar Nov 06 '20 10:11 nicolas-tallet

maybe should be switch,
--devicetype is used for switch nodetype.

cxhong avatar Nov 06 '20 14:11 cxhong

Hi @cxhong ,

Tried the suggested setup to solve the "Invalid options: user" warning message issue, but that doesn't seem to improve the situation:

  • Defined object as Switch (or Management Module, which doesn't make a difference) and defined username as attribute of the object:
# lsdef srd01c01-adm
Object name: srd01c01-adm
   groups=srd01ctl,srd01,srdctl,scratchrd
   ip=X.X.X.X
   nodetype=switch
   otherinterfaces=srd01c01-svc:X.X.X.X
   postbootscripts=otherpkgs
   postscripts=syslog,remoteshell
   switch=r806e01-svc
   switchport=31
   username=user
  • Specific user is apparently not taken into account when calling xdsh on the object:
$ xdsh srd01c01-adm --devicetype DDNSFA::ES18K "show cont"
[p3mgt01]: srd01c01-adm: Permission denied (publickey,password).

Am I doing something wrong? Any other idea?

Thanks.

nicolas-tallet avatar Dec 14 '20 17:12 nicolas-tallet