xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
360 stars 171 forks source link

Latest version of HMC is missing csmlicutil #6332

Open gurevichmark opened 5 years ago

gurevichmark commented 5 years ago

The latest version 9 of HMC is missing csmlicutil used by xCAT rflash command in perl-xCAT/xCAT/PPCrflash.pm

hscroot@c910hmc02:~> lshmc -V
"version= Version: 8
 Release: 8.4.0
 Service Pack: 3
HMC Build level 20170916.1
","base_version=V8R8.4.0
"
hscroot@c910hmc02:~>

hscroot@c910hmc02:~> which csmlicutil
/usr/hmcrbin/csmlicutil
hscroot@c910hmc02:~>
hscroot@c910hmc03:~> lshmc -V
"version= Version: 9
 Release: 1
 Service Pack: 910
HMC Build level 1803052221
","base_version=V9R1
"
hscroot@c910hmc03:~>

hscroot@c910hmc03:~> which csmlicutil
which: no csmlicutil in (/hmcrbin/:/usr/hmcrbin)
hscroot@c910hmc03:~>

Because of this the rflash fails:

rflash Server-8375-42A-SN13C650W -p /mnt/xcat/iso/firmware/ibm/zz_910/b0821a_1832.910_1832F --activate concurrent -V
:
:
c910hmc03: [c910f03c05k10]: copying of files to c910hmc03 completed
c910hmc03: [c910f03c05k10]: failed to run xdsh command - csmlicutil /tmp/klUk3Oz31j
c910hmc03: [c910f03c05k10]: Error from xdsh. Return Code = 1
c910hmc03: [c910f03c05k10]: Failed to upgrade the firmware of  8375-42A*13C650W  on c910hmc03
[c910f03c05k10]: 14:00:33 10208 Total Elapsed Time: 12.655 sec

root@c910f03c05k10:/opt/xcat#
zet809 commented 5 years ago

Hi, @gurevichmark , pls see my comment https://github.ibm.com/vhu/c910env/issues/734#issuecomment-11610197

gurevichmark commented 5 years ago

Looking at the cmslicutil on hmc02 it looks like it take a stanza file and performs actions specified there.

So from xCAT when running rflash to HMC controlled server, we copy .rpm and .xml files to /tmp on HMC. We then create a stanza file and copy it to /tmp on HMC also. Finally we run cmslicutil <stanza_file> command to perform the update.

The contents of the stanza file are as:

hscroot@c910hmc03:~> cat /tmp/LxWJvIp4Gz
updlic::8247-22L*10112CA::upgrade::::/tmp/01TV860_039_039.rpm
hscroot@c910hmc03:~>

or

hscroot@c910hmc03:~> cat /tmp/DOZvidLWHj
updlic::8375-42A*13C650W::activate::system::/tmp/01VL910_115_089.rpm
hscroot@c910hmc03:~>