xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
367 stars 172 forks source link

Customized Device Type for DDN SFA Controllers #6875

Open nicolas-tallet opened 4 years ago

nicolas-tallet commented 4 years ago

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:

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)
cxhong commented 4 years ago

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

nicolas-tallet commented 4 years ago

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.

cxhong commented 4 years ago

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

nicolas-tallet commented 3 years ago

Hi @cxhong ,

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

Am I doing something wrong? Any other idea?

Thanks.